text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (c *Client) NewListUserRequest(ctx context.Context, path string, name string) (*http.Request, error) { scheme := c.Scheme if scheme == "" { scheme = "http" } u := url.URL{Host: c.Host, Scheme: scheme, Path: path} values := u.Query() values.Set("name", name) u.RawQuery = values.Encode() req, err := http.N...
[ -0.7670295238494873, -0.4488266706466675, 0.7621467113494873, 0.07333703339099884, -1.427733302116394, -0.8372780680656433, -1.0549718141555786, -0.05917244404554367, -0.005355691071599722, 0.05047657713294029, -0.9913469552993774, 1.069582223892212, -0.3974793255329132, 0.2566458582878113...
func ShowUserPath(id interface{}) string { param0 := fmt.Sprintf("%v", id) return fmt.Sprintf("/users/%s", param0) }
[ -0.04663966968655586, 0.1388891190290451, 0.1724642962217331, 0.2955828309059143, -1.2673225402832031, 0.28481152653694153, 1.1308397054672241, -0.030159302055835724, 0.43846040964126587, 0.14077505469322205, 0.4221785366535187, 0.38665542006492615, -0.34553006291389465, 0.9609575867652893...
func (c *Client) NewShowUserRequest(ctx context.Context, path string) (*http.Request, error) { scheme := c.Scheme if scheme == "" { scheme = "http" } u := url.URL{Host: c.Host, Scheme: scheme, Path: path} req, err := http.NewRequest("GET", u.String(), nil) if err != nil { return nil, err } return req, nil }
[ -0.3993580639362335, 0.2179516702890396, 0.6486473083496094, -0.00401781452819705, -1.7028080224990845, -0.6185610294342041, 0.24991704523563385, -0.042048800736665726, 0.11334450542926788, -0.2845258414745331, 0.1609366536140442, 1.668704628944397, 0.21295353770256042, 0.3866296410560608,...
func UpdateUserPath(id interface{}) string { param0 := fmt.Sprintf("%v", id) return fmt.Sprintf("/users/%s", param0) }
[ -1.1538089513778687, -0.7966898083686829, 0.3369982838630676, 0.5472521185874939, -0.9999895095825195, 0.4656899571418762, 0.946972131729126, -0.34027624130249023, 0.3978325426578522, 0.5498833656311035, -0.38802623748779297, 0.19089485704898834, -1.0480115413665771, 0.55826336145401, -0...
func (c *Client) NewUpdateUserRequest(ctx context.Context, path string, payload *UpdateUserPayload, contentType string) (*http.Request, error) { var body bytes.Buffer if contentType == "" { contentType = "*/*" // Use default encoder } err := c.Encoder.Encode(payload, &body, contentType) if err != nil { return ...
[ -0.8997654914855957, -0.7515723705291748, 0.8689365386962891, 0.16138607263565063, -1.673387050628662, -0.6080922484397888, -0.018650086596608162, -0.6439553499221802, -0.3847494423389435, 0.5262467861175537, -0.08161227405071259, 0.9366543889045715, -0.5417483448982239, 0.4909231066703796...
func (t Tuple) Pack() []byte { buf := new(bytes.Buffer) for i, e := range t { switch e := e.(type) { case nil: buf.WriteByte(0x00) case int64: encodeInt(buf, e) case uint32: encodeInt(buf, int64(e)) case uint64: encodeInt(buf, int64(e)) case int: encodeInt(buf, int64(e)) case byte: en...
[ -1.0813779830932617, 0.35566315054893494, 0.7643445730209351, -0.0667780339717865, 0.29772722721099854, 0.2702180743217468, -0.30021095275878906, -0.7011784315109253, -0.06744790077209473, 0.35670435428619385, -0.28028106689453125, -0.686623215675354, -0.09435437619686127, -0.0895926877856...
func Unpack(b []byte) (Tuple, error) { var t Tuple var i int for i < len(b) { var el interface{} var off int switch { case b[i] == 0x00: el = nil off = 1 case b[i] == 0x01: el, off = decodeBytes(b[i:]) case b[i] == 0x02: el, off = decodeString(b[i:]) case 0x0c <= b[i] && b[i] <= 0x1c: ...
[ -1.1683429479599, -0.09891298413276672, 0.9450299739837646, 0.2611236870288849, -0.23462331295013428, -0.4526851773262024, 0.06232328340411186, 0.1991335153579712, 0.19017821550369263, 0.3155317008495331, -0.19248509407043457, -0.867895781993866, -0.4498957693576813, -0.20374687016010284, ...
func (t Tuple) LexKey() lex.Key { return t.Pack() }
[ -0.07956153154373169, 0.8024117350578308, 0.14727634191513062, 0.19727416336536407, 0.7389141917228699, 0.6377060413360596, -1.621493935585022, -0.17585532367229462, -0.2813595235347748, 1.0296555757522583, -0.625785768032074, -0.8019084930419922, -0.18217797577381134, -1.0894598960876465,...
func (t Tuple) LexRangeKeys() (lex.KeyConvertible, lex.KeyConvertible) { p := t.Pack() return lex.Key(concat(p, 0x00)), lex.Key(concat(p, 0xFF)) }
[ -0.9003719091415405, 0.11565713584423065, 0.23442286252975464, -0.5216594934463501, 0.2583519518375397, 0.031127242371439934, -1.0896896123886108, -0.45760878920555115, -0.6380305886268616, 0.6457799077033997, -0.629629373550415, -0.8718404769897461, -0.10553114116191864, -1.03564858436584...
func (t Tuple) LexRangeKeySelectors() (lex.Selectable, lex.Selectable) { b, e := t.LexRangeKeys() return lex.FirstGreaterOrEqual(b), lex.FirstGreaterOrEqual(e) }
[ -1.6687978506088257, -0.6821814775466919, 0.2462451308965683, 0.018511923030018806, 0.6730800271034241, -0.5114426016807556, -0.27347955107688904, -0.7625860571861267, -0.2668778896331787, 0.2796899676322937, -0.34518271684646606, -0.6344360113143921, -0.12409941107034683, -0.3801335096359...
func GetCurrentSysClock(instructionData reflect.Value, finished chan bool) int { fmt.Println("FIBER INFO: Getting sys clock...") h, m, s := time.Now().Clock() variable.SetVariable(instructionData.FieldByName("HoursOutput").Interface().(string), h) variable.SetVariable(instructionData.FieldByName("MinutesOutput").I...
[ -0.5134744644165039, 0.146882101893425, 0.47829028964042664, 0.02631315402686596, -0.5536581873893738, -1.1481026411056519, 1.419930338859558, -0.11722414940595627, -1.6100033521652222, -0.14969168603420258, -0.6202760934829712, 0.37467679381370544, -0.3606579005718231, 1.2309473752975464,...
func GetCurrentSysTime(instructionData reflect.Value, finished chan bool) int { fmt.Println("FIBER INFO: Getting sys time...") variable.SetVariable(instructionData.FieldByName("Output").Interface().(string), time.Now()) finished <- true return -1 }
[ -1.0463364124298096, 0.04410073533654213, 0.3676198422908783, 0.13487227261066437, -0.6463949084281921, -0.7683887481689453, 0.8242801427841187, -0.31228506565093994, -1.3912899494171143, 0.2915821075439453, -0.9164279699325562, 0.2605568766593933, -0.9986732602119446, 1.3762967586517334, ...
func subscribeSSE(transport *HTTPTransport, statuschan chan ServerStatus, errorchan chan error, untilNextOnly bool) error { ctx, cancel := context.WithCancel(context.Background()) events := make(chan *sseclient.Event) cancelled := false go func() { for { e := <-events if e == nil || e.Type == "open" { ...
[ 0.02738814800977707, -0.25616759061813354, 0.768107533454895, -0.20065250992774963, -0.7590904235839844, -0.5389171838760376, -0.6228222250938416, -0.00985574722290039, 0.12784990668296814, 0.1802603006362915, -0.5410401821136475, 0.7318156957626343, 0.15115374326705933, 0.6244187355041504...
func poll(transport *HTTPTransport, initialStatus ServerStatus, statuschan chan ServerStatus, errorchan chan error) { status := initialStatus statuschanPolling := make(chan ServerStatus) errorchanPolling := make(chan error) go pollUntilChange(transport, status, statuschanPolling, errorchanPolling) for { select {...
[ -0.6563416123390198, -0.1348612904548645, 0.6151504516601562, -0.1996890753507614, -0.4075850546360016, 0.4351128339767456, -0.5789699554443359, -0.576521635055542, -0.16631339490413666, 0.39898306131362915, -0.41319501399993896, 0.8838343024253845, 0.2815741300582886, 1.130373239517212, ...
func main() { i := 1 for i <= 10 { fmt.Println(i) i = i + 1 } }
[ -0.4374115765094757, 0.26339268684387207, 0.4604808986186981, -0.31235429644584656, 0.9875044226646423, 0.6016422510147095, 1.6501872539520264, -0.031378328800201416, -0.7887846231460571, -0.8650261163711548, -0.6280597448348999, 0.6064261198043823, -0.15815865993499756, -0.119397543370723...
func NewMusicDB(db *sql.DB) *MusicDB { return &MusicDB{database: db} }
[ 0.15562216937541962, 0.25352707505226135, 0.03392605111002922, 0.5258596539497375, -2.0377888679504395, 0.5300037264823914, -0.3734684884548187, -0.7873780727386475, 0.9303152561187744, 0.00423457333818078, -0.38717028498649597, 0.4528998136520386, -1.2022255659103394, 0.826882004737854, ...
func (in *BackupLocationMaintenance) DeepCopyInto(out *BackupLocationMaintenance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec in.Status.DeepCopyInto(&out.Status) return }
[ 0.640157163143158, -1.3721222877502441, 0.5364624261856079, -0.6863024234771729, -0.4479292929172516, 0.18068626523017883, 0.045433614403009415, 0.9809667468070984, -0.5549837946891785, -0.2293155938386917, -0.8281577825546265, 0.4750840663909912, 0.07773822546005249, -0.6631321310997009, ...
func (in *BackupLocationMaintenance) DeepCopy() *BackupLocationMaintenance { if in == nil { return nil } out := new(BackupLocationMaintenance) in.DeepCopyInto(out) return out }
[ -0.38073715567588806, -1.3861010074615479, 0.09801562130451202, -0.27008646726608276, 0.508768618106842, -0.21561990678310394, 0.3611827790737152, 0.35426419973373413, 0.9389320015907288, 0.30275312066078186, -0.6868264675140381, -0.871979296207428, -0.8401223421096802, -1.028753399848938,...
func (in *BackupLocationMaintenance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.3125428557395935, -0.9632426500320435, 0.5939448475837708, -0.4498753249645233, -0.43177616596221924, 0.43716996908187866, 0.8283112049102783, 0.67360919713974, -0.12469667196273804, -0.6014849543571472, -0.4870035946369171, -0.5612868070602417, 0.03488614410161972, -0.6006936430931091,...
func (in *BackupLocationMaintenanceList) DeepCopyInto(out *BackupLocationMaintenanceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]BackupLocationMaintenance, len(*in)) for i := range *in { (*in)[i].De...
[ 0.43152254819869995, -0.5703395009040833, 0.5324479937553406, -0.12820196151733398, -0.24010343849658966, 0.08506489545106888, -0.3658507466316223, 1.3346506357192993, -0.5076243877410889, 0.33952513337135315, -0.8915365934371948, -0.16753961145877838, 0.024417126551270485, -0.370069533586...
func (in *BackupLocationMaintenanceList) DeepCopy() *BackupLocationMaintenanceList { if in == nil { return nil } out := new(BackupLocationMaintenanceList) in.DeepCopyInto(out) return out }
[ -0.027993416413664818, -0.996128499507904, 0.09585339576005936, 0.08117154240608215, 0.494213342666626, -0.265296995639801, -0.048171624541282654, 0.9549371004104614, 0.3877306580543518, 0.5358825922012329, -1.015716552734375, -1.0399236679077148, -0.09097488224506378, -0.5372649431228638,...
func (in *BackupLocationMaintenanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.44590696692466736, -0.8500852584838867, 0.5572564601898193, -0.18751046061515808, -0.28656965494155884, 0.41566309332847595, 0.6123798489570618, 0.9763238430023193, -0.12824368476867676, -0.14228874444961548, -1.0435892343521118, -0.7984687089920044, 0.22617316246032715, -0.213134452700...
func (in *BackupLocationMaintenanceSpec) DeepCopyInto(out *BackupLocationMaintenanceSpec) { *out = *in return }
[ 1.33665132522583, -0.545943558216095, 0.4541700780391693, -1.1644989252090454, -0.38100430369377136, 0.20013879239559174, 0.06425867974758148, 1.0755596160888672, -0.9218994379043579, -0.07387688010931015, 0.02685762383043766, 0.5344270467758179, 0.3271583318710327, -0.4402959942817688, ...
func (in *BackupLocationMaintenanceSpec) DeepCopy() *BackupLocationMaintenanceSpec { if in == nil { return nil } out := new(BackupLocationMaintenanceSpec) in.DeepCopyInto(out) return out }
[ 0.6293780207633972, -0.8790946006774902, 0.3790648579597473, -0.969096839427948, 0.19940584897994995, 0.03198027238249779, 0.18845224380493164, 0.42317232489585876, 0.06969615817070007, 0.4781590700149536, 0.4356381595134735, -0.14672446250915527, 0.32382142543792725, -0.44417619705200195,...
func (in *BackupLocationMaintenanceStatus) DeepCopyInto(out *BackupLocationMaintenanceStatus) { *out = *in if in.FullMaintenanceRepoStatus != nil { in, out := &in.FullMaintenanceRepoStatus, &out.FullMaintenanceRepoStatus *out = make(map[string]RepoMaintenanceStatus, len(*in)) for key, val := range *in { (*ou...
[ 0.7842699289321899, -0.8183947205543518, 0.35243383049964905, -0.9667071104049683, -0.6091193556785583, 0.24894089996814728, -0.7241280674934387, 0.9380170106887817, -0.7727848887443542, -0.31279441714286804, -0.394502192735672, 0.36877527832984924, -0.055317800492048264, -0.45299232006073...
func (in *BackupLocationMaintenanceStatus) DeepCopy() *BackupLocationMaintenanceStatus { if in == nil { return nil } out := new(BackupLocationMaintenanceStatus) in.DeepCopyInto(out) return out }
[ 0.5905860066413879, -0.9856857657432556, -0.27321070432662964, -0.8152940273284912, -0.006010551005601883, -0.0553591288626194, -0.35518696904182434, 0.20312505960464478, 0.5103702545166016, 0.055210553109645844, -0.41081464290618896, -0.42593586444854736, -0.26902928948402405, -0.49723690...
func (in *DataExport) DeepCopyInto(out *DataExport) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec out.Status = in.Status return }
[ 0.517753541469574, -0.41530340909957886, 0.545227587223053, 0.11633482575416565, -0.8843321800231934, 0.5074524283409119, -0.015183932147920132, 1.112041711807251, -0.678427517414093, -0.628261148929596, -0.8300420641899109, 1.5423494577407837, 0.565494179725647, -0.48423391580581665, -0...
func (in *DataExport) DeepCopy() *DataExport { if in == nil { return nil } out := new(DataExport) in.DeepCopyInto(out) return out }
[ 0.299199640750885, 0.8263070583343506, 0.18823686242103577, 0.8432922959327698, -0.7354934811592102, -0.0797588974237442, 0.5328784584999084, 0.41241368651390076, 0.45594388246536255, -0.8467989563941956, -1.2694860696792603, 0.6577407121658325, -0.6348344087600708, -0.2768506705760956, ...
func (in *DataExport) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ 0.21451610326766968, 0.08576978743076324, 0.6189412474632263, 0.5131128430366516, -0.8432538509368896, 0.4611682891845703, 0.9235352277755737, 0.40944063663482666, 0.09494694322347641, -0.7942662835121155, -0.5322032570838928, 0.2705775201320648, 0.10499179363250732, -0.48865315318107605, ...
func (in *DataExportList) DeepCopyInto(out *DataExportList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]DataExport, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return }
[ 0.049714505672454834, 0.08697055280208588, 0.5756849646568298, 0.6542673707008362, -0.6572888493537903, 0.06720683723688126, -0.1506456434726715, 1.1074607372283936, -0.2835085690021515, 0.20801527798175812, -1.1074988842010498, 0.6637775897979736, 0.07487842440605164, -0.06877455115318298...
func (in *DataExportList) DeepCopy() *DataExportList { if in == nil { return nil } out := new(DataExportList) in.DeepCopyInto(out) return out }
[ -0.02779260277748108, 0.5064969062805176, 0.1578981578350067, 1.1387979984283447, -0.3715418577194214, -0.15571409463882446, 0.22533312439918518, 0.48061105608940125, 0.736753523349762, 0.46686094999313354, -1.4614454507827759, -0.3065634071826935, -0.08423357456922531, -0.1402953118085861...
func (in *DataExportList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.18675978481769562, 0.12772752344608307, 0.5782206654548645, 0.6552085876464844, -0.8322081565856934, 0.475536584854126, 0.8892340064048767, 0.5167890191078186, 0.26345333456993103, -0.2428741306066513, -0.9929507374763489, 0.03592219576239586, 0.00420432910323143, 0.020563196390867233, ...
func (in *DataExportObjectReference) DeepCopyInto(out *DataExportObjectReference) { *out = *in return }
[ 0.4119762182235718, -0.3561747968196869, 0.6002865433692932, -0.35786131024360657, -0.670921266078949, 0.4157457947731018, -0.05879329517483711, 0.7629203796386719, -0.4927312135696411, 0.004872425459325314, -0.4681938886642456, 1.4042842388153076, 0.01921652816236019, -1.1245875358581543,...
func (in *DataExportObjectReference) DeepCopy() *DataExportObjectReference { if in == nil { return nil } out := new(DataExportObjectReference) in.DeepCopyInto(out) return out }
[ -0.1146201491355896, -0.008044073358178139, 0.48196694254875183, 0.14876523613929749, -0.3176843523979187, -0.17499276995658875, 0.10760918259620667, 0.43998637795448303, 0.19743117690086365, 0.5018049478530884, -0.5971049070358276, 0.6520580053329468, -0.372997522354126, -1.17771863937377...
func (in *DataExportSpec) DeepCopyInto(out *DataExportSpec) { *out = *in out.Source = in.Source out.Destination = in.Destination return }
[ 0.6842918992042542, 0.10699249804019928, 0.5129344463348389, -0.6787827610969543, -0.8588635325431824, 0.18852747976779938, -0.0008032118785195053, 1.16960608959198, -0.9093743562698364, -0.12249359488487244, -0.4339678883552551, 1.626330018043518, 0.9499086141586304, -0.9554076194763184, ...
func (in *DataExportSpec) DeepCopy() *DataExportSpec { if in == nil { return nil } out := new(DataExportSpec) in.DeepCopyInto(out) return out }
[ 0.673492968082428, 0.7855333685874939, 0.15342813730239868, 0.1557644158601761, -0.6155714392662048, -0.1181926280260086, 0.5238102674484253, -0.16504348814487457, -0.05001627281308174, 0.4296211302280426, -0.2537550628185272, 0.6684134602546692, 0.2663596272468567, -0.7021406888961792, ...
func (in *ExportStatus) DeepCopyInto(out *ExportStatus) { *out = *in return }
[ 0.74491286277771, -0.21884261071681976, 0.39984673261642456, 0.21043848991394043, -1.171412706375122, 0.503368616104126, -0.39251670241355896, 1.063812494277954, -0.0717206597328186, -0.19050508737564087, -0.8837437629699707, 1.3653221130371094, 0.49833202362060547, -0.645539402961731, -...
func (in *ExportStatus) DeepCopy() *ExportStatus { if in == nil { return nil } out := new(ExportStatus) in.DeepCopyInto(out) return out }
[ 0.5116630792617798, 0.1991715431213379, 0.12582895159721375, 0.6665935516357422, -0.9679294228553772, 0.10740076750516891, 0.035620857030153275, -0.13320612907409668, 1.2394603490829468, 0.16182680428028107, -0.44422319531440735, 0.5444730520248413, -0.050241950899362564, -0.17578013241291...
func (in *RepoMaintenanceStatus) DeepCopyInto(out *RepoMaintenanceStatus) { *out = *in in.LastRunTimestamp.DeepCopyInto(&out.LastRunTimestamp) return }
[ 0.5009347200393677, -0.45422887802124023, 0.24599957466125488, -1.0079773664474487, -0.5137708783149719, 0.5538671016693115, -0.4627918601036072, 0.6730432510375977, -0.9636080265045166, 0.12264606356620789, -0.3125660717487335, 0.452718049287796, 0.3490757942199707, -0.7173159122467041, ...
func (in *RepoMaintenanceStatus) DeepCopy() *RepoMaintenanceStatus { if in == nil { return nil } out := new(RepoMaintenanceStatus) in.DeepCopyInto(out) return out }
[ -0.5470119118690491, -0.7217272520065308, -0.17113733291625977, -1.1287026405334473, -0.033205196261405945, 0.2646004855632782, -0.43191757798194885, 0.11400248855352402, -0.1916523426771164, 0.6122345924377441, -0.5160061120986938, -0.8281241655349731, 0.11323656886816025, -0.804550051689...
func (in *VolumeBackup) DeepCopyInto(out *VolumeBackup) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec out.Status = in.Status return }
[ 0.7267711162567139, -0.9626779556274414, 0.7214891314506531, 0.5661253333091736, -0.3758888840675354, -0.0204995796084404, -0.4685481786727905, 0.9343335032463074, -1.0853335857391357, 0.0946238785982132, -0.3704530894756317, 0.30448123812675476, 0.13859307765960693, -1.3138564825057983, ...
func (in *VolumeBackup) DeepCopy() *VolumeBackup { if in == nil { return nil } out := new(VolumeBackup) in.DeepCopyInto(out) return out }
[ -0.09492738544940948, -0.5110297203063965, 0.11793960630893707, 1.8879891633987427, 0.0430920273065567, -0.6350746154785156, -0.026858413591980934, 0.09028637409210205, 0.01028462965041399, 0.5408772826194763, 0.21372681856155396, -1.0109546184539795, -0.8635038733482361, -1.56462538242340...
func (in *VolumeBackup) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.05943590775132179, -0.6917837858200073, 0.7939647436141968, 0.8202295899391174, -0.4789774715900421, 0.19461245834827423, 0.6517850160598755, 0.2038905769586563, -0.44964733719825745, -0.28291720151901245, -0.19889740645885468, -0.7883337140083313, -0.17908138036727905, -1.2996126413345...
func (in *VolumeBackupDelete) DeepCopyInto(out *VolumeBackupDelete) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec out.Status = in.Status return }
[ 0.9706772565841675, -0.6221726536750793, 0.6197658181190491, 0.5275068283081055, -0.23088549077510834, -0.34455302357673645, -0.6249040961265564, 1.255761742591858, -0.7473559975624084, 0.18000467121601105, -0.04270152747631073, 0.4407826066017151, -0.18181779980659485, -1.6759077310562134...
func (in *VolumeBackupDelete) DeepCopy() *VolumeBackupDelete { if in == nil { return nil } out := new(VolumeBackupDelete) in.DeepCopyInto(out) return out }
[ 0.30278533697128296, 0.01340836938470602, -0.05831029638648033, 1.6152805089950562, 0.17453357577323914, -0.8705687522888184, -0.47222068905830383, 0.7953568696975708, 0.29576972126960754, 0.6585290431976318, 0.431770384311676, -0.9225733280181885, -0.9156219959259033, -1.826034426689148, ...
func (in *VolumeBackupDelete) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ 0.047490444034338, -0.7645595073699951, 0.6955709457397461, 0.8224794864654541, -0.0966135784983635, -0.036917805671691895, 0.5838334560394287, 0.5462021827697754, -0.22179722785949707, 0.0610557422041893, 0.0663035660982132, -0.3355451822280884, -0.14033666253089905, -1.4203052520751953, ...
func (in *VolumeBackupDeleteList) DeepCopyInto(out *VolumeBackupDeleteList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]VolumeBackupDelete, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]...
[ 0.25597670674324036, -0.4602867662906647, 0.6062821745872498, 0.6412075757980347, -0.06950317323207855, -0.2976188361644745, -0.42526325583457947, 1.064438819885254, -0.2555350661277771, 0.6504112482070923, -0.5034321546554565, -0.01031680591404438, 0.04387263208627701, -1.1362438201904297...
func (in *VolumeBackupDeleteList) DeepCopy() *VolumeBackupDeleteList { if in == nil { return nil } out := new(VolumeBackupDeleteList) in.DeepCopyInto(out) return out }
[ -0.43949684500694275, -0.4334626793861389, -0.0002766739926300943, 1.5421793460845947, 0.02904028445482254, -0.5267802476882935, -0.2996061444282532, 0.9835129380226135, 0.8713054656982422, 0.7846448421478271, -0.31611597537994385, -1.1915210485458374, 0.008846219629049301, -1.096703648567...
func (in *VolumeBackupDeleteList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.5490366220474243, -0.665437638759613, 0.6083131432533264, 0.8431519269943237, -0.17627687752246857, -0.013915878720581532, 0.3870569169521332, 0.7554265260696411, 0.19087257981300354, 0.40266233682632446, -0.6575551629066467, -0.5769837498664856, 0.29749175906181335, -0.7255149483680725...
func (in *VolumeBackupDeleteSpec) DeepCopyInto(out *VolumeBackupDeleteSpec) { *out = *in return }
[ 1.4304659366607666, -0.040326327085494995, 0.5166987180709839, 0.28792381286621094, -0.031743187457323074, -0.3091217875480652, -0.24754823744297028, 1.532518982887268, -0.7561793327331543, 0.4422748386859894, 0.1721993386745453, 0.6229152083396912, 0.6723179221153259, -1.3402808904647827,...
func (in *VolumeBackupDeleteSpec) DeepCopy() *VolumeBackupDeleteSpec { if in == nil { return nil } out := new(VolumeBackupDeleteSpec) in.DeepCopyInto(out) return out }
[ 0.7545589804649353, -0.5207236409187317, 0.34356632828712463, 0.6220257878303528, 0.40798282623291016, -0.1940540224313736, -0.005852051079273224, 1.0289415121078491, 0.14533451199531555, 1.1610596179962158, 0.6793656349182129, 0.26032739877700806, 0.7059640884399414, -1.3757290840148926, ...
func (in *VolumeBackupDeleteStatus) DeepCopyInto(out *VolumeBackupDeleteStatus) { *out = *in return }
[ 1.1082590818405151, -0.31206226348876953, 0.34036338329315186, 0.535590648651123, -0.1388135701417923, -0.1872708946466446, -0.8122715950012207, 1.5004202127456665, -0.3527454137802124, -0.042291171848773956, -0.42937222123146057, 0.41447713971138, 0.17693880200386047, -1.1525168418884277,...
func (in *VolumeBackupDeleteStatus) DeepCopy() *VolumeBackupDeleteStatus { if in == nil { return nil } out := new(VolumeBackupDeleteStatus) in.DeepCopyInto(out) return out }
[ -0.05901533365249634, -0.7579234838485718, -0.12566415965557098, 0.8653245568275452, 0.5737134218215942, -0.03984124958515167, -0.6124627590179443, 1.0869232416152954, 0.5523289442062378, 0.5575659275054932, -0.17549550533294678, -0.003259046468883753, 0.00786411203444004, -1.0678949356079...
func (in *VolumeBackupList) DeepCopyInto(out *VolumeBackupList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]VolumeBackup, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return }
[ 0.22127261757850647, -0.49911874532699585, 0.7662895321846008, 0.8112800717353821, -0.3246719539165497, -0.0993778258562088, -0.4876200556755066, 0.867203950881958, -0.7515940070152283, 0.5879676342010498, -0.8489974141120911, -0.4453907310962677, -0.10345316678285599, -0.8267046809196472,...
func (in *VolumeBackupList) DeepCopy() *VolumeBackupList { if in == nil { return nil } out := new(VolumeBackupList) in.DeepCopyInto(out) return out }
[ -0.3256569802761078, -0.5314359664916992, 0.304155170917511, 1.7272744178771973, -0.04251035302877426, -0.3830853998661041, 0.03580286353826523, 0.2821424603462219, 0.12262699753046036, 1.0726110935211182, -1.0520083904266357, -1.5114253759384155, 0.012066944502294064, -1.098625659942627, ...
func (in *VolumeBackupList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ -0.3908190429210663, -0.5461872220039368, 0.6880834102630615, 0.7567823529243469, -0.39631760120391846, 0.3100306987762451, 0.5644105076789856, 0.24933956563472748, -0.49331915378570557, 0.2191966325044632, -0.9756861329078674, -0.9877663254737854, -0.010740081779658794, -0.649610877037048...
func (in *VolumeBackupSpec) DeepCopyInto(out *VolumeBackupSpec) { *out = *in out.BackupLocation = in.BackupLocation return }
[ 1.178903579711914, -0.8304405212402344, 0.6290067434310913, -0.25201916694641113, -0.4860270321369171, -0.09996259212493896, -0.19808371365070343, 1.0705604553222656, -0.7777886390686035, 0.2648659348487854, 0.05042853206396103, -0.04459478333592415, 0.7125601768493652, -1.3280935287475586...
func (in *VolumeBackupSpec) DeepCopy() *VolumeBackupSpec { if in == nil { return nil } out := new(VolumeBackupSpec) in.DeepCopyInto(out) return out }
[ 0.45853734016418457, -0.7213150262832642, 0.3870697021484375, 0.7860154509544373, -0.15751059353351593, -0.19355079531669617, 0.12753403186798096, 0.04407157376408577, -0.15062332153320312, 0.9971442222595215, 0.44451072812080383, -0.9366064071655273, 0.4811071455478668, -1.349158406257629...
func (in *VolumeBackupStatus) DeepCopyInto(out *VolumeBackupStatus) { *out = *in return }
[ 1.4503474235534668, -0.54444420337677, 0.3625815510749817, 0.5124949812889099, -0.7698452472686768, -0.051519524306058884, -0.7133100032806396, 0.6945118308067322, -0.6838458776473999, -0.1812458038330078, -0.6195528507232666, -0.10404729098081589, 0.376045286655426, -1.289258360862732, ...
func (in *VolumeBackupStatus) DeepCopy() *VolumeBackupStatus { if in == nil { return nil } out := new(VolumeBackupStatus) in.DeepCopyInto(out) return out }
[ 0.37674450874328613, -0.7933382987976074, -0.06678882241249084, 0.8740124702453613, -0.29323887825012207, -0.44152897596359253, -0.298927903175354, 0.04091138020157814, 0.12436550855636597, 0.3445253074169159, -0.37112000584602356, -0.823439359664917, -0.0753014013171196, -1.18220257759094...
func NewStdOutTransport(cfg StdOutTransportConfig) Transport { return Transport{ Level: cfg.Level, Out: os.Stdout, } }
[ -0.4114505648612976, -1.1394884586334229, 0.1986374706029892, -0.3016836941242218, -1.0794336795806885, 0.427817702293396, 0.28968971967697144, -0.5383561253547668, -0.92350172996521, 0.10421163588762283, -1.4384287595748901, 0.24112257361412048, 0.25692349672317505, 0.5305815935134888, ...
func (kl *Kubelet) ListVolumesForPod(podUID types.UID) (map[string]volume.Volume, bool) { volumesToReturn := make(map[string]volume.Volume) podVolumes := kl.volumeManager.GetMountedVolumesForPod( volumetypes.UniquePodName(podUID)) for outerVolumeSpecName, volume := range podVolumes { // TODO: volume.Mounter coul...
[ -0.816519558429718, -1.0875420570373535, 0.5247052311897278, -0.6594143509864807, 0.06544632464647293, -0.6581397652626038, -1.2206571102142334, -1.0362000465393066, -0.028151633217930794, -0.3304764926433563, -0.08550655841827393, -0.5048995614051819, 0.1398192048072815, 0.397750705480575...
func (kl *Kubelet) ListBlockVolumesForPod(podUID types.UID) (map[string]volume.BlockVolume, bool) { volumesToReturn := make(map[string]volume.BlockVolume) podVolumes := kl.volumeManager.GetMountedVolumesForPod( volumetypes.UniquePodName(podUID)) for outerVolumeSpecName, volume := range podVolumes { // TODO: volu...
[ -0.8888739347457886, -0.8917152881622314, 0.6268969774246216, 0.10339651256799698, -0.08259540796279907, -0.6576985120773315, -1.1796656847000122, -1.079789400100708, -0.4619010090827942, -0.0811050534248352, -0.23000091314315796, -0.1855013221502304, -0.11781599372625351, 0.66129869222640...
func (kl *Kubelet) podVolumesExist(podUID types.UID) bool { if mountedVolumes := kl.volumeManager.GetPossiblyMountedVolumesForPod( volumetypes.UniquePodName(podUID)); len(mountedVolumes) > 0 { return true } // TODO: This checks pod volume paths and whether they are mounted. If checking returns error, podVolum...
[ -0.4723688066005707, -1.2726229429244995, 0.6771664023399353, -0.3108561933040619, 0.4002940058708191, -0.24584223330020905, -0.8746267557144165, -0.8512693047523499, 0.055295493453741074, 0.7709223628044128, -0.2840808629989624, -0.6139493584632874, -0.6537385582923889, -0.044333357363939...
func (kl *Kubelet) newVolumeMounterFromPlugins(spec *volume.Spec, pod *v1.Pod, opts volume.VolumeOptions) (volume.Mounter, error) { plugin, err := kl.volumePluginMgr.FindPluginBySpec(spec) if err != nil { return nil, fmt.Errorf("can't use volume plugins for %s: %v", spec.Name(), err) } physicalMounter, err := plu...
[ 0.12597019970417023, -1.9860670566558838, 0.186343714594841, -0.03698379546403885, 0.29259389638900757, -0.6916676163673401, -1.0799678564071655, -0.4125252962112427, 0.26048174500465393, -0.0982709527015686, 0.21185781061649323, 0.2945791184902191, -0.5480290651321411, 0.3392636179924011,...
func (kl *Kubelet) removeOrphanedPodVolumeDirs(uid types.UID) []error { orphanVolumeErrors := []error{} // If there are still volume directories, attempt to rmdir them volumePaths, err := kl.getPodVolumePathListFromDisk(uid) if err != nil { orphanVolumeErrors = append(orphanVolumeErrors, fmt.Errorf("orphaned pod...
[ -0.6464537978172302, -0.8519749045372009, 0.5956236124038696, 0.28908705711364746, -0.24522216618061066, 0.424780011177063, 0.3956746757030487, -0.6538671851158142, 0.3644542396068573, -0.3104744851589203, 0.5628213882446289, -0.3215401768684387, -0.18440483510494232, 0.06494109332561493, ...
func (kl *Kubelet) cleanupOrphanedPodDirs(pods []*v1.Pod, runningPods []*kubecontainer.Pod) error { allPods := sets.NewString() for _, pod := range pods { allPods.Insert(string(pod.UID)) } for _, pod := range runningPods { allPods.Insert(string(pod.ID)) } found, err := kl.listPodsFromDisk() if err != nil { ...
[ -0.515253484249115, -0.8711275458335876, 0.7302399277687073, 0.1111968606710434, -0.19018763303756714, 0.1568574607372284, 0.42574262619018555, -0.6257131099700928, 0.5361203551292419, -0.4895597994327545, 0.5077918767929077, -0.20774801075458527, -0.26253724098205566, 0.45656174421310425,...
func NewCleaner(storage Storage, cleanInterval time.Duration, stopChan chan bool) *Cleaner { return &Cleaner{storage, cleanInterval, stopChan} }
[ -0.07565771788358688, -0.8897309899330139, 0.28201594948768616, 0.43776050209999084, -1.3081775903701782, 0.6042346358299255, -0.5721433162689209, -0.537051796913147, -0.8501408100128174, -0.32662591338157654, -0.16568320989608765, 0.047151584178209305, -0.19310392439365387, 0.853925108909...
func (c *Cleaner) Clean() { CleanLoop: for { select { case <-time.Tick(c.CleanInterval): c.doClean() case <-c.StopChan: // Alternatively we can just return // log.Println("Cleaner stopped!") // return break CleanLoop } } log.Println("Cleaner stopped!") }
[ 0.147124782204628, -0.6332917213439941, 0.33923566341400146, -0.14853624999523163, -0.09910986572504044, 1.0878392457962036, 0.0991930142045021, -1.2314339876174927, -0.8462815880775452, 0.19506235420703888, 0.33090513944625854, 0.14218179881572723, -0.8957317471504211, 1.2211568355560303,...
func (c *Cleaner) Stop() { c.StopChan <- true }
[ -0.87136310338974, 0.12520261108875275, 0.0896468535065651, -0.49868524074554443, 0.7124702334403992, 1.327846646308899, 0.6256850361824036, 0.1428697407245636, -1.3765894174575806, -0.6646764874458313, -1.3528590202331543, 0.37432411313056946, -0.5710961818695068, 0.8661237955093384, 0....
func (c *Cleaner) doClean() { log.Println("Cleaning up") items := c.Storage.List() now := time.Now() for _, item := range items { if now.After(item.CreatedAt.Add(item.ExpireAfter)) { err := c.Storage.Delete(item.ShortID) if err != nil { log.Printf("Failed to clean up item with shortID: %s", item.ShortI...
[ 0.47487911581993103, -0.212193101644516, 0.8328089118003845, 0.04292521998286247, 0.35792601108551025, 0.1764049082994461, -0.09201055765151978, 0.5418763160705566, -0.15313205122947693, -0.23310397565364838, -0.2837321162223816, 0.09552659094333649, 0.6843664646148682, 0.6485465168952942,...
func putint(b []byte, i uint64) (size int) { switch { case i < (1 << 8): b[0] = byte(i) return 1 case i < (1 << 16): b[0] = byte(i >> 8) b[1] = byte(i) return 2 case i < (1 << 24): b[0] = byte(i >> 16) b[1] = byte(i >> 8) b[2] = byte(i) return 3 case i < (1 << 32): b[0] = byte(i >> 24) b[1] =...
[ -0.3673350512981415, 0.47871074080467224, 1.2243093252182007, -0.5841058492660522, -0.23897790908813477, -0.41043946146965027, 0.3642245829105377, -0.20011189579963684, -0.144822895526886, 0.6833057403564453, -1.0714693069458008, -0.17687520384788513, -0.9132553935050964, -0.66053640842437...
func newBuilder() balancer.Builder { return base.NewBalancerBuilder(Name, &rrPickerBuilder{}) }
[ 0.6029852628707886, -0.5132023692131042, 0.3166240453720093, 0.5140968561172485, -0.5538668632507324, 0.6147314310073853, 0.5037559866905212, -0.1261557936668396, 0.8560035824775696, -0.7159245014190674, -0.9156014919281006, -1.012927770614624, -0.5542065501213074, 0.810977041721344, 0.5...
func init() { rand.Seed(time.Now().UnixNano()) }
[ 0.3500710427761078, -0.1904304325580597, 0.6106269359588623, -0.1949213743209839, 0.3213644027709961, 1.0067514181137085, -0.032394763082265854, 0.7884777784347534, -0.2932552695274353, -0.33315524458885193, -0.656701922416687, 0.8827993273735046, 0.01779796928167343, 0.8177163004875183, ...
func (d *Distro) GenerateName() string { // gceMaxNameLength is the maximum length of an instance name permitted by GCE. const gceMaxNameLength = 63 switch d.Provider { case evergreen.ProviderNameStatic: return "static" case evergreen.ProviderNameDocker: return fmt.Sprintf("container-%d", rand.New(rand.NewSou...
[ -0.8526657819747925, 0.3804227411746979, 0.8386075496673584, -0.5841042995452881, -0.38763299584388733, 0.7804470658302307, -0.7018789649009705, -0.28764671087265015, 0.034882865846157074, 1.2860503196716309, 0.14320850372314453, 0.11062291264533997, 0.2786647379398346, 0.4660031199455261,...
func (d *Distro) ExecutableSubPath() string { return filepath.Join(d.Arch, d.BinaryName()) }
[ 0.2847513258457184, 0.5225663185119629, 0.4297941029071808, 0.3529028296470642, -0.6382485628128052, 1.363211750984192, 0.25819292664527893, -0.07141295820474625, -0.5052458643913269, -0.34459346532821655, -0.2925772964954376, 0.08295761048793793, 0.4956362545490265, -0.0657329186797142, ...
func (d *Distro) IsParent(s *evergreen.Settings) bool { if s == nil { var err error s, err = evergreen.GetConfig() if err != nil { grip.Critical("error retrieving settings object") return false } } for _, p := range s.ContainerPools.Pools { if d.Id == p.Distro { return true } } return false }
[ -0.738899827003479, 0.3039538860321045, 0.3725670278072357, 0.019262537360191345, 0.2546287477016449, 0.2326475977897644, 0.26159796118736267, -1.266282081604004, 0.00846494548022747, 0.4948693513870239, 0.35979825258255005, 0.4296899139881134, 0.07118287682533264, 0.03167765960097313, -...
func ValidateContainerPoolDistros(s *evergreen.Settings) error { catcher := grip.NewSimpleCatcher() for _, pool := range s.ContainerPools.Pools { d, err := FindOne(ById(pool.Distro)) if err != nil { catcher.Add(fmt.Errorf("error finding distro for container pool %s", pool.Id)) } if d.ContainerPool != "" {...
[ -0.15706053376197815, -0.16550330817699432, 0.42584502696990967, -0.008320420980453491, 0.6559305787086487, 0.7513079643249512, 0.6004608869552612, -0.3835933804512024, -0.43497076630592346, -0.15138351917266846, 0.10425880551338196, -0.37203681468963623, -0.033246029168367386, 0.487613379...
func (distros DistroGroup) GetDistroIds() []string { var ids []string for _, d := range distros { ids = append(ids, d.Id) } return ids }
[ 0.1460682451725006, 0.5393636226654053, 0.3975463807582855, 0.26507318019866943, 0.45666229724884033, 0.7239631414413452, -0.7784574627876282, 0.5196056365966797, 0.38707098364830017, 0.24078036844730377, -0.1662013828754425, 0.6701442003250122, -0.4636360704898834, 0.5956294536590576, -...
func main() { // To declare and assign a value within a function // use the short declaration operator. v := 2 fmt.Println(o, v) }
[ 0.8536403775215149, -1.0881158113479614, 0.5043312311172485, 0.5761633515357971, -0.1529475301504135, -0.31270599365234375, 1.2561366558074951, 0.5369092226028442, -0.24312804639339447, -0.3624236285686493, 0.0678820088505745, 1.7637585401535034, 1.0984605550765991, 0.14001627266407013, ...
func (driver *Driver) Mount(volumeName, volumeID string, overwriteFs bool, newFsType string) (string, error) { if volumeName == "" && volumeID == "" { return "", errors.New("Missing volume name or ID") } instances, err := driver.sdm.GetInstance() if err != nil { return "", err } switch { case len(instances...
[ 0.13738983869552612, -0.6501875519752502, 1.0034897327423096, 0.34208944439888, -0.058449435979127884, -1.0393162965774536, -0.49078062176704407, -1.0485172271728516, -0.015796925872564316, 0.7275410294532776, 1.3906140327453613, 0.4319710433483124, -0.6963445544242859, 0.5636972784996033,...
func (driver *Driver) Unmount(volumeName, volumeID string) error { if volumeName == "" && volumeID == "" { return errors.New("Missing volume name or ID") } instances, err := driver.sdm.GetInstance() if err != nil { return err } switch { case len(instances) == 0: return errors.New("No instances") case le...
[ 0.21260584890842438, -0.7001187801361084, 1.0473772287368774, 0.03609731048345566, -0.12507377564907074, -1.0229500532150269, -0.4467705190181732, -0.051684193313121796, 0.16024437546730042, 0.5528384447097778, 0.7976754903793335, 0.11271627247333527, -0.6061320900917053, 0.101149171590805...
func (driver *Driver) Path(volumeName, volumeID string) (string, error) { if volumeName == "" && volumeID == "" { return "", errors.New("Missing volume name or ID") } instances, err := driver.sdm.GetInstance() if err != nil { return "", err } switch { case len(instances) == 0: return "", errors.New("No i...
[ 0.16451480984687805, -0.972233772277832, 1.015343427658081, 0.12302254885435104, -0.7527713775634766, -0.2832241952419281, -0.06805214285850525, -1.21132493019104, -0.25074291229248047, 1.1948943138122559, 1.081803321838379, -0.2833670377731323, -0.8338560461997986, -0.05911018326878548, ...
func (driver *Driver) Create(volumeName string, volumeOpts volume.VolumeOpts) error { if volumeName == "" { return errors.New("Missing volume name") } instances, err := driver.sdm.GetInstance() if err != nil { return err } switch { case len(instances) == 0: return errors.New("No instances") case len(ins...
[ 0.03462987020611763, -0.2751489579677582, 0.813734769821167, 0.6109691262245178, 0.9163508415222168, -0.7897276878356934, -0.6881678104400635, -0.5155805945396423, -0.28495800495147705, 0.5622798800468445, 0.5778998136520386, -0.38804471492767334, -0.5872604250907898, 0.012161090970039368,...
func (driver *Driver) Remove(volumeName string) error { if volumeName == "" { return errors.New("Missing volume name") } instances, err := driver.sdm.GetInstance() if err != nil { return err } switch { case len(instances) == 0: return errors.New("No instances") case len(instances) > 1: return errors.N...
[ -0.3792335093021393, -0.558311402797699, 0.8265259861946106, 0.37265950441360474, -0.19199231266975403, -1.0143572092056274, -0.31214001774787903, 0.7005732655525208, 0.41876107454299927, 0.5120803117752075, 0.6347942352294922, -0.5220676064491272, -1.2872536182403564, 0.33482807874679565,...
func (driver *Driver) Attach(volumeName, instanceID string) (string, error) { volumes, err := driver.sdm.GetVolume("", volumeName) if err != nil { return "", err } switch { case len(volumes) == 0: return "", errors.New("No volumes returned by name") case len(volumes) > 1: return "", errors.New("Multiple vo...
[ -0.7660545110702515, -0.7720410227775574, 1.0325669050216675, -0.6189244389533997, -0.482430636882782, 0.08164618164300919, -0.3856857419013977, -0.6338531374931335, -0.11838734894990921, 0.82729572057724, 0.7228976488113403, -0.028132732957601547, -0.593119204044342, 0.5452711582183838, ...
func (driver *Driver) Detach(volumeName, instanceID string) error { volume, err := driver.sdm.GetVolume("", volumeName) if err != nil { return err } return driver.sdm.DetachVolume(true, volume[0].VolumeID, instanceID) }
[ -0.06493599712848663, -0.5707282423973083, 0.4257226288318634, -0.04372550919651985, -0.14317771792411804, 0.2295798361301422, -0.4559187591075897, 0.08400842547416687, -0.06783439964056015, 0.8725143671035767, 0.11249230802059174, 0.47502997517585754, -1.0562539100646973, 0.14451965689659...
func (driver *Driver) NetworkName(volumeName, instanceID string) (string, error) { volumes, err := driver.sdm.GetVolume("", volumeName) if err != nil { return "", err } switch { case len(volumes) == 0: return "", errors.New("No volumes returned by name") case len(volumes) > 1: return "", errors.New("Multip...
[ -0.6587005853652954, -0.9382939338684082, 0.9351295828819275, -0.19061027467250824, -0.1234193667769432, -0.669963538646698, -0.2591564953327179, -0.45871222019195557, 0.023732678964734077, 0.6170632243156433, 0.44207459688186646, -0.2927534580230713, -0.22455154359340668, 0.45851731300354...
func newBlockMapFile(blkSize uint64, regFile regularFile) (*blockMapFile, error) { file := &blockMapFile{regFile: regFile} file.regFile.impl = file toFill := uint64(12) blksUsed := regFile.blksUsed(blkSize) if blksUsed < toFill { toFill = blksUsed } blkMap := regFile.inode.diskInode.Data() file.fileToPhysBl...
[ 0.11450450867414474, -0.2355184257030487, 0.7082893252372742, -0.11631413549184799, -0.45217883586883545, -0.06903254240751266, 1.1827058792114258, 0.551558256149292, -0.6973002552986145, 0.09511982649564743, -0.690852165222168, 0.08656863123178482, -0.8771969079971313, 0.01097910385578870...
func CreateTransactionService( metaDataService metadata.Service, chkBuilderFactory chunks.BuilderFactory, chkService chunks.Service, storedTrsBuilderFactory stored_transactions.TransactionBuilderFactory, ) trs.TransactionService { out := TransactionService{ metaDataService: metaDataService, chkBuilderF...
[ 0.505204975605011, -0.10404687374830246, 0.28071466088294983, -0.5724641680717468, 0.349031001329422, -0.4518757462501526, -0.2743953764438629, -0.5823045372962952, -0.09646303951740265, 0.17103002965450287, -0.12892019748687744, 0.38967570662498474, -0.22273744642734528, 0.151264861226081...
func (serv *TransactionService) Save(dirPath string, trs trs.Transaction) (stored_transactions.Transaction, error) { //build the chunks: jsData := trs.GetJSON() chks, chksErr := serv.chkBuilderFactory.Create().Create().WithData(jsData).Now() if chksErr != nil { return nil, chksErr } //save the chunks: chkDirP...
[ -0.08840859681367874, 0.10438518971204758, 0.5679610371589661, -0.8512982726097107, 0.6432576179504395, -0.6922509670257568, 0.024042228236794472, -0.5468616485595703, -0.4263744354248047, 0.27979356050491333, -0.5567177534103394, 0.3506728708744049, -0.04707644134759903, -0.41396266222000...
func (serv *TransactionService) SaveAll(dirPath string, trs []trs.Transaction) ([]stored_transactions.Transaction, error) { out := []stored_transactions.Transaction{} for _, oneTrs := range trs { oneObjDirPath := filepath.Join(dirPath, oneTrs.GetMetaData().GetID().String()) oneObj, oneObjErr := serv.Save(oneObjDi...
[ -0.9492161273956299, -0.17045162618160248, 0.7601318955421448, 0.7899811267852783, 0.5790283679962158, -0.4026417136192322, 0.027571676298975945, 0.15498507022857666, 0.052927929908037186, 0.8177100419998169, -0.542579174041748, -0.14561274647712708, -0.16940636932849884, 1.078310728073120...
func GetVolDetails(volName string, obj interface{}) error { addr := os.Getenv("MAPI_ADDR") if addr == "" { err := util.MAPIADDRNotSet fmt.Printf("error getting env variable: %v", err) return err } url := addr + "/latest/volumes/info/" + volName client := &http.Client{ Timeout: timeout, } resp, err := cl...
[ -0.04547898471355438, -0.8134560585021973, 1.2782660722732544, -0.45431557297706604, -0.2609791159629822, 0.4136705994606018, -0.9941588640213013, -0.3642781674861908, 0.046966422349214554, 0.21005071699619293, 0.1332624852657318, 1.011389136314392, -0.536206841468811, 0.45503664016723633,...
func (annotations *Annotations) GetVolAnnotations(volName string) error { var volume v1.Volume err := GetVolDetails(volName, &volume) if err != nil || volume.ObjectMeta.Annotations == nil { if volume.Status.Reason == "pending" { fmt.Println("VOLUME status Unknown to M_API server") } return err } for key, ...
[ -0.26385772228240967, -1.4061017036437988, 0.8231468796730042, -0.40480634570121765, 0.010457607917487621, -0.1167449802160263, -0.6781362295150757, 0.2596185803413391, 0.19495843350887299, 0.5209362506866455, -0.7961065769195557, 0.6165398955345154, -0.28648823499679565, 0.064742892980575...
func (t1 TTagSetList) ContainsAll(t2 TTagSetList) bool { if len(t2) == 0 { return true } for _, ts2 := range t2 { if len(t1) == 0 { return false } contained := false for _, ts1 := range t1 { if ts1.Contains(ts2) { contained = true break } } if !contained { return false } } retur...
[ -0.03547530993819237, 0.2713906168937683, 0.732364296913147, 0.8766581416130066, -0.694783627986908, 0.4044211804866791, -1.2378777265548706, -0.6484078764915466, -1.3852930068969727, 0.2940891683101654, -0.9491432309150696, 0.409759521484375, 0.12658174335956573, 1.00669527053833, -1.09...
func Default(v Value) Value { switch x := v.(type) { case *Vertex: return x.Default() case *Disjunction: return x.Default() default: return v } }
[ -0.2127995491027832, 0.7313847541809082, 0.21677184104919434, 0.9771313071250916, 0.20265552401542664, -0.1621709167957306, -0.012842440977692604, -0.032618165016174316, 0.7563616037368774, -0.0824839249253273, 0.02319236658513546, 0.1762886941432953, -0.025309592485427856, 0.3617778718471...
func (v *Vertex) Default() *Vertex { switch d := v.BaseValue.(type) { default: return v case *Disjunction: var w *Vertex switch d.NumDefaults { case 0: return v case 1: w = d.Values[0].Default() default: x := *v x.state = nil x.BaseValue = &Disjunction{ Src: d.Src, Values...
[ -0.31129223108291626, 0.16935083270072937, 0.3812291622161865, 0.3257180452346802, -0.10567736625671387, -0.2515326142311096, 0.5976327061653137, 0.7539730072021484, 0.6592298746109009, -0.8054354786872864, 0.08724372088909149, 0.36977583169937134, -0.08688140660524368, 0.10824978351593018...
func stripNonDefaults(elem Elem) (r Elem, stripped bool) { expr, ok := elem.(Expr) if !ok { return elem, false } switch x := expr.(type) { case *DisjunctionExpr: if !x.HasDefaults { return x, false } d := *x d.Values = []Disjunct{} for _, v := range x.Values { if v.Default { d.Values = append...
[ -0.8293394446372986, 0.10749433189630508, 0.6101237535476685, 0.4300103485584259, -0.6634047031402588, -0.3105704188346863, -0.04086986929178238, 0.16648156940937042, 0.061064500361680984, 0.27573713660240173, -0.600378692150116, -0.23033356666564941, -0.3110836446285248, 0.072248406708240...
func writeDocumentation(w *safeBuffer, docs []string, indent int) { if docs == nil || len(docs) == 0 { return } prefix := strings.Repeat(" ", indent) wrapper := utils.NewSimpleTextWrapper(79 - len(prefix)) lines := make([]string, 0, len(docs)*2) for _, paragraph := range docs { if len(lines) > 0 { lin...
[ -0.2680271565914154, 0.17070239782333374, 0.8603888750076294, -0.05521034821867943, 0.0669206827878952, -0.07856880873441696, 0.5005900263786316, 0.29563677310943604, 0.49137815833091736, 0.17499317228794098, 0.3439527451992035, 0.26318594813346863, -0.050981707870960236, 0.049149040132761...
func (o ConfigurationSetDeliveryOptionsOutput) SendingPoolName() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigurationSetDeliveryOptions) *string { return v.SendingPoolName }).(pulumi.StringPtrOutput) }
[ -0.30654698610305786, -0.0384615883231163, 0.5613635182380676, -0.3880387246608734, -0.8234749436378479, 1.497188687324524, 0.5303043723106384, 0.01091393269598484, 0.4195265471935272, 0.6666101813316345, -0.32791879773139954, 0.9427303075790405, 0.404671847820282, -0.6680998206138611, -...