id int32 0 167k | repo stringlengths 5 54 | path stringlengths 4 155 | func_name stringlengths 1 118 | original_string stringlengths 52 85.5k | language stringclasses 1
value | code stringlengths 52 85.5k | code_tokens list | docstring stringlengths 6 2.61k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 85 252 |
|---|---|---|---|---|---|---|---|---|---|---|---|
146,900 | nuagenetworks/vspk-go | vspk/webcategory.go | AssignWebDomainNames | func (o *WebCategory) AssignWebDomainNames(children WebDomainNamesList) *bambou.Error {
list := []bambou.Identifiable{}
for _, c := range children {
list = append(list, c)
}
return bambou.CurrentSession().AssignChildren(o, list, WebDomainNameIdentity)
} | go | func (o *WebCategory) AssignWebDomainNames(children WebDomainNamesList) *bambou.Error {
list := []bambou.Identifiable{}
for _, c := range children {
list = append(list, c)
}
return bambou.CurrentSession().AssignChildren(o, list, WebDomainNameIdentity)
} | [
"func",
"(",
"o",
"*",
"WebCategory",
")",
"AssignWebDomainNames",
"(",
"children",
"WebDomainNamesList",
")",
"*",
"bambou",
".",
"Error",
"{",
"list",
":=",
"[",
"]",
"bambou",
".",
"Identifiable",
"{",
"}",
"\n",
"for",
"_",
",",
"c",
":=",
"range",
... | // AssignWebDomainNames assigns the list of WebDomainNames to the WebCategory | [
"AssignWebDomainNames",
"assigns",
"the",
"list",
"of",
"WebDomainNames",
"to",
"the",
"WebCategory"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/webcategory.go#L125-L133 |
146,901 | nuagenetworks/vspk-go | vspk/gatewaytemplate.go | PortTemplates | func (o *GatewayTemplate) PortTemplates(info *bambou.FetchingInfo) (PortTemplatesList, *bambou.Error) {
var list PortTemplatesList
err := bambou.CurrentSession().FetchChildren(o, PortTemplateIdentity, &list, info)
return list, err
} | go | func (o *GatewayTemplate) PortTemplates(info *bambou.FetchingInfo) (PortTemplatesList, *bambou.Error) {
var list PortTemplatesList
err := bambou.CurrentSession().FetchChildren(o, PortTemplateIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"GatewayTemplate",
")",
"PortTemplates",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"PortTemplatesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"PortTemplatesList",
"\n",
"err",
":=",
"bambou",
"."... | // PortTemplates retrieves the list of child PortTemplates of the GatewayTemplate | [
"PortTemplates",
"retrieves",
"the",
"list",
"of",
"child",
"PortTemplates",
"of",
"the",
"GatewayTemplate"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/gatewaytemplate.go#L145-L150 |
146,902 | nuagenetworks/vspk-go | vspk/gatewaytemplate.go | CreatePortTemplate | func (o *GatewayTemplate) CreatePortTemplate(child *PortTemplate) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *GatewayTemplate) CreatePortTemplate(child *PortTemplate) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"GatewayTemplate",
")",
"CreatePortTemplate",
"(",
"child",
"*",
"PortTemplate",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"... | // CreatePortTemplate creates a new child PortTemplate under the GatewayTemplate | [
"CreatePortTemplate",
"creates",
"a",
"new",
"child",
"PortTemplate",
"under",
"the",
"GatewayTemplate"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/gatewaytemplate.go#L153-L156 |
146,903 | nuagenetworks/vspk-go | vspk/vsc.go | BGPPeers | func (o *VSC) BGPPeers(info *bambou.FetchingInfo) (BGPPeersList, *bambou.Error) {
var list BGPPeersList
err := bambou.CurrentSession().FetchChildren(o, BGPPeerIdentity, &list, info)
return list, err
} | go | func (o *VSC) BGPPeers(info *bambou.FetchingInfo) (BGPPeersList, *bambou.Error) {
var list BGPPeersList
err := bambou.CurrentSession().FetchChildren(o, BGPPeerIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VSC",
")",
"BGPPeers",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"BGPPeersList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"BGPPeersList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSession",
"("... | // BGPPeers retrieves the list of child BGPPeers of the VSC | [
"BGPPeers",
"retrieves",
"the",
"list",
"of",
"child",
"BGPPeers",
"of",
"the",
"VSC"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vsc.go#L144-L149 |
146,904 | nuagenetworks/vspk-go | vspk/vsc.go | MonitoringPorts | func (o *VSC) MonitoringPorts(info *bambou.FetchingInfo) (MonitoringPortsList, *bambou.Error) {
var list MonitoringPortsList
err := bambou.CurrentSession().FetchChildren(o, MonitoringPortIdentity, &list, info)
return list, err
} | go | func (o *VSC) MonitoringPorts(info *bambou.FetchingInfo) (MonitoringPortsList, *bambou.Error) {
var list MonitoringPortsList
err := bambou.CurrentSession().FetchChildren(o, MonitoringPortIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VSC",
")",
"MonitoringPorts",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"MonitoringPortsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"MonitoringPortsList",
"\n",
"err",
":=",
"bambou",
".",
"C... | // MonitoringPorts retrieves the list of child MonitoringPorts of the VSC | [
"MonitoringPorts",
"retrieves",
"the",
"list",
"of",
"child",
"MonitoringPorts",
"of",
"the",
"VSC"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vsc.go#L180-L185 |
146,905 | nuagenetworks/vspk-go | vspk/vlan.go | PATNATPools | func (o *VLAN) PATNATPools(info *bambou.FetchingInfo) (PATNATPoolsList, *bambou.Error) {
var list PATNATPoolsList
err := bambou.CurrentSession().FetchChildren(o, PATNATPoolIdentity, &list, info)
return list, err
} | go | func (o *VLAN) PATNATPools(info *bambou.FetchingInfo) (PATNATPoolsList, *bambou.Error) {
var list PATNATPoolsList
err := bambou.CurrentSession().FetchChildren(o, PATNATPoolIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VLAN",
")",
"PATNATPools",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"PATNATPoolsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"PATNATPoolsList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSessi... | // PATNATPools retrieves the list of child PATNATPools of the VLAN | [
"PATNATPools",
"retrieves",
"the",
"list",
"of",
"child",
"PATNATPools",
"of",
"the",
"VLAN"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vlan.go#L137-L142 |
146,906 | nuagenetworks/vspk-go | vspk/vlan.go | AssignPATNATPools | func (o *VLAN) AssignPATNATPools(children PATNATPoolsList) *bambou.Error {
list := []bambou.Identifiable{}
for _, c := range children {
list = append(list, c)
}
return bambou.CurrentSession().AssignChildren(o, list, PATNATPoolIdentity)
} | go | func (o *VLAN) AssignPATNATPools(children PATNATPoolsList) *bambou.Error {
list := []bambou.Identifiable{}
for _, c := range children {
list = append(list, c)
}
return bambou.CurrentSession().AssignChildren(o, list, PATNATPoolIdentity)
} | [
"func",
"(",
"o",
"*",
"VLAN",
")",
"AssignPATNATPools",
"(",
"children",
"PATNATPoolsList",
")",
"*",
"bambou",
".",
"Error",
"{",
"list",
":=",
"[",
"]",
"bambou",
".",
"Identifiable",
"{",
"}",
"\n",
"for",
"_",
",",
"c",
":=",
"range",
"children",
... | // AssignPATNATPools assigns the list of PATNATPools to the VLAN | [
"AssignPATNATPools",
"assigns",
"the",
"list",
"of",
"PATNATPools",
"to",
"the",
"VLAN"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vlan.go#L145-L153 |
146,907 | nuagenetworks/vspk-go | vspk/vlan.go | IKEGatewayConnections | func (o *VLAN) IKEGatewayConnections(info *bambou.FetchingInfo) (IKEGatewayConnectionsList, *bambou.Error) {
var list IKEGatewayConnectionsList
err := bambou.CurrentSession().FetchChildren(o, IKEGatewayConnectionIdentity, &list, info)
return list, err
} | go | func (o *VLAN) IKEGatewayConnections(info *bambou.FetchingInfo) (IKEGatewayConnectionsList, *bambou.Error) {
var list IKEGatewayConnectionsList
err := bambou.CurrentSession().FetchChildren(o, IKEGatewayConnectionIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VLAN",
")",
"IKEGatewayConnections",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"IKEGatewayConnectionsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"IKEGatewayConnectionsList",
"\n",
"err",
":=",
"b... | // IKEGatewayConnections retrieves the list of child IKEGatewayConnections of the VLAN | [
"IKEGatewayConnections",
"retrieves",
"the",
"list",
"of",
"child",
"IKEGatewayConnections",
"of",
"the",
"VLAN"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vlan.go#L198-L203 |
146,908 | nuagenetworks/vspk-go | vspk/vlan.go | CreateIKEGatewayConnection | func (o *VLAN) CreateIKEGatewayConnection(child *IKEGatewayConnection) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *VLAN) CreateIKEGatewayConnection(child *IKEGatewayConnection) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"VLAN",
")",
"CreateIKEGatewayConnection",
"(",
"child",
"*",
"IKEGatewayConnection",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
... | // CreateIKEGatewayConnection creates a new child IKEGatewayConnection under the VLAN | [
"CreateIKEGatewayConnection",
"creates",
"a",
"new",
"child",
"IKEGatewayConnection",
"under",
"the",
"VLAN"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vlan.go#L206-L209 |
146,909 | nuagenetworks/vspk-go | vspk/vlan.go | CreateUplinkConnection | func (o *VLAN) CreateUplinkConnection(child *UplinkConnection) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *VLAN) CreateUplinkConnection(child *UplinkConnection) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"VLAN",
")",
"CreateUplinkConnection",
"(",
"child",
"*",
"UplinkConnection",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"
] | // CreateUplinkConnection creates a new child UplinkConnection under the VLAN | [
"CreateUplinkConnection",
"creates",
"a",
"new",
"child",
"UplinkConnection",
"under",
"the",
"VLAN"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vlan.go#L256-L259 |
146,910 | nuagenetworks/vspk-go | vspk/vlan.go | BRConnections | func (o *VLAN) BRConnections(info *bambou.FetchingInfo) (BRConnectionsList, *bambou.Error) {
var list BRConnectionsList
err := bambou.CurrentSession().FetchChildren(o, BRConnectionIdentity, &list, info)
return list, err
} | go | func (o *VLAN) BRConnections(info *bambou.FetchingInfo) (BRConnectionsList, *bambou.Error) {
var list BRConnectionsList
err := bambou.CurrentSession().FetchChildren(o, BRConnectionIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VLAN",
")",
"BRConnections",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"BRConnectionsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"BRConnectionsList",
"\n",
"err",
":=",
"bambou",
".",
"Curren... | // BRConnections retrieves the list of child BRConnections of the VLAN | [
"BRConnections",
"retrieves",
"the",
"list",
"of",
"child",
"BRConnections",
"of",
"the",
"VLAN"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vlan.go#L262-L267 |
146,911 | nuagenetworks/vspk-go | vspk/vlan.go | CreateBRConnection | func (o *VLAN) CreateBRConnection(child *BRConnection) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *VLAN) CreateBRConnection(child *BRConnection) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"VLAN",
")",
"CreateBRConnection",
"(",
"child",
"*",
"BRConnection",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"
] | // CreateBRConnection creates a new child BRConnection under the VLAN | [
"CreateBRConnection",
"creates",
"a",
"new",
"child",
"BRConnection",
"under",
"the",
"VLAN"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vlan.go#L270-L273 |
146,912 | nuagenetworks/vspk-go | vspk/l4service.go | L4ServiceGroups | func (o *L4Service) L4ServiceGroups(info *bambou.FetchingInfo) (L4ServiceGroupsList, *bambou.Error) {
var list L4ServiceGroupsList
err := bambou.CurrentSession().FetchChildren(o, L4ServiceGroupIdentity, &list, info)
return list, err
} | go | func (o *L4Service) L4ServiceGroups(info *bambou.FetchingInfo) (L4ServiceGroupsList, *bambou.Error) {
var list L4ServiceGroupsList
err := bambou.CurrentSession().FetchChildren(o, L4ServiceGroupIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L4Service",
")",
"L4ServiceGroups",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"L4ServiceGroupsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"L4ServiceGroupsList",
"\n",
"err",
":=",
"bambou",
"."... | // L4ServiceGroups retrieves the list of child L4ServiceGroups of the L4Service | [
"L4ServiceGroups",
"retrieves",
"the",
"list",
"of",
"child",
"L4ServiceGroups",
"of",
"the",
"L4Service"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l4service.go#L119-L124 |
146,913 | nuagenetworks/vspk-go | vspk/l4service.go | AssignL4ServiceGroups | func (o *L4Service) AssignL4ServiceGroups(children L4ServiceGroupsList) *bambou.Error {
list := []bambou.Identifiable{}
for _, c := range children {
list = append(list, c)
}
return bambou.CurrentSession().AssignChildren(o, list, L4ServiceGroupIdentity)
} | go | func (o *L4Service) AssignL4ServiceGroups(children L4ServiceGroupsList) *bambou.Error {
list := []bambou.Identifiable{}
for _, c := range children {
list = append(list, c)
}
return bambou.CurrentSession().AssignChildren(o, list, L4ServiceGroupIdentity)
} | [
"func",
"(",
"o",
"*",
"L4Service",
")",
"AssignL4ServiceGroups",
"(",
"children",
"L4ServiceGroupsList",
")",
"*",
"bambou",
".",
"Error",
"{",
"list",
":=",
"[",
"]",
"bambou",
".",
"Identifiable",
"{",
"}",
"\n",
"for",
"_",
",",
"c",
":=",
"range",
... | // AssignL4ServiceGroups assigns the list of L4ServiceGroups to the L4Service | [
"AssignL4ServiceGroups",
"assigns",
"the",
"list",
"of",
"L4ServiceGroups",
"to",
"the",
"L4Service"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l4service.go#L127-L135 |
146,914 | nuagenetworks/vspk-go | vspk/sharednetworkresource.go | PATIPEntries | func (o *SharedNetworkResource) PATIPEntries(info *bambou.FetchingInfo) (PATIPEntriesList, *bambou.Error) {
var list PATIPEntriesList
err := bambou.CurrentSession().FetchChildren(o, PATIPEntryIdentity, &list, info)
return list, err
} | go | func (o *SharedNetworkResource) PATIPEntries(info *bambou.FetchingInfo) (PATIPEntriesList, *bambou.Error) {
var list PATIPEntriesList
err := bambou.CurrentSession().FetchChildren(o, PATIPEntryIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"SharedNetworkResource",
")",
"PATIPEntries",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"PATIPEntriesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"PATIPEntriesList",
"\n",
"err",
":=",
"bambou",
... | // PATIPEntries retrieves the list of child PATIPEntries of the SharedNetworkResource | [
"PATIPEntries",
"retrieves",
"the",
"list",
"of",
"child",
"PATIPEntries",
"of",
"the",
"SharedNetworkResource"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/sharednetworkresource.go#L142-L147 |
146,915 | nuagenetworks/vspk-go | vspk/sharednetworkresource.go | CreatePATIPEntry | func (o *SharedNetworkResource) CreatePATIPEntry(child *PATIPEntry) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *SharedNetworkResource) CreatePATIPEntry(child *PATIPEntry) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"SharedNetworkResource",
")",
"CreatePATIPEntry",
"(",
"child",
"*",
"PATIPEntry",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"... | // CreatePATIPEntry creates a new child PATIPEntry under the SharedNetworkResource | [
"CreatePATIPEntry",
"creates",
"a",
"new",
"child",
"PATIPEntry",
"under",
"the",
"SharedNetworkResource"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/sharednetworkresource.go#L150-L153 |
146,916 | nuagenetworks/vspk-go | vspk/sharednetworkresource.go | AddressRanges | func (o *SharedNetworkResource) AddressRanges(info *bambou.FetchingInfo) (AddressRangesList, *bambou.Error) {
var list AddressRangesList
err := bambou.CurrentSession().FetchChildren(o, AddressRangeIdentity, &list, info)
return list, err
} | go | func (o *SharedNetworkResource) AddressRanges(info *bambou.FetchingInfo) (AddressRangesList, *bambou.Error) {
var list AddressRangesList
err := bambou.CurrentSession().FetchChildren(o, AddressRangeIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"SharedNetworkResource",
")",
"AddressRanges",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"AddressRangesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"AddressRangesList",
"\n",
"err",
":=",
"bambou",... | // AddressRanges retrieves the list of child AddressRanges of the SharedNetworkResource | [
"AddressRanges",
"retrieves",
"the",
"list",
"of",
"child",
"AddressRanges",
"of",
"the",
"SharedNetworkResource"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/sharednetworkresource.go#L156-L161 |
146,917 | nuagenetworks/vspk-go | vspk/sharednetworkresource.go | CreateAddressRange | func (o *SharedNetworkResource) CreateAddressRange(child *AddressRange) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *SharedNetworkResource) CreateAddressRange(child *AddressRange) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"SharedNetworkResource",
")",
"CreateAddressRange",
"(",
"child",
"*",
"AddressRange",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",... | // CreateAddressRange creates a new child AddressRange under the SharedNetworkResource | [
"CreateAddressRange",
"creates",
"a",
"new",
"child",
"AddressRange",
"under",
"the",
"SharedNetworkResource"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/sharednetworkresource.go#L164-L167 |
146,918 | nuagenetworks/vspk-go | vspk/tier.go | Destinationurls | func (o *Tier) Destinationurls(info *bambou.FetchingInfo) (DestinationurlsList, *bambou.Error) {
var list DestinationurlsList
err := bambou.CurrentSession().FetchChildren(o, DestinationurlIdentity, &list, info)
return list, err
} | go | func (o *Tier) Destinationurls(info *bambou.FetchingInfo) (DestinationurlsList, *bambou.Error) {
var list DestinationurlsList
err := bambou.CurrentSession().FetchChildren(o, DestinationurlIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"Tier",
")",
"Destinationurls",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"DestinationurlsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"DestinationurlsList",
"\n",
"err",
":=",
"bambou",
".",
"... | // Destinationurls retrieves the list of child Destinationurls of the Tier | [
"Destinationurls",
"retrieves",
"the",
"list",
"of",
"child",
"Destinationurls",
"of",
"the",
"Tier"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/tier.go#L121-L126 |
146,919 | nuagenetworks/vspk-go | vspk/tier.go | CreateDestinationurl | func (o *Tier) CreateDestinationurl(child *Destinationurl) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *Tier) CreateDestinationurl(child *Destinationurl) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"Tier",
")",
"CreateDestinationurl",
"(",
"child",
"*",
"Destinationurl",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"
] | // CreateDestinationurl creates a new child Destinationurl under the Tier | [
"CreateDestinationurl",
"creates",
"a",
"new",
"child",
"Destinationurl",
"under",
"the",
"Tier"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/tier.go#L129-L132 |
146,920 | nuagenetworks/vspk-go | vspk/vcenterdatacenter.go | VCenterClusters | func (o *VCenterDataCenter) VCenterClusters(info *bambou.FetchingInfo) (VCenterClustersList, *bambou.Error) {
var list VCenterClustersList
err := bambou.CurrentSession().FetchChildren(o, VCenterClusterIdentity, &list, info)
return list, err
} | go | func (o *VCenterDataCenter) VCenterClusters(info *bambou.FetchingInfo) (VCenterClustersList, *bambou.Error) {
var list VCenterClustersList
err := bambou.CurrentSession().FetchChildren(o, VCenterClusterIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VCenterDataCenter",
")",
"VCenterClusters",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"VCenterClustersList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"VCenterClustersList",
"\n",
"err",
":=",
"bambou... | // VCenterClusters retrieves the list of child VCenterClusters of the VCenterDataCenter | [
"VCenterClusters",
"retrieves",
"the",
"list",
"of",
"child",
"VCenterClusters",
"of",
"the",
"VCenterDataCenter"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vcenterdatacenter.go#L234-L239 |
146,921 | nuagenetworks/vspk-go | vspk/vcenterdatacenter.go | CreateVCenterCluster | func (o *VCenterDataCenter) CreateVCenterCluster(child *VCenterCluster) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *VCenterDataCenter) CreateVCenterCluster(child *VCenterCluster) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"VCenterDataCenter",
")",
"CreateVCenterCluster",
"(",
"child",
"*",
"VCenterCluster",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",... | // CreateVCenterCluster creates a new child VCenterCluster under the VCenterDataCenter | [
"CreateVCenterCluster",
"creates",
"a",
"new",
"child",
"VCenterCluster",
"under",
"the",
"VCenterDataCenter"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vcenterdatacenter.go#L242-L245 |
146,922 | nuagenetworks/vspk-go | vspk/vcenterdatacenter.go | AutoDiscoverClusters | func (o *VCenterDataCenter) AutoDiscoverClusters(info *bambou.FetchingInfo) (AutoDiscoverClustersList, *bambou.Error) {
var list AutoDiscoverClustersList
err := bambou.CurrentSession().FetchChildren(o, AutoDiscoverClusterIdentity, &list, info)
return list, err
} | go | func (o *VCenterDataCenter) AutoDiscoverClusters(info *bambou.FetchingInfo) (AutoDiscoverClustersList, *bambou.Error) {
var list AutoDiscoverClustersList
err := bambou.CurrentSession().FetchChildren(o, AutoDiscoverClusterIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VCenterDataCenter",
")",
"AutoDiscoverClusters",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"AutoDiscoverClustersList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"AutoDiscoverClustersList",
"\n",
"err",
... | // AutoDiscoverClusters retrieves the list of child AutoDiscoverClusters of the VCenterDataCenter | [
"AutoDiscoverClusters",
"retrieves",
"the",
"list",
"of",
"child",
"AutoDiscoverClusters",
"of",
"the",
"VCenterDataCenter"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vcenterdatacenter.go#L318-L323 |
146,923 | nuagenetworks/vspk-go | vspk/patmapper.go | Subnets | func (o *PATMapper) Subnets(info *bambou.FetchingInfo) (SubnetsList, *bambou.Error) {
var list SubnetsList
err := bambou.CurrentSession().FetchChildren(o, SubnetIdentity, &list, info)
return list, err
} | go | func (o *PATMapper) Subnets(info *bambou.FetchingInfo) (SubnetsList, *bambou.Error) {
var list SubnetsList
err := bambou.CurrentSession().FetchChildren(o, SubnetIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"PATMapper",
")",
"Subnets",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"SubnetsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"SubnetsList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSession",
... | // Subnets retrieves the list of child Subnets of the PATMapper | [
"Subnets",
"retrieves",
"the",
"list",
"of",
"child",
"Subnets",
"of",
"the",
"PATMapper"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/patmapper.go#L120-L125 |
146,924 | nuagenetworks/vspk-go | vspk/vcenter.go | VCenterDataCenters | func (o *VCenter) VCenterDataCenters(info *bambou.FetchingInfo) (VCenterDataCentersList, *bambou.Error) {
var list VCenterDataCentersList
err := bambou.CurrentSession().FetchChildren(o, VCenterDataCenterIdentity, &list, info)
return list, err
} | go | func (o *VCenter) VCenterDataCenters(info *bambou.FetchingInfo) (VCenterDataCentersList, *bambou.Error) {
var list VCenterDataCentersList
err := bambou.CurrentSession().FetchChildren(o, VCenterDataCenterIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VCenter",
")",
"VCenterDataCenters",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"VCenterDataCentersList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"VCenterDataCentersList",
"\n",
"err",
":=",
"bambou"... | // VCenterDataCenters retrieves the list of child VCenterDataCenters of the VCenter | [
"VCenterDataCenters",
"retrieves",
"the",
"list",
"of",
"child",
"VCenterDataCenters",
"of",
"the",
"VCenter"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vcenter.go#L242-L247 |
146,925 | nuagenetworks/vspk-go | vspk/vcenter.go | CreateVCenterDataCenter | func (o *VCenter) CreateVCenterDataCenter(child *VCenterDataCenter) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *VCenter) CreateVCenterDataCenter(child *VCenterDataCenter) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"VCenter",
")",
"CreateVCenterDataCenter",
"(",
"child",
"*",
"VCenterDataCenter",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"... | // CreateVCenterDataCenter creates a new child VCenterDataCenter under the VCenter | [
"CreateVCenterDataCenter",
"creates",
"a",
"new",
"child",
"VCenterDataCenter",
"under",
"the",
"VCenter"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vcenter.go#L250-L253 |
146,926 | nuagenetworks/vspk-go | vspk/vcenter.go | VRSRedeploymentpolicies | func (o *VCenter) VRSRedeploymentpolicies(info *bambou.FetchingInfo) (VRSRedeploymentpoliciesList, *bambou.Error) {
var list VRSRedeploymentpoliciesList
err := bambou.CurrentSession().FetchChildren(o, VRSRedeploymentpolicyIdentity, &list, info)
return list, err
} | go | func (o *VCenter) VRSRedeploymentpolicies(info *bambou.FetchingInfo) (VRSRedeploymentpoliciesList, *bambou.Error) {
var list VRSRedeploymentpoliciesList
err := bambou.CurrentSession().FetchChildren(o, VRSRedeploymentpolicyIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VCenter",
")",
"VRSRedeploymentpolicies",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"VRSRedeploymentpoliciesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"VRSRedeploymentpoliciesList",
"\n",
"err",
"... | // VRSRedeploymentpolicies retrieves the list of child VRSRedeploymentpolicies of the VCenter | [
"VRSRedeploymentpolicies",
"retrieves",
"the",
"list",
"of",
"child",
"VRSRedeploymentpolicies",
"of",
"the",
"VCenter"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vcenter.go#L304-L309 |
146,927 | nuagenetworks/vspk-go | vspk/vcenter.go | CreateVRSRedeploymentpolicy | func (o *VCenter) CreateVRSRedeploymentpolicy(child *VRSRedeploymentpolicy) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *VCenter) CreateVRSRedeploymentpolicy(child *VRSRedeploymentpolicy) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"VCenter",
")",
"CreateVRSRedeploymentpolicy",
"(",
"child",
"*",
"VRSRedeploymentpolicy",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"... | // CreateVRSRedeploymentpolicy creates a new child VRSRedeploymentpolicy under the VCenter | [
"CreateVRSRedeploymentpolicy",
"creates",
"a",
"new",
"child",
"VRSRedeploymentpolicy",
"under",
"the",
"VCenter"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vcenter.go#L312-L315 |
146,928 | nuagenetworks/vspk-go | vspk/vcenter.go | Autodiscovereddatacenters | func (o *VCenter) Autodiscovereddatacenters(info *bambou.FetchingInfo) (AutodiscovereddatacentersList, *bambou.Error) {
var list AutodiscovereddatacentersList
err := bambou.CurrentSession().FetchChildren(o, AutodiscovereddatacenterIdentity, &list, info)
return list, err
} | go | func (o *VCenter) Autodiscovereddatacenters(info *bambou.FetchingInfo) (AutodiscovereddatacentersList, *bambou.Error) {
var list AutodiscovereddatacentersList
err := bambou.CurrentSession().FetchChildren(o, AutodiscovereddatacenterIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"VCenter",
")",
"Autodiscovereddatacenters",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"AutodiscovereddatacentersList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"AutodiscovereddatacentersList",
"\n",
"err... | // Autodiscovereddatacenters retrieves the list of child Autodiscovereddatacenters of the VCenter | [
"Autodiscovereddatacenters",
"retrieves",
"the",
"list",
"of",
"child",
"Autodiscovereddatacenters",
"of",
"the",
"VCenter"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/vcenter.go#L318-L323 |
146,929 | nuagenetworks/vspk-go | vspk/container.go | CreateContainerInterface | func (o *Container) CreateContainerInterface(child *ContainerInterface) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *Container) CreateContainerInterface(child *ContainerInterface) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"Container",
")",
"CreateContainerInterface",
"(",
"child",
"*",
"ContainerInterface",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",... | // CreateContainerInterface creates a new child ContainerInterface under the Container | [
"CreateContainerInterface",
"creates",
"a",
"new",
"child",
"ContainerInterface",
"under",
"the",
"Container"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/container.go#L177-L180 |
146,930 | nuagenetworks/vspk-go | vspk/container.go | ContainerResyncs | func (o *Container) ContainerResyncs(info *bambou.FetchingInfo) (ContainerResyncsList, *bambou.Error) {
var list ContainerResyncsList
err := bambou.CurrentSession().FetchChildren(o, ContainerResyncIdentity, &list, info)
return list, err
} | go | func (o *Container) ContainerResyncs(info *bambou.FetchingInfo) (ContainerResyncsList, *bambou.Error) {
var list ContainerResyncsList
err := bambou.CurrentSession().FetchChildren(o, ContainerResyncIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"Container",
")",
"ContainerResyncs",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"ContainerResyncsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"ContainerResyncsList",
"\n",
"err",
":=",
"bambou",
... | // ContainerResyncs retrieves the list of child ContainerResyncs of the Container | [
"ContainerResyncs",
"retrieves",
"the",
"list",
"of",
"child",
"ContainerResyncs",
"of",
"the",
"Container"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/container.go#L183-L188 |
146,931 | nuagenetworks/vspk-go | vspk/container.go | CreateContainerResync | func (o *Container) CreateContainerResync(child *ContainerResync) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *Container) CreateContainerResync(child *ContainerResync) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"Container",
")",
"CreateContainerResync",
"(",
"child",
"*",
"ContainerResync",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"... | // CreateContainerResync creates a new child ContainerResync under the Container | [
"CreateContainerResync",
"creates",
"a",
"new",
"child",
"ContainerResync",
"under",
"the",
"Container"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/container.go#L191-L194 |
146,932 | nuagenetworks/vspk-go | vspk/container.go | VRSs | func (o *Container) VRSs(info *bambou.FetchingInfo) (VRSsList, *bambou.Error) {
var list VRSsList
err := bambou.CurrentSession().FetchChildren(o, VRSIdentity, &list, info)
return list, err
} | go | func (o *Container) VRSs(info *bambou.FetchingInfo) (VRSsList, *bambou.Error) {
var list VRSsList
err := bambou.CurrentSession().FetchChildren(o, VRSIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"Container",
")",
"VRSs",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"VRSsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"VRSsList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSession",
"(",
")... | // VRSs retrieves the list of child VRSs of the Container | [
"VRSs",
"retrieves",
"the",
"list",
"of",
"child",
"VRSs",
"of",
"the",
"Container"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/container.go#L197-L202 |
146,933 | nuagenetworks/vspk-go | vspk/redundancygroup.go | SAPEgressQoSProfiles | func (o *RedundancyGroup) SAPEgressQoSProfiles(info *bambou.FetchingInfo) (SAPEgressQoSProfilesList, *bambou.Error) {
var list SAPEgressQoSProfilesList
err := bambou.CurrentSession().FetchChildren(o, SAPEgressQoSProfileIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) SAPEgressQoSProfiles(info *bambou.FetchingInfo) (SAPEgressQoSProfilesList, *bambou.Error) {
var list SAPEgressQoSProfilesList
err := bambou.CurrentSession().FetchChildren(o, SAPEgressQoSProfileIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"SAPEgressQoSProfiles",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"SAPEgressQoSProfilesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"SAPEgressQoSProfilesList",
"\n",
"err",
":... | // SAPEgressQoSProfiles retrieves the list of child SAPEgressQoSProfiles of the RedundancyGroup | [
"SAPEgressQoSProfiles",
"retrieves",
"the",
"list",
"of",
"child",
"SAPEgressQoSProfiles",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L144-L149 |
146,934 | nuagenetworks/vspk-go | vspk/redundancygroup.go | SAPIngressQoSProfiles | func (o *RedundancyGroup) SAPIngressQoSProfiles(info *bambou.FetchingInfo) (SAPIngressQoSProfilesList, *bambou.Error) {
var list SAPIngressQoSProfilesList
err := bambou.CurrentSession().FetchChildren(o, SAPIngressQoSProfileIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) SAPIngressQoSProfiles(info *bambou.FetchingInfo) (SAPIngressQoSProfilesList, *bambou.Error) {
var list SAPIngressQoSProfilesList
err := bambou.CurrentSession().FetchChildren(o, SAPIngressQoSProfileIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"SAPIngressQoSProfiles",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"SAPIngressQoSProfilesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"SAPIngressQoSProfilesList",
"\n",
"err",
... | // SAPIngressQoSProfiles retrieves the list of child SAPIngressQoSProfiles of the RedundancyGroup | [
"SAPIngressQoSProfiles",
"retrieves",
"the",
"list",
"of",
"child",
"SAPIngressQoSProfiles",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L152-L157 |
146,935 | nuagenetworks/vspk-go | vspk/redundancygroup.go | Gateways | func (o *RedundancyGroup) Gateways(info *bambou.FetchingInfo) (GatewaysList, *bambou.Error) {
var list GatewaysList
err := bambou.CurrentSession().FetchChildren(o, GatewayIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) Gateways(info *bambou.FetchingInfo) (GatewaysList, *bambou.Error) {
var list GatewaysList
err := bambou.CurrentSession().FetchChildren(o, GatewayIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"Gateways",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"GatewaysList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"GatewaysList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSes... | // Gateways retrieves the list of child Gateways of the RedundancyGroup | [
"Gateways",
"retrieves",
"the",
"list",
"of",
"child",
"Gateways",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L160-L165 |
146,936 | nuagenetworks/vspk-go | vspk/redundancygroup.go | GatewayRedundantPorts | func (o *RedundancyGroup) GatewayRedundantPorts(info *bambou.FetchingInfo) (GatewayRedundantPortsList, *bambou.Error) {
var list GatewayRedundantPortsList
err := bambou.CurrentSession().FetchChildren(o, GatewayRedundantPortIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) GatewayRedundantPorts(info *bambou.FetchingInfo) (GatewayRedundantPortsList, *bambou.Error) {
var list GatewayRedundantPortsList
err := bambou.CurrentSession().FetchChildren(o, GatewayRedundantPortIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"GatewayRedundantPorts",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"GatewayRedundantPortsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"GatewayRedundantPortsList",
"\n",
"err",
... | // GatewayRedundantPorts retrieves the list of child GatewayRedundantPorts of the RedundancyGroup | [
"GatewayRedundantPorts",
"retrieves",
"the",
"list",
"of",
"child",
"GatewayRedundantPorts",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L168-L173 |
146,937 | nuagenetworks/vspk-go | vspk/redundancygroup.go | CreateGatewayRedundantPort | func (o *RedundancyGroup) CreateGatewayRedundantPort(child *GatewayRedundantPort) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *RedundancyGroup) CreateGatewayRedundantPort(child *GatewayRedundantPort) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"CreateGatewayRedundantPort",
"(",
"child",
"*",
"GatewayRedundantPort",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")... | // CreateGatewayRedundantPort creates a new child GatewayRedundantPort under the RedundancyGroup | [
"CreateGatewayRedundantPort",
"creates",
"a",
"new",
"child",
"GatewayRedundantPort",
"under",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L176-L179 |
146,938 | nuagenetworks/vspk-go | vspk/redundancygroup.go | CreateWANService | func (o *RedundancyGroup) CreateWANService(child *WANService) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *RedundancyGroup) CreateWANService(child *WANService) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"CreateWANService",
"(",
"child",
"*",
"WANService",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"
] | // CreateWANService creates a new child WANService under the RedundancyGroup | [
"CreateWANService",
"creates",
"a",
"new",
"child",
"WANService",
"under",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L212-L215 |
146,939 | nuagenetworks/vspk-go | vspk/redundancygroup.go | EgressProfiles | func (o *RedundancyGroup) EgressProfiles(info *bambou.FetchingInfo) (EgressProfilesList, *bambou.Error) {
var list EgressProfilesList
err := bambou.CurrentSession().FetchChildren(o, EgressProfileIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) EgressProfiles(info *bambou.FetchingInfo) (EgressProfilesList, *bambou.Error) {
var list EgressProfilesList
err := bambou.CurrentSession().FetchChildren(o, EgressProfileIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"EgressProfiles",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"EgressProfilesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"EgressProfilesList",
"\n",
"err",
":=",
"bambou",
... | // EgressProfiles retrieves the list of child EgressProfiles of the RedundancyGroup | [
"EgressProfiles",
"retrieves",
"the",
"list",
"of",
"child",
"EgressProfiles",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L232-L237 |
146,940 | nuagenetworks/vspk-go | vspk/redundancygroup.go | CreateIngressProfile | func (o *RedundancyGroup) CreateIngressProfile(child *IngressProfile) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *RedundancyGroup) CreateIngressProfile(child *IngressProfile) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"CreateIngressProfile",
"(",
"child",
"*",
"IngressProfile",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
... | // CreateIngressProfile creates a new child IngressProfile under the RedundancyGroup | [
"CreateIngressProfile",
"creates",
"a",
"new",
"child",
"IngressProfile",
"under",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L276-L279 |
146,941 | nuagenetworks/vspk-go | vspk/redundancygroup.go | EnterprisePermissions | func (o *RedundancyGroup) EnterprisePermissions(info *bambou.FetchingInfo) (EnterprisePermissionsList, *bambou.Error) {
var list EnterprisePermissionsList
err := bambou.CurrentSession().FetchChildren(o, EnterprisePermissionIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) EnterprisePermissions(info *bambou.FetchingInfo) (EnterprisePermissionsList, *bambou.Error) {
var list EnterprisePermissionsList
err := bambou.CurrentSession().FetchChildren(o, EnterprisePermissionIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"EnterprisePermissions",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"EnterprisePermissionsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"EnterprisePermissionsList",
"\n",
"err",
... | // EnterprisePermissions retrieves the list of child EnterprisePermissions of the RedundancyGroup | [
"EnterprisePermissions",
"retrieves",
"the",
"list",
"of",
"child",
"EnterprisePermissions",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L282-L287 |
146,942 | nuagenetworks/vspk-go | vspk/redundancygroup.go | CreateEnterprisePermission | func (o *RedundancyGroup) CreateEnterprisePermission(child *EnterprisePermission) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *RedundancyGroup) CreateEnterprisePermission(child *EnterprisePermission) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"CreateEnterprisePermission",
"(",
"child",
"*",
"EnterprisePermission",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")... | // CreateEnterprisePermission creates a new child EnterprisePermission under the RedundancyGroup | [
"CreateEnterprisePermission",
"creates",
"a",
"new",
"child",
"EnterprisePermission",
"under",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L290-L293 |
146,943 | nuagenetworks/vspk-go | vspk/redundancygroup.go | Jobs | func (o *RedundancyGroup) Jobs(info *bambou.FetchingInfo) (JobsList, *bambou.Error) {
var list JobsList
err := bambou.CurrentSession().FetchChildren(o, JobIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) Jobs(info *bambou.FetchingInfo) (JobsList, *bambou.Error) {
var list JobsList
err := bambou.CurrentSession().FetchChildren(o, JobIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"Jobs",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"JobsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"JobsList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSession",
"("... | // Jobs retrieves the list of child Jobs of the RedundancyGroup | [
"Jobs",
"retrieves",
"the",
"list",
"of",
"child",
"Jobs",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L296-L301 |
146,944 | nuagenetworks/vspk-go | vspk/redundancygroup.go | IPv6FilterProfiles | func (o *RedundancyGroup) IPv6FilterProfiles(info *bambou.FetchingInfo) (IPv6FilterProfilesList, *bambou.Error) {
var list IPv6FilterProfilesList
err := bambou.CurrentSession().FetchChildren(o, IPv6FilterProfileIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) IPv6FilterProfiles(info *bambou.FetchingInfo) (IPv6FilterProfilesList, *bambou.Error) {
var list IPv6FilterProfilesList
err := bambou.CurrentSession().FetchChildren(o, IPv6FilterProfileIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"IPv6FilterProfiles",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"IPv6FilterProfilesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"IPv6FilterProfilesList",
"\n",
"err",
":=",
... | // IPv6FilterProfiles retrieves the list of child IPv6FilterProfiles of the RedundancyGroup | [
"IPv6FilterProfiles",
"retrieves",
"the",
"list",
"of",
"child",
"IPv6FilterProfiles",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L332-L337 |
146,945 | nuagenetworks/vspk-go | vspk/redundancygroup.go | VsgRedundantPorts | func (o *RedundancyGroup) VsgRedundantPorts(info *bambou.FetchingInfo) (VsgRedundantPortsList, *bambou.Error) {
var list VsgRedundantPortsList
err := bambou.CurrentSession().FetchChildren(o, VsgRedundantPortIdentity, &list, info)
return list, err
} | go | func (o *RedundancyGroup) VsgRedundantPorts(info *bambou.FetchingInfo) (VsgRedundantPortsList, *bambou.Error) {
var list VsgRedundantPortsList
err := bambou.CurrentSession().FetchChildren(o, VsgRedundantPortIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"VsgRedundantPorts",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"VsgRedundantPortsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"VsgRedundantPortsList",
"\n",
"err",
":=",
"ba... | // VsgRedundantPorts retrieves the list of child VsgRedundantPorts of the RedundancyGroup | [
"VsgRedundantPorts",
"retrieves",
"the",
"list",
"of",
"child",
"VsgRedundantPorts",
"of",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L340-L345 |
146,946 | nuagenetworks/vspk-go | vspk/redundancygroup.go | CreateVsgRedundantPort | func (o *RedundancyGroup) CreateVsgRedundantPort(child *VsgRedundantPort) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *RedundancyGroup) CreateVsgRedundantPort(child *VsgRedundantPort) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"RedundancyGroup",
")",
"CreateVsgRedundantPort",
"(",
"child",
"*",
"VsgRedundantPort",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n... | // CreateVsgRedundantPort creates a new child VsgRedundantPort under the RedundancyGroup | [
"CreateVsgRedundantPort",
"creates",
"a",
"new",
"child",
"VsgRedundantPort",
"under",
"the",
"RedundancyGroup"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/redundancygroup.go#L348-L351 |
146,947 | nuagenetworks/vspk-go | vspk/ikegateway.go | IKEGatewayConfigs | func (o *IKEGateway) IKEGatewayConfigs(info *bambou.FetchingInfo) (IKEGatewayConfigsList, *bambou.Error) {
var list IKEGatewayConfigsList
err := bambou.CurrentSession().FetchChildren(o, IKEGatewayConfigIdentity, &list, info)
return list, err
} | go | func (o *IKEGateway) IKEGatewayConfigs(info *bambou.FetchingInfo) (IKEGatewayConfigsList, *bambou.Error) {
var list IKEGatewayConfigsList
err := bambou.CurrentSession().FetchChildren(o, IKEGatewayConfigIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"IKEGateway",
")",
"IKEGatewayConfigs",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"IKEGatewayConfigsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"IKEGatewayConfigsList",
"\n",
"err",
":=",
"bambou"... | // IKEGatewayConfigs retrieves the list of child IKEGatewayConfigs of the IKEGateway | [
"IKEGatewayConfigs",
"retrieves",
"the",
"list",
"of",
"child",
"IKEGatewayConfigs",
"of",
"the",
"IKEGateway"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/ikegateway.go#L133-L138 |
146,948 | nuagenetworks/vspk-go | vspk/ikegateway.go | AssignIKEGatewayConfigs | func (o *IKEGateway) AssignIKEGatewayConfigs(children IKEGatewayConfigsList) *bambou.Error {
list := []bambou.Identifiable{}
for _, c := range children {
list = append(list, c)
}
return bambou.CurrentSession().AssignChildren(o, list, IKEGatewayConfigIdentity)
} | go | func (o *IKEGateway) AssignIKEGatewayConfigs(children IKEGatewayConfigsList) *bambou.Error {
list := []bambou.Identifiable{}
for _, c := range children {
list = append(list, c)
}
return bambou.CurrentSession().AssignChildren(o, list, IKEGatewayConfigIdentity)
} | [
"func",
"(",
"o",
"*",
"IKEGateway",
")",
"AssignIKEGatewayConfigs",
"(",
"children",
"IKEGatewayConfigsList",
")",
"*",
"bambou",
".",
"Error",
"{",
"list",
":=",
"[",
"]",
"bambou",
".",
"Identifiable",
"{",
"}",
"\n",
"for",
"_",
",",
"c",
":=",
"rang... | // AssignIKEGatewayConfigs assigns the list of IKEGatewayConfigs to the IKEGateway | [
"AssignIKEGatewayConfigs",
"assigns",
"the",
"list",
"of",
"IKEGatewayConfigs",
"to",
"the",
"IKEGateway"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/ikegateway.go#L141-L149 |
146,949 | nuagenetworks/vspk-go | vspk/ikegateway.go | IKESubnets | func (o *IKEGateway) IKESubnets(info *bambou.FetchingInfo) (IKESubnetsList, *bambou.Error) {
var list IKESubnetsList
err := bambou.CurrentSession().FetchChildren(o, IKESubnetIdentity, &list, info)
return list, err
} | go | func (o *IKEGateway) IKESubnets(info *bambou.FetchingInfo) (IKESubnetsList, *bambou.Error) {
var list IKESubnetsList
err := bambou.CurrentSession().FetchChildren(o, IKESubnetIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"IKEGateway",
")",
"IKESubnets",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"IKESubnetsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"IKESubnetsList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSe... | // IKESubnets retrieves the list of child IKESubnets of the IKEGateway | [
"IKESubnets",
"retrieves",
"the",
"list",
"of",
"child",
"IKESubnets",
"of",
"the",
"IKEGateway"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/ikegateway.go#L152-L157 |
146,950 | nuagenetworks/vspk-go | vspk/ikegateway.go | CreateIKESubnet | func (o *IKEGateway) CreateIKESubnet(child *IKESubnet) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *IKEGateway) CreateIKESubnet(child *IKESubnet) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"IKEGateway",
")",
"CreateIKESubnet",
"(",
"child",
"*",
"IKESubnet",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"
] | // CreateIKESubnet creates a new child IKESubnet under the IKEGateway | [
"CreateIKESubnet",
"creates",
"a",
"new",
"child",
"IKESubnet",
"under",
"the",
"IKEGateway"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/ikegateway.go#L160-L163 |
146,951 | nuagenetworks/vspk-go | vspk/l2domain.go | TCAs | func (o *L2Domain) TCAs(info *bambou.FetchingInfo) (TCAsList, *bambou.Error) {
var list TCAsList
err := bambou.CurrentSession().FetchChildren(o, TCAIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) TCAs(info *bambou.FetchingInfo) (TCAsList, *bambou.Error) {
var list TCAsList
err := bambou.CurrentSession().FetchChildren(o, TCAIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"TCAs",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"TCAsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"TCAsList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSession",
"(",
")"... | // TCAs retrieves the list of child TCAs of the L2Domain | [
"TCAs",
"retrieves",
"the",
"list",
"of",
"child",
"TCAs",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L160-L165 |
146,952 | nuagenetworks/vspk-go | vspk/l2domain.go | CreateRedirectionTarget | func (o *L2Domain) CreateRedirectionTarget(child *RedirectionTarget) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreateRedirectionTarget(child *RedirectionTarget) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreateRedirectionTarget",
"(",
"child",
"*",
"RedirectionTarget",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
... | // CreateRedirectionTarget creates a new child RedirectionTarget under the L2Domain | [
"CreateRedirectionTarget",
"creates",
"a",
"new",
"child",
"RedirectionTarget",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L190-L193 |
146,953 | nuagenetworks/vspk-go | vspk/l2domain.go | RedundancyGroups | func (o *L2Domain) RedundancyGroups(info *bambou.FetchingInfo) (RedundancyGroupsList, *bambou.Error) {
var list RedundancyGroupsList
err := bambou.CurrentSession().FetchChildren(o, RedundancyGroupIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) RedundancyGroups(info *bambou.FetchingInfo) (RedundancyGroupsList, *bambou.Error) {
var list RedundancyGroupsList
err := bambou.CurrentSession().FetchChildren(o, RedundancyGroupIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"RedundancyGroups",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"RedundancyGroupsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"RedundancyGroupsList",
"\n",
"err",
":=",
"bambou",
"... | // RedundancyGroups retrieves the list of child RedundancyGroups of the L2Domain | [
"RedundancyGroups",
"retrieves",
"the",
"list",
"of",
"child",
"RedundancyGroups",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L196-L201 |
146,954 | nuagenetworks/vspk-go | vspk/l2domain.go | CreateNetworkPerformanceBinding | func (o *L2Domain) CreateNetworkPerformanceBinding(child *NetworkPerformanceBinding) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreateNetworkPerformanceBinding(child *NetworkPerformanceBinding) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreateNetworkPerformanceBinding",
"(",
"child",
"*",
"NetworkPerformanceBinding",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
... | // CreateNetworkPerformanceBinding creates a new child NetworkPerformanceBinding under the L2Domain | [
"CreateNetworkPerformanceBinding",
"creates",
"a",
"new",
"child",
"NetworkPerformanceBinding",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L254-L257 |
146,955 | nuagenetworks/vspk-go | vspk/l2domain.go | PGExpressions | func (o *L2Domain) PGExpressions(info *bambou.FetchingInfo) (PGExpressionsList, *bambou.Error) {
var list PGExpressionsList
err := bambou.CurrentSession().FetchChildren(o, PGExpressionIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) PGExpressions(info *bambou.FetchingInfo) (PGExpressionsList, *bambou.Error) {
var list PGExpressionsList
err := bambou.CurrentSession().FetchChildren(o, PGExpressionIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"PGExpressions",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"PGExpressionsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"PGExpressionsList",
"\n",
"err",
":=",
"bambou",
".",
"Cu... | // PGExpressions retrieves the list of child PGExpressions of the L2Domain | [
"PGExpressions",
"retrieves",
"the",
"list",
"of",
"child",
"PGExpressions",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L260-L265 |
146,956 | nuagenetworks/vspk-go | vspk/l2domain.go | CreatePGExpression | func (o *L2Domain) CreatePGExpression(child *PGExpression) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreatePGExpression(child *PGExpression) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreatePGExpression",
"(",
"child",
"*",
"PGExpression",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"
] | // CreatePGExpression creates a new child PGExpression under the L2Domain | [
"CreatePGExpression",
"creates",
"a",
"new",
"child",
"PGExpression",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L268-L271 |
146,957 | nuagenetworks/vspk-go | vspk/l2domain.go | EgressACLTemplates | func (o *L2Domain) EgressACLTemplates(info *bambou.FetchingInfo) (EgressACLTemplatesList, *bambou.Error) {
var list EgressACLTemplatesList
err := bambou.CurrentSession().FetchChildren(o, EgressACLTemplateIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) EgressACLTemplates(info *bambou.FetchingInfo) (EgressACLTemplatesList, *bambou.Error) {
var list EgressACLTemplatesList
err := bambou.CurrentSession().FetchChildren(o, EgressACLTemplateIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"EgressACLTemplates",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"EgressACLTemplatesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"EgressACLTemplatesList",
"\n",
"err",
":=",
"bambou... | // EgressACLTemplates retrieves the list of child EgressACLTemplates of the L2Domain | [
"EgressACLTemplates",
"retrieves",
"the",
"list",
"of",
"child",
"EgressACLTemplates",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L282-L287 |
146,958 | nuagenetworks/vspk-go | vspk/l2domain.go | CreateEgressACLTemplate | func (o *L2Domain) CreateEgressACLTemplate(child *EgressACLTemplate) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreateEgressACLTemplate(child *EgressACLTemplate) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreateEgressACLTemplate",
"(",
"child",
"*",
"EgressACLTemplate",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
... | // CreateEgressACLTemplate creates a new child EgressACLTemplate under the L2Domain | [
"CreateEgressACLTemplate",
"creates",
"a",
"new",
"child",
"EgressACLTemplate",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L290-L293 |
146,959 | nuagenetworks/vspk-go | vspk/l2domain.go | EgressAdvFwdTemplates | func (o *L2Domain) EgressAdvFwdTemplates(info *bambou.FetchingInfo) (EgressAdvFwdTemplatesList, *bambou.Error) {
var list EgressAdvFwdTemplatesList
err := bambou.CurrentSession().FetchChildren(o, EgressAdvFwdTemplateIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) EgressAdvFwdTemplates(info *bambou.FetchingInfo) (EgressAdvFwdTemplatesList, *bambou.Error) {
var list EgressAdvFwdTemplatesList
err := bambou.CurrentSession().FetchChildren(o, EgressAdvFwdTemplateIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"EgressAdvFwdTemplates",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"EgressAdvFwdTemplatesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"EgressAdvFwdTemplatesList",
"\n",
"err",
":=",
... | // EgressAdvFwdTemplates retrieves the list of child EgressAdvFwdTemplates of the L2Domain | [
"EgressAdvFwdTemplates",
"retrieves",
"the",
"list",
"of",
"child",
"EgressAdvFwdTemplates",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L296-L301 |
146,960 | nuagenetworks/vspk-go | vspk/l2domain.go | VirtualFirewallRules | func (o *L2Domain) VirtualFirewallRules(info *bambou.FetchingInfo) (VirtualFirewallRulesList, *bambou.Error) {
var list VirtualFirewallRulesList
err := bambou.CurrentSession().FetchChildren(o, VirtualFirewallRuleIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) VirtualFirewallRules(info *bambou.FetchingInfo) (VirtualFirewallRulesList, *bambou.Error) {
var list VirtualFirewallRulesList
err := bambou.CurrentSession().FetchChildren(o, VirtualFirewallRuleIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"VirtualFirewallRules",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"VirtualFirewallRulesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"VirtualFirewallRulesList",
"\n",
"err",
":=",
"... | // VirtualFirewallRules retrieves the list of child VirtualFirewallRules of the L2Domain | [
"VirtualFirewallRules",
"retrieves",
"the",
"list",
"of",
"child",
"VirtualFirewallRules",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L338-L343 |
146,961 | nuagenetworks/vspk-go | vspk/l2domain.go | CreateIngressACLTemplate | func (o *L2Domain) CreateIngressACLTemplate(child *IngressACLTemplate) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreateIngressACLTemplate(child *IngressACLTemplate) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreateIngressACLTemplate",
"(",
"child",
"*",
"IngressACLTemplate",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
... | // CreateIngressACLTemplate creates a new child IngressACLTemplate under the L2Domain | [
"CreateIngressACLTemplate",
"creates",
"a",
"new",
"child",
"IngressACLTemplate",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L400-L403 |
146,962 | nuagenetworks/vspk-go | vspk/l2domain.go | IngressAdvFwdTemplates | func (o *L2Domain) IngressAdvFwdTemplates(info *bambou.FetchingInfo) (IngressAdvFwdTemplatesList, *bambou.Error) {
var list IngressAdvFwdTemplatesList
err := bambou.CurrentSession().FetchChildren(o, IngressAdvFwdTemplateIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) IngressAdvFwdTemplates(info *bambou.FetchingInfo) (IngressAdvFwdTemplatesList, *bambou.Error) {
var list IngressAdvFwdTemplatesList
err := bambou.CurrentSession().FetchChildren(o, IngressAdvFwdTemplateIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"IngressAdvFwdTemplates",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"IngressAdvFwdTemplatesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"IngressAdvFwdTemplatesList",
"\n",
"err",
":=... | // IngressAdvFwdTemplates retrieves the list of child IngressAdvFwdTemplates of the L2Domain | [
"IngressAdvFwdTemplates",
"retrieves",
"the",
"list",
"of",
"child",
"IngressAdvFwdTemplates",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L406-L411 |
146,963 | nuagenetworks/vspk-go | vspk/l2domain.go | PolicyGroups | func (o *L2Domain) PolicyGroups(info *bambou.FetchingInfo) (PolicyGroupsList, *bambou.Error) {
var list PolicyGroupsList
err := bambou.CurrentSession().FetchChildren(o, PolicyGroupIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) PolicyGroups(info *bambou.FetchingInfo) (PolicyGroupsList, *bambou.Error) {
var list PolicyGroupsList
err := bambou.CurrentSession().FetchChildren(o, PolicyGroupIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"PolicyGroups",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"PolicyGroupsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"PolicyGroupsList",
"\n",
"err",
":=",
"bambou",
".",
"Curre... | // PolicyGroups retrieves the list of child PolicyGroups of the L2Domain | [
"PolicyGroups",
"retrieves",
"the",
"list",
"of",
"child",
"PolicyGroups",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L426-L431 |
146,964 | nuagenetworks/vspk-go | vspk/l2domain.go | CreatePolicyGroup | func (o *L2Domain) CreatePolicyGroup(child *PolicyGroup) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreatePolicyGroup(child *PolicyGroup) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreatePolicyGroup",
"(",
"child",
"*",
"PolicyGroup",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"
] | // CreatePolicyGroup creates a new child PolicyGroup under the L2Domain | [
"CreatePolicyGroup",
"creates",
"a",
"new",
"child",
"PolicyGroup",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L434-L437 |
146,965 | nuagenetworks/vspk-go | vspk/l2domain.go | Applications | func (o *L2Domain) Applications(info *bambou.FetchingInfo) (ApplicationsList, *bambou.Error) {
var list ApplicationsList
err := bambou.CurrentSession().FetchChildren(o, ApplicationIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) Applications(info *bambou.FetchingInfo) (ApplicationsList, *bambou.Error) {
var list ApplicationsList
err := bambou.CurrentSession().FetchChildren(o, ApplicationIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"Applications",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"ApplicationsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"ApplicationsList",
"\n",
"err",
":=",
"bambou",
".",
"Curre... | // Applications retrieves the list of child Applications of the L2Domain | [
"Applications",
"retrieves",
"the",
"list",
"of",
"child",
"Applications",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L514-L519 |
146,966 | nuagenetworks/vspk-go | vspk/l2domain.go | Applicationperformancemanagementbindings | func (o *L2Domain) Applicationperformancemanagementbindings(info *bambou.FetchingInfo) (ApplicationperformancemanagementbindingsList, *bambou.Error) {
var list ApplicationperformancemanagementbindingsList
err := bambou.CurrentSession().FetchChildren(o, ApplicationperformancemanagementbindingIdentity, &list, info)
r... | go | func (o *L2Domain) Applicationperformancemanagementbindings(info *bambou.FetchingInfo) (ApplicationperformancemanagementbindingsList, *bambou.Error) {
var list ApplicationperformancemanagementbindingsList
err := bambou.CurrentSession().FetchChildren(o, ApplicationperformancemanagementbindingIdentity, &list, info)
r... | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"Applicationperformancemanagementbindings",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"ApplicationperformancemanagementbindingsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"Applicationperf... | // Applicationperformancemanagementbindings retrieves the list of child Applicationperformancemanagementbindings of the L2Domain | [
"Applicationperformancemanagementbindings",
"retrieves",
"the",
"list",
"of",
"child",
"Applicationperformancemanagementbindings",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L522-L527 |
146,967 | nuagenetworks/vspk-go | vspk/l2domain.go | CreateApplicationperformancemanagementbinding | func (o *L2Domain) CreateApplicationperformancemanagementbinding(child *Applicationperformancemanagementbinding) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreateApplicationperformancemanagementbinding(child *Applicationperformancemanagementbinding) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreateApplicationperformancemanagementbinding",
"(",
"child",
"*",
"Applicationperformancemanagementbinding",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"("... | // CreateApplicationperformancemanagementbinding creates a new child Applicationperformancemanagementbinding under the L2Domain | [
"CreateApplicationperformancemanagementbinding",
"creates",
"a",
"new",
"child",
"Applicationperformancemanagementbinding",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L530-L533 |
146,968 | nuagenetworks/vspk-go | vspk/l2domain.go | BridgeInterfaces | func (o *L2Domain) BridgeInterfaces(info *bambou.FetchingInfo) (BridgeInterfacesList, *bambou.Error) {
var list BridgeInterfacesList
err := bambou.CurrentSession().FetchChildren(o, BridgeInterfaceIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) BridgeInterfaces(info *bambou.FetchingInfo) (BridgeInterfacesList, *bambou.Error) {
var list BridgeInterfacesList
err := bambou.CurrentSession().FetchChildren(o, BridgeInterfaceIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"BridgeInterfaces",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"BridgeInterfacesList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"BridgeInterfacesList",
"\n",
"err",
":=",
"bambou",
"... | // BridgeInterfaces retrieves the list of child BridgeInterfaces of the L2Domain | [
"BridgeInterfaces",
"retrieves",
"the",
"list",
"of",
"child",
"BridgeInterfaces",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L536-L541 |
146,969 | nuagenetworks/vspk-go | vspk/l2domain.go | Groups | func (o *L2Domain) Groups(info *bambou.FetchingInfo) (GroupsList, *bambou.Error) {
var list GroupsList
err := bambou.CurrentSession().FetchChildren(o, GroupIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) Groups(info *bambou.FetchingInfo) (GroupsList, *bambou.Error) {
var list GroupsList
err := bambou.CurrentSession().FetchChildren(o, GroupIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"Groups",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"GroupsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"GroupsList",
"\n",
"err",
":=",
"bambou",
".",
"CurrentSession",
"(",... | // Groups retrieves the list of child Groups of the L2Domain | [
"Groups",
"retrieves",
"the",
"list",
"of",
"child",
"Groups",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L544-L549 |
146,970 | nuagenetworks/vspk-go | vspk/l2domain.go | CreateStaticRoute | func (o *L2Domain) CreateStaticRoute(child *StaticRoute) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreateStaticRoute(child *StaticRoute) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreateStaticRoute",
"(",
"child",
"*",
"StaticRoute",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
")",
"\n",
"}"
] | // CreateStaticRoute creates a new child StaticRoute under the L2Domain | [
"CreateStaticRoute",
"creates",
"a",
"new",
"child",
"StaticRoute",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L576-L579 |
146,971 | nuagenetworks/vspk-go | vspk/l2domain.go | OverlayMirrorDestinations | func (o *L2Domain) OverlayMirrorDestinations(info *bambou.FetchingInfo) (OverlayMirrorDestinationsList, *bambou.Error) {
var list OverlayMirrorDestinationsList
err := bambou.CurrentSession().FetchChildren(o, OverlayMirrorDestinationIdentity, &list, info)
return list, err
} | go | func (o *L2Domain) OverlayMirrorDestinations(info *bambou.FetchingInfo) (OverlayMirrorDestinationsList, *bambou.Error) {
var list OverlayMirrorDestinationsList
err := bambou.CurrentSession().FetchChildren(o, OverlayMirrorDestinationIdentity, &list, info)
return list, err
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"OverlayMirrorDestinations",
"(",
"info",
"*",
"bambou",
".",
"FetchingInfo",
")",
"(",
"OverlayMirrorDestinationsList",
",",
"*",
"bambou",
".",
"Error",
")",
"{",
"var",
"list",
"OverlayMirrorDestinationsList",
"\n",
"er... | // OverlayMirrorDestinations retrieves the list of child OverlayMirrorDestinations of the L2Domain | [
"OverlayMirrorDestinations",
"retrieves",
"the",
"list",
"of",
"child",
"OverlayMirrorDestinations",
"of",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L612-L617 |
146,972 | nuagenetworks/vspk-go | vspk/l2domain.go | CreateOverlayMirrorDestination | func (o *L2Domain) CreateOverlayMirrorDestination(child *OverlayMirrorDestination) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | go | func (o *L2Domain) CreateOverlayMirrorDestination(child *OverlayMirrorDestination) *bambou.Error {
return bambou.CurrentSession().CreateChild(o, child)
} | [
"func",
"(",
"o",
"*",
"L2Domain",
")",
"CreateOverlayMirrorDestination",
"(",
"child",
"*",
"OverlayMirrorDestination",
")",
"*",
"bambou",
".",
"Error",
"{",
"return",
"bambou",
".",
"CurrentSession",
"(",
")",
".",
"CreateChild",
"(",
"o",
",",
"child",
"... | // CreateOverlayMirrorDestination creates a new child OverlayMirrorDestination under the L2Domain | [
"CreateOverlayMirrorDestination",
"creates",
"a",
"new",
"child",
"OverlayMirrorDestination",
"under",
"the",
"L2Domain"
] | c241b25534a9c311aaf7b2e180ad664a4085f935 | https://github.com/nuagenetworks/vspk-go/blob/c241b25534a9c311aaf7b2e180ad664a4085f935/vspk/l2domain.go#L620-L623 |
146,973 | kimor79/gollectd | gollectd.go | ParseDataSet | func ParseDataSet(s string) (string, []*Type, error) {
splitFn := func(c rune) bool {
return c == '\t' || c == ' ' || c == ','
}
fields := strings.FieldsFunc(s, splitFn)
if len(fields) < 2 {
return "", nil, fmt.Errorf("Minimum of 2 fields required \"%s\"", s)
}
dataSetName := fields[0]
dataSetSources := ma... | go | func ParseDataSet(s string) (string, []*Type, error) {
splitFn := func(c rune) bool {
return c == '\t' || c == ' ' || c == ','
}
fields := strings.FieldsFunc(s, splitFn)
if len(fields) < 2 {
return "", nil, fmt.Errorf("Minimum of 2 fields required \"%s\"", s)
}
dataSetName := fields[0]
dataSetSources := ma... | [
"func",
"ParseDataSet",
"(",
"s",
"string",
")",
"(",
"string",
",",
"[",
"]",
"*",
"Type",
",",
"error",
")",
"{",
"splitFn",
":=",
"func",
"(",
"c",
"rune",
")",
"bool",
"{",
"return",
"c",
"==",
"'\\t'",
"||",
"c",
"==",
"' '",
"||",
"c",
"=... | // ParseDataSet parses one line from a collectd types.db file and returns
// the data-set name & a Type struct | [
"ParseDataSet",
"parses",
"one",
"line",
"from",
"a",
"collectd",
"types",
".",
"db",
"file",
"and",
"returns",
"the",
"data",
"-",
"set",
"name",
"&",
"a",
"Type",
"struct"
] | b5dddb1667dcc1e6355b9305e2c1608a2db6983c | https://github.com/kimor79/gollectd/blob/b5dddb1667dcc1e6355b9305e2c1608a2db6983c/gollectd.go#L312-L349 |
146,974 | exzz/netatmo-api-go | weather.go | NewClient | func NewClient(config Config) (*Client, error) {
oauth := &oauth2.Config{
ClientID: config.ClientID,
ClientSecret: config.ClientSecret,
Scopes: []string{"read_station"},
Endpoint: oauth2.Endpoint{
AuthURL: baseURL,
TokenURL: authURL,
},
}
token, err := oauth.PasswordCredentialsToken(oauth... | go | func NewClient(config Config) (*Client, error) {
oauth := &oauth2.Config{
ClientID: config.ClientID,
ClientSecret: config.ClientSecret,
Scopes: []string{"read_station"},
Endpoint: oauth2.Endpoint{
AuthURL: baseURL,
TokenURL: authURL,
},
}
token, err := oauth.PasswordCredentialsToken(oauth... | [
"func",
"NewClient",
"(",
"config",
"Config",
")",
"(",
"*",
"Client",
",",
"error",
")",
"{",
"oauth",
":=",
"&",
"oauth2",
".",
"Config",
"{",
"ClientID",
":",
"config",
".",
"ClientID",
",",
"ClientSecret",
":",
"config",
".",
"ClientSecret",
",",
"... | // NewClient create a handle authentication to Netamo API | [
"NewClient",
"create",
"a",
"handle",
"authentication",
"to",
"Netamo",
"API"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L111-L129 |
146,975 | exzz/netatmo-api-go | weather.go | doHTTPPostForm | func (c *Client) doHTTPPostForm(url string, data url.Values) (*http.Response, error) {
req, err := http.NewRequest("POST", url, strings.NewReader(data.Encode()))
if err != nil {
return nil, err
}
//req.ContentLength = int64(reader.Len())
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
ret... | go | func (c *Client) doHTTPPostForm(url string, data url.Values) (*http.Response, error) {
req, err := http.NewRequest("POST", url, strings.NewReader(data.Encode()))
if err != nil {
return nil, err
}
//req.ContentLength = int64(reader.Len())
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
ret... | [
"func",
"(",
"c",
"*",
"Client",
")",
"doHTTPPostForm",
"(",
"url",
"string",
",",
"data",
"url",
".",
"Values",
")",
"(",
"*",
"http",
".",
"Response",
",",
"error",
")",
"{",
"req",
",",
"err",
":=",
"http",
".",
"NewRequest",
"(",
"\"",
"\"",
... | // do a url encoded HTTP POST request | [
"do",
"a",
"url",
"encoded",
"HTTP",
"POST",
"request"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L132-L143 |
146,976 | exzz/netatmo-api-go | weather.go | doHTTPGet | func (c *Client) doHTTPGet(url string, data url.Values) (*http.Response, error) {
if data != nil {
url = url + "?" + data.Encode()
}
req, err := http.NewRequest("GET", url, nil)
if err != nil {
return nil, err
}
return c.doHTTP(req)
} | go | func (c *Client) doHTTPGet(url string, data url.Values) (*http.Response, error) {
if data != nil {
url = url + "?" + data.Encode()
}
req, err := http.NewRequest("GET", url, nil)
if err != nil {
return nil, err
}
return c.doHTTP(req)
} | [
"func",
"(",
"c",
"*",
"Client",
")",
"doHTTPGet",
"(",
"url",
"string",
",",
"data",
"url",
".",
"Values",
")",
"(",
"*",
"http",
".",
"Response",
",",
"error",
")",
"{",
"if",
"data",
"!=",
"nil",
"{",
"url",
"=",
"url",
"+",
"\"",
"\"",
"+",... | // send http GET request | [
"send",
"http",
"GET",
"request"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L146-L156 |
146,977 | exzz/netatmo-api-go | weather.go | doHTTP | func (c *Client) doHTTP(req *http.Request) (*http.Response, error) {
// debug
//debug, _ := httputil.DumpRequestOut(req, true)
//fmt.Printf("%s\n\n", debug)
var err error
c.httpResponse, err = c.httpClient.Do(req)
if err != nil {
return nil, err
}
return c.httpResponse, nil
} | go | func (c *Client) doHTTP(req *http.Request) (*http.Response, error) {
// debug
//debug, _ := httputil.DumpRequestOut(req, true)
//fmt.Printf("%s\n\n", debug)
var err error
c.httpResponse, err = c.httpClient.Do(req)
if err != nil {
return nil, err
}
return c.httpResponse, nil
} | [
"func",
"(",
"c",
"*",
"Client",
")",
"doHTTP",
"(",
"req",
"*",
"http",
".",
"Request",
")",
"(",
"*",
"http",
".",
"Response",
",",
"error",
")",
"{",
"// debug",
"//debug, _ := httputil.DumpRequestOut(req, true)",
"//fmt.Printf(\"%s\\n\\n\", debug)",
"var",
"... | // do a generic HTTP request | [
"do",
"a",
"generic",
"HTTP",
"request"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L159-L171 |
146,978 | exzz/netatmo-api-go | weather.go | processHTTPResponse | func processHTTPResponse(resp *http.Response, err error, holder interface{}) error {
defer resp.Body.Close()
if err != nil {
return err
}
// debug
//debug, _ := httputil.DumpResponse(resp, true)
//fmt.Printf("%s\n\n", debug)
// check http return code
if resp.StatusCode != 200 {
//bytes, _ := ioutil.ReadAl... | go | func processHTTPResponse(resp *http.Response, err error, holder interface{}) error {
defer resp.Body.Close()
if err != nil {
return err
}
// debug
//debug, _ := httputil.DumpResponse(resp, true)
//fmt.Printf("%s\n\n", debug)
// check http return code
if resp.StatusCode != 200 {
//bytes, _ := ioutil.ReadAl... | [
"func",
"processHTTPResponse",
"(",
"resp",
"*",
"http",
".",
"Response",
",",
"err",
"error",
",",
"holder",
"interface",
"{",
"}",
")",
"error",
"{",
"defer",
"resp",
".",
"Body",
".",
"Close",
"(",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return... | // process HTTP response
// Unmarshall received data into holder struct | [
"process",
"HTTP",
"response",
"Unmarshall",
"received",
"data",
"into",
"holder",
"struct"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L175-L197 |
146,979 | exzz/netatmo-api-go | weather.go | Read | func (c *Client) Read() (*DeviceCollection, error) {
resp, err := c.doHTTPGet(deviceURL, url.Values{"app_type": {"app_station"}})
//dc := &DeviceCollection{}
if err = processHTTPResponse(resp, err, c.Dc); err != nil {
return nil, err
}
return c.Dc, nil
} | go | func (c *Client) Read() (*DeviceCollection, error) {
resp, err := c.doHTTPGet(deviceURL, url.Values{"app_type": {"app_station"}})
//dc := &DeviceCollection{}
if err = processHTTPResponse(resp, err, c.Dc); err != nil {
return nil, err
}
return c.Dc, nil
} | [
"func",
"(",
"c",
"*",
"Client",
")",
"Read",
"(",
")",
"(",
"*",
"DeviceCollection",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"c",
".",
"doHTTPGet",
"(",
"deviceURL",
",",
"url",
".",
"Values",
"{",
"\"",
"\"",
":",
"{",
"\"",
"\"",
"... | // GetStations returns the list of stations owned by the user, and their modules | [
"GetStations",
"returns",
"the",
"list",
"of",
"stations",
"owned",
"by",
"the",
"user",
"and",
"their",
"modules"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L200-L209 |
146,980 | exzz/netatmo-api-go | weather.go | Modules | func (d *Device) Modules() []*Device {
modules := d.LinkedModules
modules = append(modules, d)
return modules
} | go | func (d *Device) Modules() []*Device {
modules := d.LinkedModules
modules = append(modules, d)
return modules
} | [
"func",
"(",
"d",
"*",
"Device",
")",
"Modules",
"(",
")",
"[",
"]",
"*",
"Device",
"{",
"modules",
":=",
"d",
".",
"LinkedModules",
"\n",
"modules",
"=",
"append",
"(",
"modules",
",",
"d",
")",
"\n\n",
"return",
"modules",
"\n",
"}"
] | // Modules returns associated device module | [
"Modules",
"returns",
"associated",
"device",
"module"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L222-L227 |
146,981 | exzz/netatmo-api-go | weather.go | Data | func (d *Device) Data() (int64, map[string]interface{}) {
// return only populate field of DashboardData
m := make(map[string]interface{})
if d.DashboardData.Temperature != nil {
m["Temperature"] = *d.DashboardData.Temperature
}
if d.DashboardData.Humidity != nil {
m["Humidity"] = *d.DashboardData.Humidity
... | go | func (d *Device) Data() (int64, map[string]interface{}) {
// return only populate field of DashboardData
m := make(map[string]interface{})
if d.DashboardData.Temperature != nil {
m["Temperature"] = *d.DashboardData.Temperature
}
if d.DashboardData.Humidity != nil {
m["Humidity"] = *d.DashboardData.Humidity
... | [
"func",
"(",
"d",
"*",
"Device",
")",
"Data",
"(",
")",
"(",
"int64",
",",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
")",
"{",
"// return only populate field of DashboardData",
"m",
":=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
... | // Data returns timestamp and the list of sensor value for this module | [
"Data",
"returns",
"timestamp",
"and",
"the",
"list",
"of",
"sensor",
"value",
"for",
"this",
"module"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L230-L279 |
146,982 | exzz/netatmo-api-go | weather.go | Info | func (d *Device) Info() (int64, map[string]interface{}) {
// return only populate field of DashboardData
m := make(map[string]interface{})
// Return data from module level
if d.BatteryPercent != nil {
m["BatteryPercent"] = *d.BatteryPercent
}
if d.WifiStatus != nil {
m["WifiStatus"] = *d.WifiStatus
}
if d... | go | func (d *Device) Info() (int64, map[string]interface{}) {
// return only populate field of DashboardData
m := make(map[string]interface{})
// Return data from module level
if d.BatteryPercent != nil {
m["BatteryPercent"] = *d.BatteryPercent
}
if d.WifiStatus != nil {
m["WifiStatus"] = *d.WifiStatus
}
if d... | [
"func",
"(",
"d",
"*",
"Device",
")",
"Info",
"(",
")",
"(",
"int64",
",",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
")",
"{",
"// return only populate field of DashboardData",
"m",
":=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
... | // Info returns timestamp and the list of info value for this module | [
"Info",
"returns",
"timestamp",
"and",
"the",
"list",
"of",
"info",
"value",
"for",
"this",
"module"
] | 41589231f44643a3fad4fa1552a79fc8edc13698 | https://github.com/exzz/netatmo-api-go/blob/41589231f44643a3fad4fa1552a79fc8edc13698/weather.go#L282-L299 |
146,983 | badgerodon/peg | expressions.go | Match | func (this *ZeroOrMore) Match(offset int) (int, *Result) {
o := offset
children := make([]*Result, 0)
for {
i, r := this.Expression.Match(o)
if !r.Valid {
break
}
children = append(children, r)
o = i
}
return o, this.Parser.pass(offset, o-offset, this, children)
} | go | func (this *ZeroOrMore) Match(offset int) (int, *Result) {
o := offset
children := make([]*Result, 0)
for {
i, r := this.Expression.Match(o)
if !r.Valid {
break
}
children = append(children, r)
o = i
}
return o, this.Parser.pass(offset, o-offset, this, children)
} | [
"func",
"(",
"this",
"*",
"ZeroOrMore",
")",
"Match",
"(",
"offset",
"int",
")",
"(",
"int",
",",
"*",
"Result",
")",
"{",
"o",
":=",
"offset",
"\n",
"children",
":=",
"make",
"(",
"[",
"]",
"*",
"Result",
",",
"0",
")",
"\n",
"for",
"{",
"i",
... | // Zero or More | [
"Zero",
"or",
"More"
] | 9e5f7f4d07ca576562618c23e8abadda278b684f | https://github.com/badgerodon/peg/blob/9e5f7f4d07ca576562618c23e8abadda278b684f/expressions.go#L121-L133 |
146,984 | badgerodon/peg | expressions.go | Match | func (this *OneOrMore) Match(offset int) (int, *Result) {
o := offset
children := make([]*Result, 0)
for {
i, r := this.Expression.Match(o)
if !r.Valid {
if len(children) == 0 {
return offset, this.Parser.fail(i, i-offset, this, []*Result{r})
}
break
}
children = append(children, r)
o = i
}
... | go | func (this *OneOrMore) Match(offset int) (int, *Result) {
o := offset
children := make([]*Result, 0)
for {
i, r := this.Expression.Match(o)
if !r.Valid {
if len(children) == 0 {
return offset, this.Parser.fail(i, i-offset, this, []*Result{r})
}
break
}
children = append(children, r)
o = i
}
... | [
"func",
"(",
"this",
"*",
"OneOrMore",
")",
"Match",
"(",
"offset",
"int",
")",
"(",
"int",
",",
"*",
"Result",
")",
"{",
"o",
":=",
"offset",
"\n",
"children",
":=",
"make",
"(",
"[",
"]",
"*",
"Result",
",",
"0",
")",
"\n",
"for",
"{",
"i",
... | // One or More | [
"One",
"or",
"More"
] | 9e5f7f4d07ca576562618c23e8abadda278b684f | https://github.com/badgerodon/peg/blob/9e5f7f4d07ca576562618c23e8abadda278b684f/expressions.go#L138-L153 |
146,985 | kimor79/gollectd | examples/server.go | Listen | func Listen(addr string, c chan collectd.Packet, typesdb string) {
laddr, err := net.ResolveUDPAddr("udp", addr)
if err != nil {
log.Fatalln("fatal: failed to resolve address", err)
}
conn, err := net.ListenUDP("udp", laddr)
if err != nil {
log.Fatalln("fatal: failed to listen", err)
}
types, err := collec... | go | func Listen(addr string, c chan collectd.Packet, typesdb string) {
laddr, err := net.ResolveUDPAddr("udp", addr)
if err != nil {
log.Fatalln("fatal: failed to resolve address", err)
}
conn, err := net.ListenUDP("udp", laddr)
if err != nil {
log.Fatalln("fatal: failed to listen", err)
}
types, err := collec... | [
"func",
"Listen",
"(",
"addr",
"string",
",",
"c",
"chan",
"collectd",
".",
"Packet",
",",
"typesdb",
"string",
")",
"{",
"laddr",
",",
"err",
":=",
"net",
".",
"ResolveUDPAddr",
"(",
"\"",
"\"",
",",
"addr",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{... | // Listen for collectd network packets, parse , and send them over a channel | [
"Listen",
"for",
"collectd",
"network",
"packets",
"parse",
"and",
"send",
"them",
"over",
"a",
"channel"
] | b5dddb1667dcc1e6355b9305e2c1608a2db6983c | https://github.com/kimor79/gollectd/blob/b5dddb1667dcc1e6355b9305e2c1608a2db6983c/examples/server.go#L12-L49 |
146,986 | badgerodon/peg | peg.go | Range | func (this *Parser) Range(start, end int) *OrderedChoice {
exps := make([]Exp, (end - start)+1)
for i := start; i <= end; i++ {
exps[i-start] = &Terminal{this,i}
}
return &OrderedChoice{this,exps}
} | go | func (this *Parser) Range(start, end int) *OrderedChoice {
exps := make([]Exp, (end - start)+1)
for i := start; i <= end; i++ {
exps[i-start] = &Terminal{this,i}
}
return &OrderedChoice{this,exps}
} | [
"func",
"(",
"this",
"*",
"Parser",
")",
"Range",
"(",
"start",
",",
"end",
"int",
")",
"*",
"OrderedChoice",
"{",
"exps",
":=",
"make",
"(",
"[",
"]",
"Exp",
",",
"(",
"end",
"-",
"start",
")",
"+",
"1",
")",
"\n",
"for",
"i",
":=",
"start",
... | // Extensions for easier construction | [
"Extensions",
"for",
"easier",
"construction"
] | 9e5f7f4d07ca576562618c23e8abadda278b684f | https://github.com/badgerodon/peg/blob/9e5f7f4d07ca576562618c23e8abadda278b684f/peg.go#L87-L93 |
146,987 | karrick/goswarm | simple.go | Close | func (s *Simple) Close() error {
if s.config.GCPeriodicity > 0 {
close(s.halt)
return <-s.closeError
}
return nil
} | go | func (s *Simple) Close() error {
if s.config.GCPeriodicity > 0 {
close(s.halt)
return <-s.closeError
}
return nil
} | [
"func",
"(",
"s",
"*",
"Simple",
")",
"Close",
"(",
")",
"error",
"{",
"if",
"s",
".",
"config",
".",
"GCPeriodicity",
">",
"0",
"{",
"close",
"(",
"s",
".",
"halt",
")",
"\n",
"return",
"<-",
"s",
".",
"closeError",
"\n",
"}",
"\n",
"return",
... | // Close releases all memory and go-routines used by the Simple swarm. If
// during instantiation, GCPeriodicity was greater than the zero-value for
// time.Duration, this method may block while completing any in progress GC run. | [
"Close",
"releases",
"all",
"memory",
"and",
"go",
"-",
"routines",
"used",
"by",
"the",
"Simple",
"swarm",
".",
"If",
"during",
"instantiation",
"GCPeriodicity",
"was",
"greater",
"than",
"the",
"zero",
"-",
"value",
"for",
"time",
".",
"Duration",
"this",
... | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L117-L123 |
146,988 | karrick/goswarm | simple.go | Delete | func (s *Simple) Delete(key string) {
atomic.AddInt64(&s.stats.Deletes, 1)
s.lock.RLock()
_, ok := s.data[key]
s.lock.RUnlock()
if !ok {
// If key is not in the data map then there is nothing to delete.
return
}
// Element is in data map, but need to acquire exclusive map lock before we
// delete it.
s.l... | go | func (s *Simple) Delete(key string) {
atomic.AddInt64(&s.stats.Deletes, 1)
s.lock.RLock()
_, ok := s.data[key]
s.lock.RUnlock()
if !ok {
// If key is not in the data map then there is nothing to delete.
return
}
// Element is in data map, but need to acquire exclusive map lock before we
// delete it.
s.l... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"Delete",
"(",
"key",
"string",
")",
"{",
"atomic",
".",
"AddInt64",
"(",
"&",
"s",
".",
"stats",
".",
"Deletes",
",",
"1",
")",
"\n\n",
"s",
".",
"lock",
".",
"RLock",
"(",
")",
"\n",
"_",
",",
"ok",
":=... | // Delete removes the key and associated value from the data map. | [
"Delete",
"removes",
"the",
"key",
"and",
"associated",
"value",
"from",
"the",
"data",
"map",
"."
] | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L126-L142 |
146,989 | karrick/goswarm | simple.go | GC | func (s *Simple) GC() {
// Bail if another GC thread is already running. This may happen
// automatically when GCPeriodicity is shorter than GCTimeout, or when user
// manually invokes GC method.
if !atomic.CompareAndSwapInt32(&s.gcFlag, 0, 1) {
return
}
defer atomic.StoreInt32(&s.gcFlag, 0)
// MARK PHASE
s.... | go | func (s *Simple) GC() {
// Bail if another GC thread is already running. This may happen
// automatically when GCPeriodicity is shorter than GCTimeout, or when user
// manually invokes GC method.
if !atomic.CompareAndSwapInt32(&s.gcFlag, 0, 1) {
return
}
defer atomic.StoreInt32(&s.gcFlag, 0)
// MARK PHASE
s.... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"GC",
"(",
")",
"{",
"// Bail if another GC thread is already running. This may happen",
"// automatically when GCPeriodicity is shorter than GCTimeout, or when user",
"// manually invokes GC method.",
"if",
"!",
"atomic",
".",
"CompareAndSwapI... | // GC examines all key value pairs in the Simple swarm and deletes those whose
// values have expired. | [
"GC",
"examines",
"all",
"key",
"value",
"pairs",
"in",
"the",
"Simple",
"swarm",
"and",
"deletes",
"those",
"whose",
"values",
"have",
"expired",
"."
] | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L151-L240 |
146,990 | karrick/goswarm | simple.go | Load | func (s *Simple) Load(key string) (interface{}, bool) {
atomic.AddInt64(&s.stats.Queries, 1)
// Do not want to use getOrCreateLockingTimeValue, because there's no reason
// to create ATV if key is not present in data map.
s.lock.RLock()
atv, ok := s.data[key]
s.lock.RUnlock()
if !ok {
atomic.AddInt64(&s.stats... | go | func (s *Simple) Load(key string) (interface{}, bool) {
atomic.AddInt64(&s.stats.Queries, 1)
// Do not want to use getOrCreateLockingTimeValue, because there's no reason
// to create ATV if key is not present in data map.
s.lock.RLock()
atv, ok := s.data[key]
s.lock.RUnlock()
if !ok {
atomic.AddInt64(&s.stats... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"Load",
"(",
"key",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"bool",
")",
"{",
"atomic",
".",
"AddInt64",
"(",
"&",
"s",
".",
"stats",
".",
"Queries",
",",
"1",
")",
"\n\n",
"// Do not want to use getOrCre... | // Load returns the value associated with the specified key, and a boolean value
// indicating whether or not the key was found in the map. | [
"Load",
"returns",
"the",
"value",
"associated",
"with",
"the",
"specified",
"key",
"and",
"a",
"boolean",
"value",
"indicating",
"whether",
"or",
"not",
"the",
"key",
"was",
"found",
"in",
"the",
"map",
"."
] | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L244-L279 |
146,991 | karrick/goswarm | simple.go | Query | func (s *Simple) Query(key string) (interface{}, error) {
atomic.AddInt64(&s.stats.Queries, 1)
atv := s.getOrCreateAtomicTimedValue(key)
av := atv.av.Load()
if av == nil {
atomic.AddInt64(&s.stats.Misses, 1)
tv := s.update(key, atv)
return tv.Value, tv.Err
}
now := time.Now()
tv := av.(*TimedValue)
if ... | go | func (s *Simple) Query(key string) (interface{}, error) {
atomic.AddInt64(&s.stats.Queries, 1)
atv := s.getOrCreateAtomicTimedValue(key)
av := atv.av.Load()
if av == nil {
atomic.AddInt64(&s.stats.Misses, 1)
tv := s.update(key, atv)
return tv.Value, tv.Err
}
now := time.Now()
tv := av.(*TimedValue)
if ... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"Query",
"(",
"key",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"atomic",
".",
"AddInt64",
"(",
"&",
"s",
".",
"stats",
".",
"Queries",
",",
"1",
")",
"\n\n",
"atv",
":=",
"s",
".",
... | // Query loads the value associated with the specified key from the data
// map. When a stale value is found on Query, at most one asynchronous lookup of
// a new value is triggered, and the current value is returned from the data
// map. When no value or an expired value is found on Query, a synchronous
// lookup of a... | [
"Query",
"loads",
"the",
"value",
"associated",
"with",
"the",
"specified",
"key",
"from",
"the",
"data",
"map",
".",
"When",
"a",
"stale",
"value",
"is",
"found",
"on",
"Query",
"at",
"most",
"one",
"asynchronous",
"lookup",
"of",
"a",
"new",
"value",
"... | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L324-L359 |
146,992 | karrick/goswarm | simple.go | Range | func (s *Simple) Range(callback func(key string, value *TimedValue)) {
// Need to have read lock while enumerating key-value pairs from map
s.lock.RLock()
for key, atv := range s.data {
// Now that we have a key-value pair from the map, we can release the
// map's lock to prevent blocking other routines that nee... | go | func (s *Simple) Range(callback func(key string, value *TimedValue)) {
// Need to have read lock while enumerating key-value pairs from map
s.lock.RLock()
for key, atv := range s.data {
// Now that we have a key-value pair from the map, we can release the
// map's lock to prevent blocking other routines that nee... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"Range",
"(",
"callback",
"func",
"(",
"key",
"string",
",",
"value",
"*",
"TimedValue",
")",
")",
"{",
"// Need to have read lock while enumerating key-value pairs from map",
"s",
".",
"lock",
".",
"RLock",
"(",
")",
"\n"... | // Range invokes specified callback function for each non-expired key in the
// data map. Each key-value pair is independently locked until the callback
// function invoked with the specified key returns. This method does not block
// access to the Simple instance, allowing keys to be added and removed like
// normal e... | [
"Range",
"invokes",
"specified",
"callback",
"function",
"for",
"each",
"non",
"-",
"expired",
"key",
"in",
"the",
"data",
"map",
".",
"Each",
"key",
"-",
"value",
"pair",
"is",
"independently",
"locked",
"until",
"the",
"callback",
"function",
"invoked",
"w... | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L366-L387 |
146,993 | karrick/goswarm | simple.go | RangeBreak | func (s *Simple) RangeBreak(callback func(key string, value *TimedValue) bool) bool {
// Need to have read lock while enumerating key-value pairs from map
s.lock.RLock()
for key, atv := range s.data {
// Now that we have a key-value pair from the map, we can release the
// map's lock to prevent blocking other ro... | go | func (s *Simple) RangeBreak(callback func(key string, value *TimedValue) bool) bool {
// Need to have read lock while enumerating key-value pairs from map
s.lock.RLock()
for key, atv := range s.data {
// Now that we have a key-value pair from the map, we can release the
// map's lock to prevent blocking other ro... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"RangeBreak",
"(",
"callback",
"func",
"(",
"key",
"string",
",",
"value",
"*",
"TimedValue",
")",
"bool",
")",
"bool",
"{",
"// Need to have read lock while enumerating key-value pairs from map",
"s",
".",
"lock",
".",
"RLo... | // RangeBreak invokes specified callback function for each non-expired key in
// the data map. Each key-value pair is independently locked until the callback
// function invoked with the specified key returns. This method does not block
// access to the Simple instance, allowing keys to be added and removed like
// nor... | [
"RangeBreak",
"invokes",
"specified",
"callback",
"function",
"for",
"each",
"non",
"-",
"expired",
"key",
"in",
"the",
"data",
"map",
".",
"Each",
"key",
"-",
"value",
"pair",
"is",
"independently",
"locked",
"until",
"the",
"callback",
"function",
"invoked",... | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L396-L420 |
146,994 | karrick/goswarm | simple.go | Stats | func (s *Simple) Stats() Stats {
s.lock.RLock()
count := int64(len(s.data))
s.lock.RUnlock()
return Stats{
Count: count,
Creates: atomic.SwapInt64(&s.stats.Creates, 0),
Deletes: atomic.SwapInt64(&s.stats.Deletes, 0),
Evictions: atomic.SwapInt64(&s.stats.Evictions, 0),
Hits: at... | go | func (s *Simple) Stats() Stats {
s.lock.RLock()
count := int64(len(s.data))
s.lock.RUnlock()
return Stats{
Count: count,
Creates: atomic.SwapInt64(&s.stats.Creates, 0),
Deletes: atomic.SwapInt64(&s.stats.Deletes, 0),
Evictions: atomic.SwapInt64(&s.stats.Evictions, 0),
Hits: at... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"Stats",
"(",
")",
"Stats",
"{",
"s",
".",
"lock",
".",
"RLock",
"(",
")",
"\n",
"count",
":=",
"int64",
"(",
"len",
"(",
"s",
".",
"data",
")",
")",
"\n",
"s",
".",
"lock",
".",
"RUnlock",
"(",
")",
"\... | // Stats returns a snapshot of the cache's statistics. Note all statistics will
// be reset when this method is invoked, allowing the client to determine the
// number of each respective events that have taken place since the previous
// time this method was invoked. | [
"Stats",
"returns",
"a",
"snapshot",
"of",
"the",
"cache",
"s",
"statistics",
".",
"Note",
"all",
"statistics",
"will",
"be",
"reset",
"when",
"this",
"method",
"is",
"invoked",
"allowing",
"the",
"client",
"to",
"determine",
"the",
"number",
"of",
"each",
... | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L426-L444 |
146,995 | karrick/goswarm | simple.go | Store | func (s *Simple) Store(key string, value interface{}) {
atomic.AddInt64(&s.stats.Stores, 1)
atv := s.getOrCreateAtomicTimedValue(key)
// NOTE: Below invocation ignores the provided durations when value is
// already a TimedValue.
tv := newTimedValue(value, nil, s.config.GoodStaleDuration, s.config.GoodExpiryDurat... | go | func (s *Simple) Store(key string, value interface{}) {
atomic.AddInt64(&s.stats.Stores, 1)
atv := s.getOrCreateAtomicTimedValue(key)
// NOTE: Below invocation ignores the provided durations when value is
// already a TimedValue.
tv := newTimedValue(value, nil, s.config.GoodStaleDuration, s.config.GoodExpiryDurat... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"Store",
"(",
"key",
"string",
",",
"value",
"interface",
"{",
"}",
")",
"{",
"atomic",
".",
"AddInt64",
"(",
"&",
"s",
".",
"stats",
".",
"Stores",
",",
"1",
")",
"\n",
"atv",
":=",
"s",
".",
"getOrCreateAto... | // Store saves the key-value pair to the cache, overwriting whatever was
// previously stored. | [
"Store",
"saves",
"the",
"key",
"-",
"value",
"pair",
"to",
"the",
"cache",
"overwriting",
"whatever",
"was",
"previously",
"stored",
"."
] | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L448-L457 |
146,996 | karrick/goswarm | simple.go | Update | func (s *Simple) Update(key string) {
atomic.AddInt64(&s.stats.Updates, 1)
atv := s.getOrCreateAtomicTimedValue(key)
s.update(key, atv)
} | go | func (s *Simple) Update(key string) {
atomic.AddInt64(&s.stats.Updates, 1)
atv := s.getOrCreateAtomicTimedValue(key)
s.update(key, atv)
} | [
"func",
"(",
"s",
"*",
"Simple",
")",
"Update",
"(",
"key",
"string",
")",
"{",
"atomic",
".",
"AddInt64",
"(",
"&",
"s",
".",
"stats",
".",
"Updates",
",",
"1",
")",
"\n",
"atv",
":=",
"s",
".",
"getOrCreateAtomicTimedValue",
"(",
"key",
")",
"\n"... | // Update forces an update of the value associated with the specified key. | [
"Update",
"forces",
"an",
"update",
"of",
"the",
"value",
"associated",
"with",
"the",
"specified",
"key",
"."
] | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L460-L464 |
146,997 | karrick/goswarm | simple.go | update | func (s *Simple) update(key string, atv *atomicTimedValue) *TimedValue {
value, err := s.config.Lookup(key)
if err == nil {
tv := newTimedValue(value, nil, s.config.GoodStaleDuration, s.config.GoodExpiryDuration)
atv.av.Store(tv)
return tv
}
// lookup gave us an error
atomic.AddInt64(&s.stats.LookupErrors, ... | go | func (s *Simple) update(key string, atv *atomicTimedValue) *TimedValue {
value, err := s.config.Lookup(key)
if err == nil {
tv := newTimedValue(value, nil, s.config.GoodStaleDuration, s.config.GoodExpiryDuration)
atv.av.Store(tv)
return tv
}
// lookup gave us an error
atomic.AddInt64(&s.stats.LookupErrors, ... | [
"func",
"(",
"s",
"*",
"Simple",
")",
"update",
"(",
"key",
"string",
",",
"atv",
"*",
"atomicTimedValue",
")",
"*",
"TimedValue",
"{",
"value",
",",
"err",
":=",
"s",
".",
"config",
".",
"Lookup",
"(",
"key",
")",
"\n",
"if",
"err",
"==",
"nil",
... | // The update method attempts to update a new value for the specified key. If
// the update is successful, it stores the value in the TimedValue associated
// with the key. | [
"The",
"update",
"method",
"attempts",
"to",
"update",
"a",
"new",
"value",
"for",
"the",
"specified",
"key",
".",
"If",
"the",
"update",
"is",
"successful",
"it",
"stores",
"the",
"value",
"in",
"the",
"TimedValue",
"associated",
"with",
"the",
"key",
"."... | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/simple.go#L503-L532 |
146,998 | karrick/goswarm | timedValue.go | IsExpiredAt | func (tv *TimedValue) IsExpiredAt(when time.Time) bool {
if tv.Err == nil {
return !tv.Expiry.IsZero() && when.After(tv.Expiry)
}
// NOTE: When a TimedValue stores an error result, then a zero-value for the
// Expiry imply the value is immediately expired.
return tv.Expiry.IsZero() || when.After(tv.Expiry)
} | go | func (tv *TimedValue) IsExpiredAt(when time.Time) bool {
if tv.Err == nil {
return !tv.Expiry.IsZero() && when.After(tv.Expiry)
}
// NOTE: When a TimedValue stores an error result, then a zero-value for the
// Expiry imply the value is immediately expired.
return tv.Expiry.IsZero() || when.After(tv.Expiry)
} | [
"func",
"(",
"tv",
"*",
"TimedValue",
")",
"IsExpiredAt",
"(",
"when",
"time",
".",
"Time",
")",
"bool",
"{",
"if",
"tv",
".",
"Err",
"==",
"nil",
"{",
"return",
"!",
"tv",
".",
"Expiry",
".",
"IsZero",
"(",
")",
"&&",
"when",
".",
"After",
"(",
... | // IsExpiredAt returns true when the value is expired at the specified time.
//
// A value is expired when its non-zero expiry time is before the specified
// time, or when the value represents an error and expiry time is the time.Time
// zero-value. | [
"IsExpiredAt",
"returns",
"true",
"when",
"the",
"value",
"is",
"expired",
"at",
"the",
"specified",
"time",
".",
"A",
"value",
"is",
"expired",
"when",
"its",
"non",
"-",
"zero",
"expiry",
"time",
"is",
"before",
"the",
"specified",
"time",
"or",
"when",
... | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/timedValue.go#L69-L76 |
146,999 | karrick/goswarm | timedValue.go | IsStaleAt | func (tv *TimedValue) IsStaleAt(when time.Time) bool {
if tv.Err == nil {
return !tv.Stale.IsZero() && when.After(tv.Stale)
}
// NOTE: When a TimedValue stores an error result, then a zero-value for the
// Stale or Expiry imply the value is immediately stale.
return tv.Stale.IsZero() || when.After(tv.Stale)
} | go | func (tv *TimedValue) IsStaleAt(when time.Time) bool {
if tv.Err == nil {
return !tv.Stale.IsZero() && when.After(tv.Stale)
}
// NOTE: When a TimedValue stores an error result, then a zero-value for the
// Stale or Expiry imply the value is immediately stale.
return tv.Stale.IsZero() || when.After(tv.Stale)
} | [
"func",
"(",
"tv",
"*",
"TimedValue",
")",
"IsStaleAt",
"(",
"when",
"time",
".",
"Time",
")",
"bool",
"{",
"if",
"tv",
".",
"Err",
"==",
"nil",
"{",
"return",
"!",
"tv",
".",
"Stale",
".",
"IsZero",
"(",
")",
"&&",
"when",
".",
"After",
"(",
"... | // IsStaleAt returns true when the value is stale at the specified time.
//
// A value is stale when its non-zero stale time is before the specified time,
// or when the value represents an error and stale time is the time.Time
// zero-value. | [
"IsStaleAt",
"returns",
"true",
"when",
"the",
"value",
"is",
"stale",
"at",
"the",
"specified",
"time",
".",
"A",
"value",
"is",
"stale",
"when",
"its",
"non",
"-",
"zero",
"stale",
"time",
"is",
"before",
"the",
"specified",
"time",
"or",
"when",
"the"... | 23ee89c82398e9cd1690e2ef1183eab732869ed3 | https://github.com/karrick/goswarm/blob/23ee89c82398e9cd1690e2ef1183eab732869ed3/timedValue.go#L92-L99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.