text
stringlengths
11
6.3k
embedding
listlengths
768
768
func newUpdateInstanceUpdateInstanceRequest(ctx context.Context, f *Instance, c *Client) (map[string]interface{}, error) { req := map[string]interface{}{} if v := f.Description; !dcl.IsEmptyValueIndirect(v) { req["description"] = v } if v := f.State; !dcl.IsEmptyValueIndirect(v) { req["state"] = v } if v := ...
[ -1.3924728631973267, -0.08929464966058731, 0.6418517827987671, -0.9946988821029663, -0.7211623787879944, 0.167542964220047, 0.079506054520607, 0.1527392864227295, -0.24016736447811127, 0.36957651376724243, 0.3900241255760193, -0.028040485456585884, -0.33455154299736023, 0.19593441486358643...
func marshalUpdateInstanceUpdateInstanceRequest(c *Client, m map[string]interface{}) ([]byte, error) { return json.Marshal(m) }
[ -1.579430341720581, -0.49604499340057373, 0.6130569577217102, -0.8342919945716858, -1.1329587697982788, 0.5636411905288696, -0.39007651805877686, 0.5041490793228149, 0.19619424641132355, 0.8914275169372559, -0.06934020668268204, 0.8385157585144043, -1.0871829986572266, -0.477069616317749, ...
func (op *updateInstanceUpdateInstanceOperation) do(ctx context.Context, r *Instance, c *Client) error { _, err := c.GetInstance(ctx, r.urlNormalized()) if err != nil { return err } u, err := r.updateURL(c.Config.BasePath, "UpdateInstance") if err != nil { return err } req, err := newUpdateInstanceUpdateIn...
[ -0.6839677691459656, 0.2718892991542816, 0.9657806158065796, -0.7526178359985352, -0.19173966348171234, 0.9697588086128235, -0.03325587511062622, -0.1718633770942688, -0.2828804850578308, 1.3107261657714844, -0.45906898379325867, 0.6015066504478455, -0.9272109270095825, -0.3955827653408050...
func canonicalizeInstanceDesiredState(rawDesired, rawInitial *Instance, opts ...dcl.ApplyOption) (*Instance, error) { if rawInitial == nil { // Since the initial state is empty, the desired state is all we have. // We canonicalize the remaining nested objects with nil to pick up defaults. return rawDesired, ni...
[ -0.4120655655860901, -0.7666098475456238, 0.5982260704040527, -0.9581471085548401, 0.04273395612835884, -0.39925000071525574, -0.397830069065094, 0.5552207231521606, -0.08246637135744095, -0.5814106464385986, 0.17675624787807465, 0.5696665644645691, 0.9914356470108032, -0.08904963731765747...
func diffInstance(c *Client, desired, actual *Instance, opts ...dcl.ApplyOption) ([]instanceDiff, error) { if desired == nil || actual == nil { return nil, fmt.Errorf("nil resource passed to diff - always a programming error: %#v, %#v", desired, actual) } var diffs []instanceDiff if !dcl.IsZeroValue(desired.Desc...
[ -1.267197608947754, -1.0854957103729248, 0.6783761978149414, -0.18604899942874908, 0.487692654132843, 0.5958333611488342, 0.35703548789024353, 0.005490004550665617, -0.5399945378303528, 0.2137869894504547, 0.173416867852211, 0.5735352039337158, -0.22390460968017578, 1.0644224882125854, 0...
func (r *Instance) urlNormalized() *Instance { normalized := deepcopy.Copy(*r).(Instance) normalized.Name = dcl.SelfLinkToName(r.Name) normalized.Description = dcl.SelfLinkToName(r.Description) normalized.StatusMessage = dcl.SelfLinkToName(r.StatusMessage) normalized.Etag = dcl.SelfLinkToName(r.Etag) normalized.P...
[ -0.2994372248649597, -0.7724242806434631, 0.3468700349330902, -1.1740158796310425, -1.2463607788085938, -0.17829081416130066, -0.6866692304611206, 0.46824026107788086, 0.8780472278594971, -0.5773956775665283, -0.6705371737480164, 0.04299939423799515, 0.062381211668252945, 0.101314574480056...
func (r *Instance) marshal(c *Client) ([]byte, error) { m, err := expandInstance(c, r) if err != nil { return nil, fmt.Errorf("error marshalling Instance: %w", err) } return json.Marshal(m) }
[ 0.06466775387525558, 0.49150869250297546, 0.4456975758075714, -1.017652988433838, -1.0933167934417725, 0.5761483907699585, -0.5258580446243286, 0.016725128516554832, 0.2633294463157654, -0.09015499800443649, -0.2720097601413727, 1.0411350727081299, -0.5761694312095642, 0.1310221403837204, ...
func unmarshalInstance(b []byte, c *Client) (*Instance, error) { var m map[string]interface{} if err := json.Unmarshal(b, &m); err != nil { return nil, err } return unmarshalMapInstance(m, c) }
[ -0.10668320208787918, -0.11921151727437973, 0.7056294083595276, -1.3100559711456299, -1.2659968137741089, 0.36343762278556824, -0.25580400228500366, 1.0632567405700684, 0.35699957609176636, 0.22065170109272003, -0.232350155711174, -0.5355183482170105, -1.15426766872406, -0.4836986958980560...
func expandInstance(c *Client, f *Instance) (map[string]interface{}, error) { m := make(map[string]interface{}) if v, err := dcl.EmptyValue(); err != nil { return nil, fmt.Errorf("error expanding Name into name: %w", err) } else if !dcl.IsEmptyValueIndirect(v) { m["name"] = v } if v := f.Description; !dcl.IsEm...
[ -0.846641480922699, 0.44144207239151, 0.8379796147346497, -1.2448850870132446, -0.6690993905067444, 0.06924019008874893, 0.25536027550697327, 0.0616716593503952, -0.19313113391399384, -0.19460512697696686, -0.2746676206588745, -0.1257629245519638, 0.31088975071907043, 0.5550494194030762, ...
func flattenInstance(c *Client, i interface{}) *Instance { m, ok := i.(map[string]interface{}) if !ok { return nil } if len(m) == 0 { return nil } r := &Instance{} r.Name = dcl.FlattenString(m["name"]) r.Description = dcl.FlattenString(m["description"]) r.State = flattenInstanceStateEnum(m["state"]) r.St...
[ -0.7716768383979797, -0.1630498319864273, 0.56934654712677, -1.2504653930664062, -0.8590421676635742, 0.39517050981521606, -0.0935620665550232, 0.36444252729415894, 0.3227277100086212, 0.30363428592681885, -0.4808092713356018, -0.22526684403419495, -0.9550075531005859, -0.10356677323579788...
func expandInstanceFileSharesMap(c *Client, f map[string]InstanceFileShares) (map[string]interface{}, error) { if f == nil { return nil, nil } items := make(map[string]interface{}) for k, item := range f { i, err := expandInstanceFileShares(c, &item) if err != nil { return nil, err } if i != nil { ...
[ -0.7687477469444275, 0.5574833750724792, 0.5635840892791748, -0.2401028275489807, 0.4769763648509979, 0.17348702251911163, 0.663589596748352, 0.8193615078926086, -0.5792703628540039, -0.06623368710279465, 0.4380318820476532, -0.700339674949646, -0.175821915268898, 0.268317848443985, -0.0...
func expandInstanceFileSharesSlice(c *Client, f []InstanceFileShares) ([]map[string]interface{}, error) { if f == nil { return nil, nil } items := []map[string]interface{}{} for _, item := range f { i, err := expandInstanceFileShares(c, &item) if err != nil { return nil, err } items = append(items, i...
[ -1.1155743598937988, 0.23054511845111847, 0.45583298802375793, 0.19821204245090485, 0.3860316276550293, 0.03933931887149811, 0.3335924744606018, 0.5809282064437866, -0.8839318156242371, 0.3949272334575653, 0.48446741700172424, -0.69590163230896, -0.24038547277450562, 0.54291170835495, 0....
func flattenInstanceFileSharesMap(c *Client, i interface{}) map[string]InstanceFileShares { a, ok := i.(map[string]interface{}) if !ok { return map[string]InstanceFileShares{} } if len(a) == 0 { return map[string]InstanceFileShares{} } items := make(map[string]InstanceFileShares) for k, item := range a { ...
[ -0.6984497904777527, 0.005906755570322275, 0.5746838450431824, -0.11139939725399017, 0.6888136267662048, 0.6957915425300598, 1.3398255109786987, 0.6188185811042786, -0.014266107231378555, -0.2709847092628479, 0.14982767403125763, -0.2720855474472046, -0.73310387134552, 0.45379507541656494,...
func flattenInstanceFileSharesSlice(c *Client, i interface{}) []InstanceFileShares { a, ok := i.([]interface{}) if !ok { return []InstanceFileShares{} } if len(a) == 0 { return []InstanceFileShares{} } items := make([]InstanceFileShares, 0, len(a)) for _, item := range a { items = append(items, *flattenI...
[ -0.853978157043457, -0.08341929316520691, 0.41624894738197327, 0.4086214601993561, 0.6456747055053711, 0.539955735206604, 0.861603856086731, 0.4040567874908447, -0.2709697484970093, 0.15510345995426178, 0.17025476694107056, -0.17325705289840698, -0.7607357501983643, 0.8306209444999695, 0...
func expandInstanceFileShares(c *Client, f *InstanceFileShares) (map[string]interface{}, error) { if dcl.IsEmptyValueIndirect(f) { return nil, nil } m := make(map[string]interface{}) if v := f.Name; !dcl.IsEmptyValueIndirect(v) { m["name"] = v } if v := f.CapacityGb; !dcl.IsEmptyValueIndirect(v) { m["capac...
[ -0.3416006863117218, 0.37183699011802673, 0.6300325393676758, -0.49413973093032837, -0.46357831358909607, 0.2266368716955185, 0.5034703016281128, -0.13056088984012604, -0.1449582874774933, -0.22395950555801392, 0.4612594246864319, -0.10959742963314056, -0.19165749847888947, 0.0830131471157...
func flattenInstanceFileShares(c *Client, i interface{}) *InstanceFileShares { m, ok := i.(map[string]interface{}) if !ok { return nil } r := &InstanceFileShares{} r.Name = dcl.FlattenString(m["name"]) r.CapacityGb = dcl.FlattenInteger(m["capacityGb"]) r.SourceBackup = dcl.FlattenString(m["sourceBackup"]) r....
[ -0.3807840347290039, 0.05434759706258774, 0.35710209608078003, -0.27190539240837097, -0.33383506536483765, 0.43365103006362915, 0.5540914535522461, -0.2187880128622055, -0.10698124766349792, -0.23744791746139526, -0.011156056076288223, -0.27575021982192993, -1.1811820268630981, -0.24399144...
func expandInstanceFileSharesNfsExportOptionsMap(c *Client, f map[string]InstanceFileSharesNfsExportOptions) (map[string]interface{}, error) { if f == nil { return nil, nil } items := make(map[string]interface{}) for k, item := range f { i, err := expandInstanceFileSharesNfsExportOptions(c, &item) if err != ...
[ -1.001407504081726, 0.766226589679718, 0.3799891173839569, 0.18673118948936462, 0.20459508895874023, -0.15358203649520874, 0.5372191667556763, -0.15051434934139252, -0.10766439139842987, 0.6532911658287048, 0.4654875695705414, -0.5509325861930847, -0.5930687189102173, 0.25131258368492126, ...
func expandInstanceFileSharesNfsExportOptionsSlice(c *Client, f []InstanceFileSharesNfsExportOptions) ([]map[string]interface{}, error) { if f == nil { return nil, nil } items := []map[string]interface{}{} for _, item := range f { i, err := expandInstanceFileSharesNfsExportOptions(c, &item) if err != nil { ...
[ -1.0250271558761597, 0.7015371322631836, 0.5034782886505127, 0.6734046936035156, 0.3378736972808838, -0.32604339718818665, -0.18144705891609192, -0.2561310827732086, -0.18389283120632172, 0.9451122283935547, 0.8668455481529236, -0.3368143141269684, -0.465545654296875, 0.28888756036758423, ...
func flattenInstanceFileSharesNfsExportOptionsMap(c *Client, i interface{}) map[string]InstanceFileSharesNfsExportOptions { a, ok := i.(map[string]interface{}) if !ok { return map[string]InstanceFileSharesNfsExportOptions{} } if len(a) == 0 { return map[string]InstanceFileSharesNfsExportOptions{} } items :=...
[ -0.7789434194564819, 0.27205678820610046, 0.350629061460495, 0.37131932377815247, 0.2668693959712982, 0.036534056067466736, 1.0151095390319824, -0.47593215107917786, 0.4069357216358185, 0.49122950434684753, 0.2623012065887451, -0.1365402638912201, -0.9328488111495972, 0.4676051437854767, ...
func flattenInstanceFileSharesNfsExportOptionsSlice(c *Client, i interface{}) []InstanceFileSharesNfsExportOptions { a, ok := i.([]interface{}) if !ok { return []InstanceFileSharesNfsExportOptions{} } if len(a) == 0 { return []InstanceFileSharesNfsExportOptions{} } items := make([]InstanceFileSharesNfsExpor...
[ -0.8251672983169556, 0.38645368814468384, 0.40455004572868347, 1.0282504558563232, 0.3785458505153656, -0.04604865238070488, 0.2776144742965698, -0.5558516383171082, 0.4447922706604004, 0.759578287601471, 0.6847643256187439, -0.10835234820842743, -0.7470057606697083, 0.49857670068740845, ...
func expandInstanceFileSharesNfsExportOptions(c *Client, f *InstanceFileSharesNfsExportOptions) (map[string]interface{}, error) { if dcl.IsEmptyValueIndirect(f) { return nil, nil } m := make(map[string]interface{}) if v := f.IPRanges; !dcl.IsEmptyValueIndirect(v) { m["ipRanges"] = v } if v := f.AccessMode; !...
[ -0.4329552948474884, 0.26548853516578674, 0.4616794288158417, -0.2407800555229187, -0.34112516045570374, 0.10017440468072891, 0.403442919254303, -0.10456131398677826, 0.21603192389011383, -0.16179342567920685, 0.0409381203353405, -0.02961696684360504, -0.29626744985580444, 0.14934925734996...
func flattenInstanceFileSharesNfsExportOptions(c *Client, i interface{}) *InstanceFileSharesNfsExportOptions { m, ok := i.(map[string]interface{}) if !ok { return nil } r := &InstanceFileSharesNfsExportOptions{} r.IPRanges = dcl.FlattenStringSlice(m["ipRanges"]) r.AccessMode = flattenInstanceFileSharesNfsExpor...
[ -0.2769388258457184, 0.02740393951535225, 0.1624341756105423, 0.47891148924827576, -0.18484480679035187, -0.11236970871686935, 0.7468472719192505, -0.40188756585121155, 0.5486602783203125, 0.1401629000902176, -0.052724916487932205, -0.04735768586397171, -0.9378531575202942, 0.1006394475698...
func expandInstanceNetworksMap(c *Client, f map[string]InstanceNetworks) (map[string]interface{}, error) { if f == nil { return nil, nil } items := make(map[string]interface{}) for k, item := range f { i, err := expandInstanceNetworks(c, &item) if err != nil { return nil, err } if i != nil { items[...
[ -1.009686827659607, 1.033845067024231, 0.4769231677055359, -0.3966936767101288, -0.15312868356704712, 0.3512461185455322, 0.3362850248813629, -0.049031589180231094, 0.009047102183103561, 0.029518336057662964, -0.3731088936328888, -1.304215908050537, -0.2970197796821594, 0.3326917588710785,...
func expandInstanceNetworksSlice(c *Client, f []InstanceNetworks) ([]map[string]interface{}, error) { if f == nil { return nil, nil } items := []map[string]interface{}{} for _, item := range f { i, err := expandInstanceNetworks(c, &item) if err != nil { return nil, err } items = append(items, i) } ...
[ -1.1666960716247559, 0.8556126952171326, 0.3715343475341797, 0.04838145151734352, 0.032562363892793655, 0.14396090805530548, -0.09067437052726746, 0.022470610216259956, -0.4462863802909851, 0.6429171562194824, 0.04168787971138954, -1.0583999156951904, -0.22818851470947266, 0.53808861970901...
func flattenInstanceNetworksMap(c *Client, i interface{}) map[string]InstanceNetworks { a, ok := i.(map[string]interface{}) if !ok { return map[string]InstanceNetworks{} } if len(a) == 0 { return map[string]InstanceNetworks{} } items := make(map[string]InstanceNetworks) for k, item := range a { items[k] ...
[ -1.0390959978103638, 0.2892730236053467, 0.47531458735466003, -0.5317931771278381, -0.10265625268220901, 0.7642804384231567, 0.8352082967758179, -0.2939130961894989, 0.7034226059913635, -0.060075342655181885, -0.8104137182235718, -0.9864481687545776, -0.8190304636955261, 0.4168673753738403...
func flattenInstanceNetworksSlice(c *Client, i interface{}) []InstanceNetworks { a, ok := i.([]interface{}) if !ok { return []InstanceNetworks{} } if len(a) == 0 { return []InstanceNetworks{} } items := make([]InstanceNetworks, 0, len(a)) for _, item := range a { items = append(items, *flattenInstanceNet...
[ -1.1005133390426636, 0.3947834074497223, 0.328485906124115, 0.1428556740283966, 0.02167125977575779, 0.47755828499794006, 0.20751482248306274, -0.24793383479118347, 0.31450793147087097, 0.41088274121284485, -0.28513285517692566, -0.8165897727012634, -0.6181528568267822, 0.5065690875053406,...
func expandInstanceNetworks(c *Client, f *InstanceNetworks) (map[string]interface{}, error) { if dcl.IsEmptyValueIndirect(f) { return nil, nil } m := make(map[string]interface{}) if v := f.Network; !dcl.IsEmptyValueIndirect(v) { m["network"] = v } if v := f.Modes; !dcl.IsEmptyValueIndirect(v) { m["modes"] ...
[ -0.9259167313575745, 0.5020015239715576, 0.6201596856117249, -1.3907418251037598, -0.7175715565681458, 0.5766054391860962, 0.2118098884820938, 0.21853305399417877, 0.21402110159397125, -0.2096344381570816, -0.4572363793849945, -0.8503048419952393, 0.0957990288734436, -0.41252240538597107, ...
func flattenInstanceNetworks(c *Client, i interface{}) *InstanceNetworks { m, ok := i.(map[string]interface{}) if !ok { return nil } r := &InstanceNetworks{} r.Network = dcl.FlattenString(m["network"]) r.Modes = flattenInstanceNetworksModesEnumSlice(c, m["modes"]) r.ReservedIPRange = dcl.FlattenString(m["rese...
[ -1.1235127449035645, 0.43384674191474915, 0.2435891330242157, -0.8093248009681702, -0.5626429319381714, 0.5283280611038208, 0.1950118988752365, 0.08062282204627991, 0.9315789937973022, 0.21330447494983673, -1.1051654815673828, -1.0477819442749023, -1.0563390254974365, -0.5386331081390381, ...
func flattenInstanceStateEnumSlice(c *Client, i interface{}) []InstanceStateEnum { a, ok := i.([]interface{}) if !ok { return []InstanceStateEnum{} } if len(a) == 0 { return []InstanceStateEnum{} } items := make([]InstanceStateEnum, 0, len(a)) for _, item := range a { items = append(items, *flattenInstan...
[ -1.7713805437088013, -0.16258107125759125, 0.4195660948753357, 0.4958941340446472, 0.20917841792106628, 0.6189380884170532, 0.3911018371582031, 0.4746360778808594, 0.7956095933914185, 0.6863043308258057, -0.28368186950683594, 0.16849908232688904, -0.29410260915756226, 0.4988321363925934, ...
func flattenInstanceStateEnum(i interface{}) *InstanceStateEnum { s, ok := i.(string) if !ok { return InstanceStateEnumRef("") } return InstanceStateEnumRef(s) }
[ -1.1815614700317383, -0.26766130328178406, 0.2753690779209137, -0.2835010886192322, -0.15182428061962128, 0.1908074915409088, 1.4344837665557861, 0.36922624707221985, 1.5780092477798462, -0.009671579115092754, -0.5781885385513306, 0.0284368097782135, -0.7900110483169556, -0.491263180971145...
func flattenInstanceTierEnumSlice(c *Client, i interface{}) []InstanceTierEnum { a, ok := i.([]interface{}) if !ok { return []InstanceTierEnum{} } if len(a) == 0 { return []InstanceTierEnum{} } items := make([]InstanceTierEnum, 0, len(a)) for _, item := range a { items = append(items, *flattenInstanceTie...
[ -1.7790638208389282, -0.5345413684844971, 0.4534001350402832, 0.4242163300514221, -0.09595882892608643, 0.34675827622413635, 0.3586667478084564, 0.24563144147396088, 0.36962711811065674, 0.6288127303123474, -0.5701670050621033, 0.16851146519184113, -0.7594642043113708, 0.6419562697410583, ...
func flattenInstanceTierEnum(i interface{}) *InstanceTierEnum { s, ok := i.(string) if !ok { return InstanceTierEnumRef("") } return InstanceTierEnumRef(s) }
[ -0.7828616499900818, -0.2918352782726288, 0.2552811801433563, -0.4389193654060364, -0.14344695210456848, 0.16156607866287231, 0.8087563514709473, 0.23133936524391174, 0.5710462331771851, 0.3082864582538605, -0.27947404980659485, -0.05445767939090729, -1.185423493385315, -0.4963332712650299...
func flattenInstanceFileSharesNfsExportOptionsAccessModeEnumSlice(c *Client, i interface{}) []InstanceFileSharesNfsExportOptionsAccessModeEnum { a, ok := i.([]interface{}) if !ok { return []InstanceFileSharesNfsExportOptionsAccessModeEnum{} } if len(a) == 0 { return []InstanceFileSharesNfsExportOptionsAccessMo...
[ -0.9632449150085449, 0.12955468893051147, 0.5425998568534851, 0.36044350266456604, -0.051076740026474, -0.20394617319107056, 0.7239816784858704, -0.1300581842660904, 0.9080005884170532, 0.21195000410079956, 0.5483496785163879, 0.16561350226402283, -0.1924746334552765, 0.49828439950942993, ...
func flattenInstanceFileSharesNfsExportOptionsAccessModeEnum(i interface{}) *InstanceFileSharesNfsExportOptionsAccessModeEnum { s, ok := i.(string) if !ok { return InstanceFileSharesNfsExportOptionsAccessModeEnumRef("") } return InstanceFileSharesNfsExportOptionsAccessModeEnumRef(s) }
[ -0.4470057189464569, -0.377841055393219, 0.5569353699684143, -0.10240485519170761, 0.0025867470540106297, -0.24100153148174286, 1.2982851266860962, -0.06719373911619186, 1.246837854385376, -0.2307518720626831, 0.4457836449146271, 0.0310601107776165, -0.3369850814342499, 0.05562592670321464...
func flattenInstanceFileSharesNfsExportOptionsSquashModeEnumSlice(c *Client, i interface{}) []InstanceFileSharesNfsExportOptionsSquashModeEnum { a, ok := i.([]interface{}) if !ok { return []InstanceFileSharesNfsExportOptionsSquashModeEnum{} } if len(a) == 0 { return []InstanceFileSharesNfsExportOptionsSquashMo...
[ -0.755685031414032, 0.10684669762849808, 0.5784679651260376, 0.4815552532672882, 0.3181591033935547, -0.14765921235084534, 0.23962247371673584, -0.3598882257938385, 0.9504532217979431, -0.11942344158887863, -0.16564548015594482, -0.16771751642227173, 0.04031552001833916, 0.4268069565296173...
func flattenInstanceFileSharesNfsExportOptionsSquashModeEnum(i interface{}) *InstanceFileSharesNfsExportOptionsSquashModeEnum { s, ok := i.(string) if !ok { return InstanceFileSharesNfsExportOptionsSquashModeEnumRef("") } return InstanceFileSharesNfsExportOptionsSquashModeEnumRef(s) }
[ -0.2312057614326477, -0.1778278946876526, 0.5385392904281616, -0.02109120972454548, 0.3159649968147278, -0.1262913942337036, 1.0863929986953735, -0.24943211674690247, 1.2823166847229004, -0.5025208592414856, -0.44436055421829224, -0.3502439260482788, -0.14712345600128174, -0.12009815871715...
func flattenInstanceNetworksModesEnumSlice(c *Client, i interface{}) []InstanceNetworksModesEnum { a, ok := i.([]interface{}) if !ok { return []InstanceNetworksModesEnum{} } if len(a) == 0 { return []InstanceNetworksModesEnum{} } items := make([]InstanceNetworksModesEnum, 0, len(a)) for _, item := range a ...
[ -1.9397659301757812, -0.39148563146591187, 0.40590229630470276, 0.4049258232116699, 0.27825334668159485, 0.6609731912612915, 0.19433176517486572, -0.1589244306087494, 0.5988811254501343, 0.5933200120925903, -0.8151752352714539, -0.8711382150650024, -0.6915307641029358, 0.8691107034683228, ...
func flattenInstanceNetworksModesEnum(i interface{}) *InstanceNetworksModesEnum { s, ok := i.(string) if !ok { return InstanceNetworksModesEnumRef("") } return InstanceNetworksModesEnumRef(s) }
[ -1.0855070352554321, -0.0515533946454525, 0.240111842751503, -0.4839753210544586, 0.689943253993988, 0.7201518416404724, 0.7326929569244385, -0.47788381576538086, 1.05018150806427, 0.22399888932704926, -0.6858538389205933, -1.420122742652893, -0.8504652976989746, 0.08381279557943344, 0.7...
func (r *Instance) matcher(c *Client) func([]byte) bool { return func(b []byte) bool { cr, err := unmarshalInstance(b, c) if err != nil { c.Config.Logger.Warning("failed to unmarshal provided resource in matcher.") return false } nr := r.urlNormalized() ncr := cr.urlNormalized() c.Config.Logger.Infof...
[ -0.30814558267593384, -0.46885502338409424, 0.7387214303016663, -0.6715161204338074, -0.15984368324279785, 0.6833125948905945, 0.2501908242702484, -0.06724060326814651, -0.21447399258613586, -0.3235589265823364, -0.5486953854560852, -0.4477894604206085, -0.26469188928604126, 0.693454742431...
func NewModel(graphPath string) (*Model, error) { bs, err := ioutil.ReadFile(graphPath) if err != nil { return nil, err } g := tf.NewGraph() if err := g.Import(bs, ""); err != nil { return nil, err } sess, err := tf.NewSession(g, nil) if err != nil { return nil, err } model := &Model{ g: g, ses...
[ 0.48824167251586914, -0.03797656670212746, 0.522097647190094, -0.3680597245693207, -0.027433544397354126, 0.6846230626106262, 0.8327999711036682, -0.3246602416038513, -0.1485101282596588, 0.976408839225769, -0.388515442609787, 0.4799612760543823, 0.0707336962223053, -0.6223539113998413, ...
func (m *Model) EvaluatePosition(p *Pos) { tIn, err := tf.NewTensor(m.input) if err != nil { panic(err) } opInput := m.g.Operation(modelInputName) if opInput == nil { panic("opInput == nil") } opPolicy := m.g.Operation(policyOutputName) if opInput == nil { panic("opPolicy == nil") } opValue := m.g.Opera...
[ -0.5913950800895691, -0.7044371962547302, 0.5763450860977173, -0.914265513420105, -0.02794031612575054, 0.629364550113678, 0.260196328163147, 0.13587649166584015, -0.3844415545463562, 0.5392976403236389, -0.5198414921760559, -1.2553136348724365, -0.5229021310806274, 0.03081275336444378, ...
func (m *Model) SetSeed(seed int64) {}
[ -0.24256467819213867, -0.1364380419254303, 0.18921133875846863, 1.2678720951080322, -0.5144797563552856, 0.8076940774917603, 0.9324039220809937, 0.1864084154367447, 0.5654276609420776, -0.7035775184631348, -0.9132409691810608, 0.18065513670444489, -0.24065804481506348, 1.3021643161773682, ...
func (m *Model) Value() float32 { return m.value[0][0] }
[ 0.3094136118888855, 0.3670613169670105, 0.2811115086078644, 0.38906997442245483, 1.071218490600586, 1.2991981506347656, 0.4843790531158447, -1.1392767429351807, -0.637563169002533, -0.01528657041490078, 0.15774881839752197, 0.16581496596336365, -0.19877521693706512, 0.9763779044151306, -...
func (m *Model) Policy(policy []float32) { copy(policy, m.policy[0]) }
[ -0.19934982061386108, 0.6174869537353516, 0.10034792125225067, 0.6955417990684509, 1.098684310913086, 2.0287537574768066, 0.6565914154052734, -0.7742752432823181, 0.9211323261260986, -0.22335535287857056, -0.4844971299171448, 0.21006888151168823, -0.18868786096572876, 0.7578490972518921, ...
func (m *Model) Close() error { return m.sess.Close() }
[ -0.4034218490123749, -0.1914386749267578, 0.36702170968055725, 0.561556339263916, -0.4788970947265625, 0.810892641544342, 0.6096633076667786, -0.9802102446556091, -0.11581479758024216, -0.28109702467918396, 0.2705412805080414, -0.4114081859588623, -0.36973634362220764, 0.48855671286582947,...
func Load() Env { cfg := Env{} if err := env.Parse(&cfg); err != nil { fmt.Printf("failed to load config %s", err) } return cfg }
[ -0.27802592515945435, -0.2434704303741455, 0.2870340943336487, -0.6788616180419922, -0.5759289264678955, 0.6147791147232056, -0.3234978914260864, 0.2505151629447937, -0.6549237966537476, -0.09572836011648178, -0.1816808134317398, 0.5209981203079224, -0.7739166617393494, -0.0355521366000175...
func dsn() string { dsn := &url.URL{ Scheme: driver.DriverName, User: url.UserPassword("user", "password"), Host: "host:port", } return dsn.String() }
[ -0.4739983081817627, -0.7164298295974731, 0.47277265787124634, 0.798625111579895, -0.3390551507472992, -0.8722021579742432, -0.5972493290901184, 1.126381278038025, -0.20686008036136627, -0.9344305396080017, -0.7160053849220276, 0.38034185767173767, 0.9007849097251892, -0.29937586188316345,...
func ExampleDSN() { db, err := sql.Open(driver.DriverName, dsn()) if err != nil { log.Fatal(err) } defer db.Close() if err := db.Ping(); err != nil { log.Fatal(err) } }
[ 0.2970131039619446, 0.18514099717140198, 0.5867336988449097, 0.5310319066047668, 0.23892363905906677, -0.9293670654296875, -0.4629964232444763, 0.8663126826286316, 0.8328598141670227, -0.10363969206809998, -0.962806224822998, 0.5314005613327026, 0.6230563521385193, -0.15714631974697113, ...
func NewInfluxDBClient(influxHTTPClient influx.Client) DBClient { return InfluxDBClient{ influxHTTPClient, } }
[ 0.35069096088409424, -0.2809180021286011, 0.14528273046016693, 0.9452833533287048, -0.979364275932312, 0.02367830090224743, -0.009991398081183434, 0.2333831787109375, -0.3612489402294159, -0.5306325554847717, -0.2546407878398895, 0.5391543507575989, -0.9510577917098999, 0.10490334779024124...
func (c InfluxDBClient) Ping() error { log.Printf("Ping InfluxDB") _, _, err := c.influxHTTPClient.Ping(0) return err }
[ 0.22889463603496552, -0.22659651935100555, 0.07984872907400131, 1.163834571838379, 1.5041793584823608, 0.8006834387779236, 0.40166395902633667, 0.748262345790863, -0.7341359853744507, 0.29774028062820435, 0.48010608553886414, 0.26448872685432434, -0.8643389940261841, 0.027138162404298782, ...
func (c InfluxDBClient) Save(events []EventModel) error { log.Printf("Save events: %+v", events) bps, err := constructBatchPoints(events) if err != nil { log.Print("Error while creating batch points for InfluxDB", err) return err } defer c.influxHTTPClient.Close() err = c.influxHTTPClient.Write(bps) if er...
[ -0.14054252207279205, -0.45871275663375854, 0.5286535024642944, 0.8454546928405762, 0.9395314455032349, 0.846092700958252, 0.6639351844787598, -0.05306607857346535, -1.1840101480484009, 0.5940170884132385, -1.1885952949523926, 0.010160112753510475, -0.8340379595756531, -0.00722979987040162...
func (c InfluxDBClient) FetchAll(start int64, end int64) ([]EventModel, error) { log.Printf("Fetch all events from now - %ds to now - %ds", start, end) cmd := fmt.Sprintf(`SELECT * FROM %s WHERE time >= NOW() - %ds AND time <= NOW() - %ds`, eventsTableName, start, end) log.Println("Query data with command", ...
[ 0.33866655826568604, -0.6138765215873718, 0.731382429599762, 1.1113213300704956, -0.14238184690475464, 0.2525821030139923, -0.5325214266777039, -0.11900392919778824, -1.2910780906677246, 0.009061882272362709, -0.10234382003545761, 0.7640783786773682, 0.08124051988124847, 0.1483369618654251...
func (c InfluxDBClient) FetchByType(eventType string, start int64, end int64) ([]EventModel, error) { log.Printf("Fetch events by type %s and from now - %ds to now - %ds", eventType, start, end) cmd := fmt.Sprintf(`SELECT * FROM %s WHERE event_type='%s' AND time >= NOW() - %ds AND time <= NOW()...
[ -0.009001970291137695, -0.6682865023612976, 0.6957557797431946, 0.5211367011070251, -0.1037864089012146, -0.19975534081459045, -0.06256329268217087, -0.9147482514381409, -0.9766775369644165, 0.5209609866142273, -0.18456433713436127, 0.6512952446937561, -0.04279686510562897, 0.3845739066600...
func (c InfluxDBClient) queryDB(cmd string) (*influx.Response, error) { defer c.influxHTTPClient.Close() q := influx.Query{ Command: cmd, Database: databaseName, } response, err := c.influxHTTPClient.Query(q) if err != nil { log.Print("Error while querying InfluxDB", err) return nil, err } if response...
[ 0.10851439088582993, 0.020373711362481117, 0.5465350151062012, 0.8477281332015991, 0.47167274355888367, 0.6816565990447998, 0.6486415266990662, -0.2988765239715576, 0.30259618163108826, -0.7815298438072205, 0.9699952602386475, 0.44198042154312134, -1.2968565225601196, 0.3195772171020508, ...
func ReadSearchQueue(path string) (string, error) { file, err := os.ReadFile(path) return string(file), err }
[ -0.6567800641059875, -1.1603330373764038, 0.4503636360168457, -0.8282699584960938, -0.5917856693267822, 0.5081602931022644, -0.5948499441146851, -0.6462852954864502, -0.6728067398071289, 0.5825664401054382, 0.496054470539093, 0.21592234075069427, -0.23684315383434296, -0.7683725357055664, ...
func ReadData(path string) (Document, error) { file, err := os.Open(path) if err != nil { return nil, err } defer file.Close() scanner := bufio.NewScanner(file) var stringList []string //readline() for scanner.Scan() { stringList = append(stringList, scanner.Text()) //read line mode } var ret Document = m...
[ -0.33308717608451843, -0.3004459738731384, 1.0873359441757202, -0.7459166049957275, -0.8391730189323425, -0.21466995775699615, 0.5555551648139954, -0.4340572655200958, -0.2573603689670563, 0.5865191221237183, -0.15125159919261932, -0.02657211199402809, -1.019543170928955, -0.04673672839999...
func joinLines() int { for _, arg := range os.Args[1:] { fmt.Println(arg) } return 0 }
[ 0.23630687594413757, -0.12010005861520767, 0.9542177319526672, 0.37783658504486084, 1.1482346057891846, 0.9523950219154358, 0.15495719015598297, 0.3292311728000641, -1.196848750114441, -0.11026881635189056, 0.19643716514110565, -0.07784755527973175, -0.5002764463424683, 1.1925932168960571,...
func Load(args []string, namespace string, appConfig *App) error { if err := conf.Parse(args[1:], namespace, appConfig); err != nil { if err == conf.ErrHelpWanted { usage, err := conf.Usage(namespace, appConfig) if err != nil { return fmt.Errorf("generating config usage: %w", err) } fmt.Println(usage...
[ 0.5870286822319031, 0.19406123459339142, 0.7722289562225342, -0.26484623551368713, -0.19205449521541595, 0.22276800870895386, -0.23882247507572174, 0.29559972882270813, -0.6110062003135681, 0.9828273057937622, -0.18441377580165863, -0.5038314461708069, -0.42892220616340637, 0.1922779977321...
func (f Frame) OpponentAction() PlayerAction { action := PlayerAction(UNKNOWN_ANIMATION) it := NewOpponentIterator(f) for it.Next() { _, player := it.Value() action, _ = player.GetPlayerAction() return action } return action }
[ -1.058417558670044, -0.8941119313240051, 0.6881140470504761, -0.25557979941368103, -0.3918815553188324, -0.6575441956520081, 0.9268772602081299, -0.005358761176466942, -0.058723241090774536, 0.97954922914505, -0.30527666211128235, -0.5145313739776611, -0.2587178945541382, 0.194117859005928...
func SaveUserConfig(db Database, cfg duser.UserAccess) error { criteria := make(map[string]interface{}) criteria["UserHash"] = cfg.UserHash return SaveOnUpdateObject(db, cfg, pconst.DbConfig, pconst.TbAccess, criteria) }
[ 0.042526163160800934, 0.30515652894973755, 0.5673004388809204, 0.4698203206062317, -1.0773224830627441, 0.2305884063243866, 0.45665767788887024, 1.0433006286621094, -0.1428230106830597, 0.6527059078216553, -1.9344056844711304, -0.7891154885292053, -0.34563136100769043, 0.937176525592804, ...
func RemoveUserConfig(db Database, userHash string) error { criteria := make(map[string]interface{}) criteria["UserHash"] = userHash return db.DeleteRecord(pconst.DbConfig, pconst.TbAccess, criteria) }
[ 0.8311261534690857, 0.5370792746543884, 0.2998585104942322, 0.37374845147132874, -1.7520503997802734, 0.10980508476495743, 0.4200611710548401, 1.6281261444091797, -0.322855681180954, 0.7234218120574951, -1.081580638885498, -0.41283097863197327, -0.6511557698249817, 0.696037769317627, 0.8...
func GetUser(db Database, userHash string) *duser.UserAccess { criteria := make(map[string]interface{}) criteria["UserHash"] = userHash stored, err := db.GetRecord(pconst.DbConfig, pconst.TbAccess, criteria) if err != nil || stored == nil { return nil } user, err := duser.ToUserAccess(stored) if err != nil { ...
[ 0.651411771774292, 0.46171674132347107, 0.8386419415473938, 0.7547891736030579, -0.26401785016059875, -0.20613782107830048, 0.6302392482757568, 0.23535087704658508, 0.08940763026475906, -0.28495147824287415, 0.6501787304878235, 0.31531834602355957, 0.16193704307079315, -0.10736054927110672...
func GetUserConfigs(db Database, groups map[int]bool, withPriviledge bool) map[string]duser.UserAccess { users := make(map[string]duser.UserAccess) stored, err := db.FetchAllRecords(pconst.DbConfig, pconst.TbAccess) if err != nil || stored == nil { return users } for _, val := range stored { usr, err := duser....
[ -0.47257933020591736, 0.6873647570610046, 0.8390509486198425, 1.1798425912857056, -1.077999234199524, -0.09938506782054901, 0.1722688376903534, 0.019292619079351425, -0.35089370608329773, 0.693192720413208, 0.052056435495615005, -0.014190473593771458, -0.13596124947071075, 0.40781515836715...
func SetUsersDump(db Database, users map[string]duser.UserAccess) error { err := db.DropTable(pconst.DbConfig, pconst.TbAccess) if err != nil { return err } err = db.CreateTable(pconst.DbConfig, pconst.TbAccess, &users) if err != nil { return err } var res error for _, user := range users { _, err = db.In...
[ -0.8953239917755127, 0.7140030860900879, 0.9013561606407166, -0.20882485806941986, 0.21275168657302856, 0.7220116853713989, 0.7221741080284119, 0.6261041164398193, 0.07160195708274841, 0.63165283203125, 0.031903769820928574, -0.18851850926876068, 0.07973634451627731, 0.2667478621006012, ...
func (c *ConfigData) CheckAPIKeyExists() bool { return len(c.APIKey) > 1 }
[ -1.7653119564056396, -0.07102648913860321, 0.26966264843940735, -0.12453469634056091, 0.47230038046836853, -0.2259395271539688, -0.8214585185050964, 0.4946964979171753, -0.62598717212677, 1.1434521675109863, -0.5432153344154358, -0.8679766058921814, -0.4800492525100708, 1.0461781024932861,...
func (me *ConfigData) SetApiKey(aNewApiKey string) { me.APIKey = aNewApiKey }
[ -1.0209089517593384, -0.8158468008041382, 0.014955006539821625, -0.0922103226184845, -0.679831862449646, 0.0005828108405694366, -0.5092044472694397, 0.9753156304359436, -0.5925493836402893, 0.6719473600387573, -1.024895191192627, -0.1396447867155075, -0.3367471396923065, 0.5729930400848389...
func (me *ConfigData) GetApiKey() string { return Config.APIKey }
[ -0.6577407121658325, -0.6547467112541199, 0.2106531262397766, 0.12653738260269165, -0.2370516061782837, 0.2676490843296051, 0.048822637647390366, 0.7265323996543884, -0.6464419960975647, 0.9550987482070923, -0.25449270009994507, -0.39930060505867004, -0.5387315154075623, 0.1053818836808204...
func (me *ConfigData) SetAuthenticationCredentials(aUsername, aPassword string) { me.Username = aUsername me.Password = aPassword }
[ -0.9743785858154297, -0.7721373438835144, 0.09055695682764053, 0.22322748601436615, -0.9110500812530518, 0.8946554660797119, 0.11397343128919601, 0.7008209228515625, -0.10894634574651718, 0.6573448181152344, -0.7855105400085449, -0.43532273173332214, 0.2167307585477829, -0.0591730028390884...
func Init() error { var lApiKey string if lApiKey = os.Getenv(envVarNameAPIKey); !ValidateApiKey(lApiKey) { return ErrNoApiKeyInEnvVar } lUsername := os.Getenv(envVarNameUsername) lPassword := os.Getenv(envVarNamePassword) Config.APIKey = lApiKey Config.Username = lUsername Config.Password = lPassword re...
[ -0.6319971084594727, -0.6807043552398682, 0.7895033955574036, -0.25988370180130005, -0.24984967708587646, 0.2989104986190796, -0.7131253480911255, 0.8248713612556458, -0.8512136340141296, 0.7157283425331116, -0.651892364025116, 0.035417765378952026, -0.6032980680465698, 0.6757764220237732,...
func NewAPI(s server.VPServer, mux *http.ServeMux) API { api := API{s: s, mux: mux} mux.HandleFunc(v1Prefix+"quarantine", api.quarantineVPS) mux.HandleFunc(v1Prefix+"unquarantine", api.unquarantineVPS) mux.HandleFunc(v1Prefix+"quarantinealert", api.quarantineAlertVPS) return api }
[ -0.1547553837299347, -0.6413759589195251, 0.35219016671180725, 0.844738781452179, -0.9402464628219604, 0.46834900975227356, -0.7664977312088013, 0.09736377745866776, 0.1839459240436554, 0.388204962015152, -0.14546242356300354, 0.2074906975030899, 0.3356969654560089, -0.934813916683197, 0...
func NewFile(name string, node *dag.Node, parent childCloser, dserv dag.DAGService) (*File, error) { dmod, err := mod.NewDagModifier(context.Background(), node, dserv, chunk.DefaultSplitter) if err != nil { return nil, err } return &File{ dserv: dserv, parent: parent, name: name, mod: dmod, }, nil...
[ 0.255788117647171, 0.9234858155250549, 0.33243656158447266, -0.0796247199177742, -0.6170923113822937, -0.25614646077156067, 0.18683773279190063, 0.39611876010894775, -0.9191697835922241, -0.7670164108276367, 0.325000137090683, 0.5208182334899902, 0.3863407075405121, 0.5948634743690491, 0...
func (fi *File) Write(b []byte) (int, error) { fi.Lock() defer fi.Unlock() fi.hasChanges = true return fi.mod.Write(b) }
[ -1.1360758543014526, 0.465790718793869, 0.37813568115234375, 0.140480175614357, 0.8067366480827332, -0.5263259410858154, 0.9265943169593811, 0.8114298582077026, -0.7816697359085083, 0.04919595643877983, -0.32434558868408203, -0.2817705571651459, -1.0534870624542236, 0.9701558351516724, -...
func (fi *File) Read(b []byte) (int, error) { fi.Lock() defer fi.Unlock() return fi.mod.Read(b) }
[ -0.5153078436851501, 0.06480900198221207, 0.475632905960083, 0.08099391311407089, 0.129732146859169, 0.03207426890730858, 0.6080760359764099, 0.16781184077262878, -0.7471186518669128, -0.28034329414367676, 0.6082284450531006, 0.0331026054918766, -1.2757701873779297, 0.2356911450624466, 0...
func (fi *File) CtxReadFull(ctx context.Context, b []byte) (int, error) { fi.Lock() defer fi.Unlock() return fi.mod.CtxReadFull(ctx, b) }
[ 0.3558911979198456, -0.4225786328315735, 0.6857277154922485, 0.4807855784893036, -0.09716392308473587, 0.4866179823875427, -0.42475807666778564, -0.14585310220718384, 0.305570513010025, 0.1580532193183899, -0.01729114167392254, 0.24920666217803955, -0.24354954063892365, -0.6069294214248657...
func (fi *File) Close() error { fi.Lock() if fi.hasChanges { err := fi.mod.Sync() if err != nil { fi.Unlock() return err } fi.hasChanges = false // explicitly stay locked for flushUp call, // it will manage the lock for us return fi.flushUp() } fi.Unlock() return nil }
[ -0.5460219979286194, 0.15703782439231873, 0.725590169429779, 0.353587806224823, -0.0863448828458786, 0.08024977147579193, 0.6634632349014282, -0.20166289806365967, -0.9038436412811279, -0.6024454236030579, 0.6749172806739807, -0.19375930726528168, -0.9178431630134583, 0.8337410688400269, ...
func (fi *File) flushUp() error { nd, err := fi.mod.GetNode() if err != nil { fi.Unlock() return err } _, err = fi.dserv.Add(nd) if err != nil { fi.Unlock() return err } //name := fi.name //parent := fi.parent // explicit unlock *only* before closeChild call fi.Unlock() return nil //return parent...
[ -1.0124483108520508, 0.5286566019058228, 1.0564026832580566, -0.2446707785129547, -0.6303969025611877, 0.10233484208583832, 1.0675784349441528, 0.11398684233427048, -0.05293916165828705, -0.08565287292003632, 0.05849961191415787, 0.131727397441864, -0.7315582036972046, 0.1253672093153, 0...
func (fi *File) Sync() error { fi.Lock() defer fi.Unlock() return fi.mod.Sync() }
[ -0.32014602422714233, -0.2360534518957138, 0.22628480195999146, 0.4964383542537689, 0.08306250721216202, -0.5061545968055725, -0.09280187636613846, -0.9374147057533264, -1.311185359954834, 0.1487249732017517, 0.18287363648414612, 0.5056852102279663, 0.018116120249032974, 0.5080609321594238...
func (fi *File) WriteAt(b []byte, at int64) (int, error) { fi.Lock() defer fi.Unlock() fi.hasChanges = true return fi.mod.WriteAt(b, at) }
[ -1.425481915473938, -0.9362602829933167, 0.4014774560928345, -1.042933464050293, 0.475273460149765, -0.5275165438652039, 0.0019709656480699778, -0.32823923230171204, -1.2023818492889404, -0.1297089159488678, -0.02038673497736454, 0.01613839715719223, -0.1936200112104416, 0.2205361872911453...
func (fi *File) Size() (int64, error) { fi.Lock() defer fi.Unlock() return fi.mod.Size() }
[ -0.6962228417396545, 0.5681430697441101, 0.3059660792350769, 0.016924675554037094, 0.12889614701271057, -0.47516050934791565, 0.8824331164360046, -0.1336812674999237, -1.0443575382232666, -0.38146236538887024, 0.38995441794395447, -0.051912497729063034, -0.9415339231491089, 0.4442831277847...
func (fi *File) GetNode() (*dag.Node, error) { fi.Lock() defer fi.Unlock() return fi.mod.GetNode() }
[ -0.028369726613163948, 0.7760009765625, 0.4147503972053528, 0.5854566693305969, 0.7734835743904114, -0.8125141859054565, 0.7309977412223816, 0.524785578250885, -0.2970878481864929, -0.7609682083129883, 0.9564263224601746, 0.7842035889625549, -0.5165363550186157, 0.11904479563236237, 0.57...
func (fi *File) Truncate(size int64) error { fi.Lock() defer fi.Unlock() fi.hasChanges = true return fi.mod.Truncate(size) }
[ 0.05086183547973633, 0.7194889783859253, 0.44089049100875854, -0.23752616345882416, 0.06156653165817261, -0.7626665830612183, 0.48154300451278687, -0.23659072816371918, -0.3179035782814026, -0.4005459249019623, -0.3131219744682312, -0.06208638474345207, -1.1467640399932861, 0.3136349916458...
func (fi *File) Type() NodeType { return TFile }
[ -0.28223326802253723, -0.12420938909053802, 0.3012807071208954, -0.8277354836463928, 0.9074697494506836, 0.36929863691329956, 0.9404931664466858, -0.44382110238075256, -1.0747710466384888, -0.1242159754037857, 0.5745651125907898, 0.5746275186538696, -0.31607070565223694, 0.5733621716499329...
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client { return &Client{ NewDoer: doer, AddDoer: doer, EnqueueDoer: doer, StatusDoer: doer, Nex...
[ 0.16669856011867523, -0.45132988691329956, 0.4670034646987915, -0.08250602334737778, -0.5194028615951538, -0.12450264394283295, 0.509077787399292, -0.8451570868492126, 0.20981451869010925, -0.7217022776603699, -0.17597609758377075, 0.8063129782676697, 0.2024880200624466, 0.3515899479389190...
func (c *Client) New() goa.Endpoint { var ( decodeResponse = DecodeNewResponse(c.decoder, c.RestoreResponseBody) ) return func(ctx context.Context, v interface{}) (interface{}, error) { req, err := c.BuildNewRequest(ctx, v) if err != nil { return nil, err } resp, err := c.NewDoer.Do(req) if err != nil...
[ -0.3295719623565674, -1.0005611181259155, 0.525094747543335, 0.3943886458873749, -0.18773965537548065, -0.5595378875732422, 0.24835205078125, -0.17608840763568878, -0.08877287805080414, -0.3199319541454315, -0.5842168927192688, 0.32502830028533936, -0.8529222011566162, 0.2537190020084381, ...
func (c *Client) Add() goa.Endpoint { var ( encodeRequest = EncodeAddRequest(c.encoder) decodeResponse = DecodeAddResponse(c.decoder, c.RestoreResponseBody) ) return func(ctx context.Context, v interface{}) (interface{}, error) { req, err := c.BuildAddRequest(ctx, v) if err != nil { return nil, err } ...
[ -0.463031530380249, -0.8364790678024292, 0.6898189187049866, 0.5640156269073486, 0.15059082210063934, -0.12364634871482849, 0.008721485733985901, 0.024273129180073738, 0.688752293586731, 0.10290957242250443, -0.5253880023956299, 0.7311336994171143, -1.7367067337036133, 0.05443703755736351,...
func (c *Client) Enqueue() goa.Endpoint { var ( decodeResponse = DecodeEnqueueResponse(c.decoder, c.RestoreResponseBody) ) return func(ctx context.Context, v interface{}) (interface{}, error) { req, err := c.BuildEnqueueRequest(ctx, v) if err != nil { return nil, err } resp, err := c.EnqueueDoer.Do(req)...
[ -0.13913004100322723, -0.48084184527397156, 0.6290597915649414, 0.5454175472259521, 0.3262411952018738, -0.8322492837905884, 0.060336630791425705, 0.2266833633184433, 0.21524380147457123, -0.060252927243709564, -0.17737704515457153, 1.079712152481079, -1.4380971193313599, 0.067128516733646...
func (c *Client) Status() goa.Endpoint { var ( decodeResponse = DecodeStatusResponse(c.decoder, c.RestoreResponseBody) ) return func(ctx context.Context, v interface{}) (interface{}, error) { req, err := c.BuildStatusRequest(ctx, v) if err != nil { return nil, err } resp, err := c.StatusDoer.Do(req) i...
[ -0.17946717143058777, -1.075319528579712, 0.48703888058662415, 0.543228268623352, 0.3483871519565582, -0.5708423852920532, -0.03183611109852791, 0.5945451855659485, 0.6316031813621521, 0.015772026032209396, -0.8347986340522766, 0.7726845145225525, -1.1612026691436768, 0.14160305261611938, ...
func (c *Client) Next() goa.Endpoint { var ( decodeResponse = DecodeNextResponse(c.decoder, c.RestoreResponseBody) ) return func(ctx context.Context, v interface{}) (interface{}, error) { req, err := c.BuildNextRequest(ctx, v) if err != nil { return nil, err } resp, err := c.NextDoer.Do(req) if err !=...
[ -0.44759130477905273, -0.19906887412071228, 0.36305028200149536, 0.7869753241539001, -0.380643755197525, -0.5251628756523132, 0.07977347820997238, -0.0321311317384243, 0.7614104747772217, -0.3960728943347931, -0.41875627636909485, 1.0643980503082275, -1.221279501914978, -0.3478983044624328...
func (c *Client) Complete() goa.Endpoint { var ( encodeRequest = EncodeCompleteRequest(c.encoder) decodeResponse = DecodeCompleteResponse(c.decoder, c.RestoreResponseBody) ) return func(ctx context.Context, v interface{}) (interface{}, error) { req, err := c.BuildCompleteRequest(ctx, v) if err != nil { r...
[ -0.23288391530513763, -0.6288390159606934, 0.7984828948974609, 0.48835325241088867, -0.31710273027420044, -0.6597106456756592, 0.6622194647789001, -0.14788880944252014, 0.2109338641166687, 0.9557079076766968, -0.6603612899780273, 0.21177032589912415, -0.9975761771202087, -0.428765922784805...
func (s *Server) Add(servers ...*Server) { for _, srv := range servers { s.servers = append(s.servers, srv) } }
[ -1.3460454940795898, 0.06336186826229095, 0.11712505668401718, 0.31696560978889465, 1.1280341148376465, 1.2125459909439087, -0.5437842011451721, 0.06914274394512177, 0.8140654563903809, -0.21247383952140808, -0.7184119820594788, 0.5336818099021912, -0.7783799171447754, 1.101100206375122, ...
func (*Attachment) Descriptor() ([]byte, []int) { return file_google_cloud_support_v2_attachment_proto_rawDescGZIP(), []int{0} }
[ -0.8240020871162415, -0.044795818626880646, 0.5627416968345642, 0.019007300958037376, -0.5835828185081482, 0.11577987670898438, 0.420011430978775, -0.07382635027170181, -0.14509491622447968, -0.21208444237709045, -0.11430400609970093, 0.031648214906454086, 0.41804417967796326, 0.4195622801...
func NewMockNuvoVM(ctrl *gomock.Controller) *MockNuvoVM { mock := &MockNuvoVM{ctrl: ctrl} mock.recorder = &MockNuvoVMMockRecorder{mock} return mock }
[ 0.03261923789978027, 0.699461817741394, 0.20066528022289276, 1.1137057542800903, 0.893583357334137, 0.19226112961769104, 0.19176341593265533, 0.0638456791639328, 0.4922525882720947, -0.06997860968112946, -0.1913025826215744, -0.20492061972618103, -0.023948676884174347, 0.24659135937690735,...
func (m *MockNuvoVM) EXPECT() *MockNuvoVMMockRecorder { return m.recorder }
[ 0.3210235834121704, 0.6901589035987854, 0.20198597013950348, 0.347046434879303, 0.3886861503124237, 0.3290475308895111, -0.24131882190704346, 0.048047684133052826, 0.4294508397579193, -0.16012834012508392, 0.8116115927696228, 0.9472734332084656, -0.8662830591201782, 0.4478340446949005, -...
func (m *MockNuvoVM) AllocCache(arg0 string, arg1 uint64) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AllocCache", arg0, arg1) ret0, _ := ret[0].(error) return ret0 }
[ 0.8988309502601624, 0.825322151184082, 0.6533010601997375, 0.670386552810669, 0.5536156892776489, 0.5590817928314209, 0.5307319760322571, 0.0027128723450005054, 0.18717160820960999, -0.2265474945306778, 0.48885270953178406, -1.202014684677124, -1.254395842552185, 0.9455059766769409, 1.03...
func (mr *MockNuvoVMMockRecorder) AllocCache(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllocCache", reflect.TypeOf((*MockNuvoVM)(nil).AllocCache), arg0, arg1) }
[ 0.8157236576080322, 1.224263072013855, 0.41073936223983765, 0.5907723903656006, -0.27975744009017944, 0.27604353427886963, -0.4278464615345001, -0.7979916334152222, 1.2251296043395996, 0.9626728296279907, 1.3733943700790405, 0.023741494864225388, -1.0118858814239502, 1.036393165588379, 0...
func (m *MockNuvoVM) AllocParcels(arg0, arg1 string, arg2 uint64) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AllocParcels", arg0, arg1, arg2) ret0, _ := ret[0].(error) return ret0 }
[ 0.22161242365837097, 0.25460758805274963, 0.8080087900161743, -0.039228521287441254, -0.005003209225833416, 0.6460111141204834, 0.10714025050401688, -0.7425549030303955, -0.2816021740436554, -0.21786059439182281, 0.12650829553604126, -1.011916160583496, -1.1896083354949951, 0.3876246213912...
func (mr *MockNuvoVMMockRecorder) AllocParcels(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllocParcels", reflect.TypeOf((*MockNuvoVM)(nil).AllocParcels), arg0, arg1, arg2) }
[ 0.2692285478115082, 0.7700210809707642, 0.5933003425598145, -0.0386320985853672, -0.5526087880134583, 0.5713064074516296, -1.0911335945129395, -1.1362485885620117, 0.38378024101257324, 0.727754533290863, 0.9290498495101929, 0.09182185679674149, -0.7599225044250488, 0.4286421239376068, -0...
func (m *MockNuvoVM) CloseDevice(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CloseDevice", arg0) ret0, _ := ret[0].(error) return ret0 }
[ -1.5705305337905884, 0.1617709845304489, 0.13449542224407196, 0.7731544971466064, 0.8293638229370117, 1.022156000137329, 1.1399356126785278, -0.4196905195713043, -0.5855525732040405, -0.9303117394447327, 0.6132091283798218, -0.5884546637535095, -1.2842389345169067, 1.8806229829788208, 1....
func (mr *MockNuvoVMMockRecorder) CloseDevice(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseDevice", reflect.TypeOf((*MockNuvoVM)(nil).CloseDevice), arg0) }
[ -1.072152853012085, 0.783994734287262, 0.029236989095807076, 0.4436016082763672, -0.0979006215929985, 1.0674575567245483, -0.11759393662214279, -0.7662914395332336, 0.40590721368789673, -0.28571122884750366, 1.566162347793579, 0.5179064273834229, -1.2868252992630005, 1.568153738975525, 0...
func (m *MockNuvoVM) CloseVol(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CloseVol", arg0) ret0, _ := ret[0].(error) return ret0 }
[ -0.5789076685905457, -0.7641956210136414, 0.15934698283672333, 0.3747415840625763, 0.5333356857299805, 0.8974241018295288, 1.0067501068115234, -0.17163953185081482, -0.8817861676216125, -0.32808977365493774, 0.32896170020103455, -0.6800330281257629, -0.7486671805381775, 1.2386982440948486,...