text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (m *ItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Calendarable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil ...
[ -0.27319106459617615, -0.13484032452106476, 0.7804362773895264, 0.09892742335796356, -0.11029709130525589, 0.5929391980171204, 0.1343565434217453, -0.5584837794303894, -0.6873146295547485, -0.5176920890808105, 0.015377035364508629, 0.8976535201072693, -0.30009403824806213, -0.3844388425350...
func (m *ItemCalendarRequestBuilder) GetSchedule()(*ItemCalendarGetScheduleRequestBuilder) { return NewItemCalendarGetScheduleRequestBuilderInternal(m.pathParameters, m.requestAdapter) }
[ -0.680422842502594, -0.01722129061818123, 0.39843833446502686, 1.1523224115371704, 0.9006807804107666, -0.6706498265266418, 0.03884920850396156, -0.04156196489930153, 0.5920457243919373, -1.4714065790176392, 1.0046299695968628, 0.7339861989021301, -0.554823100566864, -1.0967113971710205, ...
func (m *ItemCalendarRequestBuilder) MultiValueExtendedProperties()(*ItemCalendarMultiValueExtendedPropertiesRequestBuilder) { return NewItemCalendarMultiValueExtendedPropertiesRequestBuilderInternal(m.pathParameters, m.requestAdapter) }
[ -0.6345268487930298, 0.11320088058710098, 0.6253518462181091, 1.040128231048584, -0.38691097497940063, 0.8666056394577026, -1.171298861503601, 0.09761680662631989, 0.2997800409793854, -0.6169482469558716, -0.23955753445625305, -0.07615929841995239, -0.0548212006688118, 0.2917846143245697, ...
func (m *ItemCalendarRequestBuilder) MultiValueExtendedPropertiesById(id string)(*ItemCalendarMultiValueExtendedPropertiesMultiValueLegacyExtendedPropertyItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.pathParameters { urlTplParams[idx] = item } if id != ""...
[ -0.5059319138526917, -0.10455258190631866, 0.4611867070198059, 0.7338786125183105, -1.1007072925567627, 0.46456998586654663, -1.2997039556503296, 0.16464895009994507, 0.4875931441783905, 0.09971769154071808, -0.4837900698184967, 0.003920760937035084, -0.008545991964638233, 0.78515565395355...
func (m *ItemCalendarRequestBuilder) SingleValueExtendedProperties()(*ItemCalendarSingleValueExtendedPropertiesRequestBuilder) { return NewItemCalendarSingleValueExtendedPropertiesRequestBuilderInternal(m.pathParameters, m.requestAdapter) }
[ -0.1416795402765274, 0.5690742135047913, 0.4470507502555847, 0.8987142443656921, -0.5740657448768616, 1.0173088312149048, -0.4451260268688202, 0.6208516359329224, 0.6643834114074707, -0.6148921847343445, -0.011016055941581726, 0.38623738288879395, -0.20861873030662537, -0.24864982068538666...
func (m *ItemCalendarRequestBuilder) SingleValueExtendedPropertiesById(id string)(*ItemCalendarSingleValueExtendedPropertiesSingleValueLegacyExtendedPropertyItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.pathParameters { urlTplParams[idx] = item } if id !=...
[ -0.28438642621040344, 0.18755678832530975, 0.3854965567588806, 0.47674545645713806, -1.0020004510879517, 0.6878841519355774, -0.46101993322372437, 0.6293288469314575, 0.6626958250999451, 0.08228997886180878, -0.31817615032196045, 0.377058207988739, -0.15032657980918884, 0.4242558777332306,...
func (m *ItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7...
[ -0.9566665887832642, -0.45489901304244995, 0.9058372974395752, -0.4487152695655823, 0.08441796153783798, 0.3866262435913086, -0.11303310841321945, -0.5676475763320923, 0.032526444643735886, -0.6668868660926819, 0.06809132546186447, 0.5325829982757568, -0.41232338547706604, -0.3015634119510...
func StartCrawl(u url.URL) PageChannel { urlCheckingChannel = make(chan url.URL) finishedPageChannel = make(chan page.Page) checkedURLs = make(map[url.URL]bool) mux = sync.Mutex{} // start listing to urlCheckingChannel go listenOnURLCheckingChannel() // put the initial url on the channel urlCheckingChannel <-...
[ 0.5819632411003113, -0.44881778955459595, 0.6916507482528687, 0.2261165976524353, 0.6357991695404053, 0.4608927369117737, 0.1485208421945572, 0.7176685929298401, 0.01695501059293747, -0.49452275037765503, -0.0921054407954216, 1.014296054840088, -0.33874261379241943, 0.38941648602485657, ...
func checkThenProcessURL(u url.URL) { mux.Lock() _, success := checkedURLs[u] // if the url isn't in the map then the program hasn't seen it before if !success { checkedURLs[u] = false go processURL(u) } mux.Unlock() }
[ -0.7542166113853455, -0.2659622132778168, 0.5100724101066589, 0.09142943471670151, 0.05918237566947937, 0.3036939799785614, 0.2964707612991333, 0.21238459646701813, 0.35812658071517944, 0.024792535230517387, -0.25964289903640747, 0.6038755774497986, -0.9613759517669678, 0.6874130368232727,...
func AbsInt64(v int64) int64 { y := v >> 63 // y ← x >> 63 return (v ^ y) - y // (x ⨁ y) - y }
[ -0.6208265423774719, -0.40709736943244934, 0.3503619134426117, 0.9639027118682861, -0.3848136365413666, 0.05051064118742943, -0.11933596432209015, -0.6617169976234436, 0.2157459855079651, 0.5593873262405396, 0.27554744482040405, -0.05053464695811272, -0.2979763448238373, -0.248198568820953...
func detectCycle(head *ListNode) *ListNode { var slow *ListNode = head var fast *ListNode = head for fast != nil && fast.Next != nil{ slow = slow.Next fast = fast.Next.Next if slow == fast{ break } } if fast == nil || fast.Next == nil{ return nil } var steps int = 1 slow = slow.Next for slow != fa...
[ -0.00792381539940834, -0.11245983093976974, 0.8754346370697021, 0.30532681941986084, -0.24493597447872162, -0.9152117371559143, 0.8267396092414856, -0.41906416416168213, 0.5282093286514282, -0.1927233189344406, -0.12449317425489426, 0.30094772577285767, -0.7610505819320679, 1.1531867980957...
func (_m *BrokerSyncer) Sync(retries int) error { ret := _m.Called(retries) var r0 error if rf, ok := ret.Get(0).(func(int) error); ok { r0 = rf(retries) } else { r0 = ret.Error(0) } return r0 }
[ 0.3235928416252136, -0.35213449597358704, 0.360445499420166, 0.23097530007362366, -0.011877104640007019, -0.14493337273597717, 0.6606067419052124, -0.2935526669025421, -0.36945873498916626, 0.4986836910247803, -0.48222479224205017, 0.5234996676445007, 0.20081375539302826, 0.027603281661868...
func NewLogger(logsPath, logsLevel string) (*Logger, error) { log.SetFlags(0) log.SetOutput(&logruswriter{}) logrus.SetFormatter(&formatter{}) logFile, err := getLogFile(logsPath) if err != nil { return nil, fmt.Errorf("can't init log file: %v", err) } logrus.SetOutput(io.MultiWriter(os.Stdout, logFile)) leve...
[ 0.025316104292869568, -1.317736029624939, 0.5017497539520264, -0.3482457399368286, -0.6321734189987183, -0.2413354068994522, -0.17648518085479736, 0.08573010563850403, -0.6803436875343323, -0.17159079015254974, 0.4677305519580841, 0.5175647139549255, -0.3917742073535919, 0.7991738319396973...
func (l *Logger) Close() error { return l.file.Close() }
[ 0.3825770318508148, -0.8315284252166748, 0.5140204429626465, -0.5419926643371582, -0.40472927689552307, 0.7747573852539062, -0.2694886326789856, -0.09560936689376831, -1.1119685173034668, -0.7789239883422852, 0.8886598348617554, 0.1374496966600418, -0.8558232188224792, 1.2854200601577759, ...
func NewMailer(auth smtp.Auth, address, from string, data []interface{}, numWorkers uint, template *bytes.Buffer) *Mailer { return &Mailer{ auth: auth, address: address, from: from, data: data, numWorkers: numWorkers, template: template, } }
[ -0.047407638281583786, -0.5940185785293579, 0.40587419271469116, -0.084865503013134, -1.1399625539779663, 0.5507577061653137, -0.5613749027252197, -0.032019589096307755, 0.4097464680671692, -0.5158113241195679, -0.6554442048072815, 1.4503185749053955, -0.7599157094955444, 0.567816913127899...
func (m *Mailer) mail(keys map[string]interface{}, template []byte, sig <-chan bool, code chan<- uint, errs chan<- error) { <-sig var body bytes.Buffer parser.ParseKeys("{{\x20(.*)\x20}}", template, keys, &body) head := "To: " + keys["to"].(string) + "\r\n" + "Subject: " + keys["subject"].(string) + "\r\n" + ...
[ -0.8472310900688171, 0.29990920424461365, 0.688302755355835, -0.2486555278301239, -0.7141072154045105, -0.03277237340807915, -1.099413514137268, -0.020321987569332123, -0.5952111482620239, 0.4906502962112427, -0.7899662852287292, 0.6494134068489075, -0.4120824933052063, 0.615202784538269, ...
func (m *Mailer) Start() { sig := make(chan bool, m.numWorkers) code := make(chan uint) errs := make(chan error) defer close(sig) for _, mail := range m.data { go m.mail(mail.(map[string]interface{}), m.template.Bytes(), sig, code, errs) } for i := 0; uint(i) < m.numWorkers; i++ { sig <- true } toSend :...
[ -0.6583221554756165, -0.23068329691886902, 0.44666749238967896, -0.48653069138526917, -0.2967119812965393, 0.013430818915367126, 0.1946040838956833, -0.0033160520251840353, -1.001439094543457, 0.34184226393699646, -0.736748993396759, 1.4622949361801147, -0.9152596592903137, 0.8458008766174...
func checkFields(data types.TableContent, fields map[string]string) error { var seen = make(map[string]struct{}, len(fields)) for i := range data { for k := range data[i] { seen[k] = struct{}{} } } for _, f := range fields { if _, ok := seen[f]; !ok { return fmt.Errorf("%w: %q missing", ErrMissingFiel...
[ -0.2010289877653122, 0.3784310817718506, 0.5405185222625732, -0.5255958437919617, 0.2570154368877411, 0.5158458948135376, -0.29029372334480286, -0.20722489058971405, -1.398523211479187, 0.6900743842124939, -0.45884302258491516, -0.3940007984638214, -0.3658444881439209, 0.1846197545528412, ...
func GetFiles() ([]File, error) { return fileRepo.ListObjects() }
[ -0.15271711349487305, 0.651923656463623, 0.2121637463569641, 0.15009953081607819, 1.2472777366638184, 0.293283611536026, -0.31642061471939087, 0.15814998745918274, -0.027538223192095757, -0.7431236505508423, 0.483532190322876, 0.4601045250892639, -0.8158534169197083, 0.28359588980674744, ...
func UploadFileToRepo(file []byte, fileName string) (string, error) { if len(fileName) == 0 { return "", errors.New("File name is required") } u1 := uuid.Must(uuid.NewV4()).String() key := u1 err := fileRepo.PutObject(key, file, fileName) return key, err }
[ -1.2772650718688965, -0.006101302336901426, 0.8989267349243164, -0.6334219574928284, 0.29926028847694397, 0.4393450617790222, 0.20671439170837402, 0.7587150931358337, -1.6322671175003052, 1.3758835792541504, -0.5404327511787415, -1.0797373056411743, -0.6815589666366577, -0.5659207105636597...
func GetFileFromRepo(key string) (File, error) { if len(key) == 0 || !isValidUUID(key) { return File{}, errors.New("Empty or invalid key") } return fileRepo.GetObject(key) }
[ 0.2052794098854065, 0.4837208390235901, 0.4755890667438507, 0.6726073026657104, 0.03700454905629158, 0.14999361336231232, -0.8701037168502808, 0.8918582797050476, -0.8098055720329285, -0.1418803185224533, 0.9667821526527405, -0.8779345750808716, 0.036425065249204636, -0.43918824195861816, ...
func NewCmcConfigurator(bmc devices.Cmc, asset *asset.Asset, resources []string, config *cfgresources.ResourcesConfig, stopChan <-chan struct{}, logger *logrus.Logger) *Cmc { return &Cmc{ // asset to be setup asset: asset, // client is of type devices.Bmc bmc: bmc, // if --resources was passed, only th...
[ 0.08019966632127762, -0.9711382389068604, 0.29155993461608887, -0.7994357943534851, -0.7659994959831238, -1.054528832435608, 0.8252555131912231, 0.09247370809316635, 0.037728920578956604, -0.03664444014430046, 0.42958247661590576, -0.4477752149105072, -0.4893139898777008, 0.793857991695404...
func Marshal(m Message) ([]byte, error) { b := make([]byte, m.MarshalLen()) if err := m.MarshalTo(b); err != nil { return nil, err } return b, nil }
[ 0.807317852973938, 0.757510781288147, 0.2963421642780304, 0.4245183765888214, -0.26759102940559387, 0.34271520376205444, -0.7345694303512573, -0.058054134249687195, 0.3331700563430786, -0.4983882009983063, -0.029869377613067627, 1.3354694843292236, -0.9970976114273071, 0.8067291975021362, ...
func Parse(b []byte) (Message, error) { if len(b) < 8 { return nil, ErrTooShortToParse } switch b[0] >> 5 { case 0: return v0msg.Parse(b) case 1: return v1msg.Parse(b) case 2: return v2msg.Parse(b) default: return nil, ErrInvalidVersion } }
[ 0.310544490814209, 0.17734013497829437, 0.5699260830879211, 0.634487509727478, -0.2559219300746918, -0.4018235504627228, -0.3567447066307068, -0.9060862064361572, 0.3945341408252716, 0.15527215600013733, -0.07990677654743195, -0.16385774314403534, -1.2534384727478027, 0.25419312715530396, ...
func EndpointTypePDefault() *EndpointType { v := EndpointTypeVDefault return &v }
[ 0.2168271541595459, 0.2949417531490326, 0.16672375798225403, 1.1351035833358765, 0.8351390361785889, 0.38921409845352173, -0.11975326389074326, -0.30307626724243164, 0.05364386364817619, 0.31900522112846375, 0.02222420647740364, -0.8004588484764099, -1.29087495803833, -0.32522162795066833,...
func EndpointTypePVoicemail() *EndpointType { v := EndpointTypeVVoicemail return &v }
[ 0.5103490352630615, 0.23029299080371857, 0.006730834022164345, 0.7730432152748108, 0.5386518239974976, 0.547048807144165, -1.5009794235229492, -0.27134445309638977, -0.12703512609004974, 1.0064785480499268, 0.4015156626701355, 0.33369508385658264, -1.7667763233184814, -0.9288743734359741, ...
func EndpointTypePSkypeForBusiness() *EndpointType { v := EndpointTypeVSkypeForBusiness return &v }
[ -0.1820281744003296, 0.6242402791976929, 0.13418661057949066, 1.5062992572784424, 0.43136224150657654, 0.21031929552555084, -0.44421082735061646, 0.05869108438491821, 0.3532273471355438, 0.7840090990066528, 0.2688117027282715, 0.5866972804069519, -1.1763639450073242, 0.5933276414871216, ...
func EndpointTypePSkypeForBusinessVoipPhone() *EndpointType { v := EndpointTypeVSkypeForBusinessVoipPhone return &v }
[ -0.26465094089508057, 0.5996122360229492, 0.4134838879108429, 1.0854076147079468, 0.7366517782211304, -0.03674423322081566, -0.7265673875808716, -0.3929463028907776, 0.6680511236190796, 1.114251971244812, 0.10679972916841507, 0.4062179923057556, -0.6142042875289917, 0.5202036499977112, -...
func EndpointTypePUnknownFutureValue() *EndpointType { v := EndpointTypeVUnknownFutureValue return &v }
[ -0.48429495096206665, 0.8634157776832581, 0.1486702412366867, 0.6101888418197632, 0.12209398299455643, -0.7263661026954651, -0.3353428244590759, 0.1669304072856903, -0.3521474599838257, 0.1739804744720459, 0.16729284822940826, -0.27383673191070557, -0.1335539072751999, -0.01298095379024744...
func (s *Swarm) setupInterfaces(addrs []ma.Multiaddr) error { errs := make([]error, len(addrs)) var succeeded int for i, a := range addrs { if err := s.AddListenAddr(a); err != nil { errs[i] = err } else { succeeded++ } } for i, e := range errs { if e != nil { log.Warningf("listen on %s failed: %...
[ -0.4109131097793579, 0.07920069247484207, 0.6621981859207153, -0.1787630021572113, 0.6371451020240784, -0.21205411851406097, 0.8277175426483154, -0.1484638899564743, 0.5652750134468079, 0.16848737001419067, 0.7563706636428833, -0.4586658775806427, -0.7522557973861694, 0.6985043883323669, ...
func (s *Swarm) connHandler(c *ps.Conn) *Conn { ctx := context.Background() // this context is for running the handshake, which -- when receiveing connections // -- we have no bound on beyond what the transport protocol bounds it at. // note that setup + the handshake are bounded by underlying io. // (i.e. if TCP ...
[ 0.7040287256240845, -0.726627767086029, 0.6560938954353333, 0.28726205229759216, -0.06596944481134415, 0.23641911149024963, 0.010768905282020569, 0.30256420373916626, 0.3131893277168274, -0.6471010446548462, 0.028053632006049156, -1.051898717880249, 0.07711800187826157, 0.03935998305678367...
func (c *Client) UpdateSigningCertificate(ctx context.Context, params *UpdateSigningCertificateInput, optFns ...func(*Options)) (*UpdateSigningCertificateOutput, error) { if params == nil { params = &UpdateSigningCertificateInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateSigningCertificate", para...
[ -1.1520968675613403, -0.226717010140419, 0.47785353660583496, 0.6415486335754395, -0.6577141284942627, -0.6973669528961182, 0.5206639170646667, 0.02581276185810566, 0.04411054030060768, 0.3468244671821594, -0.5952218174934387, 0.576100766658783, -0.944842517375946, -0.8767147064208984, -...
func NewConfigurationSSES3() *Configuration { return &Configuration{ Rules: []Rule{ { Apply: ApplySSEByDefault{ SSEAlgorithm: "AES256", }, }, }, } }
[ -0.7741208672523499, 0.19558876752853394, 0.198133647441864, 0.6252187490463257, -0.05379483476281166, -0.5186205506324768, 0.18594515323638916, 0.04723740369081497, 1.2079148292541504, 0.5077744126319885, -0.6700971722602844, -0.7996605634689331, 0.39505863189697266, 0.7060731053352356, ...
func NewConfigurationSSEKMS(kmsMasterKey string) *Configuration { return &Configuration{ Rules: []Rule{ { Apply: ApplySSEByDefault{ KmsMasterKeyID: kmsMasterKey, SSEAlgorithm: "aws:kms", }, }, }, } }
[ -0.5517091155052185, 0.013262204825878143, 0.2119823843240738, 0.805960476398468, -0.5264939665794373, -1.113092064857483, 0.3342165946960449, 0.20673014223575592, 0.8386104106903076, -0.03916739299893379, -0.04371071606874466, -0.9516119956970215, 0.19314762949943542, 1.1360646486282349, ...
func (s *Store) SetLastDecidedState(v *LastDecidedState) { s.cache.LastDecidedState = v s.set(s.table.LastDecidedState, []byte(dsKey), v) }
[ 0.5418824553489685, -0.13414743542671204, 0.48712295293807983, -1.021239161491394, 0.12335441261529922, 0.306954950094223, -0.02775021269917488, 0.41805288195610046, 0.8378778100013733, -0.5259901881217957, -0.5230222344398499, 0.013040903024375439, 0.6798672080039978, -0.15897102653980255...
func (s *Store) GetLastDecidedState() *LastDecidedState { if s.cache.LastDecidedState != nil { return s.cache.LastDecidedState } w, exists := s.get(s.table.LastDecidedState, []byte(dsKey), &LastDecidedState{}).(*LastDecidedState) if !exists { s.crit(ErrNoGenesis) } s.cache.LastDecidedState = w return w }
[ 0.5975837707519531, -0.015342853963375092, 0.7482613325119019, -0.4343271553516388, -0.0546012781560421, -0.17467854917049408, 0.1573706716299057, 0.3906079828739166, 0.45044225454330444, -0.8858236074447632, 0.2431323379278183, 0.010777113027870655, 0.1938929259777069, -0.2022002339363098...
func (a *MockAddr) Network() string { return "mock" }
[ -1.887345790863037, -0.7099516987800598, 0.2021135538816452, 0.7389289736747742, 0.8327534198760986, 0.8450084328651428, 0.7597149014472961, 0.29582440853118896, 0.44085583090782166, -0.017361676320433617, -0.46914827823638916, -0.3942953646183014, -0.3804311752319336, 0.3738032579421997, ...
func (a *MockAddr) String() string { return "" }
[ -0.2953881323337555, -0.5116377472877502, 0.15358185768127441, -0.6769304275512695, -0.22212906181812286, 0.835583508014679, 1.5811407566070557, -0.5895923972129822, 0.7484032511711121, 0.24072544276714325, -0.013527327217161655, 0.6841182708740234, -1.0441912412643433, -0.1380203962326049...
func (c *MockConnection) Connect() (net.Conn, error) { return c.Conn, nil }
[ -0.4974556267261505, -0.6973875164985657, 0.5179514288902283, 0.664552628993988, -0.13188762962818146, -0.0050714630633592606, 0.28902673721313477, 0.394977331161499, -0.5497245788574219, 0.23497621715068817, 0.3277563154697418, -0.6011854410171509, -0.48879438638687134, 0.5586528182029724...
func (h *MockDataHandler) HandleData(data []byte) error { if h.Handler == nil { return errors.New("no handler function provided") } return h.Handler(data) }
[ -0.3957141637802124, 0.15212436020374298, 0.23366446793079376, 0.522763729095459, 0.4593617022037506, 1.223191261291504, 0.684471070766449, 1.2343968152999878, 0.2726771831512451, -1.8879446983337402, -0.22866852581501007, -0.42509543895721436, -0.02951241098344326, 1.2775789499282837, 0...
func (l *MockListener) Accept() (net.Conn, error) { if l.connChan == nil { l.connChan = make(chan net.Conn) go func() { l.connChan <- l.Conn }() } return <-l.connChan, nil }
[ -0.37801694869995117, -0.431948721408844, 0.6509914398193359, -0.12025947868824005, 0.28758689761161804, 0.19835808873176575, 0.5804011225700378, 0.4533914625644684, -0.3163915276527405, -0.28520581126213074, 0.16243226826190948, -0.5612773895263672, -1.2772294282913208, 1.058292269706726,...
func (l *MockListener) Addr() net.Addr { return &MockAddr{} }
[ 0.5102613568305969, -0.7205789089202881, 0.4002605080604553, 0.36615315079689026, -0.4509086012840271, 1.2375503778457642, 0.6242081522941589, 0.1694759875535965, 0.8577699065208435, -0.7422412037849426, 0.9921109676361084, 0.10132276266813278, -0.30828630924224854, 0.9508798122406006, 0...
func (l *MockListener) Close() error { return nil }
[ -0.0020127163734287024, -0.812171459197998, 0.568651020526886, -0.010147922672331333, -0.13458013534545898, 1.4305745363235474, 0.8706734776496887, 0.11412595212459564, -0.282271146774292, -0.5212184190750122, 0.45588773488998413, -0.5333181619644165, -1.3130860328674316, 1.503438115119934...
func (l *MockListener) Listen() (net.Listener, error) { return l, nil }
[ 0.4972332715988159, -0.8066048622131348, 0.1735610067844391, -0.10433398932218552, 0.4497959613800049, 1.2515583038330078, 0.3619617223739624, 0.7271053791046143, 0.3892604410648346, -0.02375207655131817, -0.4004434645175934, -0.9811681509017944, -0.571988046169281, 0.7610479593276978, -...
func BuildStorage(providers *ProviderConfig) genericapiserver.APIGroupInfo { apiGroupInfo := genericapiserver.NewDefaultAPIGroupInfo(packagemanifest.Group, Scheme, metav1.ParameterCodec, Codecs) packageManifestStorage := packagemanifeststorage.NewStorage(packagemanifest.Resource("packagemanifests"), providers.Provid...
[ -1.2836830615997314, -0.5278902649879456, 0.2481202483177185, -0.2741367816925049, -0.5397213697433472, -0.025300437584519386, -0.07054166495800018, 0.47662660479545593, 0.0485704205930233, 0.030223673209547997, 0.02691582776606083, -0.3740162253379822, -0.42740198969841003, -0.05692826583...
func InstallStorage(providers *ProviderConfig, server *genericapiserver.GenericAPIServer) error { info := BuildStorage(providers) return server.InstallAPIGroup(&info) }
[ -1.7947099208831787, -0.11311109364032745, 0.2829939126968384, 0.16458629071712494, 0.4714904725551605, 0.03598080202937126, 0.5510327219963074, 0.6949674487113953, -0.5702558755874634, 0.8526391983032227, -0.0579075925052166, -0.5669541358947754, -0.9465295672416687, 0.34482917189598083, ...
func NewSlackBot(c *config.Config) Bot { return &SlackBot{ Token: c.Communications.Slack.Token, AllowKubectl: c.Settings.Kubectl.Enabled, RestrictAccess: c.Settings.Kubectl.RestrictAccess, ClusterName: c.Settings.ClusterName, ChannelName: c.Communications.Slack.Channel, DefaultNa...
[ 0.9196249842643738, -0.4672399163246155, 0.3109660744667053, 0.24424801766872406, -0.31574782729148865, 0.09940381348133087, -1.0815922021865845, -0.8936359882354736, -0.4438804090023041, 0.5453845858573914, -0.841181218624115, 0.781627893447876, -0.8484612107276917, 0.05562201142311096, ...
func (b *SlackBot) Start() { var botID string api := slack.New(b.Token) if len(b.SlackURL) != 0 { api = slack.New(b.Token, slack.OptionAPIURL(b.SlackURL)) botID = b.BotID } else { authResp, err := api.AuthTest() if err != nil { log.Fatal(err) } botID = authResp.UserID } RTM := api.NewRTM() go RTM...
[ 0.6368623375892639, -0.10057654976844788, 0.7603535056114197, -0.18295881152153015, 1.0159547328948975, 0.11233266443014145, -0.25108301639556885, -0.3867824971675873, -0.9190825819969177, 0.11046504974365234, 0.12591183185577393, 0.9221444725990295, -0.7545751333236694, 0.2284261733293533...
func NewNameResolver(remoteEnvironment, namespace string) NameResolver { return nameResolver{ resourceNamePrefix: getResourceNamePrefix(remoteEnvironment), namespace: namespace, } }
[ -0.7165845632553101, -1.4506518840789795, 0.30065369606018066, -1.25596022605896, -1.1251132488250732, 0.25991198420524597, -1.6283599138259888, 0.0035177823156118393, 0.28688332438468933, 0.003986853174865246, -1.2716944217681885, -0.023605424910783768, -0.205630823969841, 0.3686594665050...
func (resolver nameResolver) GetResourceName(id string) string { return resolver.resourceNamePrefix + id }
[ -0.43896153569221497, -0.8409781455993652, 0.5013935565948486, -0.5617017149925232, -0.7001205682754517, -0.5991718769073486, -0.14117400348186493, 0.08434083312749863, 0.6497113704681396, 0.39621061086654663, -0.4968135952949524, -1.1088619232177734, 0.35082870721817017, 0.691591024398803...
func (resolver nameResolver) GetGatewayUrl(id string) string { return fmt.Sprintf(gatewayUrlFormat, resolver.GetResourceName(id), resolver.namespace) }
[ 0.08088105171918869, -0.11573497205972672, 0.3714793920516968, -0.31833958625793457, -0.42731547355651855, -0.23240000009536743, -0.48454147577285767, -0.3036881983280182, -0.05878476798534393, 0.12440978735685349, -0.36915722489356995, 0.4061124324798584, 0.1504346877336502, 1.39602470397...
func (resolver nameResolver) ExtractServiceId(host string) string { resourceName := strings.Split(host, ".")[0] return strings.TrimPrefix(resourceName, resolver.resourceNamePrefix) }
[ -0.17162449657917023, -0.6063767671585083, 0.44116541743278503, -0.09678398817777634, -0.7042417526245117, -0.1519566923379898, 0.45275813341140747, -0.18098735809326172, -0.05069218575954437, 0.3311653733253479, -0.17147064208984375, -0.3590189516544342, -0.6568506956100464, 0.97378426790...
func getAlias(aliasFilePath string) map[string]string { aliases := make(map[string]string) file, err := ioutil.ReadFile(aliasFilePath) if err != nil { panic("Cannot read alias file.") } var commands []command err = json.Unmarshal(file, &commands) if err != nil { panic("Malformed json in alias file.") } for...
[ -0.08831077069044113, -1.0173500776290894, 0.7740801572799683, 0.041994091123342514, -0.46698135137557983, 0.5966485142707825, 0.13847728073596954, 0.4636560380458832, -0.855450451374054, 0.8152148723602295, -0.4312835931777954, 0.23521780967712402, 1.0185432434082031, 0.4542318880558014, ...
func readEnvVariables() map[string]interface{} { _, filename, _, status := runtime.Caller(0) if !status { panic("Unable to read .env file.") } envFilePath, _ := filepath.Abs(filepath.Dir(filepath.Dir(filename)) + "/src/.env") err := godotenv.Load(envFilePath) if err != nil { panic("Unable to read .env file.")...
[ -0.9073216319084167, -0.23739361763000488, 0.760491669178009, -0.38888028264045715, -0.46256327629089355, 1.285322666168213, 0.10504914075136185, 0.4380386471748352, -1.7461886405944824, 1.0775675773620605, -0.4801909327507019, 0.3789188861846924, 0.43658530712127686, -0.014234410598874092...
func (p Processor) Handle(m *Mail) error { for _, v := range p.mailets { if err := v.Handle(m); err != nil { if err == TerminateProcessing { return nil } return fmt.Errorf("failed to process mail: %w", err) } } return nil }
[ 0.10186667740345001, 0.595797598361969, 0.5820177793502808, -0.09750314801931381, 0.01736595295369625, 0.4604562819004059, 0.4282168447971344, -0.6617501974105835, -0.13453350961208344, -0.5183805823326111, 0.34039196372032166, 0.336862713098526, -1.022556185722351, 0.005375926848500967, ...
func NewProcessor(m []Mailet) *Processor { return &Processor{mailets: m} }
[ -0.9687552452087402, -0.25551527738571167, 0.003919575363397598, -0.5725855827331543, -1.6739338636398315, -0.08953263610601425, -0.7035518288612366, -0.2889883518218994, 0.9692051410675049, 0.14234016835689545, -0.07603442668914795, 0.21105153858661652, -0.7166978716850281, 0.678487777709...
func CreateRBACRoleBindingOp(apiserver *cke.Node) cke.Operator { return &createRBACRoleBindingOp{ apiserver: apiserver, } }
[ 0.4396207332611084, -0.0729590430855751, 0.33705002069473267, 0.5414512157440186, 0.42771145701408386, 0.4344589114189148, 0.562975287437439, -0.5542905926704407, -0.32736936211586, 0.709050714969635, -0.4131167232990265, 0.5069481134414673, -0.7140490412712097, 0.19961313903331757, 0.79...
func (s *Server) registerEventRoutes(r *mux.Router) { r.HandleFunc("/events", s.handleEvents) }
[ 0.060920923948287964, 0.4532524049282074, 0.33515334129333496, 0.6454474329948425, 0.4146651327610016, -0.055030953139066696, 0.18882356584072113, 0.8296964764595032, -0.04048767685890198, -0.36052995920181274, -0.6989771723747253, -0.04500538110733032, 0.11119873821735382, 0.1721981316804...
func (s *Server) handleEvents(w http.ResponseWriter, r *http.Request) { websocketConnections.Inc() defer websocketConnections.Dec() // Upgrade HTTP connection to use websockets. conn, err := upgrader.Upgrade(w, r, nil) if err != nil { LogError(r, err) return } ctx, cancel := context.WithCancel(r.Context())...
[ -0.11341992020606995, -0.060775626450777054, 0.9040609002113342, -0.20231518149375916, 0.2383960336446762, -0.5111855268478394, 0.24931351840496063, -0.709130585193634, 0.24749761819839478, -0.0808662474155426, 0.25450873374938965, 0.4312681555747986, -0.08988168090581894, 0.22750230133533...
func ignoreWebSocketReaders(conn *websocket.Conn) { for { if _, _, err := conn.NextReader(); err != nil { conn.Close() return } } }
[ -0.08528502285480499, -1.0219073295593262, 0.781585693359375, -0.3670940101146698, -0.35794901847839355, 0.24568615853786469, -0.06403370946645737, -0.45593130588531494, 0.20053841173648834, -0.09124813228845596, 0.39628297090530396, -0.2397860586643219, -1.21002197265625, 0.92613089084625...
func (c *Client) Ping() bool { url := fmt.Sprintf("%sping", c.URL) _, code, err := c.query(url) if err != nil { return false } if code == 200 { return true } return false }
[ -0.6901379823684692, 0.4445199966430664, 0.47153642773628235, 0.2027968168258667, 0.1272394210100174, 0.11222819238901138, -0.497377872467041, 0.43158280849456787, -0.41490525007247925, 0.8646841049194336, 0.07814373075962067, -0.8670051693916321, -1.059705138206482, -0.11395195126533508, ...
func (c *Client) Query(parameters *Request) (*Data, error) { v, err := query.Values(parameters) if err != nil { return nil, err } url := fmt.Sprintf("%squery?%s", c.URL, v.Encode()) body, code, err := c.query(url) if err != nil { return &Data{}, nil } switch code { case 200: var data Data err = json.Un...
[ -0.7784806489944458, -0.07323572039604187, 0.7386685013771057, 0.19142600893974304, -0.6976199150085449, -0.043084997683763504, -1.5243598222732544, -0.4232790172100067, -0.04069771617650986, 0.49282753467559814, 0.5238437056541443, 0.8578954339027405, -0.5621163249015808, -0.0565858967602...
func Get() (*ApplicationConfig, error) { cfg := ApplicationConfig{} // parse environment variables if needed insecure, err := strconv.ParseBool(os.Getenv("INSECURE")) if err != nil { insecure = false } debug, err := strconv.ParseBool(os.Getenv("DEBUG")) if err != nil { insecure = false } ttlThreshold, e...
[ 0.26671314239501953, -0.46440768241882324, 0.7719852328300476, -0.4410490393638611, -0.15459564328193665, -0.10992717742919922, -0.954083263874054, -0.37896546721458435, -0.9889378547668457, 0.39898988604545593, 0.06973276287317276, 0.8156153559684753, -0.03706536814570427, 0.4642589390277...
func NewArrayBucket(in string) ArrayBucket { retArray := make([]int, 26) for _, v := range in { tmp, ok := rnInt(v) if ok { retArray[tmp]++ } } return retArray }
[ -0.4158463776111603, -0.8154584765434265, 0.5321071147918701, -0.0947655588388443, -0.4750904142856598, -0.5673864483833313, 0.1936654895544052, -0.1555459052324295, -0.5316170454025269, -0.4309269189834595, -0.6185237765312195, 0.9222875237464905, -0.2776015102863312, 0.16297157108783722,...
func (b ArrayBucket) Worker(inChan <-chan string, outChan chan<- string, wg *sync.WaitGroup) { wg.Add(1) go func() { for cand := range inChan { //Test against the bucket if // it the cand can be made from available tokens if b.testMatch(cand) { outChan <- cand } } wg.Done() }() }
[ -0.6570338606834412, -0.5409973859786987, 0.4689263701438904, 0.12345701456069946, -0.38436058163642883, 0.3393879532814026, 0.26289036870002747, -0.14271864295005798, -0.552420973777771, -0.05743974819779396, -0.7934247851371765, 0.09052133560180664, -0.42471349239349365, -0.0005980546702...
func (b ArrayBucket) BlockWorker(inChan <-chan []string, outChan chan<- string, wg *sync.WaitGroup) { for candA := range inChan { for _, cand := range candA { if b.testMatch(cand) { outChan <- cand } } } wg.Done() }
[ -0.3878418207168579, -0.29974982142448425, 0.6653714179992676, 0.4929197430610657, -0.42046117782592773, 0.33442363142967224, 0.6886890530586243, -0.6440137624740601, -1.0132976770401, 0.2209738790988922, -0.5630487203598022, -0.0563187375664711, -0.950932502746582, 0.4424158036708832, 0...
func NewConfig() *Config { return &Config{ AsyncRX: asyncrx.DefaultConfig(), AsyncTX: asynctx.DefaultConfig(), CBpool: cbpool.DefaultConfig(), CBpresence: couchbase.DefaultConfig(), Consul: consul.DefaultConfig(), Controls: DefaultControls(), GoPool: gopool.DefaultConfig(), HTTPD: ...
[ 0.47009164094924927, 0.06486310064792633, 0.39433860778808594, 0.47088631987571716, 0.3218590319156647, -0.26253652572631836, -0.2486959844827652, -0.1820160299539566, 0.2101973295211792, -0.0007329203654080629, -0.4226100444793701, 0.31782543659210205, -0.22511494159698486, 0.808602213859...
func (e LogEntry) IsEOF() bool { return e.LineNo == -2 }
[ -0.01805582456290722, -0.28882041573524475, 0.22547385096549988, -0.24317912757396698, 1.0998611450195312, -0.1314912736415863, -0.37044358253479004, 0.07797318696975708, 0.09726986289024353, 0.31446290016174316, 0.2645657956600189, 0.24865669012069702, 0.1793816089630127, 0.60350877046585...
func (e LogEntry) IsEmptyDate() bool { return e.Date.IsZero() }
[ -0.5309576988220215, 0.044960226863622665, 0.5490038990974426, -0.036990467458963394, 0.38828086853027344, 0.5257464647293091, -0.8137004375457764, -0.23304735124111176, 0.1933474838733673, -0.3476722240447998, -0.2643454670906067, 0.4866971969604492, -0.012918589636683464, 0.8738955259323...
func GetDailyAverageDurations() models.DailyAverageDurationsResponse { ctx := context.Background() q := `SELECT FORMAT_TIMESTAMP("%b-%d-%Y", start_time ) AS date, ROUND(AVG(TIMESTAMP_DIFF(end_time, start_time, MINUTE)), 2) AS avg_duration FROM ( SELECT session_id, MIN(TIMESTAMP_MILLIS(event_tim...
[ -0.620516300201416, -0.1364007145166397, 0.6917290687561035, 0.03905942291021347, 0.012291226536035538, -0.3531925678253174, 0.9174457788467407, -1.151358723640442, -0.005776667967438698, 0.9397470951080322, 0.7469643354415894, 0.5876209139823914, 0.18749257922172546, 0.475768506526947, ...
func GetUsersPerDay() models.DailyUsersResponseModel { ctx := context.Background() q := `SELECT DISTINCT FORMAT_TIMESTAMP("%b-%d-%Y", TIMESTAMP_MILLIS(event_time)) AS date, COUNT(DISTINCT(user_id)) OVER(PARTITION BY FORMAT_TIMESTAMP("%b-%d-%Y", TIMESTAMP_MILLIS(event_time))) AS unique_users FROM ` + "`c...
[ -0.31993383169174194, 0.2278977930545807, 0.9814215898513794, 0.004414459224790335, 0.3082561790943146, -0.15853427350521088, 1.112958312034607, -0.209543839097023, -0.18952539563179016, -0.25067251920700073, 0.3612355589866638, 0.0380253940820694, 0.18855473399162292, 0.5261315107345581, ...
func GetTotalUsers() models.TotalUsersResponse { ctx := context.Background() q := `SELECT user_id, last_online AS last_online_date FROM ( SELECT user_id, MAX(FORMAT_TIMESTAMP("%c", TIMESTAMP_MILLIS(event_time))) AS last_online, FROM ` + "`cwtask-307017.cw_task_dataset.user_logst_test`...
[ 0.24617619812488556, -0.16668927669525146, 0.88068026304245, -0.16565823554992676, 0.080024354159832, -0.2272341251373291, 0.595308244228363, -0.005389729049056768, 0.1456882506608963, 0.8416102528572083, 0.6589637994766235, 0.6347203850746155, -0.08167190849781036, -0.06635435670614243, ...
func (m *PaymentProviderConfigEdit) Validate(formats strfmt.Registry) error { var res []error if err := m.validateNamespace(formats); err != nil { res = append(res, err) } if err := m.validateRegion(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(re...
[ -0.443244069814682, 0.5478547215461731, 0.3254764676094055, -1.1593972444534302, -0.2612769901752472, 0.340480238199234, 0.4425945580005646, -0.24046970903873444, -0.535599410533905, 0.9595328569412231, 0.37041667103767395, -0.17901450395584106, -0.8602361679077148, 0.25921234488487244, ...
func CreateListener(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer) (*listeners.Listener, error) { listenerName := tools.RandomString("TESTACCT-", 8) listenerDescription := tools.RandomString("TESTACCT-DESC-", 8) listenerPort := tools.RandomInt(1, 100) t.Logf("Attempting to create ...
[ 1.295016884803772, -0.7692021131515503, 0.4563724994659424, -1.0733389854431152, 0.7748835682868958, 1.2016243934631348, -0.2974439263343811, -0.8884440064430237, -0.1929110735654831, -0.031269464641809464, 0.8021183013916016, -0.22299577295780182, -0.8929738998413086, -0.08993323147296906...
func CreateLoadBalancer(t *testing.T, client *gophercloud.ServiceClient, subnetID string) (*loadbalancers.LoadBalancer, error) { lbName := tools.RandomString("TESTACCT-", 8) lbDescription := tools.RandomString("TESTACCT-DESC-", 8) t.Logf("Attempting to create loadbalancer %s on subnet %s", lbName, subnetID) creat...
[ 1.3266608715057373, 0.14309222996234894, 0.3863985538482666, -0.5248926281929016, 1.1341108083724976, 1.2021937370300293, -1.1470128297805786, -0.6816454529762268, 0.29621273279190063, 0.19576098024845123, 0.15707284212112427, -0.09143665432929993, -1.0547230243682861, 0.3670567274093628, ...
func CreateMember(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer, pool *pools.Pool, subnetID, subnetCIDR string) (*pools.Member, error) { memberName := tools.RandomString("TESTACCT-", 8) memberPort := tools.RandomInt(100, 1000) memberWeight := tools.RandomInt(1, 10) cidrParts := st...
[ 1.5103673934936523, -0.16692793369293213, 0.5581430792808533, -0.5096505284309387, 0.5667885541915894, 0.758987307548523, -0.2583079934120178, -1.0178555250167847, 0.14570455253124237, -0.053461167961359024, 0.315506249666214, 0.2980140447616577, -1.2075623273849487, -0.6775375008583069, ...
func CreateMonitor(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer, pool *pools.Pool) (*monitors.Monitor, error) { monitorName := tools.RandomString("TESTACCT-", 8) t.Logf("Attempting to create monitor %s", monitorName) createOpts := monitors.CreateOpts{ PoolID: pool.ID, Nam...
[ 0.3002091944217682, -0.20348766446113586, 0.45262283086776733, -0.5064699053764343, 0.8905114531517029, 0.6904478669166565, -0.2160750925540924, -0.950648307800293, 0.2671170234680176, -0.14414018392562866, 0.20956672728061676, -0.3610338270664215, -1.1118437051773071, -0.05185744538903236...
func CreatePool(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer) (*pools.Pool, error) { poolName := tools.RandomString("TESTACCT-", 8) poolDescription := tools.RandomString("TESTACCT-DESC-", 8) t.Logf("Attempting to create pool %s", poolName) createOpts := pools.CreateOpts{ Name:...
[ 0.631675660610199, -0.25400805473327637, 0.4330751299858093, -0.5511397123336792, 1.0578739643096924, 0.953480064868927, -0.10272637009620667, -0.9509269595146179, 0.1769157499074936, -0.2598908841609955, 0.6807166337966919, 0.30799105763435364, -0.8922544121742249, -0.13508979976177216, ...
func CreateL7Policy(t *testing.T, client *gophercloud.ServiceClient, listener *listeners.Listener, lb *loadbalancers.LoadBalancer) (*l7policies.L7Policy, error) { policyName := tools.RandomString("TESTACCT-", 8) policyDescription := tools.RandomString("TESTACCT-DESC-", 8) t.Logf("Attempting to create l7 policy %s o...
[ 1.0555607080459595, -0.4374839663505554, 0.40848350524902344, -1.1674326658248901, 0.6079195737838745, 1.3252688646316528, -0.8742321133613586, -0.4756006896495819, 0.9422000050544739, -0.2466527223587036, 0.19527827203273773, 0.00565396249294281, -0.25552719831466675, 0.1464296132326126, ...
func CreateL7Rule(t *testing.T, client *gophercloud.ServiceClient, policyID string, lb *loadbalancers.LoadBalancer) (*l7policies.Rule, error) { t.Logf("Attempting to create l7 rule for policy %s", policyID) createOpts := l7policies.CreateRuleOpts{ RuleType: l7policies.TypePath, CompareType: l7policies.Compare...
[ 0.7349829077720642, -0.4374883770942688, 0.43765661120414734, -1.1211603879928589, 1.0941957235336304, 1.4643837213516235, -1.0529314279556274, -0.3595384955406189, 0.27333778142929077, 0.03781908378005028, 0.5829114317893982, 0.15055276453495026, -1.0394207239151, 0.3561023473739624, 0....
func DeleteL7Policy(t *testing.T, client *gophercloud.ServiceClient, lbID, policyID string) { t.Logf("Attempting to delete l7 policy %s", policyID) if err := l7policies.Delete(client, policyID).ExtractErr(); err != nil { if _, ok := err.(gophercloud.ErrDefault404); !ok { t.Fatalf("Unable to delete l7 policy: %v...
[ 1.0321811437606812, -0.5266445279121399, 0.22415438294410706, -1.0800728797912598, 0.18927942216396332, 0.8320165872573853, -0.7208521366119385, -0.19933293759822845, 0.6996399164199829, 0.5081818103790283, 0.14997301995754242, 0.3998054265975952, -0.9685513377189636, 0.14874973893165588, ...
func DeleteL7Rule(t *testing.T, client *gophercloud.ServiceClient, lbID, policyID, ruleID string) { t.Logf("Attempting to delete l7 rule %s", ruleID) if err := l7policies.DeleteRule(client, policyID, ruleID).ExtractErr(); err != nil { if _, ok := err.(gophercloud.ErrDefault404); !ok { t.Fatalf("Unable to delete...
[ 1.0867154598236084, -0.32211825251579285, 0.2575099468231201, -1.1942216157913208, 0.6544819474220276, 0.6036436557769775, -1.1271883249282837, 0.25594958662986755, -0.0043712700717151165, 0.6753619313240051, 0.31419309973716736, 0.8628364205360413, -0.9940356612205505, 0.4955715537071228,...
func DeleteListener(t *testing.T, client *gophercloud.ServiceClient, lbID, listenerID string) { t.Logf("Attempting to delete listener %s", listenerID) if err := listeners.Delete(client, listenerID).ExtractErr(); err != nil { if _, ok := err.(gophercloud.ErrDefault404); !ok { t.Fatalf("Unable to delete listener:...
[ 0.927865743637085, -0.7612391114234924, 0.25237467885017395, -0.9951430559158325, 0.41473352909088135, 0.6673985123634338, -0.3580906093120575, -0.39827480912208557, -0.07893435657024384, 0.31547507643699646, 0.4895718991756439, -0.1510017067193985, -0.6654150485992432, 0.4405681788921356,...
func DeleteMember(t *testing.T, client *gophercloud.ServiceClient, lbID, poolID, memberID string) { t.Logf("Attempting to delete member %s", memberID) if err := pools.DeleteMember(client, poolID, memberID).ExtractErr(); err != nil { if _, ok := err.(gophercloud.ErrDefault404); !ok { t.Fatalf("Unable to delete m...
[ 1.0728049278259277, -0.13374251127243042, 0.2803163230419159, -0.39640992879867554, 0.6142435669898987, 0.6256808638572693, -0.06272432208061218, -0.6622363328933716, -0.010239357128739357, -0.20321770012378693, 0.3742012679576874, 1.108651041984558, -0.8790118098258972, 0.1971696317195892...
func DeleteLoadBalancer(t *testing.T, client *gophercloud.ServiceClient, lbID string) { t.Logf("Attempting to delete loadbalancer %s", lbID) if err := loadbalancers.Delete(client, lbID).ExtractErr(); err != nil { if _, ok := err.(gophercloud.ErrDefault404); !ok { t.Fatalf("Unable to delete loadbalancer: %v", er...
[ 0.8175467848777771, -0.021737249568104744, 0.38371238112449646, -0.6293688416481018, 1.0979636907577515, 0.7625879049301147, -0.6637198328971863, -0.37827375531196594, 0.39719289541244507, 0.05033658444881439, 0.19670790433883667, 0.4745844900608063, -0.7419513463973999, 1.208626627922058,...
func DeleteMonitor(t *testing.T, client *gophercloud.ServiceClient, lbID, monitorID string) { t.Logf("Attempting to delete monitor %s", monitorID) if err := monitors.Delete(client, monitorID).ExtractErr(); err != nil { if _, ok := err.(gophercloud.ErrDefault404); !ok { t.Fatalf("Unable to delete monitor: %v", e...
[ 0.30833885073661804, -0.08860746771097183, 0.350999653339386, -0.5365856885910034, 0.7454082369804382, 0.16237641870975494, -0.37114977836608887, -0.34337687492370605, 0.15488499402999878, -0.4156723618507385, -0.008602173067629337, 0.26835671067237854, -0.9993941187858582, 0.4949063360691...
func DeletePool(t *testing.T, client *gophercloud.ServiceClient, lbID, poolID string) { t.Logf("Attempting to delete pool %s", poolID) if err := pools.Delete(client, poolID).ExtractErr(); err != nil { if _, ok := err.(gophercloud.ErrDefault404); !ok { t.Fatalf("Unable to delete pool: %v", err) } } if err :...
[ 0.6440122127532959, 0.00436366954818368, 0.39933058619499207, -0.5455847382545471, 0.9682614803314209, 0.8082636594772339, 0.3104338049888611, -0.6527244448661804, 0.6083044409751892, -0.16517330706119537, 0.33632194995880127, 0.8751809000968933, -0.6184707880020142, 0.028238434344530106, ...
func WaitForLoadBalancerState(client *gophercloud.ServiceClient, lbID, status string) error { return tools.WaitFor(func() (bool, error) { current, err := loadbalancers.Get(client, lbID).Extract() if err != nil { if httpStatus, ok := err.(gophercloud.ErrDefault404); ok { if httpStatus.Actual == 404 { if...
[ 0.43946799635887146, -0.5238708853721619, 0.5055339336395264, -0.9224362969398499, -0.08387923985719681, 0.545147716999054, -1.4723613262176514, -0.34362009167671204, 0.05280593782663345, -0.09326239675283432, -0.35142412781715393, -0.06371770054101944, -0.25434595346450806, 0.124552264809...
func (in *ActionLocationNetworkCreateMetaGlobalInput) SetIncludes(value string) *ActionLocationNetworkCreateMetaGlobalInput { in.Includes = value if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } in._selectedParameters["Includes"] = nil return in }
[ 0.27242058515548706, 0.13421142101287842, 0.30093544721603394, -0.19338683784008026, -0.15288402140140533, 0.8999432325363159, 0.2225959151983261, -0.38389554619789124, -0.4251345098018646, -0.6004740595817566, -0.2767449617385864, 0.483146607875824, -0.31432226300239563, 1.020661592483520...
func (in *ActionLocationNetworkCreateMetaGlobalInput) SetNo(value bool) *ActionLocationNetworkCreateMetaGlobalInput { in.No = value if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } in._selectedParameters["No"] = nil return in }
[ -0.4840012788772583, 0.6583696603775024, 0.20129582285881042, -0.07049088180065155, 0.2439034879207611, 0.4350214898586273, 0.6937741637229919, -0.3040435016155243, -1.1044857501983643, -0.012639453634619713, -0.9266578555107117, 0.28114622831344604, 0.7533973455429077, 0.9556030035018921,...
func (in *ActionLocationNetworkCreateMetaGlobalInput) SelectParameters(params ...string) *ActionLocationNetworkCreateMetaGlobalInput { if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } for _, param := range params { in._selectedParameters[param] = nil } return in }
[ -0.31550171971321106, -0.22198987007141113, 0.11143410950899124, -0.012641694396734238, 0.7988848686218262, 0.07690946757793427, 0.04109566658735275, -0.7227925062179565, -0.1227278783917427, 0.2924281358718872, 0.0029177998658269644, 0.6225568652153015, -0.6112075448036194, 0.150507301092...
func (in *ActionLocationNetworkCreateInput) SetAutopick(value bool) *ActionLocationNetworkCreateInput { in.Autopick = value if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } in._selectedParameters["Autopick"] = nil return in }
[ -0.5746346712112427, 0.05760941281914711, 0.1239231750369072, 0.07508723437786102, 0.1866065263748169, 0.3885730803012848, 1.598921537399292, -0.18944959342479706, -0.44050133228302, -0.5100747346878052, -0.6643926501274109, -0.45336034893989563, 0.5831895470619202, 0.3422929644584656, -...
func (in *ActionLocationNetworkCreateInput) SetLocation(value int64) *ActionLocationNetworkCreateInput { in.Location = value if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } in.SetLocationNil(false) in._selectedParameters["Location"] = nil return in }
[ -0.6797366738319397, 0.04002657160162926, 0.23297053575515747, 0.3815757632255554, 0.5378455519676208, 0.7404955625534058, 1.874613881111145, -0.20628507435321808, 0.31155499815940857, -0.1531270444393158, -0.34020480513572693, -0.6873502135276794, 0.2567328214645386, 0.5221824645996094, ...
func (in *ActionLocationNetworkCreateInput) SetLocationNil(set bool) *ActionLocationNetworkCreateInput { if in._nilParameters == nil { if !set { return in } in._nilParameters = make(map[string]interface{}) } if set { in._nilParameters["Location"] = nil in.SelectParameters("Location") } else { delete...
[ -0.21143867075443268, -0.48342955112457275, 0.47643640637397766, 0.24594852328300476, -0.15191486477851868, -0.26164889335632324, 0.5919163227081299, 0.10453388839960098, 0.34822818636894226, 0.6722490191459656, -0.18883492052555084, -0.3940398395061493, 0.022528834640979767, 0.31956177949...
func (in *ActionLocationNetworkCreateInput) SetNetwork(value int64) *ActionLocationNetworkCreateInput { in.Network = value if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } in.SetNetworkNil(false) in._selectedParameters["Network"] = nil return in }
[ -1.048595905303955, 0.3428148329257965, 0.27314087748527527, 0.883460283279419, 0.9776096343994141, 0.3376120328903198, 1.3067549467086792, 0.10760454088449478, 0.12323727458715439, -0.316893607378006, -0.9458228349685669, -0.5788753032684326, 0.07690465450286865, 0.5560702085494995, -0....
func (in *ActionLocationNetworkCreateInput) SetNetworkNil(set bool) *ActionLocationNetworkCreateInput { if in._nilParameters == nil { if !set { return in } in._nilParameters = make(map[string]interface{}) } if set { in._nilParameters["Network"] = nil in.SelectParameters("Network") } else { delete(in...
[ -0.4125438928604126, -0.1678037941455841, 0.47326982021331787, -0.07939616590738297, 0.36881354451179504, -0.3743973672389984, 0.09197450429201126, -0.0075159091502428055, 0.3505558371543884, 0.18734915554523468, -0.7631373405456543, -0.4832143485546112, 0.003936045803129673, 0.40054419636...
func (in *ActionLocationNetworkCreateInput) SetPrimary(value bool) *ActionLocationNetworkCreateInput { in.Primary = value if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } in._selectedParameters["Primary"] = nil return in }
[ -0.6185447573661804, -0.08336503803730011, 0.20435546338558197, -0.10083866119384766, 0.9533666372299194, 0.36840760707855225, 0.3696165084838867, -0.5109164118766785, 0.12410087883472443, -0.5086870193481445, -0.4440915882587433, -0.18248260021209717, -0.012478621676564217, 0.688554167747...
func (in *ActionLocationNetworkCreateInput) SetPriority(value int64) *ActionLocationNetworkCreateInput { in.Priority = value if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } in._selectedParameters["Priority"] = nil return in }
[ -0.398053914308548, 0.03669500723481178, 0.1920115351676941, 0.41075822710990906, 1.0412230491638184, 0.12301571667194366, 0.7744067907333374, -0.3277042508125305, 0.653533935546875, -0.6944019198417664, -0.6699597239494324, -0.6081446409225464, 0.07056259363889694, 0.9925275444984436, 0...
func (in *ActionLocationNetworkCreateInput) SetUserpick(value bool) *ActionLocationNetworkCreateInput { in.Userpick = value if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } in._selectedParameters["Userpick"] = nil return in }
[ -0.2125139832496643, 0.08951584249734879, 0.023418141528964043, 0.5692389011383057, 0.13860593736171722, 0.7714663147926331, 1.9804885387420654, -0.3113310635089874, 0.06305389106273651, -0.3285216689109802, -0.7674919962882996, -0.19380520284175873, 0.7454359531402588, 0.3807442784309387,...
func (in *ActionLocationNetworkCreateInput) SelectParameters(params ...string) *ActionLocationNetworkCreateInput { if in._selectedParameters == nil { in._selectedParameters = make(map[string]interface{}) } for _, param := range params { in._selectedParameters[param] = nil } return in }
[ -0.5116472244262695, -0.33131614327430725, -0.005517156329005957, 0.09675873816013336, 0.8323914408683777, -0.14792010188102722, 0.14654415845870972, -0.7563895583152771, 0.4526493549346924, -0.04926678165793419, -0.17179809510707855, 0.18014459311962128, -0.698582649230957, -0.00344589748...