text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func NewGetIconParams() *GetIconParams {
return &GetIconParams{
timeout: cr.DefaultTimeout,
}
} | [
-0.2858738899230957,
0.20156998932361603,
0.11391209810972214,
0.7910507917404175,
-0.3423875868320465,
-0.636814534664154,
0.08645004779100418,
0.6970121264457703,
-0.4116601347923279,
0.9095742702484131,
-0.9596729278564453,
0.30895569920539856,
-0.7451693415641785,
-0.2291029840707779,
... |
func NewGetIconParamsWithTimeout(timeout time.Duration) *GetIconParams {
return &GetIconParams{
timeout: timeout,
}
} | [
0.06420386582612991,
-0.09300500154495239,
0.15968191623687744,
0.4202934503555298,
-0.3486190736293793,
0.353085458278656,
-0.943845272064209,
0.29747214913368225,
-0.7337827086448669,
1.507882833480835,
-0.6701064705848694,
0.5994722843170166,
-0.5816513299942017,
0.12480270117521286,
... |
func NewGetIconParamsWithContext(ctx context.Context) *GetIconParams {
return &GetIconParams{
Context: ctx,
}
} | [
-0.16304543614387512,
-0.042902179062366486,
0.2144957184791565,
0.11761278659105301,
-0.04226381331682205,
0.22394660115242004,
-0.731754720211029,
-0.6701036095619202,
0.052519477903842926,
1.057531476020813,
-0.6772139668464661,
0.46886804699897766,
-0.4443931579589844,
-0.2515046894550... |
func NewGetIconParamsWithHTTPClient(client *http.Client) *GetIconParams {
return &GetIconParams{
HTTPClient: client,
}
} | [
0.026740258559584618,
-0.26881280541419983,
0.23765234649181366,
0.19687949120998383,
-0.10188547521829605,
0.517035961151123,
0.04833133891224861,
0.41229867935180664,
-0.759895920753479,
0.9313737750053406,
-1.1210464239120483,
0.19593994319438934,
-0.782477080821991,
-0.3395884931087494... |
func (o *GetIconParams) WithDefaults() *GetIconParams {
o.SetDefaults()
return o
} | [
-0.4270964562892914,
0.7723729014396667,
0.06304635852575302,
-0.05204463005065918,
0.5856082439422607,
-1.0409221649169922,
-0.272050142288208,
-0.22103315591812134,
-0.12254378199577332,
0.27887141704559326,
-0.7878679633140564,
-0.6502448320388794,
0.06834566593170166,
-0.19592021405696... |
func (o *GetIconParams) SetDefaults() {
// no default values defined for this parameter
} | [
-0.9583947658538818,
0.8611873388290405,
0.1489628106355667,
-0.12685522437095642,
1.2965271472930908,
-0.36369284987449646,
0.20782014727592468,
-0.02333684079349041,
-0.6762192249298096,
0.021847499534487724,
-1.077724814414978,
0.33247268199920654,
-0.9469237923622131,
-0.09535802155733... |
func (o *GetIconParams) WithTimeout(timeout time.Duration) *GetIconParams {
o.SetTimeout(timeout)
return o
} | [
-0.10897433012723923,
0.44428327679634094,
0.11196453124284744,
-0.15872232615947723,
-0.06036490574479103,
0.23706218600273132,
0.07834307104349136,
0.3940461277961731,
-0.2102079838514328,
1.4088257551193237,
-0.49570485949516296,
0.4246543049812317,
0.5180068016052246,
-0.07882495969533... |
func (o *GetIconParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
-0.4516391158103943,
0.4399971067905426,
0.15459109842777252,
-0.1692211925983429,
0.4252590239048004,
0.46175381541252136,
0.4498828947544098,
0.7411287426948547,
-0.6280811429023743,
1.184797763824463,
-0.6671892404556274,
0.7640472650527954,
-0.24053464829921722,
-0.07730024307966232,
... |
func (o *GetIconParams) WithContext(ctx context.Context) *GetIconParams {
o.SetContext(ctx)
return o
} | [
-0.8029692769050598,
0.5068144798278809,
0.29300564527511597,
-0.0956619381904602,
-0.12122427672147751,
0.043331585824489594,
-0.01808801479637623,
-0.4869799315929413,
0.22001372277736664,
0.675877034664154,
-0.5656256675720215,
0.4882221221923828,
0.06912301480770111,
-0.544680535793304... |
func (o *GetIconParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-1.025825023651123,
0.4135441184043884,
0.18813778460025787,
0.03601730614900589,
0.4327033758163452,
0.17140056192874908,
0.4060440957546234,
-0.04358883947134018,
0.25112205743789673,
0.5629701018333435,
-0.8703411221504211,
0.7830668091773987,
-0.5238640904426575,
-0.42516404390335083,
... |
func (o *GetIconParams) WithHTTPClient(client *http.Client) *GetIconParams {
o.SetHTTPClient(client)
return o
} | [
-0.4215274155139923,
-0.3527674973011017,
0.2681039273738861,
-0.08027458190917969,
-0.2969348132610321,
-0.11667675524950027,
0.6530944108963013,
0.006054783705621958,
-0.6651187539100647,
0.4976171851158142,
-0.8488799929618835,
0.2135334461927414,
0.49522799253463745,
-0.856390953063964... |
func (o *GetIconParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
-0.24466174840927124,
-0.29737597703933716,
0.32912585139274597,
-0.6582207083702087,
-0.3852998912334442,
-0.15289779007434845,
0.7283003926277161,
0.1723250299692154,
-0.9661712646484375,
0.37220945954322815,
-1.1872193813323975,
0.6588155627250671,
-0.2916099727153778,
-0.94458025693893... |
func (o *GetIconParams) WithXRequestID(xRequestID *string) *GetIconParams {
o.SetXRequestID(xRequestID)
return o
} | [
-0.20293515920639038,
-0.30709969997406006,
0.3720249831676483,
0.26622748374938965,
-0.8111429214477539,
0.5471129417419434,
-0.9673274755477905,
-0.18985997140407562,
0.7463348507881165,
0.8895259499549866,
0.17100515961647034,
0.1924113780260086,
0.6376394629478455,
-0.03967198356986046... |
func (o *GetIconParams) SetXRequestID(xRequestID *string) {
o.XRequestID = xRequestID
} | [
-0.8101667761802673,
-0.4021834433078766,
0.24815374612808228,
0.05827046185731888,
-0.6018093824386597,
0.7521578669548035,
-0.934381902217865,
-0.11298827081918716,
0.4123455584049225,
0.8114203214645386,
-0.29843828082084656,
0.525702178478241,
-0.2602938711643219,
0.2312522977590561,
... |
func (o *GetIconParams) WithDigest(digest string) *GetIconParams {
o.SetDigest(digest)
return o
} | [
-0.5548375248908997,
0.27220049500465393,
0.09888741374015808,
-0.3633217215538025,
-0.1883898824453354,
-0.5727913975715637,
-0.05243624001741409,
-0.2042364776134491,
-0.34636688232421875,
0.09646757692098618,
-0.23270739614963531,
-0.48200497031211853,
0.48712456226348877,
0.04644420370... |
func (o *GetIconParams) SetDigest(digest string) {
o.Digest = digest
} | [
-0.9231778979301453,
-0.07521472126245499,
0.15030686557292938,
-0.23194044828414917,
0.4167385399341583,
0.11171211302280426,
0.21217165887355804,
0.2926608622074127,
-0.6072799563407898,
-0.2744072377681732,
-0.6057302951812744,
0.1057969257235527,
-0.4003959894180298,
0.3725120425224304... |
func (o *GetIconParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.XRequestID != nil {
// header param X-Request-Id
if err := r.SetHeaderParam("X-Request-Id", *o.XRequestID); err != nil {
return e... | [
-1.3538929224014282,
-0.031436216086149216,
0.8509859442710876,
-0.5036104917526245,
0.9232774972915649,
-0.3373912572860718,
0.8064152002334595,
0.18408696353435516,
-0.6559152603149414,
0.5934326648712158,
-0.04068732261657715,
0.1570325791835785,
-0.20875385403633118,
-0.218575343489646... |
func (u UserAPI) CreateUser(ctx *gin.Context) {
var user models.CreateUserInput
if err := ctx.ShouldBindJSON(&user); err != nil {
ctx.JSON(http.StatusBadRequest, models.ApiResponse{
Message: err.Error(),
})
return
}
count, err := u.DB.CountUsers(ctx, user.Username)
if err != nil {
ctx.JSON(http.StatusIn... | [
-1.0580841302871704,
-0.48482242226600647,
0.8850764632225037,
0.7029303312301636,
0.9991974234580994,
0.9417698979377747,
0.5701444149017334,
-0.25536325573921204,
0.13315826654434204,
-0.007247414439916611,
-1.1873432397842407,
-0.6199285984039307,
-0.3459896445274353,
0.7005693912506104... |
func (u UserAPI) DeleteUser(ctx *gin.Context) {
username := ctx.Param("username")
authUsername := ctx.MustGet(AuthUserKey)
if username == "" {
ctx.JSON(http.StatusBadRequest, models.ApiResponse{
Message: "username is required",
})
return
}
if username != authUsername {
// user can only delete themselve... | [
-1.1679378747940063,
0.03133256733417511,
0.7644308805465698,
0.8766517639160156,
0.15966840088367462,
0.3270794451236725,
1.0398622751235962,
-0.03489512950181961,
-0.012854698114097118,
-0.3833892047405243,
-0.809499979019165,
-0.15763157606124878,
-0.378948837518692,
1.0570437908172607,... |
func (u UserAPI) GetUserByUserName(ctx *gin.Context) {
username := ctx.Param("username")
if username == "" {
ctx.JSON(http.StatusBadRequest, models.ApiResponse{
Message: "username is required",
})
return
}
user, status, err := u.GetUser(username)
if err != nil {
ctx.JSON(status, models.ApiResponse{
M... | [
-1.2858517169952393,
-0.007991484366357327,
0.4975775480270386,
0.6826387047767639,
0.17551656067371368,
0.07042284309864044,
0.6577470302581787,
-0.5051126480102539,
-0.14776931703090668,
0.6512677669525146,
-0.666100263595581,
-0.17829908430576324,
-0.6758338809013367,
0.4232373535633087... |
func (u UserAPI) GetUser(username string) (user models.User, status int, err error) {
user, err = u.DB.FindOne(context.Background(), username)
if err != nil {
if err == mongo.ErrNoDocuments {
return user, http.StatusNotFound, err
}
return user, http.StatusInternalServerError, errors.New("database error: " + ... | [
-1.2373039722442627,
0.2806657552719116,
0.6690868139266968,
0.8197662830352783,
0.5545575618743896,
0.27712681889533997,
1.0622074604034424,
0.0006703939288854599,
0.4863818883895874,
-0.00021392479538917542,
-0.5001933574676514,
-0.45725977420806885,
-1.0361549854278564,
0.70541572570800... |
func (u UserAPI) getAllUsers() ([]models.User, error) {
users, err := u.DB.Find(context.Background())
if err != nil {
return users, errors.New("database error: " + err.Error())
}
return users, nil
} | [
-0.649760365486145,
0.1387750208377838,
0.3040415644645691,
1.2597252130508423,
1.1097726821899414,
0.3917386531829834,
-0.6542523503303528,
-0.10621306300163269,
0.2349700927734375,
-0.22689953446388245,
0.33064642548561096,
0.5247856974601746,
-1.343388319015503,
1.0710099935531616,
0.... |
func (u UserAPI) GetUsers(ctx *gin.Context) {
users, err := u.getAllUsers()
if err != nil {
ctx.JSON(http.StatusInternalServerError, models.ApiResponse{
Message: err.Error(),
})
return
}
for _, v := range users {
v.Password = ""
}
ctx.JSON(http.StatusOK, users)
} | [
-1.1773872375488281,
-0.2854190766811371,
0.5691765546798706,
0.3346024453639984,
0.7413842678070068,
0.07267264276742935,
-0.3961484432220459,
-0.1499134600162506,
0.2560473084449768,
0.5611848831176758,
-0.09820736199617386,
0.8441935181617737,
-0.34682875871658325,
0.7905632853507996,
... |
func New(text string) error {
return errors.New(text)
} | [
0.6580573916435242,
-0.935150682926178,
-0.050472136586904526,
0.22967515885829926,
-1.527833342552185,
0.03865579888224602,
-0.6782170534133911,
-0.008553463034331799,
-0.13143746554851532,
-0.35164856910705566,
-0.16052047908306122,
0.33701762557029724,
0.21376924216747284,
0.15886780619... |
func Newf(format string, arguments ...interface{}) error {
return fmt.Errorf(format, arguments...)
} | [
0.5854932069778442,
-0.42698273062705994,
0.37407559156417847,
0.6721249222755432,
-0.31156909465789795,
-0.2571675181388855,
-0.1402188241481781,
0.1066165566444397,
-0.318789541721344,
-0.7051981091499329,
0.618531346321106,
0.44333213567733765,
0.611677348613739,
0.39027267694473267,
... |
func ToFrontendError(
context context.Context,
originalError error,
code codes.Code, newErrorMessage string,
) error {
log_context.FromContext(context).Error(originalError)
return status.Error(code, newErrorMessage)
} | [
-0.09357541799545288,
-0.04345448315143585,
0.48776230216026306,
-0.52559894323349,
-0.32743459939956665,
-0.38574039936065674,
-0.6307750940322876,
0.24503332376480103,
0.1034865528345108,
0.24110989272594452,
0.2832907736301422,
1.3698124885559082,
0.5077379941940308,
0.30364805459976196... |
func (jbobject *AstBodyAnnotableNode) GetAnnotations() []*AstExprAnnotationExpr {
jret, err := jbobject.CallMethod(javabind.GetEnv(), "getAnnotations", "java/util/List")
if err != nil {
panic(err)
}
retconv := javabind.NewJavaToGoList(javabind.NewJavaToGoCallable())
dst := new([]*AstExprAnnotationExpr)
retconv.... | [
-0.413504421710968,
-0.14522624015808105,
0.6747978329658508,
0.9781959652900696,
0.06015639379620552,
-0.15838725864887238,
-0.019273506477475166,
-0.9136841297149658,
-0.1010732501745224,
0.5914399027824402,
-0.6928187608718872,
0.810333251953125,
-0.6150511503219604,
1.0319032669067383,... |
func GetCSDCOProj(identity string) *sparql.Results {
// repo, err := sparql.NewRepo("http://data.oceandrilling.org/sparql",
repo, err := getJena()
if err != nil {
log.Printf("%s\n", err)
}
f := bytes.NewBufferString(projdetails)
bank := sparql.LoadBank(f)
// q, err := bank.Prepare("my-query", struct{ Limit, ... | [
0.20922772586345673,
1.011178731918335,
0.6876735687255859,
-0.4891967475414276,
0.10259414464235306,
0.420602023601532,
-0.9298540353775024,
0.23191992938518524,
-0.20020867884159088,
-0.2640039920806885,
0.39425602555274963,
-0.21877852082252502,
-1.0749707221984863,
-0.2456047534942627,... |
func (itr *Iterator) AdvanceIfNeeded(minval uint64) {
if itr.index < 0 {
return
}
for itr.Val() < minval {
if itr.HasNext() {
itr.Next()
} else {
break
}
}
} | [
-0.526606023311615,
0.49165958166122437,
0.4271835386753082,
-0.4444213807582855,
-0.5588547587394714,
0.5391886234283447,
-1.060421347618103,
-1.2672595977783203,
-0.16817457973957062,
-0.0655105859041214,
0.7679793834686279,
0.34810373187065125,
-0.371586412191391,
1.26817786693573,
-0... |
func Run(opts *options.TerragruntOptions) error {
if opts.TerraformCommand == "" {
return errors.WithStackTrace(MissingCommand{})
}
return runTerraform(opts, new(Target))
} | [
-0.16676759719848633,
0.07950005680322647,
0.37968575954437256,
-0.2347739040851593,
1.5595767498016357,
-0.0696820467710495,
0.6986384391784668,
0.3434607982635498,
-0.41153067350387573,
-0.09471580386161804,
0.1277625858783722,
0.0056780800223350525,
-0.37825101613998413,
0.2489162683486... |
func runTerragruntWithConfig(originalTerragruntOptions *options.TerragruntOptions, terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig, allowSourceDownload bool, target *Target) error {
// Add extra_arguments to the command
if terragruntConfig.Terraform != nil && terragruntConfig.T... | [
0.5093299150466919,
-0.9603762626647949,
0.9397589564323425,
-1.0093013048171997,
0.7568345069885254,
-0.030922433361411095,
0.20750509202480316,
0.6403685808181763,
-0.29071617126464844,
0.769245982170105,
0.18304654955863953,
0.5191913843154907,
0.2586629390716553,
0.7013742327690125,
... |
func confirmActionWithDependentModules(terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig) bool {
modules := configstack.FindWhereWorkingDirIsIncluded(terragruntOptions, terragruntConfig)
if len(modules) != 0 {
if _, err := terragruntOptions.ErrWriter.Write([]byte("Detected depe... | [
0.22899757325649261,
-0.37013623118400574,
0.8113694787025452,
0.6810025572776794,
0.3977210819721222,
1.029654860496521,
0.8933069705963135,
-1.0913578271865845,
-0.28211358189582825,
0.5561279058456421,
-0.01633923500776291,
0.34199345111846924,
-0.14445902407169342,
0.868500292301178,
... |
func shouldCopyLockFile(args []string) bool {
if util.FirstArg(args) == CommandNameInit {
return true
}
if util.FirstArg(args) == CommandNameProviders && util.SecondArg(args) == CommandNameLock {
return true
}
return false
} | [
-0.12655580043792725,
-0.1097131296992302,
0.7071707844734192,
0.5999002456665039,
0.25189271569252014,
1.224156141281128,
0.2700384557247162,
0.2442844957113266,
-0.7809373736381531,
0.40935418009757996,
0.17947781085968018,
0.5475150942802429,
-0.7079673409461975,
0.7236582636833191,
-... |
func runActionWithHooks(description string, terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig, action func() error) error {
var allErrors *multierror.Error
beforeHookErrors := processHooks(terragruntConfig.Terraform.GetBeforeHooks(), terragruntOptions, terragruntConfig, allErrors... | [
-0.2688206434249878,
-0.5685021281242371,
0.5733079314231873,
-0.5020521283149719,
0.6281200647354126,
-0.39951539039611816,
0.23246951401233673,
-0.35105976462364197,
-0.010732589289546013,
0.6955932974815369,
0.6937660574913025,
0.2409907430410385,
0.16907544434070587,
0.2242170125246048... |
func setTerragruntInputsAsEnvVars(terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig) error {
asEnvVars, err := toTerraformEnvVars(terragruntConfig.Inputs)
if err != nil {
return err
}
if terragruntOptions.Env == nil {
terragruntOptions.Env = map[string]string{}
}
for ke... | [
-0.7559412717819214,
-0.6539396047592163,
0.39425984025001526,
-0.8913048505783081,
0.9207562804222107,
0.7520700097084045,
0.05461876839399338,
-0.6061216592788696,
-0.8112274408340454,
0.6530225872993469,
0.3173080384731293,
0.6686975359916687,
-0.08803774416446686,
0.46520698070526123,
... |
func prepareInitCommand(terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig, allowSourceDownload bool) error {
if terragruntConfig.RemoteState != nil {
// Initialize the remote state if necessary (e.g. create S3 bucket and DynamoDB table)
remoteStateNeedsInit, err := remoteStat... | [
0.6223969459533691,
-0.3746408522129059,
0.61959308385849,
-0.8104326725006104,
1.2557523250579834,
0.21677052974700928,
-0.153620183467865,
0.09965969622135162,
0.31715127825737,
0.4575670063495636,
-0.1183074414730072,
0.439532607793808,
0.1370311975479126,
0.3427138924598694,
0.281927... |
func prepareNonInitCommand(originalTerragruntOptions *options.TerragruntOptions, terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig) error {
needsInit, err := needsInit(terragruntOptions, terragruntConfig)
if err != nil {
return err
}
if needsInit {
if err := runTerraformIn... | [
-0.279197633266449,
-0.47250989079475403,
0.6765971779823303,
-0.48679980635643005,
0.8697995543479919,
-0.6109427809715271,
0.03915895149111748,
-0.39537134766578674,
-0.15075276792049408,
-0.07747950404882431,
0.2065896838903427,
0.205743208527565,
-0.3472786247730255,
1.1951645612716675... |
func needsInit(terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig) (bool, error) {
if util.ListContainsElement(TerraformCommandsThatDoNotNeedInit, util.FirstArg(terragruntOptions.TerraformCliArgs)) {
return false, nil
}
if providersNeedInit(terragruntOptions) {
return true, ... | [
-0.9295481443405151,
0.1170818954706192,
0.5581039786338806,
-0.906130313873291,
1.1279878616333008,
0.314989298582077,
-0.13495995104312897,
-0.10749202966690063,
-0.39335495233535767,
0.6356648206710815,
-0.4825548231601715,
0.02041739970445633,
-0.35834071040153503,
1.0136570930480957,
... |
func providersNeedInit(terragruntOptions *options.TerragruntOptions) bool {
providersPath013 := util.JoinPath(terragruntOptions.DataDir(), "plugins")
providersPath014 := util.JoinPath(terragruntOptions.DataDir(), "providers")
return !(util.FileExists(providersPath013) || util.FileExists(providersPath014))
} | [
-0.9038515090942383,
-0.2541062831878662,
0.5051795244216919,
-1.4918824434280396,
1.4184577465057373,
0.4517616033554077,
0.015110326930880547,
-0.16357946395874023,
-0.4066532254219055,
0.7960089445114136,
-0.04665640741586685,
0.26274552941322327,
-0.7643545866012573,
0.3773756623268127... |
func runTerraformInit(originalTerragruntOptions *options.TerragruntOptions, terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig, terraformSource *terraform.Source) error {
// Prevent Auto-Init if the user has disabled it
if util.FirstArg(terragruntOptions.TerraformCliArgs) != Comm... | [
-0.36151573061943054,
-0.8727863430976868,
0.858519971370697,
-1.325221061706543,
0.6504232287406921,
0.09213373064994812,
0.26448431611061096,
-0.17531947791576385,
-0.22584468126296997,
0.6386670470237732,
0.15013447403907776,
0.33523520827293396,
-0.5022286176681519,
0.22456467151641846... |
func modulesNeedInit(terragruntOptions *options.TerragruntOptions) (bool, error) {
modulesPath := util.JoinPath(terragruntOptions.DataDir(), "modules")
if util.FileExists(modulesPath) {
return false, nil
}
moduleNeedInit := util.JoinPath(terragruntOptions.WorkingDir, moduleInitRequiredFile)
if util.FileExists(mo... | [
-1.3965004682540894,
-0.30463188886642456,
0.6919736862182617,
-1.843653917312622,
0.8100665807723999,
0.9534857869148254,
0.007135031744837761,
-0.20398639142513275,
-0.8185624480247498,
0.7927184104919434,
0.07982379198074341,
0.11473984271287918,
-0.945766270160675,
0.5270630121231079,
... |
func remoteStateNeedsInit(remoteState *remote.RemoteState, terragruntOptions *options.TerragruntOptions) (bool, error) {
// We only configure remote state for the commands that use the tfstate files. We do not configure it for
// commands such as "get" or "version".
if remoteState != nil && util.ListContainsElement... | [
-0.0008237659931182861,
-0.11541350930929184,
0.6837047338485718,
-1.1344667673110962,
0.09721933305263519,
0.029628876596689224,
-0.38956624269485474,
0.24412845075130463,
-0.14613230526447296,
0.36973485350608826,
-0.6646043062210083,
-0.40041980147361755,
-0.031152624636888504,
0.489437... |
func checkProtectedModule(terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig) error {
var destroyFlag = false
if util.FirstArg(terragruntOptions.TerraformCliArgs) == CommandNameDestroy {
destroyFlag = true
}
if util.ListContainsElement(terragruntOptions.TerraformCliArgs, fmt.S... | [
0.3137379288673401,
0.11803870648145676,
0.6312417387962341,
0.1910761594772339,
1.882078766822815,
0.0610816590487957,
-0.08220826089382172,
-0.3028784990310669,
0.13361801207065582,
0.6567257642745972,
0.46081727743148804,
0.30851635336875916,
-0.40534326434135437,
1.279431939125061,
0... |
func toTerraformEnvVars(vars map[string]interface{}) (map[string]string, error) {
out := map[string]string{}
for varName, varValue := range vars {
// skip variables with null values
if varValue == nil {
continue
}
envVarName := fmt.Sprintf("%s_%s", terraform.TFVarPrefix, varName)
envVarValue, err := ut... | [
-1.4646540880203247,
-0.6359990835189819,
0.4675239622592926,
-1.1181083917617798,
-0.48104238510131836,
-0.3549095094203949,
-0.9962636232376099,
-0.11037056893110275,
-1.050097942352295,
1.4206528663635254,
-0.31957197189331055,
0.24442943930625916,
0.9278855323791504,
0.702386200428009,... |
func setTerragruntNullValues(terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig) (string, error) {
jsonEmptyVars := make(map[string]interface{})
for varName, varValue := range terragruntConfig.Inputs {
if varValue == nil {
jsonEmptyVars[varName] = nil
}
}
// skip generati... | [
-0.1762004792690277,
-0.8331886529922485,
0.7359857559204102,
-1.6766180992126465,
0.4014202058315277,
-0.025116506963968277,
0.16757948696613312,
-0.04993536323308945,
-0.9356357455253601,
-0.11846502125263214,
-0.09868349879980087,
0.4741252362728119,
-0.37481486797332764,
0.725091576576... |
func NewPerson(name string) Person {
return Person{name}
} | [
-0.06332327425479889,
-1.478705644607544,
0.026582714170217514,
-0.7738780379295349,
-1.8375917673110962,
0.63876873254776,
-0.581978976726532,
-0.042058415710926056,
0.30623114109039307,
0.14566580951213837,
-0.7003531455993652,
-0.28870654106140137,
-0.31906282901763916,
-0.0636228844523... |
func (p Person) Name() string {
return p.name
} | [
-0.9216309785842896,
-1.1229338645935059,
0.246719628572464,
0.05346972495317459,
-1.3203413486480713,
0.8889681100845337,
-0.3544699251651764,
0.09117724746465683,
-0.21874670684337616,
0.481445848941803,
0.02688630297780037,
-0.3348788321018219,
-0.2666469216346741,
-0.45239341259002686,... |
func NewMockRepository(ctrl *gomock.Controller) *MockRepository {
mock := &MockRepository{ctrl: ctrl}
mock.recorder = &MockRepositoryMockRecorder{mock}
return mock
} | [
-0.40566781163215637,
0.15040701627731323,
0.3481570780277252,
0.11657092720270157,
0.4086928963661194,
-0.6009275317192078,
0.8525921702384949,
-0.3010445833206177,
0.8942181468009949,
0.26631760597229004,
-0.6556568741798401,
-0.31424465775489807,
-0.24112838506698608,
1.2045669555664062... |
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder {
return m.recorder
} | [
-0.19566214084625244,
0.4861186146736145,
0.21518853306770325,
-0.2768508791923523,
0.6835972666740417,
-0.08574516326189041,
-0.040901992470026016,
0.2764807641506195,
0.23481252789497375,
-0.03424634411931038,
0.5396379232406616,
0.4172093868255615,
-0.9473356008529663,
0.601226568222045... |
func (m *MockRepository) Delete(id UserID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", id)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.1874351054430008,
0.2684547007083893,
0.3642306625843048,
1.0481563806533813,
1.4903843402862549,
0.22561819851398468,
0.3810637593269348,
-0.3503609001636505,
-0.06965214014053345,
-0.08611592650413513,
-0.14276309311389923,
-0.44820594787597656,
-1.1888819932937622,
1.0482648611068726... |
func (mr *MockRepositoryMockRecorder) Delete(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRepository)(nil).Delete), id)
} | [
-0.1766546666622162,
0.997822642326355,
0.32115986943244934,
0.4128401577472687,
0.27048981189727783,
0.1742834895849228,
-0.562502920627594,
-1.329257845878601,
1.1721510887145996,
0.6982481479644775,
0.5676639676094055,
0.22773873805999756,
-1.1486880779266357,
1.3394919633865356,
-0.1... |
func (m *MockRepository) GetByID(id UserID) (*User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetByID", id)
ret0, _ := ret[0].(*User)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
0.38142988085746765,
-0.2688160240650177,
0.3432433307170868,
0.7005196809768677,
0.8867670297622681,
0.4216201603412628,
1.0199859142303467,
-0.7201610207557678,
-0.5316672921180725,
-0.2234211564064026,
-1.2052996158599854,
0.3567050099372864,
-0.9609280228614807,
1.0202398300170898,
0... |
func (mr *MockRepositoryMockRecorder) GetByID(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByID", reflect.TypeOf((*MockRepository)(nil).GetByID), id)
} | [
0.7411358952522278,
0.7412031888961792,
0.31765931844711304,
0.11860552430152893,
0.31611090898513794,
0.09206344932317734,
0.04621497914195061,
-1.3019399642944336,
0.6707079410552979,
0.8929394483566284,
-0.04346803203225136,
1.0268187522888184,
-0.8728845119476318,
1.067571759223938,
... |
func (m *MockRepository) Store(user *User) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Store", user)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.5808249711990356,
0.23539885878562927,
-0.13790124654769897,
1.0311018228530884,
0.8682940006256104,
0.6382217407226562,
1.3026986122131348,
-0.48435625433921814,
-0.21444864571094513,
-0.8401575684547424,
-0.3085452914237976,
-0.3504365384578705,
-0.725461483001709,
1.2195450067520142,... |
func (mr *MockRepositoryMockRecorder) Store(user interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockRepository)(nil).Store), user)
} | [
-0.3932889401912689,
0.961272120475769,
-0.04331393539905548,
0.6886035799980164,
-0.2511924207210541,
0.7169650197029114,
0.49739351868629456,
-1.207747220993042,
1.0366264581680298,
-0.09562329202890396,
0.46721649169921875,
0.35390180349349976,
-0.8840194940567017,
1.7677979469299316,
... |
func NewConsumer(ctx context.Context) (*Consumer, error) {
// TODO support filter in downstream sink
tz, err := util.GetTimezone(timezone)
if err != nil {
return nil, errors.Annotate(err, "can not load timezone")
}
ctx = util.PutTimezoneInCtx(ctx, tz)
filter, err := cdcfilter.NewFilter(config.GetDefaultReplicaC... | [
-0.2523846924304962,
-0.14056403934955597,
0.8477060198783875,
1.2495646476745605,
-0.5832175016403198,
-0.5188072919845581,
1.4811720848083496,
0.3519192337989807,
-0.06306582689285278,
0.6175187826156616,
0.1395227313041687,
0.28217458724975586,
-0.037156932055950165,
0.6996613144874573,... |
func (c *Consumer) Setup(sarama.ConsumerGroupSession) error {
// Mark the c as ready
close(c.ready)
return nil
} | [
0.26653406023979187,
-0.19093875586986542,
0.4283827841281891,
-0.272113174200058,
0.23242028057575226,
-0.772577702999115,
1.0138107538223267,
0.01180105097591877,
0.2040657103061676,
0.652272641658783,
-0.2437169849872589,
0.030234303325414658,
-0.31160202622413635,
0.6621113419532776,
... |
func (c *Consumer) Cleanup(sarama.ConsumerGroupSession) error {
return nil
} | [
0.7395111918449402,
-0.6741782426834106,
0.23714202642440796,
0.44196611642837524,
-0.5352175235748291,
-0.9173455834388733,
1.3029780387878418,
-0.38873979449272156,
0.8943163752555847,
-0.3695831000804901,
0.04187899827957153,
0.08113312721252441,
-0.36099889874458313,
0.6241756081581116... |
func (c *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error {
ctx := context.TODO()
partition := claim.Partition()
c.sinksMu.Lock()
sink := c.sinks[partition]
c.sinksMu.Unlock()
if sink == nil {
panic("sink should initialized")
}
ClaimMessages:
for message := ra... | [
0.5663645267486572,
0.007269692607223988,
0.8863093852996826,
0.5129887461662292,
-0.07065638154745102,
-1.0691736936569214,
0.2875014543533325,
-0.12337367981672287,
0.2044363170862198,
0.09893818944692612,
0.36802732944488525,
0.1227034255862236,
0.08595100045204163,
0.7675576210021973,
... |
func (c *Consumer) Run(ctx context.Context) error {
var lastGlobalResolvedTs uint64
for {
select {
case <-ctx.Done():
return ctx.Err()
default:
}
time.Sleep(100 * time.Millisecond)
// handle ddl
globalResolvedTs := uint64(math.MaxUint64)
err := c.forEachSink(func(sink *struct {
sink.Sink
reso... | [
-0.8925948739051819,
0.5792402625083923,
1.0428011417388916,
-0.26651471853256226,
0.23815026879310608,
-0.616883397102356,
1.077120065689087,
0.03826839104294777,
-0.24802786111831665,
0.2782233953475952,
0.1337616741657257,
0.26656344532966614,
-0.13538460433483124,
0.9006604552268982,
... |
func Ping(hostname string, tube string) {
c := connect(hostname)
c.Tube = beanstalk.Tube{c, tube}
body := []byte("check_beanstalk_ping")
putid, err := c.Put(body, 1, 0, 5*time.Second)
if err != nil {
fmt.Fprintf(os.Stderr, "Put failed: %s\n", err)
os.Exit(2)
}
p, err := c.Peek(putid)
if err != nil {
fmt... | [
0.017681429162621498,
0.021453915163874626,
0.9711843729019165,
-0.315790593624115,
0.10468678921461105,
0.7494489550590515,
0.23148959875106812,
-0.15075351297855377,
-1.2846568822860718,
1.2603555917739868,
-0.0483422577381134,
0.5143463015556335,
-0.7276301980018616,
-0.1201625540852546... |
func GetDiskUsage(path string) ([]float64, error) {
var usage []float64 = make([]float64, 6) // Data to return
var sc syscall.Statfs_t // Filesystem stat
var err error // Error catching
var buffer bytes.Buffer // Buffer for json indent
var content []byte... | [
-1.1527565717697144,
0.179179847240448,
1.0496567487716675,
-0.06610458344221115,
-0.04228610545396805,
-1.6691595315933228,
0.9532071948051453,
-0.8972187638282776,
-0.16693651676177979,
0.43429678678512573,
-0.03561365231871605,
-0.14952856302261353,
0.03269463777542114,
1.21109139919281... |
func triangularRecurrence(n uint) uint {
if n == 0 {
return 0
}
if n == 1 {
return 1
}
return n + triangular(n-1)
} | [
-0.722037672996521,
0.6405877470970154,
0.26523223519325256,
-0.08609256893396378,
0.3663276731967926,
-0.7297983169555664,
1.053252100944519,
0.7748269438743591,
0.6334280967712402,
-0.04082610458135605,
0.03376688063144684,
-0.17728763818740845,
-0.17635194957256317,
-0.39737048745155334... |
func (m *_BACnetContextTagNull) GetDataType() BACnetDataType {
return BACnetDataType_NULL
} | [
1.9020558595657349,
0.4028909504413605,
0.2633451223373413,
-0.21593661606311798,
0.9603952169418335,
0.3857767581939697,
-0.7481428384780884,
-0.0478777177631855,
1.232604742050171,
-0.8673198223114014,
-0.5779009461402893,
0.5796090960502625,
0.27592045068740845,
0.5639662742614746,
-0... |
func (m *_BACnetContextTagNull) InitializeParent(parent BACnetContextTag, header BACnetTagHeader) {
m.Header = header
} | [
1.4352433681488037,
-0.0552523247897625,
0.40347617864608765,
-0.3737453520298004,
0.2623860836029053,
-0.8834244608879089,
-0.31794849038124084,
-1.0293536186218262,
0.05948500335216522,
-0.9143999814987183,
-0.9078906774520874,
-0.6992160677909851,
-0.42210352420806885,
0.072686336934566... |
func NewBACnetContextTagNull(header BACnetTagHeader, tagNumberArgument uint8) *_BACnetContextTagNull {
_result := &_BACnetContextTagNull{
_BACnetContextTag: NewBACnetContextTag(header, tagNumberArgument),
}
_result._BACnetContextTag._BACnetContextTagChildRequirements = _result
return _result
} | [
0.8110328316688538,
-0.18739163875579834,
0.2518933415412903,
-0.33624929189682007,
0.1058993861079216,
-0.44815441966056824,
-0.05233922600746155,
0.12527132034301758,
0.31250831484794617,
-0.10747114568948746,
-0.9228293895721436,
-0.4007163643836975,
-0.03639167174696922,
-0.06061142683... |
func CastBACnetContextTagNull(structType any) BACnetContextTagNull {
if casted, ok := structType.(BACnetContextTagNull); ok {
return casted
}
if casted, ok := structType.(*BACnetContextTagNull); ok {
return *casted
}
return nil
} | [
0.7681296467781067,
-0.5980486273765564,
0.2232300043106079,
-0.05074604973196983,
0.5277579426765442,
-0.34997937083244324,
-0.42972230911254883,
-0.37620335817337036,
0.9728046655654907,
0.4158645570278168,
-0.4471883773803711,
0.0410398505628109,
-0.35111990571022034,
0.8668773174285889... |
func NewEipAddress(ctx *pulumi.Context,
name string, args *EipAddressArgs, opts ...pulumi.ResourceOption) (*EipAddress, error) {
if args == nil {
args = &EipAddressArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource EipAddress
err := ctx.RegisterResource("alicloud:ecs/eipAddress:EipAddress", nam... | [
-0.8484516739845276,
-0.17537206411361694,
0.42979395389556885,
-0.4739528000354767,
0.8645893931388855,
-0.04758557304739952,
-0.15884821116924286,
0.6796271800994873,
0.6701817512512207,
0.4469831585884094,
-0.8553683161735535,
-0.43353262543678284,
-0.5760068893432617,
-0.43203717470169... |
func GetEipAddress(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *EipAddressState, opts ...pulumi.ResourceOption) (*EipAddress, error) {
var resource EipAddress
err := ctx.ReadResource("alicloud:ecs/eipAddress:EipAddress", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
retur... | [
-0.4423084855079651,
-0.4801715314388275,
0.38000383973121643,
-0.24932163953781128,
0.8807108402252197,
-0.27586475014686584,
-0.17347730696201324,
0.2637416422367096,
1.3643261194229126,
0.3097682297229767,
-0.09872762113809586,
0.22764705121517181,
-0.2778815031051636,
-1.42185842990875... |
func (o EipAddressOutput) ActivityId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringPtrOutput { return v.ActivityId }).(pulumi.StringPtrOutput)
} | [
0.8364167809486389,
-0.5787757039070129,
0.1497248113155365,
-0.052198778837919235,
0.46505966782569885,
0.7679336667060852,
1.5209379196166992,
0.699863076210022,
2.471118927001953,
0.686278223991394,
0.9820169806480408,
0.9850125312805176,
-0.09905260056257248,
-1.6464343070983887,
-0.... |
func (o EipAddressOutput) AddressName() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.AddressName }).(pulumi.StringOutput)
} | [
-0.2982535660266876,
-0.7425010800361633,
0.4724654257297516,
-0.221961110830307,
-0.2017325609922409,
0.1060168519616127,
0.21771928668022156,
0.939424455165863,
1.3889914751052856,
1.1896218061447144,
0.3594109117984772,
0.3775160312652588,
0.39033403992652893,
-1.1480103731155396,
-0.... |
func (o EipAddressOutput) AutoPay() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *EipAddress) pulumi.BoolPtrOutput { return v.AutoPay }).(pulumi.BoolPtrOutput)
} | [
-0.03835562989115715,
-0.14753809571266174,
0.5688561797142029,
0.27734604477882385,
0.002095998264849186,
-0.027097949758172035,
0.14828266203403473,
1.2778884172439575,
0.9020141959190369,
1.065863847732544,
-0.21743521094322205,
0.43347758054733276,
-0.1729009598493576,
-0.8575085401535... |
func (o EipAddressOutput) Bandwidth() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.Bandwidth }).(pulumi.StringOutput)
} | [
0.17633156478405,
-0.2130589634180069,
0.3497393727302551,
0.17475983500480652,
0.27047663927078247,
0.6269453167915344,
0.6753868460655212,
1.1374152898788452,
1.8846650123596191,
-0.21580781042575836,
0.41366907954216003,
0.5653929710388184,
0.2904035747051239,
-0.9681446552276611,
-0.... |
func (o EipAddressOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput)
} | [
0.33413010835647583,
0.04013105481863022,
0.47046899795532227,
-0.9617443680763245,
0.9467074871063232,
0.5485255718231201,
-0.20412057638168335,
0.4535975456237793,
1.239816665649414,
1.1148573160171509,
-0.28105372190475464,
-0.15740084648132324,
0.2828057110309601,
-1.0715404748916626,
... |
func (o EipAddressOutput) DeletionProtection() pulumi.BoolOutput {
return o.ApplyT(func(v *EipAddress) pulumi.BoolOutput { return v.DeletionProtection }).(pulumi.BoolOutput)
} | [
0.3006306290626526,
0.33886274695396423,
0.45418593287467957,
0.10170887410640717,
0.32326540350914,
0.005238187499344349,
-0.15663158893585205,
0.7408753633499146,
2.287604331970215,
1.172667384147644,
-0.20352286100387573,
-0.24526217579841614,
-0.6224894523620605,
-1.499367356300354,
... |
func (o EipAddressOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
} | [
0.12856847047805786,
-0.11556027084589005,
0.21464718878269196,
-0.607229471206665,
0.48631754517555237,
0.24379868805408478,
-0.15480919182300568,
1.062262773513794,
1.701022744178772,
0.7909430861473083,
0.35604575276374817,
0.8396342396736145,
-0.07185178250074387,
-1.4301942586898804,
... |
func (o EipAddressOutput) HighDefinitionMonitorLogStatus() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.HighDefinitionMonitorLogStatus }).(pulumi.StringOutput)
} | [
0.6972998976707458,
-0.21632713079452515,
0.39694279432296753,
-0.4066767692565918,
0.5779500603675842,
0.5187442898750305,
-0.31667035818099976,
0.4952126145362854,
1.084456205368042,
0.11497903615236282,
-0.698510468006134,
1.4263191223144531,
0.9380806088447571,
-0.17517895996570587,
... |
func (o EipAddressOutput) InstanceChargeType() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.InstanceChargeType }).(pulumi.StringOutput)
} | [
0.364524781703949,
0.3020404577255249,
0.6194503307342529,
-0.6484657526016235,
0.5662599802017212,
0.5870914459228516,
-0.26761218905448914,
0.6457582116127014,
1.1449646949768066,
0.7526445388793945,
-0.033684998750686646,
0.7119197845458984,
-0.5238747596740723,
-0.5719406604766846,
-... |
func (o EipAddressOutput) InternetChargeType() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.InternetChargeType }).(pulumi.StringOutput)
} | [
0.4196534752845764,
0.20392891764640808,
0.6742085218429565,
-0.059083398431539536,
0.9976705312728882,
0.4931893050670624,
-0.44039350748062134,
0.4804244041442871,
1.1655932664871216,
0.736018180847168,
0.07106470316648483,
0.4734012484550476,
-0.8424847722053528,
-0.6084846258163452,
... |
func (o EipAddressOutput) IpAddress() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.IpAddress }).(pulumi.StringOutput)
} | [
0.16697300970554352,
-0.8072637915611267,
0.398459792137146,
-0.559253454208374,
0.45295843482017517,
0.3694955110549927,
0.23476816713809967,
1.3977552652359009,
1.52834951877594,
0.33298471570014954,
0.43312835693359375,
0.23113779723644257,
0.10104630142450333,
-1.4904751777648926,
-0... |
func (o EipAddressOutput) Isp() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.Isp }).(pulumi.StringOutput)
} | [
0.5324273109436035,
-0.4609006643295288,
0.459962397813797,
-0.4786064922809601,
0.4523041546344757,
0.6306387782096863,
-0.07659363746643066,
1.1415810585021973,
2.0296685695648193,
1.2082072496414185,
0.4718572199344635,
0.40961629152297974,
-0.22412258386611938,
-1.9262380599975586,
-... |
func (o EipAddressOutput) LogProject() pulumi.StringPtrOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringPtrOutput { return v.LogProject }).(pulumi.StringPtrOutput)
} | [
0.4020770788192749,
0.5616646409034729,
0.3895048499107361,
-0.5168136954307556,
0.4184483289718628,
0.6135499477386475,
-0.2744128108024597,
0.8364216089248657,
1.4100860357284546,
0.2637595236301422,
0.615060031414032,
0.5518684387207031,
0.004894298035651445,
-1.9352424144744873,
-0.3... |
func (o EipAddressOutput) LogStore() pulumi.StringPtrOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringPtrOutput { return v.LogStore }).(pulumi.StringPtrOutput)
} | [
0.6258038878440857,
-0.05459897592663765,
0.2178923785686493,
-1.158912181854248,
-0.3460468053817749,
0.34120607376098633,
0.07814504206180573,
0.7780697345733643,
2.2046961784362793,
-0.13233642280101776,
0.17686636745929718,
0.8053377866744995,
-0.02725839428603649,
-1.779588222503662,
... |
func (o EipAddressOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
} | [
-0.29077115654945374,
-0.6642394065856934,
0.3475757837295532,
-0.7165945172309875,
-0.3126411736011505,
0.061154913157224655,
0.40891337394714355,
0.6759795546531677,
1.2588448524475098,
1.392620325088501,
-0.19269010424613953,
0.23551177978515625,
0.6448371410369873,
-1.262884497642517,
... |
func (o EipAddressOutput) Netmode() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.Netmode }).(pulumi.StringOutput)
} | [
-0.49274975061416626,
0.04356478899717331,
0.33767956495285034,
-0.47059571743011475,
0.9866155982017517,
0.8712378740310669,
-0.16205282509326935,
0.6963899731636047,
1.1801096200942993,
-0.2172706425189972,
-0.19974802434444427,
-0.297561377286911,
0.7762126326560974,
-0.7119916677474976... |
func (o EipAddressOutput) PaymentType() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.PaymentType }).(pulumi.StringOutput)
} | [
0.386157363653183,
0.7060158848762512,
0.34675437211990356,
-0.45677798986434937,
0.4783954322338104,
0.09621384739875793,
-0.18505431711673737,
0.6900264620780945,
1.956774115562439,
0.5344166159629822,
0.8982665538787842,
0.3192007541656494,
0.42186442017555237,
-0.6673600077629089,
-0... |
func (o EipAddressOutput) Period() pulumi.IntPtrOutput {
return o.ApplyT(func(v *EipAddress) pulumi.IntPtrOutput { return v.Period }).(pulumi.IntPtrOutput)
} | [
-0.1351422369480133,
0.12036599963903427,
0.21281346678733826,
-0.1285707652568817,
0.31472745537757874,
0.7593222260475159,
0.7448982000350952,
0.8864604234695435,
1.9837119579315186,
0.4346291422843933,
0.693715512752533,
0.7499961256980896,
-0.11165343225002289,
-1.5689054727554321,
0... |
func (o EipAddressOutput) PricingCycle() pulumi.StringPtrOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringPtrOutput { return v.PricingCycle }).(pulumi.StringPtrOutput)
} | [
0.09871985763311386,
0.44812315702438354,
0.4702441990375519,
-0.3342217803001404,
0.39463675022125244,
0.8951267600059509,
0.300871878862381,
0.436223566532135,
1.0045746564865112,
1.3676236867904663,
0.4126914143562317,
0.10734473168849945,
0.23178665339946747,
-0.9066300988197327,
-0.... |
func (o EipAddressOutput) PublicIpAddressPoolId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringPtrOutput { return v.PublicIpAddressPoolId }).(pulumi.StringPtrOutput)
} | [
0.34723493456840515,
-0.16581951081752777,
0.23250709474086761,
-0.5992639064788818,
-0.2875826060771942,
1.5997177362442017,
0.7443527579307556,
0.5568859577178955,
1.9192448854446411,
0.4271315336227417,
-0.24991486966609955,
1.1043486595153809,
0.271353155374527,
-0.9254432916641235,
... |
func (o EipAddressOutput) ResourceGroupId() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.ResourceGroupId }).(pulumi.StringOutput)
} | [
0.4283354580402374,
0.815510094165802,
0.10440228134393692,
-1.0836044549942017,
-0.13746997714042664,
0.35650455951690674,
0.29216185212135315,
0.8584723472595215,
1.3959296941757202,
0.21523967385292053,
0.7580156326293945,
-0.0038508023135364056,
0.06503292918205261,
-0.4178998768329620... |
func (o EipAddressOutput) SecurityProtectionTypes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringArrayOutput { return v.SecurityProtectionTypes }).(pulumi.StringArrayOutput)
} | [
-0.007886169478297234,
0.2676379382610321,
0.5169101357460022,
0.8459759950637817,
1.2596434354782104,
0.14000335335731506,
-0.13682904839515686,
-0.14485898613929749,
2.071807861328125,
0.44928446412086487,
-1.840460181236267,
-0.111659936606884,
-0.26826438307762146,
-0.8901399374008179,... |
func (o EipAddressOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput)
} | [
0.18226946890354156,
-0.8439300656318665,
0.16298112273216248,
-0.7076555490493774,
0.2091350555419922,
0.4861186444759369,
0.12599875032901764,
1.324648380279541,
1.6654614210128784,
0.8002882599830627,
-0.31730663776397705,
0.5643483400344849,
0.5859030485153198,
-1.3207237720489502,
-... |
func (o EipAddressOutput) Tags() pulumi.MapOutput {
return o.ApplyT(func(v *EipAddress) pulumi.MapOutput { return v.Tags }).(pulumi.MapOutput)
} | [
0.15628033876419067,
0.22322766482830048,
0.3774566948413849,
-0.6368099451065063,
0.41741010546684265,
-0.005527890753000975,
-0.2895528972148895,
0.9620161056518555,
0.794267475605011,
0.4796347916126251,
-0.7125017046928406,
-0.018062474206089973,
0.927760899066925,
-0.39152491092681885... |
func (o EipAddressOutput) Zone() pulumi.StringOutput {
return o.ApplyT(func(v *EipAddress) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput)
} | [
0.2305775284767151,
-0.37009164690971375,
0.22820362448692322,
-0.5983849763870239,
0.4308691918849945,
0.07192234694957733,
0.6915086507797241,
1.1801406145095825,
1.9660230875015259,
0.14450518786907196,
0.23001310229301453,
0.21794183552265167,
0.4418257474899292,
-1.2376805543899536,
... |
func CreateMeeting(c *gin.Context) {
// Validate input
var input CreateMeetingInput
if err := c.ShouldBindJSON(&input); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
// Create meeting
meeting := models.Meeting{CreatedBy: input.CreatedBy, Title: input.Title, Descri... | [
-1.2273502349853516,
-0.17236998677253723,
0.6890029907226562,
0.7120105028152466,
-0.03504325449466705,
1.2817649841308594,
-0.18263745307922363,
-0.12582318484783173,
-0.4380031228065491,
0.9063456058502197,
0.18695591390132904,
-0.783852219581604,
-0.5527805089950562,
0.6550415754318237... |
func FindMeetings(c *gin.Context) {
query := c.Request.URL.Query()
var meetings []models.Meeting
if len(query) == 0 {
models.DB.Find(&meetings)
} else if query.Get("id") != "" {
if err := models.DB.Find(&meetings, "id = ?", query.Get("id")).Error; err != nil {
c.JSON(http.StatusBadRequest, gin.H... | [
-0.9851474761962891,
0.2920137047767639,
1.091896891593933,
1.0089980363845825,
-0.21756170690059662,
-0.28493809700012207,
0.10459785163402557,
-0.6922154426574707,
-0.6070314049720764,
0.6968856453895569,
0.5589386820793152,
-0.26571744680404663,
-0.5301437377929688,
1.7057838439941406,
... |
func UpdateMeeting(c *gin.Context) {
// Get the meeting to be updated
var meeting models.Meeting
if err := models.DB.First(&meeting, "id = ?", c.Param("id")).Error; err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
// Validate input
var input UpdateMeetingInput
if e... | [
-2.001438617706299,
-0.5822340250015259,
0.5008208155632019,
0.469730943441391,
-0.4621710777282715,
0.8893511891365051,
-0.29046499729156494,
-0.08393867313861847,
-0.24896693229675293,
1.0511829853057861,
0.6319179534912109,
-0.13812686502933502,
-0.8107534646987915,
0.4208080470561981,
... |
func DeleteMeeting(c *gin.Context) {
// Get model if exist
var meeting models.Meeting
if err := models.DB.First(&meeting, "id = ?", c.Param("id")).Error; err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": "Record not found!"})
return
}
models.DB.Delete(&meeting)
c.JSON(http.StatusOK, gin.H{... | [
-0.9549996256828308,
0.356414794921875,
1.0196894407272339,
0.9278804063796997,
0.3813273310661316,
0.5978711843490601,
0.018900476396083832,
0.47012096643447876,
-0.07037419825792313,
0.7844350337982178,
0.940189003944397,
-0.3650610148906708,
-0.09522493183612823,
1.263777732849121,
-1... |
func GetCloudAndCluster(model store.ClusterManagerModel,
cloudID string, clusterID string) (*proto.Cloud, *proto.Cluster, error) {
//get relative Cluster for information injection
cluster, err := model.GetCluster(context.Background(), clusterID)
if err != nil {
return nil, nil, fmt.Errorf("cluster %s err, %s", cl... | [
-0.16795049607753754,
-0.1833496391773224,
0.7064555883407593,
0.19457875192165375,
0.3438461422920227,
0.6248509287834167,
-0.06958969682455063,
-0.2516680657863617,
0.11180930584669113,
-0.018310904502868652,
0.28367647528648376,
1.0935724973678589,
-0.41559839248657227,
0.95460045337677... |
func GetCloudByCloudID(model store.ClusterManagerModel, cloudID string) (*proto.Cloud, error) {
cloud, err := model.GetCloud(context.Background(), cloudID)
if err != nil {
return nil, fmt.Errorf("cloud %s err, %s", cloudID, err.Error())
}
return cloud, nil
} | [
0.5169147253036499,
0.480855256319046,
0.22280128300189972,
0.7927992939949036,
0.3897863030433655,
0.25875404477119446,
0.08451426029205322,
-1.3601638078689575,
0.36042889952659607,
0.39975908398628235,
0.1552067995071411,
0.5956894755363464,
-0.8043307065963745,
0.9220526218414307,
0.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.