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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
137,300 | terra-farm/go-xen-api-client | pool_gen.go | HaComputeHypotheticalMaxHostFailuresToTolerate | func (_class PoolClass) HaComputeHypotheticalMaxHostFailuresToTolerate(sessionID SessionRef, configuration map[VMRef]string) (_retval int, _err error) {
_method := "pool.ha_compute_hypothetical_max_host_failures_to_tolerate"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), s... | go | func (_class PoolClass) HaComputeHypotheticalMaxHostFailuresToTolerate(sessionID SessionRef, configuration map[VMRef]string) (_retval int, _err error) {
_method := "pool.ha_compute_hypothetical_max_host_failures_to_tolerate"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), s... | [
"func",
"(",
"_class",
"PoolClass",
")",
"HaComputeHypotheticalMaxHostFailuresToTolerate",
"(",
"sessionID",
"SessionRef",
",",
"configuration",
"map",
"[",
"VMRef",
"]",
"string",
")",
"(",
"_retval",
"int",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\""... | // Returns the maximum number of host failures we could tolerate before we would be unable to restart the provided VMs | [
"Returns",
"the",
"maximum",
"number",
"of",
"host",
"failures",
"we",
"could",
"tolerate",
"before",
"we",
"would",
"be",
"unable",
"to",
"restart",
"the",
"provided",
"VMs"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L750-L766 |
137,301 | terra-farm/go-xen-api-client | pool_gen.go | HaFailoverPlanExists | func (_class PoolClass) HaFailoverPlanExists(sessionID SessionRef, n int) (_retval bool, _err error) {
_method := "pool.ha_failover_plan_exists"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_nArg, _err := convertIntToXen(fmt.Spri... | go | func (_class PoolClass) HaFailoverPlanExists(sessionID SessionRef, n int) (_retval bool, _err error) {
_method := "pool.ha_failover_plan_exists"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_nArg, _err := convertIntToXen(fmt.Spri... | [
"func",
"(",
"_class",
"PoolClass",
")",
"HaFailoverPlanExists",
"(",
"sessionID",
"SessionRef",
",",
"n",
"int",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSe... | // Returns true if a VM failover plan exists for up to 'n' host failures | [
"Returns",
"true",
"if",
"a",
"VM",
"failover",
"plan",
"exists",
"for",
"up",
"to",
"n",
"host",
"failures"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L784-L800 |
137,302 | terra-farm/go-xen-api-client | pool_gen.go | HaPreventRestartsFor | func (_class PoolClass) HaPreventRestartsFor(sessionID SessionRef, seconds int) (_err error) {
_method := "pool.ha_prevent_restarts_for"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_secondsArg, _err := convertIntToXen(fmt.Sprint... | go | func (_class PoolClass) HaPreventRestartsFor(sessionID SessionRef, seconds int) (_err error) {
_method := "pool.ha_prevent_restarts_for"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_secondsArg, _err := convertIntToXen(fmt.Sprint... | [
"func",
"(",
"_class",
"PoolClass",
")",
"HaPreventRestartsFor",
"(",
"sessionID",
"SessionRef",
",",
"seconds",
"int",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(",
... | // When this call returns the VM restart logic will not run for the requested number of seconds. If the argument is zero then the restart thread is immediately unblocked | [
"When",
"this",
"call",
"returns",
"the",
"VM",
"restart",
"logic",
"will",
"not",
"run",
"for",
"the",
"requested",
"number",
"of",
"seconds",
".",
"If",
"the",
"argument",
"is",
"zero",
"then",
"the",
"restart",
"thread",
"is",
"immediately",
"unblocked"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L803-L815 |
137,303 | terra-farm/go-xen-api-client | pool_gen.go | EnableHa | func (_class PoolClass) EnableHa(sessionID SessionRef, heartbeatSrs []SRRef, configuration map[string]string) (_err error) {
_method := "pool.enable_ha"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_heartbeatSrsArg, _err := conve... | go | func (_class PoolClass) EnableHa(sessionID SessionRef, heartbeatSrs []SRRef, configuration map[string]string) (_err error) {
_method := "pool.enable_ha"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_heartbeatSrsArg, _err := conve... | [
"func",
"(",
"_class",
"PoolClass",
")",
"EnableHa",
"(",
"sessionID",
"SessionRef",
",",
"heartbeatSrs",
"[",
"]",
"SRRef",
",",
"configuration",
"map",
"[",
"string",
"]",
"string",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n"... | // Turn on High Availability mode | [
"Turn",
"on",
"High",
"Availability",
"mode"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L855-L871 |
137,304 | terra-farm/go-xen-api-client | pool_gen.go | RecoverSlaves | func (_class PoolClass) RecoverSlaves(sessionID SessionRef) (_retval []HostRef, _err error) {
_method := "pool.recover_slaves"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionI... | go | func (_class PoolClass) RecoverSlaves(sessionID SessionRef) (_retval []HostRef, _err error) {
_method := "pool.recover_slaves"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionI... | [
"func",
"(",
"_class",
"PoolClass",
")",
"RecoverSlaves",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"HostRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen... | // Instruct a pool master, M, to try and contact its slaves and, if slaves are in emergency mode, reset their master address to M. | [
"Instruct",
"a",
"pool",
"master",
"M",
"to",
"try",
"and",
"contact",
"its",
"slaves",
"and",
"if",
"slaves",
"are",
"in",
"emergency",
"mode",
"reset",
"their",
"master",
"address",
"to",
"M",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L957-L969 |
137,305 | terra-farm/go-xen-api-client | pool_gen.go | EmergencyResetMaster | func (_class PoolClass) EmergencyResetMaster(sessionID SessionRef, masterAddress string) (_err error) {
_method := "pool.emergency_reset_master"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_masterAddressArg, _err := convertStrin... | go | func (_class PoolClass) EmergencyResetMaster(sessionID SessionRef, masterAddress string) (_err error) {
_method := "pool.emergency_reset_master"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_masterAddressArg, _err := convertStrin... | [
"func",
"(",
"_class",
"PoolClass",
")",
"EmergencyResetMaster",
"(",
"sessionID",
"SessionRef",
",",
"masterAddress",
"string",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",... | // Instruct a slave already in a pool that the master has changed | [
"Instruct",
"a",
"slave",
"already",
"in",
"a",
"pool",
"that",
"the",
"master",
"has",
"changed"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L972-L984 |
137,306 | terra-farm/go-xen-api-client | pool_gen.go | Eject | func (_class PoolClass) Eject(sessionID SessionRef, host HostRef) (_err error) {
_method := "pool.eject"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_hostArg, _err := convertHostRefToXen(fmt.Sprintf("%s(%s)", _method, "host"), h... | go | func (_class PoolClass) Eject(sessionID SessionRef, host HostRef) (_err error) {
_method := "pool.eject"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_hostArg, _err := convertHostRefToXen(fmt.Sprintf("%s(%s)", _method, "host"), h... | [
"func",
"(",
"_class",
"PoolClass",
")",
"Eject",
"(",
"sessionID",
"SessionRef",
",",
"host",
"HostRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(",
"fmt",
".",... | // Instruct a pool master to eject a host from the pool | [
"Instruct",
"a",
"pool",
"master",
"to",
"eject",
"a",
"host",
"from",
"the",
"pool"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L998-L1010 |
137,307 | terra-farm/go-xen-api-client | pool_gen.go | JoinForce | func (_class PoolClass) JoinForce(sessionID SessionRef, masterAddress string, masterUsername string, masterPassword string) (_err error) {
_method := "pool.join_force"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_masterAddressAr... | go | func (_class PoolClass) JoinForce(sessionID SessionRef, masterAddress string, masterUsername string, masterPassword string) (_err error) {
_method := "pool.join_force"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_masterAddressAr... | [
"func",
"(",
"_class",
"PoolClass",
")",
"JoinForce",
"(",
"sessionID",
"SessionRef",
",",
"masterAddress",
"string",
",",
"masterUsername",
"string",
",",
"masterPassword",
"string",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_... | // Instruct host to join a new pool | [
"Instruct",
"host",
"to",
"join",
"a",
"new",
"pool"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L1013-L1033 |
137,308 | terra-farm/go-xen-api-client | pool_gen.go | SetLivePatchingDisabled | func (_class PoolClass) SetLivePatchingDisabled(sessionID SessionRef, self PoolRef, value bool) (_err error) {
_method := "pool.set_live_patching_disabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoo... | go | func (_class PoolClass) SetLivePatchingDisabled(sessionID SessionRef, self PoolRef, value bool) (_err error) {
_method := "pool.set_live_patching_disabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoo... | [
"func",
"(",
"_class",
"PoolClass",
")",
"SetLivePatchingDisabled",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PoolRef",
",",
"value",
"bool",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"c... | // Set the live_patching_disabled field of the given pool. | [
"Set",
"the",
"live_patching_disabled",
"field",
"of",
"the",
"given",
"pool",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L1062-L1078 |
137,309 | terra-farm/go-xen-api-client | pool_gen.go | SetCrashDumpSR | func (_class PoolClass) SetCrashDumpSR(sessionID SessionRef, self PoolRef, value SRRef) (_err error) {
_method := "pool.set_crash_dump_SR"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(fmt.Spr... | go | func (_class PoolClass) SetCrashDumpSR(sessionID SessionRef, self PoolRef, value SRRef) (_err error) {
_method := "pool.set_crash_dump_SR"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(fmt.Spr... | [
"func",
"(",
"_class",
"PoolClass",
")",
"SetCrashDumpSR",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PoolRef",
",",
"value",
"SRRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSe... | // Set the crash_dump_SR field of the given pool. | [
"Set",
"the",
"crash_dump_SR",
"field",
"of",
"the",
"given",
"pool",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L1397-L1413 |
137,310 | terra-farm/go-xen-api-client | pool_gen.go | GetIgmpSnoopingEnabled | func (_class PoolClass) GetIgmpSnoopingEnabled(sessionID SessionRef, self PoolRef) (_retval bool, _err error) {
_method := "pool.get_igmp_snooping_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoo... | go | func (_class PoolClass) GetIgmpSnoopingEnabled(sessionID SessionRef, self PoolRef) (_retval bool, _err error) {
_method := "pool.get_igmp_snooping_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoo... | [
"func",
"(",
"_class",
"PoolClass",
")",
"GetIgmpSnoopingEnabled",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PoolRef",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"... | // Get the igmp_snooping_enabled field of the given pool. | [
"Get",
"the",
"igmp_snooping_enabled",
"field",
"of",
"the",
"given",
"pool",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L1492-L1508 |
137,311 | terra-farm/go-xen-api-client | pool_gen.go | GetMetadataVDIs | func (_class PoolClass) GetMetadataVDIs(sessionID SessionRef, self PoolRef) (_retval []VDIRef, _err error) {
_method := "pool.get_metadata_VDIs"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(f... | go | func (_class PoolClass) GetMetadataVDIs(sessionID SessionRef, self PoolRef) (_retval []VDIRef, _err error) {
_method := "pool.get_metadata_VDIs"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(f... | [
"func",
"(",
"_class",
"PoolClass",
")",
"GetMetadataVDIs",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PoolRef",
")",
"(",
"_retval",
"[",
"]",
"VDIRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
... | // Get the metadata_VDIs field of the given pool. | [
"Get",
"the",
"metadata_VDIs",
"field",
"of",
"the",
"given",
"pool",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L1644-L1660 |
137,312 | terra-farm/go-xen-api-client | pool_gen.go | GetHaHostFailuresToTolerate | func (_class PoolClass) GetHaHostFailuresToTolerate(sessionID SessionRef, self PoolRef) (_retval int, _err error) {
_method := "pool.get_ha_host_failures_to_tolerate"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err :=... | go | func (_class PoolClass) GetHaHostFailuresToTolerate(sessionID SessionRef, self PoolRef) (_retval int, _err error) {
_method := "pool.get_ha_host_failures_to_tolerate"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err :=... | [
"func",
"(",
"_class",
"PoolClass",
")",
"GetHaHostFailuresToTolerate",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PoolRef",
")",
"(",
"_retval",
"int",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",... | // Get the ha_host_failures_to_tolerate field of the given pool. | [
"Get",
"the",
"ha_host_failures_to_tolerate",
"field",
"of",
"the",
"given",
"pool",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L1948-L1964 |
137,313 | terra-farm/go-xen-api-client | pool_gen.go | GetCrashDumpSR | func (_class PoolClass) GetCrashDumpSR(sessionID SessionRef, self PoolRef) (_retval SRRef, _err error) {
_method := "pool.get_crash_dump_SR"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(fmt.S... | go | func (_class PoolClass) GetCrashDumpSR(sessionID SessionRef, self PoolRef) (_retval SRRef, _err error) {
_method := "pool.get_crash_dump_SR"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(fmt.S... | [
"func",
"(",
"_class",
"PoolClass",
")",
"GetCrashDumpSR",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PoolRef",
")",
"(",
"_retval",
"SRRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convert... | // Get the crash_dump_SR field of the given pool. | [
"Get",
"the",
"crash_dump_SR",
"field",
"of",
"the",
"given",
"pool",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L2043-L2059 |
137,314 | terra-farm/go-xen-api-client | pool_gen.go | GetMaster | func (_class PoolClass) GetMaster(sessionID SessionRef, self PoolRef) (_retval HostRef, _err error) {
_method := "pool.get_master"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(fmt.Sprintf("%s... | go | func (_class PoolClass) GetMaster(sessionID SessionRef, self PoolRef) (_retval HostRef, _err error) {
_method := "pool.get_master"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(fmt.Sprintf("%s... | [
"func",
"(",
"_class",
"PoolClass",
")",
"GetMaster",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PoolRef",
")",
"(",
"_retval",
"HostRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSes... | // Get the master field of the given pool. | [
"Get",
"the",
"master",
"field",
"of",
"the",
"given",
"pool",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L2100-L2116 |
137,315 | terra-farm/go-xen-api-client | pool_gen.go | GetRecord | func (_class PoolClass) GetRecord(sessionID SessionRef, self PoolRef) (_retval PoolRecord, _err error) {
_method := "pool.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(fmt.Sprintf(... | go | func (_class PoolClass) GetRecord(sessionID SessionRef, self PoolRef) (_retval PoolRecord, _err error) {
_method := "pool.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPoolRefToXen(fmt.Sprintf(... | [
"func",
"(",
"_class",
"PoolClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PoolRef",
")",
"(",
"_retval",
"PoolRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convert... | // Get a record containing the current state of the given pool. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"pool",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pool_gen.go#L2195-L2211 |
137,316 | terra-farm/go-xen-api-client | vm_guest_metrics_gen.go | GetAllRecords | func (_class VMGuestMetricsClass) GetAllRecords(sessionID SessionRef) (_retval map[VMGuestMetricsRef]VMGuestMetricsRecord, _err error) {
_method := "VM_guest_metrics.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_... | go | func (_class VMGuestMetricsClass) GetAllRecords(sessionID SessionRef) (_retval map[VMGuestMetricsRef]VMGuestMetricsRecord, _err error) {
_method := "VM_guest_metrics.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_... | [
"func",
"(",
"_class",
"VMGuestMetricsClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"VMGuestMetricsRef",
"]",
"VMGuestMetricsRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDA... | // Return a map of VM_guest_metrics references to VM_guest_metrics records for all VM_guest_metrics instances known to the system. | [
"Return",
"a",
"map",
"of",
"VM_guest_metrics",
"references",
"to",
"VM_guest_metrics",
"records",
"for",
"all",
"VM_guest_metrics",
"instances",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vm_guest_metrics_gen.go#L73-L85 |
137,317 | terra-farm/go-xen-api-client | vm_guest_metrics_gen.go | GetAll | func (_class VMGuestMetricsClass) GetAll(sessionID SessionRef) (_retval []VMGuestMetricsRef, _err error) {
_method := "VM_guest_metrics.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(... | go | func (_class VMGuestMetricsClass) GetAll(sessionID SessionRef) (_retval []VMGuestMetricsRef, _err error) {
_method := "VM_guest_metrics.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(... | [
"func",
"(",
"_class",
"VMGuestMetricsClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"VMGuestMetricsRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSe... | // Return a list of all the VM_guest_metrics instances known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"VM_guest_metrics",
"instances",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vm_guest_metrics_gen.go#L88-L100 |
137,318 | terra-farm/go-xen-api-client | vm_guest_metrics_gen.go | GetPVDriversDetected | func (_class VMGuestMetricsClass) GetPVDriversDetected(sessionID SessionRef, self VMGuestMetricsRef) (_retval bool, _err error) {
_method := "VM_guest_metrics.get_PV_drivers_detected"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
... | go | func (_class VMGuestMetricsClass) GetPVDriversDetected(sessionID SessionRef, self VMGuestMetricsRef) (_retval bool, _err error) {
_method := "VM_guest_metrics.get_PV_drivers_detected"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
... | [
"func",
"(",
"_class",
"VMGuestMetricsClass",
")",
"GetPVDriversDetected",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMGuestMetricsRef",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"... | // Get the PV_drivers_detected field of the given VM_guest_metrics. | [
"Get",
"the",
"PV_drivers_detected",
"field",
"of",
"the",
"given",
"VM_guest_metrics",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vm_guest_metrics_gen.go#L164-L180 |
137,319 | terra-farm/go-xen-api-client | vm_guest_metrics_gen.go | GetCanUseHotplugVif | func (_class VMGuestMetricsClass) GetCanUseHotplugVif(sessionID SessionRef, self VMGuestMetricsRef) (_retval TristateType, _err error) {
_method := "VM_guest_metrics.get_can_use_hotplug_vif"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
retu... | go | func (_class VMGuestMetricsClass) GetCanUseHotplugVif(sessionID SessionRef, self VMGuestMetricsRef) (_retval TristateType, _err error) {
_method := "VM_guest_metrics.get_can_use_hotplug_vif"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
retu... | [
"func",
"(",
"_class",
"VMGuestMetricsClass",
")",
"GetCanUseHotplugVif",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMGuestMetricsRef",
")",
"(",
"_retval",
"TristateType",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
"... | // Get the can_use_hotplug_vif field of the given VM_guest_metrics. | [
"Get",
"the",
"can_use_hotplug_vif",
"field",
"of",
"the",
"given",
"VM_guest_metrics",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vm_guest_metrics_gen.go#L183-L199 |
137,320 | terra-farm/go-xen-api-client | vm_guest_metrics_gen.go | GetLastUpdated | func (_class VMGuestMetricsClass) GetLastUpdated(sessionID SessionRef, self VMGuestMetricsRef) (_retval time.Time, _err error) {
_method := "VM_guest_metrics.get_last_updated"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg... | go | func (_class VMGuestMetricsClass) GetLastUpdated(sessionID SessionRef, self VMGuestMetricsRef) (_retval time.Time, _err error) {
_method := "VM_guest_metrics.get_last_updated"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg... | [
"func",
"(",
"_class",
"VMGuestMetricsClass",
")",
"GetLastUpdated",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMGuestMetricsRef",
")",
"(",
"_retval",
"time",
".",
"Time",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",... | // Get the last_updated field of the given VM_guest_metrics. | [
"Get",
"the",
"last_updated",
"field",
"of",
"the",
"given",
"VM_guest_metrics",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vm_guest_metrics_gen.go#L259-L275 |
137,321 | terra-farm/go-xen-api-client | vm_guest_metrics_gen.go | GetRecord | func (_class VMGuestMetricsClass) GetRecord(sessionID SessionRef, self VMGuestMetricsRef) (_retval VMGuestMetricsRecord, _err error) {
_method := "VM_guest_metrics.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg... | go | func (_class VMGuestMetricsClass) GetRecord(sessionID SessionRef, self VMGuestMetricsRef) (_retval VMGuestMetricsRecord, _err error) {
_method := "VM_guest_metrics.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg... | [
"func",
"(",
"_class",
"VMGuestMetricsClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMGuestMetricsRef",
")",
"(",
"_retval",
"VMGuestMetricsRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
","... | // Get a record containing the current state of the given VM_guest_metrics. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"VM_guest_metrics",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vm_guest_metrics_gen.go#L449-L465 |
137,322 | terra-farm/go-xen-api-client | subject_gen.go | GetAllRecords | func (_class SubjectClass) GetAllRecords(sessionID SessionRef) (_retval map[SubjectRef]SubjectRecord, _err error) {
_method := "subject.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.... | go | func (_class SubjectClass) GetAllRecords(sessionID SessionRef) (_retval map[SubjectRef]SubjectRecord, _err error) {
_method := "subject.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.... | [
"func",
"(",
"_class",
"SubjectClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"SubjectRef",
"]",
"SubjectRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",... | // Return a map of subject references to subject records for all subjects known to the system. | [
"Return",
"a",
"map",
"of",
"subject",
"references",
"to",
"subject",
"records",
"for",
"all",
"subjects",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/subject_gen.go#L42-L54 |
137,323 | terra-farm/go-xen-api-client | subject_gen.go | GetAll | func (_class SubjectClass) GetAll(sessionID SessionRef) (_retval []SubjectRef, _err error) {
_method := "subject.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)... | go | func (_class SubjectClass) GetAll(sessionID SessionRef) (_retval []SubjectRef, _err error) {
_method := "subject.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)... | [
"func",
"(",
"_class",
"SubjectClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"SubjectRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen"... | // Return a list of all the subjects known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"subjects",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/subject_gen.go#L57-L69 |
137,324 | terra-farm/go-xen-api-client | subject_gen.go | RemoveFromRoles | func (_class SubjectClass) RemoveFromRoles(sessionID SessionRef, self SubjectRef, role RoleRef) (_err error) {
_method := "subject.remove_from_roles"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSubjectRe... | go | func (_class SubjectClass) RemoveFromRoles(sessionID SessionRef, self SubjectRef, role RoleRef) (_err error) {
_method := "subject.remove_from_roles"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSubjectRe... | [
"func",
"(",
"_class",
"SubjectClass",
")",
"RemoveFromRoles",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SubjectRef",
",",
"role",
"RoleRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"c... | // This call removes a role from a subject | [
"This",
"call",
"removes",
"a",
"role",
"from",
"a",
"subject"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/subject_gen.go#L91-L107 |
137,325 | terra-farm/go-xen-api-client | subject_gen.go | GetRoles | func (_class SubjectClass) GetRoles(sessionID SessionRef, self SubjectRef) (_retval []RoleRef, _err error) {
_method := "subject.get_roles"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSubjectRefToXen(fmt... | go | func (_class SubjectClass) GetRoles(sessionID SessionRef, self SubjectRef) (_retval []RoleRef, _err error) {
_method := "subject.get_roles"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSubjectRefToXen(fmt... | [
"func",
"(",
"_class",
"SubjectClass",
")",
"GetRoles",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SubjectRef",
")",
"(",
"_retval",
"[",
"]",
"RoleRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
... | // Get the roles field of the given subject. | [
"Get",
"the",
"roles",
"field",
"of",
"the",
"given",
"subject",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/subject_gen.go#L129-L145 |
137,326 | terra-farm/go-xen-api-client | subject_gen.go | Destroy | func (_class SubjectClass) Destroy(sessionID SessionRef, self SubjectRef) (_err error) {
_method := "subject.destroy"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSubjectRefToXen(fmt.Sprintf("%s(%s)", _me... | go | func (_class SubjectClass) Destroy(sessionID SessionRef, self SubjectRef) (_err error) {
_method := "subject.destroy"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSubjectRefToXen(fmt.Sprintf("%s(%s)", _me... | [
"func",
"(",
"_class",
"SubjectClass",
")",
"Destroy",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SubjectRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(",
"fmt"... | // Destroy the specified subject instance. | [
"Destroy",
"the",
"specified",
"subject",
"instance",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/subject_gen.go#L205-L217 |
137,327 | terra-farm/go-xen-api-client | subject_gen.go | GetRecord | func (_class SubjectClass) GetRecord(sessionID SessionRef, self SubjectRef) (_retval SubjectRecord, _err error) {
_method := "subject.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSubjectRefToX... | go | func (_class SubjectClass) GetRecord(sessionID SessionRef, self SubjectRef) (_retval SubjectRecord, _err error) {
_method := "subject.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSubjectRefToX... | [
"func",
"(",
"_class",
"SubjectClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SubjectRef",
")",
"(",
"_retval",
"SubjectRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Get a record containing the current state of the given subject. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"subject",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/subject_gen.go#L259-L275 |
137,328 | terra-farm/go-xen-api-client | role_gen.go | GetAllRecords | func (_class RoleClass) GetAllRecords(sessionID SessionRef) (_retval map[RoleRef]RoleRecord, _err error) {
_method := "role.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | go | func (_class RoleClass) GetAllRecords(sessionID SessionRef) (_retval map[RoleRef]RoleRecord, _err error) {
_method := "role.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | [
"func",
"(",
"_class",
"RoleClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"RoleRef",
"]",
"RoleRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Return a map of role references to role records for all roles known to the system. | [
"Return",
"a",
"map",
"of",
"role",
"references",
"to",
"role",
"records",
"for",
"all",
"roles",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/role_gen.go#L42-L54 |
137,329 | terra-farm/go-xen-api-client | role_gen.go | GetAll | func (_class RoleClass) GetAll(sessionID SessionRef) (_retval []RoleRef, _err error) {
_method := "role.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)
if _err... | go | func (_class RoleClass) GetAll(sessionID SessionRef) (_retval []RoleRef, _err error) {
_method := "role.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)
if _err... | [
"func",
"(",
"_class",
"RoleClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"RoleRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(... | // Return a list of all the roles known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"roles",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/role_gen.go#L57-L69 |
137,330 | terra-farm/go-xen-api-client | role_gen.go | GetByPermissionNameLabel | func (_class RoleClass) GetByPermissionNameLabel(sessionID SessionRef, label string) (_retval []RoleRef, _err error) {
_method := "role.get_by_permission_name_label"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_labelArg, _err :=... | go | func (_class RoleClass) GetByPermissionNameLabel(sessionID SessionRef, label string) (_retval []RoleRef, _err error) {
_method := "role.get_by_permission_name_label"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_labelArg, _err :=... | [
"func",
"(",
"_class",
"RoleClass",
")",
"GetByPermissionNameLabel",
"(",
"sessionID",
"SessionRef",
",",
"label",
"string",
")",
"(",
"_retval",
"[",
"]",
"RoleRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
... | // This call returns a list of roles given a permission name | [
"This",
"call",
"returns",
"a",
"list",
"of",
"roles",
"given",
"a",
"permission",
"name"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/role_gen.go#L72-L88 |
137,331 | terra-farm/go-xen-api-client | role_gen.go | GetByPermission | func (_class RoleClass) GetByPermission(sessionID SessionRef, permission RoleRef) (_retval []RoleRef, _err error) {
_method := "role.get_by_permission"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_permissionArg, _err := convertR... | go | func (_class RoleClass) GetByPermission(sessionID SessionRef, permission RoleRef) (_retval []RoleRef, _err error) {
_method := "role.get_by_permission"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_permissionArg, _err := convertR... | [
"func",
"(",
"_class",
"RoleClass",
")",
"GetByPermission",
"(",
"sessionID",
"SessionRef",
",",
"permission",
"RoleRef",
")",
"(",
"_retval",
"[",
"]",
"RoleRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_e... | // This call returns a list of roles given a permission | [
"This",
"call",
"returns",
"a",
"list",
"of",
"roles",
"given",
"a",
"permission"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/role_gen.go#L91-L107 |
137,332 | terra-farm/go-xen-api-client | session_gen.go | LogoutSubjectIdentifier | func (_class SessionClass) LogoutSubjectIdentifier(sessionID SessionRef, subjectIdentifier string) (_err error) {
_method := "session.logout_subject_identifier"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_subjectIdentifierArg, ... | go | func (_class SessionClass) LogoutSubjectIdentifier(sessionID SessionRef, subjectIdentifier string) (_err error) {
_method := "session.logout_subject_identifier"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_subjectIdentifierArg, ... | [
"func",
"(",
"_class",
"SessionClass",
")",
"LogoutSubjectIdentifier",
"(",
"sessionID",
"SessionRef",
",",
"subjectIdentifier",
"string",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSession... | // Log out all sessions associated to a user subject-identifier, except the session associated with the context calling this function | [
"Log",
"out",
"all",
"sessions",
"associated",
"to",
"a",
"user",
"subject",
"-",
"identifier",
"except",
"the",
"session",
"associated",
"with",
"the",
"context",
"calling",
"this",
"function"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L64-L76 |
137,333 | terra-farm/go-xen-api-client | session_gen.go | SlaveLocalLoginWithPassword | func (_class SessionClass) SlaveLocalLoginWithPassword(uname string, pwd string) (_retval SessionRef, _err error) {
_method := "session.slave_local_login_with_password"
_unameArg, _err := convertStringToXen(fmt.Sprintf("%s(%s)", _method, "uname"), uname)
if _err != nil {
return
}
_pwdArg, _err := convertStringTo... | go | func (_class SessionClass) SlaveLocalLoginWithPassword(uname string, pwd string) (_retval SessionRef, _err error) {
_method := "session.slave_local_login_with_password"
_unameArg, _err := convertStringToXen(fmt.Sprintf("%s(%s)", _method, "uname"), uname)
if _err != nil {
return
}
_pwdArg, _err := convertStringTo... | [
"func",
"(",
"_class",
"SessionClass",
")",
"SlaveLocalLoginWithPassword",
"(",
"uname",
"string",
",",
"pwd",
"string",
")",
"(",
"_retval",
"SessionRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_unameArg",
",",
"_err",
":=",
"... | // Authenticate locally against a slave in emergency mode. Note the resulting sessions are only good for use on this host. | [
"Authenticate",
"locally",
"against",
"a",
"slave",
"in",
"emergency",
"mode",
".",
"Note",
"the",
"resulting",
"sessions",
"are",
"only",
"good",
"for",
"use",
"on",
"this",
"host",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L124-L140 |
137,334 | terra-farm/go-xen-api-client | session_gen.go | ChangePassword | func (_class SessionClass) ChangePassword(sessionID SessionRef, oldPwd string, newPwd string) (_err error) {
_method := "session.change_password"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_oldPwdArg, _err := convertStringToXen... | go | func (_class SessionClass) ChangePassword(sessionID SessionRef, oldPwd string, newPwd string) (_err error) {
_method := "session.change_password"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_oldPwdArg, _err := convertStringToXen... | [
"func",
"(",
"_class",
"SessionClass",
")",
"ChangePassword",
"(",
"sessionID",
"SessionRef",
",",
"oldPwd",
"string",
",",
"newPwd",
"string",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"con... | // Change the account password; if your session is authenticated with root priviledges then the old_pwd is validated and the new_pwd is set regardless | [
"Change",
"the",
"account",
"password",
";",
"if",
"your",
"session",
"is",
"authenticated",
"with",
"root",
"priviledges",
"then",
"the",
"old_pwd",
"is",
"validated",
"and",
"the",
"new_pwd",
"is",
"set",
"regardless"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L143-L159 |
137,335 | terra-farm/go-xen-api-client | session_gen.go | Logout | func (_class SessionClass) Logout(sessionID SessionRef) (_err error) {
_method := "session.logout"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_, _err = _class.client.APICall(_method, _sessionIDArg)
return
} | go | func (_class SessionClass) Logout(sessionID SessionRef) (_err error) {
_method := "session.logout"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_, _err = _class.client.APICall(_method, _sessionIDArg)
return
} | [
"func",
"(",
"_class",
"SessionClass",
")",
"Logout",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(",
"fmt",
".",
"Sprintf",
"(",
"\"... | // Log out of a session | [
"Log",
"out",
"of",
"a",
"session"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L162-L170 |
137,336 | terra-farm/go-xen-api-client | session_gen.go | GetParent | func (_class SessionClass) GetParent(sessionID SessionRef, self SessionRef) (_retval SessionRef, _err error) {
_method := "session.get_parent"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToXen(... | go | func (_class SessionClass) GetParent(sessionID SessionRef, self SessionRef) (_retval SessionRef, _err error) {
_method := "session.get_parent"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToXen(... | [
"func",
"(",
"_class",
"SessionClass",
")",
"GetParent",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SessionRef",
")",
"(",
"_retval",
"SessionRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"c... | // Get the parent field of the given session. | [
"Get",
"the",
"parent",
"field",
"of",
"the",
"given",
"session",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L284-L300 |
137,337 | terra-farm/go-xen-api-client | session_gen.go | GetSubject | func (_class SessionClass) GetSubject(sessionID SessionRef, self SessionRef) (_retval SubjectRef, _err error) {
_method := "session.get_subject"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToXe... | go | func (_class SessionClass) GetSubject(sessionID SessionRef, self SessionRef) (_retval SubjectRef, _err error) {
_method := "session.get_subject"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToXe... | [
"func",
"(",
"_class",
"SessionClass",
")",
"GetSubject",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SessionRef",
")",
"(",
"_retval",
"SubjectRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"... | // Get the subject field of the given session. | [
"Get",
"the",
"subject",
"field",
"of",
"the",
"given",
"session",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L398-L414 |
137,338 | terra-farm/go-xen-api-client | session_gen.go | GetIsLocalSuperuser | func (_class SessionClass) GetIsLocalSuperuser(sessionID SessionRef, self SessionRef) (_retval bool, _err error) {
_method := "session.get_is_local_superuser"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convert... | go | func (_class SessionClass) GetIsLocalSuperuser(sessionID SessionRef, self SessionRef) (_retval bool, _err error) {
_method := "session.get_is_local_superuser"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convert... | [
"func",
"(",
"_class",
"SessionClass",
")",
"GetIsLocalSuperuser",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SessionRef",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Get the is_local_superuser field of the given session. | [
"Get",
"the",
"is_local_superuser",
"field",
"of",
"the",
"given",
"session",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L417-L433 |
137,339 | terra-farm/go-xen-api-client | session_gen.go | GetLastActive | func (_class SessionClass) GetLastActive(sessionID SessionRef, self SessionRef) (_retval time.Time, _err error) {
_method := "session.get_last_active"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionR... | go | func (_class SessionClass) GetLastActive(sessionID SessionRef, self SessionRef) (_retval time.Time, _err error) {
_method := "session.get_last_active"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionR... | [
"func",
"(",
"_class",
"SessionClass",
")",
"GetLastActive",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SessionRef",
")",
"(",
"_retval",
"time",
".",
"Time",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err... | // Get the last_active field of the given session. | [
"Get",
"the",
"last_active",
"field",
"of",
"the",
"given",
"session",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L474-L490 |
137,340 | terra-farm/go-xen-api-client | session_gen.go | GetThisUser | func (_class SessionClass) GetThisUser(sessionID SessionRef, self SessionRef) (_retval UserRef, _err error) {
_method := "session.get_this_user"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToXe... | go | func (_class SessionClass) GetThisUser(sessionID SessionRef, self SessionRef) (_retval UserRef, _err error) {
_method := "session.get_this_user"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToXe... | [
"func",
"(",
"_class",
"SessionClass",
")",
"GetThisUser",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SessionRef",
")",
"(",
"_retval",
"UserRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"co... | // Get the this_user field of the given session. | [
"Get",
"the",
"this_user",
"field",
"of",
"the",
"given",
"session",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L493-L509 |
137,341 | terra-farm/go-xen-api-client | session_gen.go | GetThisHost | func (_class SessionClass) GetThisHost(sessionID SessionRef, self SessionRef) (_retval HostRef, _err error) {
_method := "session.get_this_host"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToXe... | go | func (_class SessionClass) GetThisHost(sessionID SessionRef, self SessionRef) (_retval HostRef, _err error) {
_method := "session.get_this_host"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToXe... | [
"func",
"(",
"_class",
"SessionClass",
")",
"GetThisHost",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SessionRef",
")",
"(",
"_retval",
"HostRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"co... | // Get the this_host field of the given session. | [
"Get",
"the",
"this_host",
"field",
"of",
"the",
"given",
"session",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L512-L528 |
137,342 | terra-farm/go-xen-api-client | session_gen.go | GetRecord | func (_class SessionClass) GetRecord(sessionID SessionRef, self SessionRef) (_retval SessionRecord, _err error) {
_method := "session.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToX... | go | func (_class SessionClass) GetRecord(sessionID SessionRef, self SessionRef) (_retval SessionRecord, _err error) {
_method := "session.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertSessionRefToX... | [
"func",
"(",
"_class",
"SessionClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"SessionRef",
")",
"(",
"_retval",
"SessionRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Get a record containing the current state of the given session. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"session",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/session_gen.go#L569-L585 |
137,343 | terra-farm/go-xen-api-client | vmss_gen.go | GetAllRecords | func (_class VMSSClass) GetAllRecords(sessionID SessionRef) (_retval map[VMSSRef]VMSSRecord, _err error) {
_method := "VMSS.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | go | func (_class VMSSClass) GetAllRecords(sessionID SessionRef) (_retval map[VMSSRef]VMSSRecord, _err error) {
_method := "VMSS.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"VMSSRef",
"]",
"VMSSRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Return a map of VMSS references to VMSS records for all VMSSs known to the system. | [
"Return",
"a",
"map",
"of",
"VMSS",
"references",
"to",
"VMSS",
"records",
"for",
"all",
"VMSSs",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L76-L88 |
137,344 | terra-farm/go-xen-api-client | vmss_gen.go | GetAll | func (_class VMSSClass) GetAll(sessionID SessionRef) (_retval []VMSSRef, _err error) {
_method := "VMSS.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)
if _err... | go | func (_class VMSSClass) GetAll(sessionID SessionRef) (_retval []VMSSRef, _err error) {
_method := "VMSS.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)
if _err... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"VMSSRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(... | // Return a list of all the VMSSs known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"VMSSs",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L91-L103 |
137,345 | terra-farm/go-xen-api-client | vmss_gen.go | SetFrequency | func (_class VMSSClass) SetFrequency(sessionID SessionRef, self VMSSRef, value VmssFrequency) (_err error) {
_method := "VMSS.set_frequency"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.S... | go | func (_class VMSSClass) SetFrequency(sessionID SessionRef, self VMSSRef, value VmssFrequency) (_err error) {
_method := "VMSS.set_frequency"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.S... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"SetFrequency",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
",",
"value",
"VmssFrequency",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"con... | // Set the value of the frequency field | [
"Set",
"the",
"value",
"of",
"the",
"frequency",
"field"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L205-L221 |
137,346 | terra-farm/go-xen-api-client | vmss_gen.go | SnapshotNow | func (_class VMSSClass) SnapshotNow(sessionID SessionRef, vmss VMSSRef) (_retval string, _err error) {
_method := "VMSS.snapshot_now"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_vmssArg, _err := convertVMSSRefToXen(fmt.Sprintf(... | go | func (_class VMSSClass) SnapshotNow(sessionID SessionRef, vmss VMSSRef) (_retval string, _err error) {
_method := "VMSS.snapshot_now"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_vmssArg, _err := convertVMSSRefToXen(fmt.Sprintf(... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"SnapshotNow",
"(",
"sessionID",
"SessionRef",
",",
"vmss",
"VMSSRef",
")",
"(",
"_retval",
"string",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSe... | // This call executes the snapshot schedule immediately | [
"This",
"call",
"executes",
"the",
"snapshot",
"schedule",
"immediately"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L243-L259 |
137,347 | terra-farm/go-xen-api-client | vmss_gen.go | SetEnabled | func (_class VMSSClass) SetEnabled(sessionID SessionRef, self VMSSRef, value bool) (_err error) {
_method := "VMSS.set_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(%s... | go | func (_class VMSSClass) SetEnabled(sessionID SessionRef, self VMSSRef, value bool) (_err error) {
_method := "VMSS.set_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(%s... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"SetEnabled",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
",",
"value",
"bool",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSession... | // Set the enabled field of the given VMSS. | [
"Set",
"the",
"enabled",
"field",
"of",
"the",
"given",
"VMSS",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L262-L278 |
137,348 | terra-farm/go-xen-api-client | vmss_gen.go | GetVMs | func (_class VMSSClass) GetVMs(sessionID SessionRef, self VMSSRef) (_retval []VMRef, _err error) {
_method := "VMSS.get_VMs"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(%s)",... | go | func (_class VMSSClass) GetVMs(sessionID SessionRef, self VMSSRef) (_retval []VMRef, _err error) {
_method := "VMSS.get_VMs"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(%s)",... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetVMs",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
")",
"(",
"_retval",
"[",
"]",
"VMRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"c... | // Get the VMs field of the given VMSS. | [
"Get",
"the",
"VMs",
"field",
"of",
"the",
"given",
"VMSS",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L319-L335 |
137,349 | terra-farm/go-xen-api-client | vmss_gen.go | GetLastRunTime | func (_class VMSSClass) GetLastRunTime(sessionID SessionRef, self VMSSRef) (_retval time.Time, _err error) {
_method := "VMSS.get_last_run_time"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(f... | go | func (_class VMSSClass) GetLastRunTime(sessionID SessionRef, self VMSSRef) (_retval time.Time, _err error) {
_method := "VMSS.get_last_run_time"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(f... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetLastRunTime",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
")",
"(",
"_retval",
"time",
".",
"Time",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
... | // Get the last_run_time field of the given VMSS. | [
"Get",
"the",
"last_run_time",
"field",
"of",
"the",
"given",
"VMSS",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L338-L354 |
137,350 | terra-farm/go-xen-api-client | vmss_gen.go | GetFrequency | func (_class VMSSClass) GetFrequency(sessionID SessionRef, self VMSSRef) (_retval VmssFrequency, _err error) {
_method := "VMSS.get_frequency"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt... | go | func (_class VMSSClass) GetFrequency(sessionID SessionRef, self VMSSRef) (_retval VmssFrequency, _err error) {
_method := "VMSS.get_frequency"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetFrequency",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
")",
"(",
"_retval",
"VmssFrequency",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"c... | // Get the frequency field of the given VMSS. | [
"Get",
"the",
"frequency",
"field",
"of",
"the",
"given",
"VMSS",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L376-L392 |
137,351 | terra-farm/go-xen-api-client | vmss_gen.go | GetRetainedSnapshots | func (_class VMSSClass) GetRetainedSnapshots(sessionID SessionRef, self VMSSRef) (_retval int, _err error) {
_method := "VMSS.get_retained_snapshots"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefTo... | go | func (_class VMSSClass) GetRetainedSnapshots(sessionID SessionRef, self VMSSRef) (_retval int, _err error) {
_method := "VMSS.get_retained_snapshots"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefTo... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetRetainedSnapshots",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
")",
"(",
"_retval",
"int",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"con... | // Get the retained_snapshots field of the given VMSS. | [
"Get",
"the",
"retained_snapshots",
"field",
"of",
"the",
"given",
"VMSS",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L395-L411 |
137,352 | terra-farm/go-xen-api-client | vmss_gen.go | GetType | func (_class VMSSClass) GetType(sessionID SessionRef, self VMSSRef) (_retval VmssType, _err error) {
_method := "VMSS.get_type"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(%s... | go | func (_class VMSSClass) GetType(sessionID SessionRef, self VMSSRef) (_retval VmssType, _err error) {
_method := "VMSS.get_type"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(%s... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetType",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
")",
"(",
"_retval",
"VmssType",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSess... | // Get the type field of the given VMSS. | [
"Get",
"the",
"type",
"field",
"of",
"the",
"given",
"VMSS",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L414-L430 |
137,353 | terra-farm/go-xen-api-client | vmss_gen.go | GetEnabled | func (_class VMSSClass) GetEnabled(sessionID SessionRef, self VMSSRef) (_retval bool, _err error) {
_method := "VMSS.get_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(... | go | func (_class VMSSClass) GetEnabled(sessionID SessionRef, self VMSSRef) (_retval bool, _err error) {
_method := "VMSS.get_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetEnabled",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessi... | // Get the enabled field of the given VMSS. | [
"Get",
"the",
"enabled",
"field",
"of",
"the",
"given",
"VMSS",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L433-L449 |
137,354 | terra-farm/go-xen-api-client | vmss_gen.go | GetByNameLabel | func (_class VMSSClass) GetByNameLabel(sessionID SessionRef, label string) (_retval []VMSSRef, _err error) {
_method := "VMSS.get_by_name_label"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_labelArg, _err := convertStringToXen(f... | go | func (_class VMSSClass) GetByNameLabel(sessionID SessionRef, label string) (_retval []VMSSRef, _err error) {
_method := "VMSS.get_by_name_label"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_labelArg, _err := convertStringToXen(f... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetByNameLabel",
"(",
"sessionID",
"SessionRef",
",",
"label",
"string",
")",
"(",
"_retval",
"[",
"]",
"VMSSRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
... | // Get all the VMSS instances with the given label. | [
"Get",
"all",
"the",
"VMSS",
"instances",
"with",
"the",
"given",
"label",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L509-L525 |
137,355 | terra-farm/go-xen-api-client | vmss_gen.go | Destroy | func (_class VMSSClass) Destroy(sessionID SessionRef, self VMSSRef) (_err error) {
_method := "VMSS.destroy"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(%s)", _method, "self"... | go | func (_class VMSSClass) Destroy(sessionID SessionRef, self VMSSRef) (_err error) {
_method := "VMSS.destroy"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf("%s(%s)", _method, "self"... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"Destroy",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(",
"fmt",
".... | // Destroy the specified VMSS instance. | [
"Destroy",
"the",
"specified",
"VMSS",
"instance",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L528-L540 |
137,356 | terra-farm/go-xen-api-client | vmss_gen.go | GetRecord | func (_class VMSSClass) GetRecord(sessionID SessionRef, self VMSSRef) (_retval VMSSRecord, _err error) {
_method := "VMSS.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf(... | go | func (_class VMSSClass) GetRecord(sessionID SessionRef, self VMSSRef) (_retval VMSSRecord, _err error) {
_method := "VMSS.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVMSSRefToXen(fmt.Sprintf(... | [
"func",
"(",
"_class",
"VMSSClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VMSSRef",
")",
"(",
"_retval",
"VMSSRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convert... | // Get a record containing the current state of the given VMSS. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"VMSS",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vmss_gen.go#L582-L598 |
137,357 | terra-farm/go-xen-api-client | gpu_group_gen.go | GetAllRecords | func (_class GPUGroupClass) GetAllRecords(sessionID SessionRef) (_retval map[GPUGroupRef]GPUGroupRecord, _err error) {
_method := "GPU_group.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.cl... | go | func (_class GPUGroupClass) GetAllRecords(sessionID SessionRef) (_retval map[GPUGroupRef]GPUGroupRecord, _err error) {
_method := "GPU_group.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.cl... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"GPUGroupRef",
"]",
"GPUGroupRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_er... | // Return a map of GPU_group references to GPU_group records for all GPU_groups known to the system. | [
"Return",
"a",
"map",
"of",
"GPU_group",
"references",
"to",
"GPU_group",
"records",
"for",
"all",
"GPU_groups",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L63-L75 |
137,358 | terra-farm/go-xen-api-client | gpu_group_gen.go | GetAll | func (_class GPUGroupClass) GetAll(sessionID SessionRef) (_retval []GPUGroupRef, _err error) {
_method := "GPU_group.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionID... | go | func (_class GPUGroupClass) GetAll(sessionID SessionRef) (_retval []GPUGroupRef, _err error) {
_method := "GPU_group.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionID... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"GPUGroupRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXe... | // Return a list of all the GPU_groups known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"GPU_groups",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L78-L90 |
137,359 | terra-farm/go-xen-api-client | gpu_group_gen.go | SetAllocationAlgorithm | func (_class GPUGroupClass) SetAllocationAlgorithm(sessionID SessionRef, self GPUGroupRef, value AllocationAlgorithm) (_err error) {
_method := "GPU_group.set_allocation_algorithm"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_se... | go | func (_class GPUGroupClass) SetAllocationAlgorithm(sessionID SessionRef, self GPUGroupRef, value AllocationAlgorithm) (_err error) {
_method := "GPU_group.set_allocation_algorithm"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_se... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"SetAllocationAlgorithm",
"(",
"sessionID",
"SessionRef",
",",
"self",
"GPUGroupRef",
",",
"value",
"AllocationAlgorithm",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
... | // Set the allocation_algorithm field of the given GPU_group. | [
"Set",
"the",
"allocation_algorithm",
"field",
"of",
"the",
"given",
"GPU_group",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L158-L174 |
137,360 | terra-farm/go-xen-api-client | gpu_group_gen.go | GetEnabledVGPUTypes | func (_class GPUGroupClass) GetEnabledVGPUTypes(sessionID SessionRef, self GPUGroupRef) (_retval []VGPUTypeRef, _err error) {
_method := "GPU_group.get_enabled_VGPU_types"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _e... | go | func (_class GPUGroupClass) GetEnabledVGPUTypes(sessionID SessionRef, self GPUGroupRef) (_retval []VGPUTypeRef, _err error) {
_method := "GPU_group.get_enabled_VGPU_types"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _e... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"GetEnabledVGPUTypes",
"(",
"sessionID",
"SessionRef",
",",
"self",
"GPUGroupRef",
")",
"(",
"_retval",
"[",
"]",
"VGPUTypeRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
... | // Get the enabled_VGPU_types field of the given GPU_group. | [
"Get",
"the",
"enabled_VGPU_types",
"field",
"of",
"the",
"given",
"GPU_group",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L276-L292 |
137,361 | terra-farm/go-xen-api-client | gpu_group_gen.go | GetAllocationAlgorithm | func (_class GPUGroupClass) GetAllocationAlgorithm(sessionID SessionRef, self GPUGroupRef) (_retval AllocationAlgorithm, _err error) {
_method := "GPU_group.get_allocation_algorithm"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_... | go | func (_class GPUGroupClass) GetAllocationAlgorithm(sessionID SessionRef, self GPUGroupRef) (_retval AllocationAlgorithm, _err error) {
_method := "GPU_group.get_allocation_algorithm"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"GetAllocationAlgorithm",
"(",
"sessionID",
"SessionRef",
",",
"self",
"GPUGroupRef",
")",
"(",
"_retval",
"AllocationAlgorithm",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
","... | // Get the allocation_algorithm field of the given GPU_group. | [
"Get",
"the",
"allocation_algorithm",
"field",
"of",
"the",
"given",
"GPU_group",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L314-L330 |
137,362 | terra-farm/go-xen-api-client | gpu_group_gen.go | GetVGPUs | func (_class GPUGroupClass) GetVGPUs(sessionID SessionRef, self GPUGroupRef) (_retval []VGPURef, _err error) {
_method := "GPU_group.get_VGPUs"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertGPUGroupRefToXe... | go | func (_class GPUGroupClass) GetVGPUs(sessionID SessionRef, self GPUGroupRef) (_retval []VGPURef, _err error) {
_method := "GPU_group.get_VGPUs"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertGPUGroupRefToXe... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"GetVGPUs",
"(",
"sessionID",
"SessionRef",
",",
"self",
"GPUGroupRef",
")",
"(",
"_retval",
"[",
"]",
"VGPURef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
... | // Get the VGPUs field of the given GPU_group. | [
"Get",
"the",
"VGPUs",
"field",
"of",
"the",
"given",
"GPU_group",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L371-L387 |
137,363 | terra-farm/go-xen-api-client | gpu_group_gen.go | GetPGPUs | func (_class GPUGroupClass) GetPGPUs(sessionID SessionRef, self GPUGroupRef) (_retval []PGPURef, _err error) {
_method := "GPU_group.get_PGPUs"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertGPUGroupRefToXe... | go | func (_class GPUGroupClass) GetPGPUs(sessionID SessionRef, self GPUGroupRef) (_retval []PGPURef, _err error) {
_method := "GPU_group.get_PGPUs"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertGPUGroupRefToXe... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"GetPGPUs",
"(",
"sessionID",
"SessionRef",
",",
"self",
"GPUGroupRef",
")",
"(",
"_retval",
"[",
"]",
"PGPURef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
... | // Get the PGPUs field of the given GPU_group. | [
"Get",
"the",
"PGPUs",
"field",
"of",
"the",
"given",
"GPU_group",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L390-L406 |
137,364 | terra-farm/go-xen-api-client | gpu_group_gen.go | GetByNameLabel | func (_class GPUGroupClass) GetByNameLabel(sessionID SessionRef, label string) (_retval []GPUGroupRef, _err error) {
_method := "GPU_group.get_by_name_label"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_labelArg, _err := convert... | go | func (_class GPUGroupClass) GetByNameLabel(sessionID SessionRef, label string) (_retval []GPUGroupRef, _err error) {
_method := "GPU_group.get_by_name_label"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_labelArg, _err := convert... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"GetByNameLabel",
"(",
"sessionID",
"SessionRef",
",",
"label",
"string",
")",
"(",
"_retval",
"[",
"]",
"GPUGroupRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_... | // Get all the GPU_group instances with the given label. | [
"Get",
"all",
"the",
"GPU_group",
"instances",
"with",
"the",
"given",
"label",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L466-L482 |
137,365 | terra-farm/go-xen-api-client | gpu_group_gen.go | GetRecord | func (_class GPUGroupClass) GetRecord(sessionID SessionRef, self GPUGroupRef) (_retval GPUGroupRecord, _err error) {
_method := "GPU_group.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertGPUGroup... | go | func (_class GPUGroupClass) GetRecord(sessionID SessionRef, self GPUGroupRef) (_retval GPUGroupRecord, _err error) {
_method := "GPU_group.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertGPUGroup... | [
"func",
"(",
"_class",
"GPUGroupClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"GPUGroupRef",
")",
"(",
"_retval",
"GPUGroupRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":="... | // Get a record containing the current state of the given GPU_group. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"GPU_group",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/gpu_group_gen.go#L504-L520 |
137,366 | terra-farm/go-xen-api-client | vusb_gen.go | GetAllRecords | func (_class VUSBClass) GetAllRecords(sessionID SessionRef) (_retval map[VUSBRef]VUSBRecord, _err error) {
_method := "VUSB.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | go | func (_class VUSBClass) GetAllRecords(sessionID SessionRef) (_retval map[VUSBRef]VUSBRecord, _err error) {
_method := "VUSB.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | [
"func",
"(",
"_class",
"VUSBClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"VUSBRef",
"]",
"VUSBRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Return a map of VUSB references to VUSB records for all VUSBs known to the system. | [
"Return",
"a",
"map",
"of",
"VUSB",
"references",
"to",
"VUSB",
"records",
"for",
"all",
"VUSBs",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vusb_gen.go#L59-L71 |
137,367 | terra-farm/go-xen-api-client | vusb_gen.go | GetAll | func (_class VUSBClass) GetAll(sessionID SessionRef) (_retval []VUSBRef, _err error) {
_method := "VUSB.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)
if _err... | go | func (_class VUSBClass) GetAll(sessionID SessionRef) (_retval []VUSBRef, _err error) {
_method := "VUSB.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)
if _err... | [
"func",
"(",
"_class",
"VUSBClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"VUSBRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(... | // Return a list of all the VUSBs known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"VUSBs",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vusb_gen.go#L74-L86 |
137,368 | terra-farm/go-xen-api-client | vusb_gen.go | Unplug | func (_class VUSBClass) Unplug(sessionID SessionRef, self VUSBRef) (_err error) {
_method := "VUSB.unplug"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefToXen(fmt.Sprintf("%s(%s)", _method, "self"),... | go | func (_class VUSBClass) Unplug(sessionID SessionRef, self VUSBRef) (_err error) {
_method := "VUSB.unplug"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefToXen(fmt.Sprintf("%s(%s)", _method, "self"),... | [
"func",
"(",
"_class",
"VUSBClass",
")",
"Unplug",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VUSBRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(",
"fmt",
"."... | // Unplug the vusb device from the vm. | [
"Unplug",
"the",
"vusb",
"device",
"from",
"the",
"vm",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vusb_gen.go#L104-L116 |
137,369 | terra-farm/go-xen-api-client | vusb_gen.go | Create | func (_class VUSBClass) Create(sessionID SessionRef, vm VMRef, usbGroup USBGroupRef, otherConfig map[string]string) (_retval VUSBRef, _err error) {
_method := "VUSB.create"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_vmArg, _er... | go | func (_class VUSBClass) Create(sessionID SessionRef, vm VMRef, usbGroup USBGroupRef, otherConfig map[string]string) (_retval VUSBRef, _err error) {
_method := "VUSB.create"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_vmArg, _er... | [
"func",
"(",
"_class",
"VUSBClass",
")",
"Create",
"(",
"sessionID",
"SessionRef",
",",
"vm",
"VMRef",
",",
"usbGroup",
"USBGroupRef",
",",
"otherConfig",
"map",
"[",
"string",
"]",
"string",
")",
"(",
"_retval",
"VUSBRef",
",",
"_err",
"error",
")",
"{",
... | // Create a new VUSB record in the database only | [
"Create",
"a",
"new",
"VUSB",
"record",
"in",
"the",
"database",
"only"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vusb_gen.go#L119-L143 |
137,370 | terra-farm/go-xen-api-client | vusb_gen.go | GetCurrentlyAttached | func (_class VUSBClass) GetCurrentlyAttached(sessionID SessionRef, self VUSBRef) (_retval bool, _err error) {
_method := "VUSB.get_currently_attached"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefT... | go | func (_class VUSBClass) GetCurrentlyAttached(sessionID SessionRef, self VUSBRef) (_retval bool, _err error) {
_method := "VUSB.get_currently_attached"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefT... | [
"func",
"(",
"_class",
"VUSBClass",
")",
"GetCurrentlyAttached",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VUSBRef",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"co... | // Get the currently_attached field of the given VUSB. | [
"Get",
"the",
"currently_attached",
"field",
"of",
"the",
"given",
"VUSB",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vusb_gen.go#L207-L223 |
137,371 | terra-farm/go-xen-api-client | vusb_gen.go | GetUSBGroup | func (_class VUSBClass) GetUSBGroup(sessionID SessionRef, self VUSBRef) (_retval USBGroupRef, _err error) {
_method := "VUSB.get_USB_group"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefToXen(fmt.Sp... | go | func (_class VUSBClass) GetUSBGroup(sessionID SessionRef, self VUSBRef) (_retval USBGroupRef, _err error) {
_method := "VUSB.get_USB_group"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefToXen(fmt.Sp... | [
"func",
"(",
"_class",
"VUSBClass",
")",
"GetUSBGroup",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VUSBRef",
")",
"(",
"_retval",
"USBGroupRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"conv... | // Get the USB_group field of the given VUSB. | [
"Get",
"the",
"USB_group",
"field",
"of",
"the",
"given",
"VUSB",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vusb_gen.go#L245-L261 |
137,372 | terra-farm/go-xen-api-client | vusb_gen.go | GetVM | func (_class VUSBClass) GetVM(sessionID SessionRef, self VUSBRef) (_retval VMRef, _err error) {
_method := "VUSB.get_VM"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefToXen(fmt.Sprintf("%s(%s)", _me... | go | func (_class VUSBClass) GetVM(sessionID SessionRef, self VUSBRef) (_retval VMRef, _err error) {
_method := "VUSB.get_VM"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefToXen(fmt.Sprintf("%s(%s)", _me... | [
"func",
"(",
"_class",
"VUSBClass",
")",
"GetVM",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VUSBRef",
")",
"(",
"_retval",
"VMRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRe... | // Get the VM field of the given VUSB. | [
"Get",
"the",
"VM",
"field",
"of",
"the",
"given",
"VUSB",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vusb_gen.go#L264-L280 |
137,373 | terra-farm/go-xen-api-client | vusb_gen.go | GetRecord | func (_class VUSBClass) GetRecord(sessionID SessionRef, self VUSBRef) (_retval VUSBRecord, _err error) {
_method := "VUSB.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefToXen(fmt.Sprintf(... | go | func (_class VUSBClass) GetRecord(sessionID SessionRef, self VUSBRef) (_retval VUSBRecord, _err error) {
_method := "VUSB.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertVUSBRefToXen(fmt.Sprintf(... | [
"func",
"(",
"_class",
"VUSBClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"VUSBRef",
")",
"(",
"_retval",
"VUSBRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convert... | // Get a record containing the current state of the given VUSB. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"VUSB",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vusb_gen.go#L359-L375 |
137,374 | VojtechVitek/go-trello | client.go | NewCustomClient | func NewCustomClient(client *http.Client) (*Client, error) {
version := "1"
endpoint := "https://api.trello.com/" + version
return &Client{
client: client,
endpoint: endpoint,
version: version,
}, nil
} | go | func NewCustomClient(client *http.Client) (*Client, error) {
version := "1"
endpoint := "https://api.trello.com/" + version
return &Client{
client: client,
endpoint: endpoint,
version: version,
}, nil
} | [
"func",
"NewCustomClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"(",
"*",
"Client",
",",
"error",
")",
"{",
"version",
":=",
"\"",
"\"",
"\n",
"endpoint",
":=",
"\"",
"\"",
"+",
"version",
"\n\n",
"return",
"&",
"Client",
"{",
"client",
":... | // NewCustomClient can be used to implement your own client | [
"NewCustomClient",
"can",
"be",
"used",
"to",
"implement",
"your",
"own",
"client"
] | 28ebf2756ecc6c69262fba5d5c2f80c0e6dce5e8 | https://github.com/VojtechVitek/go-trello/blob/28ebf2756ecc6c69262fba5d5c2f80c0e6dce5e8/client.go#L119-L128 |
137,375 | VojtechVitek/go-trello | client.go | NewAuthClient | func NewAuthClient(applicationKey string, token *string) (*Client, error) {
rr := NewBearerTokenTransport(applicationKey, token)
client := &http.Client{
Transport: rr,
}
return NewCustomClient(client)
} | go | func NewAuthClient(applicationKey string, token *string) (*Client, error) {
rr := NewBearerTokenTransport(applicationKey, token)
client := &http.Client{
Transport: rr,
}
return NewCustomClient(client)
} | [
"func",
"NewAuthClient",
"(",
"applicationKey",
"string",
",",
"token",
"*",
"string",
")",
"(",
"*",
"Client",
",",
"error",
")",
"{",
"rr",
":=",
"NewBearerTokenTransport",
"(",
"applicationKey",
",",
"token",
")",
"\n",
"client",
":=",
"&",
"http",
".",... | // NewAuthClient will create a trello client which allows authentication. It uses
// NewBearerTokenTransport to create an http.Client which can be used as a trello
// client. | [
"NewAuthClient",
"will",
"create",
"a",
"trello",
"client",
"which",
"allows",
"authentication",
".",
"It",
"uses",
"NewBearerTokenTransport",
"to",
"create",
"an",
"http",
".",
"Client",
"which",
"can",
"be",
"used",
"as",
"a",
"trello",
"client",
"."
] | 28ebf2756ecc6c69262fba5d5c2f80c0e6dce5e8 | https://github.com/VojtechVitek/go-trello/blob/28ebf2756ecc6c69262fba5d5c2f80c0e6dce5e8/client.go#L133-L139 |
137,376 | terra-farm/go-xen-api-client | pusb_gen.go | GetAllRecords | func (_class PUSBClass) GetAllRecords(sessionID SessionRef) (_retval map[PUSBRef]PUSBRecord, _err error) {
_method := "PUSB.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | go | func (_class PUSBClass) GetAllRecords(sessionID SessionRef) (_retval map[PUSBRef]PUSBRecord, _err error) {
_method := "PUSB.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | [
"func",
"(",
"_class",
"PUSBClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"PUSBRef",
"]",
"PUSBRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Return a map of PUSB references to PUSB records for all PUSBs known to the system. | [
"Return",
"a",
"map",
"of",
"PUSB",
"references",
"to",
"PUSB",
"records",
"for",
"all",
"PUSBs",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pusb_gen.go#L60-L72 |
137,377 | terra-farm/go-xen-api-client | pusb_gen.go | GetAll | func (_class PUSBClass) GetAll(sessionID SessionRef) (_retval []PUSBRef, _err error) {
_method := "PUSB.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)
if _err... | go | func (_class PUSBClass) GetAll(sessionID SessionRef) (_retval []PUSBRef, _err error) {
_method := "PUSB.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)
if _err... | [
"func",
"(",
"_class",
"PUSBClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"PUSBRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(... | // Return a list of all the PUSBs known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"PUSBs",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pusb_gen.go#L75-L87 |
137,378 | terra-farm/go-xen-api-client | pusb_gen.go | GetPassthroughEnabled | func (_class PUSBClass) GetPassthroughEnabled(sessionID SessionRef, self PUSBRef) (_retval bool, _err error) {
_method := "PUSB.get_passthrough_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPUSBRe... | go | func (_class PUSBClass) GetPassthroughEnabled(sessionID SessionRef, self PUSBRef) (_retval bool, _err error) {
_method := "PUSB.get_passthrough_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPUSBRe... | [
"func",
"(",
"_class",
"PUSBClass",
")",
"GetPassthroughEnabled",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PUSBRef",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"c... | // Get the passthrough_enabled field of the given PUSB. | [
"Get",
"the",
"passthrough_enabled",
"field",
"of",
"the",
"given",
"PUSB",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pusb_gen.go#L204-L220 |
137,379 | terra-farm/go-xen-api-client | pusb_gen.go | GetHost | func (_class PUSBClass) GetHost(sessionID SessionRef, self PUSBRef) (_retval HostRef, _err error) {
_method := "PUSB.get_host"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPUSBRefToXen(fmt.Sprintf("%s(%s)... | go | func (_class PUSBClass) GetHost(sessionID SessionRef, self PUSBRef) (_retval HostRef, _err error) {
_method := "PUSB.get_host"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPUSBRefToXen(fmt.Sprintf("%s(%s)... | [
"func",
"(",
"_class",
"PUSBClass",
")",
"GetHost",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PUSBRef",
")",
"(",
"_retval",
"HostRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessi... | // Get the host field of the given PUSB. | [
"Get",
"the",
"host",
"field",
"of",
"the",
"given",
"PUSB",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pusb_gen.go#L375-L391 |
137,380 | terra-farm/go-xen-api-client | pusb_gen.go | GetUSBGroup | func (_class PUSBClass) GetUSBGroup(sessionID SessionRef, self PUSBRef) (_retval USBGroupRef, _err error) {
_method := "PUSB.get_USB_group"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPUSBRefToXen(fmt.Sp... | go | func (_class PUSBClass) GetUSBGroup(sessionID SessionRef, self PUSBRef) (_retval USBGroupRef, _err error) {
_method := "PUSB.get_USB_group"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPUSBRefToXen(fmt.Sp... | [
"func",
"(",
"_class",
"PUSBClass",
")",
"GetUSBGroup",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PUSBRef",
")",
"(",
"_retval",
"USBGroupRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"conv... | // Get the USB_group field of the given PUSB. | [
"Get",
"the",
"USB_group",
"field",
"of",
"the",
"given",
"PUSB",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pusb_gen.go#L394-L410 |
137,381 | terra-farm/go-xen-api-client | pusb_gen.go | GetRecord | func (_class PUSBClass) GetRecord(sessionID SessionRef, self PUSBRef) (_retval PUSBRecord, _err error) {
_method := "PUSB.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPUSBRefToXen(fmt.Sprintf(... | go | func (_class PUSBClass) GetRecord(sessionID SessionRef, self PUSBRef) (_retval PUSBRecord, _err error) {
_method := "PUSB.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertPUSBRefToXen(fmt.Sprintf(... | [
"func",
"(",
"_class",
"PUSBClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"PUSBRef",
")",
"(",
"_retval",
"PUSBRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convert... | // Get a record containing the current state of the given PUSB. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"PUSB",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/pusb_gen.go#L451-L467 |
137,382 | terra-farm/go-xen-api-client | cluster_host_gen.go | GetAllRecords | func (_class ClusterHostClass) GetAllRecords(sessionID SessionRef) (_retval map[ClusterHostRef]ClusterHostRecord, _err error) {
_method := "Cluster_host.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err ... | go | func (_class ClusterHostClass) GetAllRecords(sessionID SessionRef) (_retval map[ClusterHostRef]ClusterHostRecord, _err error) {
_method := "Cluster_host.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err ... | [
"func",
"(",
"_class",
"ClusterHostClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"ClusterHostRef",
"]",
"ClusterHostRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",... | // Return a map of Cluster_host references to Cluster_host records for all Cluster_hosts known to the system. | [
"Return",
"a",
"map",
"of",
"Cluster_host",
"references",
"to",
"Cluster_host",
"records",
"for",
"all",
"Cluster_hosts",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_host_gen.go#L59-L71 |
137,383 | terra-farm/go-xen-api-client | cluster_host_gen.go | GetAll | func (_class ClusterHostClass) GetAll(sessionID SessionRef) (_retval []ClusterHostRef, _err error) {
_method := "Cluster_host.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _... | go | func (_class ClusterHostClass) GetAll(sessionID SessionRef) (_retval []ClusterHostRef, _err error) {
_method := "Cluster_host.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _... | [
"func",
"(",
"_class",
"ClusterHostClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"ClusterHostRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionR... | // Return a list of all the Cluster_hosts known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"Cluster_hosts",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_host_gen.go#L74-L86 |
137,384 | terra-farm/go-xen-api-client | cluster_host_gen.go | Disable | func (_class ClusterHostClass) Disable(sessionID SessionRef, self ClusterHostRef) (_err error) {
_method := "Cluster_host.disable"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterHostRefToXen(fmt.Spri... | go | func (_class ClusterHostClass) Disable(sessionID SessionRef, self ClusterHostRef) (_err error) {
_method := "Cluster_host.disable"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterHostRefToXen(fmt.Spri... | [
"func",
"(",
"_class",
"ClusterHostClass",
")",
"Disable",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterHostRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(",... | // Disable cluster membership for an enabled cluster host. | [
"Disable",
"cluster",
"membership",
"for",
"an",
"enabled",
"cluster",
"host",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_host_gen.go#L89-L101 |
137,385 | terra-farm/go-xen-api-client | cluster_host_gen.go | Create | func (_class ClusterHostClass) Create(sessionID SessionRef, cluster ClusterRef, host HostRef) (_retval ClusterHostRef, _err error) {
_method := "Cluster_host.create"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_clusterArg, _err ... | go | func (_class ClusterHostClass) Create(sessionID SessionRef, cluster ClusterRef, host HostRef) (_retval ClusterHostRef, _err error) {
_method := "Cluster_host.create"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_clusterArg, _err ... | [
"func",
"(",
"_class",
"ClusterHostClass",
")",
"Create",
"(",
"sessionID",
"SessionRef",
",",
"cluster",
"ClusterRef",
",",
"host",
"HostRef",
")",
"(",
"_retval",
"ClusterHostRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessio... | // Add a new host to an existing cluster. | [
"Add",
"a",
"new",
"host",
"to",
"an",
"existing",
"cluster",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_host_gen.go#L149-L169 |
137,386 | terra-farm/go-xen-api-client | cluster_host_gen.go | GetEnabled | func (_class ClusterHostClass) GetEnabled(sessionID SessionRef, self ClusterHostRef) (_retval bool, _err error) {
_method := "Cluster_host.get_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertCluster... | go | func (_class ClusterHostClass) GetEnabled(sessionID SessionRef, self ClusterHostRef) (_retval bool, _err error) {
_method := "Cluster_host.get_enabled"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertCluster... | [
"func",
"(",
"_class",
"ClusterHostClass",
")",
"GetEnabled",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterHostRef",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Get the enabled field of the given Cluster_host. | [
"Get",
"the",
"enabled",
"field",
"of",
"the",
"given",
"Cluster_host",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_host_gen.go#L229-L245 |
137,387 | terra-farm/go-xen-api-client | cluster_host_gen.go | GetHost | func (_class ClusterHostClass) GetHost(sessionID SessionRef, self ClusterHostRef) (_retval HostRef, _err error) {
_method := "Cluster_host.get_host"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterHos... | go | func (_class ClusterHostClass) GetHost(sessionID SessionRef, self ClusterHostRef) (_retval HostRef, _err error) {
_method := "Cluster_host.get_host"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterHos... | [
"func",
"(",
"_class",
"ClusterHostClass",
")",
"GetHost",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterHostRef",
")",
"(",
"_retval",
"HostRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Get the host field of the given Cluster_host. | [
"Get",
"the",
"host",
"field",
"of",
"the",
"given",
"Cluster_host",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_host_gen.go#L248-L264 |
137,388 | terra-farm/go-xen-api-client | cluster_host_gen.go | GetCluster | func (_class ClusterHostClass) GetCluster(sessionID SessionRef, self ClusterHostRef) (_retval ClusterRef, _err error) {
_method := "Cluster_host.get_cluster"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertC... | go | func (_class ClusterHostClass) GetCluster(sessionID SessionRef, self ClusterHostRef) (_retval ClusterRef, _err error) {
_method := "Cluster_host.get_cluster"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertC... | [
"func",
"(",
"_class",
"ClusterHostClass",
")",
"GetCluster",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterHostRef",
")",
"(",
"_retval",
"ClusterRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
"... | // Get the cluster field of the given Cluster_host. | [
"Get",
"the",
"cluster",
"field",
"of",
"the",
"given",
"Cluster_host",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_host_gen.go#L267-L283 |
137,389 | terra-farm/go-xen-api-client | cluster_host_gen.go | GetRecord | func (_class ClusterHostClass) GetRecord(sessionID SessionRef, self ClusterHostRef) (_retval ClusterHostRecord, _err error) {
_method := "Cluster_host.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := con... | go | func (_class ClusterHostClass) GetRecord(sessionID SessionRef, self ClusterHostRef) (_retval ClusterHostRecord, _err error) {
_method := "Cluster_host.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := con... | [
"func",
"(",
"_class",
"ClusterHostClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterHostRef",
")",
"(",
"_retval",
"ClusterHostRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err... | // Get a record containing the current state of the given Cluster_host. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"Cluster_host",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_host_gen.go#L324-L340 |
137,390 | terra-farm/go-xen-api-client | cluster_gen.go | GetAllRecords | func (_class ClusterClass) GetAllRecords(sessionID SessionRef) (_retval map[ClusterRef]ClusterRecord, _err error) {
_method := "Cluster.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.... | go | func (_class ClusterClass) GetAllRecords(sessionID SessionRef) (_retval map[ClusterRef]ClusterRecord, _err error) {
_method := "Cluster.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"ClusterRef",
"]",
"ClusterRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",... | // Return a map of Cluster references to Cluster records for all Clusters known to the system. | [
"Return",
"a",
"map",
"of",
"Cluster",
"references",
"to",
"Cluster",
"records",
"for",
"all",
"Clusters",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L73-L85 |
137,391 | terra-farm/go-xen-api-client | cluster_gen.go | GetAll | func (_class ClusterClass) GetAll(sessionID SessionRef) (_retval []ClusterRef, _err error) {
_method := "Cluster.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)... | go | func (_class ClusterClass) GetAll(sessionID SessionRef) (_retval []ClusterRef, _err error) {
_method := "Cluster.get_all"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_method, _sessionIDArg)... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"GetAll",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"[",
"]",
"ClusterRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen"... | // Return a list of all the Clusters known to the system. | [
"Return",
"a",
"list",
"of",
"all",
"the",
"Clusters",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L88-L100 |
137,392 | terra-farm/go-xen-api-client | cluster_gen.go | PoolResync | func (_class ClusterClass) PoolResync(sessionID SessionRef, self ClusterRef) (_err error) {
_method := "Cluster.pool_resync"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterRefToXen(fmt.Sprintf("%s(%s... | go | func (_class ClusterClass) PoolResync(sessionID SessionRef, self ClusterRef) (_err error) {
_method := "Cluster.pool_resync"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterRefToXen(fmt.Sprintf("%s(%s... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"PoolResync",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterRef",
")",
"(",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"convertSessionRefToXen",
"(",
"f... | // Resynchronise the cluster_host objects across the pool. Creates them where they need creating and then plugs them | [
"Resynchronise",
"the",
"cluster_host",
"objects",
"across",
"the",
"pool",
".",
"Creates",
"them",
"where",
"they",
"need",
"creating",
"and",
"then",
"plugs",
"them"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L103-L115 |
137,393 | terra-farm/go-xen-api-client | cluster_gen.go | PoolCreate | func (_class ClusterClass) PoolCreate(sessionID SessionRef, network NetworkRef, clusterStack string, tokenTimeout float64, tokenTimeoutCoefficient float64) (_retval ClusterRef, _err error) {
_method := "Cluster.pool_create"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), se... | go | func (_class ClusterClass) PoolCreate(sessionID SessionRef, network NetworkRef, clusterStack string, tokenTimeout float64, tokenTimeoutCoefficient float64) (_retval ClusterRef, _err error) {
_method := "Cluster.pool_create"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), se... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"PoolCreate",
"(",
"sessionID",
"SessionRef",
",",
"network",
"NetworkRef",
",",
"clusterStack",
"string",
",",
"tokenTimeout",
"float64",
",",
"tokenTimeoutCoefficient",
"float64",
")",
"(",
"_retval",
"ClusterRef",
",",
... | // Attempt to create a Cluster from the entire pool | [
"Attempt",
"to",
"create",
"a",
"Cluster",
"from",
"the",
"entire",
"pool"
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L148-L176 |
137,394 | terra-farm/go-xen-api-client | cluster_gen.go | GetTokenTimeoutCoefficient | func (_class ClusterClass) GetTokenTimeoutCoefficient(sessionID SessionRef, self ClusterRef) (_retval int, _err error) {
_method := "Cluster.get_token_timeout_coefficient"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _e... | go | func (_class ClusterClass) GetTokenTimeoutCoefficient(sessionID SessionRef, self ClusterRef) (_retval int, _err error) {
_method := "Cluster.get_token_timeout_coefficient"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _e... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"GetTokenTimeoutCoefficient",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterRef",
")",
"(",
"_retval",
"int",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
... | // Get the token_timeout_coefficient field of the given Cluster. | [
"Get",
"the",
"token_timeout_coefficient",
"field",
"of",
"the",
"given",
"Cluster",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L328-L344 |
137,395 | terra-farm/go-xen-api-client | cluster_gen.go | GetPoolAutoJoin | func (_class ClusterClass) GetPoolAutoJoin(sessionID SessionRef, self ClusterRef) (_retval bool, _err error) {
_method := "Cluster.get_pool_auto_join"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterR... | go | func (_class ClusterClass) GetPoolAutoJoin(sessionID SessionRef, self ClusterRef) (_retval bool, _err error) {
_method := "Cluster.get_pool_auto_join"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterR... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"GetPoolAutoJoin",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterRef",
")",
"(",
"_retval",
"bool",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"c... | // Get the pool_auto_join field of the given Cluster. | [
"Get",
"the",
"pool_auto_join",
"field",
"of",
"the",
"given",
"Cluster",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L366-L382 |
137,396 | terra-farm/go-xen-api-client | cluster_gen.go | GetNetwork | func (_class ClusterClass) GetNetwork(sessionID SessionRef, self ClusterRef) (_retval NetworkRef, _err error) {
_method := "Cluster.get_network"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterRefToXe... | go | func (_class ClusterClass) GetNetwork(sessionID SessionRef, self ClusterRef) (_retval NetworkRef, _err error) {
_method := "Cluster.get_network"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterRefToXe... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"GetNetwork",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterRef",
")",
"(",
"_retval",
"NetworkRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
"... | // Get the network field of the given Cluster. | [
"Get",
"the",
"network",
"field",
"of",
"the",
"given",
"Cluster",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L461-L477 |
137,397 | terra-farm/go-xen-api-client | cluster_gen.go | GetClusterHosts | func (_class ClusterClass) GetClusterHosts(sessionID SessionRef, self ClusterRef) (_retval []ClusterHostRef, _err error) {
_method := "Cluster.get_cluster_hosts"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := conv... | go | func (_class ClusterClass) GetClusterHosts(sessionID SessionRef, self ClusterRef) (_retval []ClusterHostRef, _err error) {
_method := "Cluster.get_cluster_hosts"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := conv... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"GetClusterHosts",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterRef",
")",
"(",
"_retval",
"[",
"]",
"ClusterHostRef",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
","... | // Get the cluster_hosts field of the given Cluster. | [
"Get",
"the",
"cluster_hosts",
"field",
"of",
"the",
"given",
"Cluster",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L480-L496 |
137,398 | terra-farm/go-xen-api-client | cluster_gen.go | GetRecord | func (_class ClusterClass) GetRecord(sessionID SessionRef, self ClusterRef) (_retval ClusterRecord, _err error) {
_method := "Cluster.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterRefToX... | go | func (_class ClusterClass) GetRecord(sessionID SessionRef, self ClusterRef) (_retval ClusterRecord, _err error) {
_method := "Cluster.get_record"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_selfArg, _err := convertClusterRefToX... | [
"func",
"(",
"_class",
"ClusterClass",
")",
"GetRecord",
"(",
"sessionID",
"SessionRef",
",",
"self",
"ClusterRef",
")",
"(",
"_retval",
"ClusterRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Get a record containing the current state of the given Cluster. | [
"Get",
"a",
"record",
"containing",
"the",
"current",
"state",
"of",
"the",
"given",
"Cluster",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/cluster_gen.go#L537-L553 |
137,399 | terra-farm/go-xen-api-client | vlan_gen.go | GetAllRecords | func (_class VLANClass) GetAllRecords(sessionID SessionRef) (_retval map[VLANRef]VLANRecord, _err error) {
_method := "VLAN.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | go | func (_class VLANClass) GetAllRecords(sessionID SessionRef) (_retval map[VLANRef]VLANRecord, _err error) {
_method := "VLAN.get_all_records"
_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
if _err != nil {
return
}
_result, _err := _class.client.APICall(_met... | [
"func",
"(",
"_class",
"VLANClass",
")",
"GetAllRecords",
"(",
"sessionID",
"SessionRef",
")",
"(",
"_retval",
"map",
"[",
"VLANRef",
"]",
"VLANRecord",
",",
"_err",
"error",
")",
"{",
"_method",
":=",
"\"",
"\"",
"\n",
"_sessionIDArg",
",",
"_err",
":=",
... | // Return a map of VLAN references to VLAN records for all VLANs known to the system. | [
"Return",
"a",
"map",
"of",
"VLAN",
"references",
"to",
"VLAN",
"records",
"for",
"all",
"VLANs",
"known",
"to",
"the",
"system",
"."
] | edb53e3930c18c373c1a5e6c0eacd0b5c669fefb | https://github.com/terra-farm/go-xen-api-client/blob/edb53e3930c18c373c1a5e6c0eacd0b5c669fefb/vlan_gen.go#L44-L56 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.