Documentation ¶
Index ¶
- func ClientWithEnvoyHostGateway(vc *vim25.Client) *vim25.Client
- func HostGatewayTransferURL(u *url.URL, hostMoref types.ManagedObjectReference) *url.URL
- func HostSystemManagementIPs(config []types.VirtualNicManagerNetConfig) []net.IP
- func InventoryPath(entities []mo.ManagedEntity) string
- func IsDatastoreVSAN(ds mo.Datastore) bool
- func UsingEnvoySidecar(c *vim25.Client) bool
- type BaseDynamicTypeMgrFilterSpec
- type DynamicTypeEnumTypeInfo
- type DynamicTypeMgrAllTypeInfoRequest
- type DynamicTypeMgrAnnotation
- type DynamicTypeMgrDataTypeInfo
- type DynamicTypeMgrFilterSpec
- type DynamicTypeMgrManagedTypeInfo
- type DynamicTypeMgrMethodTypeInfo
- type DynamicTypeMgrMoFilterSpec
- type DynamicTypeMgrMoInstance
- type DynamicTypeMgrParamTypeInfo
- type DynamicTypeMgrPropertyTypeInfo
- type DynamicTypeMgrQueryMoInstancesBody
- type DynamicTypeMgrQueryMoInstancesRequest
- type DynamicTypeMgrQueryMoInstancesResponse
- type DynamicTypeMgrQueryTypeInfoBody
- type DynamicTypeMgrQueryTypeInfoRequest
- type DynamicTypeMgrQueryTypeInfoResponse
- type DynamicTypeMgrTypeFilterSpec
- type ExecuteSoapBody
- type ExecuteSoapRequest
- type ExecuteSoapResponse
- type InternalDynamicTypeManager
- type ReflectManagedMethodExecuter
- type ReflectManagedMethodExecuterSoapArgument
- type ReflectManagedMethodExecuterSoapFault
- type ReflectManagedMethodExecuterSoapResult
- type RetrieveDynamicTypeManagerBody
- type RetrieveDynamicTypeManagerRequest
- type RetrieveDynamicTypeManagerResponse
- type RetrieveManagedMethodExecuterBody
- type RetrieveManagedMethodExecuterRequest
- type RetrieveManagedMethodExecuterResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientWithEnvoyHostGateway ¶ added in v0.31.0
ClientWithEnvoyHostGateway clones the provided soap.Client and returns a new one that uses a Unix socket to leverage vCenter's local Envoy host gateway. This should be used to construct clients that talk to ESX. This method returns a new *vim25.Client and does not modify the original input. This client disables HTTP keep alives and is intended for a single round trip. (eg. guest file transfer, datastore file transfer)
func HostGatewayTransferURL ¶ added in v0.31.0
HostGatewayTransferURL rewrites the provided URL to be suitable for use with the Envoy host gateway on vCenter. It returns a copy of the provided URL with the host, scheme rewritten as needed. Receivers of such URLs must typically also use ClientWithEnvoyHostGateway to use the appropriate http.Transport to be able to make use of the host gateway. nil input yields an uninitialized struct.
func HostSystemManagementIPs ¶ added in v0.24.2
func HostSystemManagementIPs(config []types.VirtualNicManagerNetConfig) []net.IP
func InventoryPath ¶ added in v0.24.0
func InventoryPath(entities []mo.ManagedEntity) string
InventoryPath composed of entities by Name
func IsDatastoreVSAN ¶ added in v0.40.0
func UsingEnvoySidecar ¶ added in v0.31.0
UsingEnvoySidecar determines if the given *vim25.Client is using vCenter's local Envoy sidecar (as opposed to using the HTTPS port.) Returns a boolean indicating whether to use the sidecar or not.
Types ¶
type BaseDynamicTypeMgrFilterSpec ¶
type BaseDynamicTypeMgrFilterSpec interface {
GetDynamicTypeMgrFilterSpec() *DynamicTypeMgrFilterSpec
}
type DynamicTypeEnumTypeInfo ¶
type DynamicTypeEnumTypeInfo struct { types.DynamicData Name string `xml:"name"` WsdlName string `xml:"wsdlName"` Version string `xml:"version"` Value []string `xml:"value,omitempty"` Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` }
type DynamicTypeMgrAllTypeInfoRequest ¶
type DynamicTypeMgrAllTypeInfoRequest struct { types.DynamicData ManagedTypeInfo []DynamicTypeMgrManagedTypeInfo `xml:"managedTypeInfo,omitempty"` EnumTypeInfo []DynamicTypeEnumTypeInfo `xml:"enumTypeInfo,omitempty"` DataTypeInfo []DynamicTypeMgrDataTypeInfo `xml:"dataTypeInfo,omitempty"` }
type DynamicTypeMgrAnnotation ¶
type DynamicTypeMgrAnnotation struct { types.DynamicData Name string `xml:"name"` Parameter []string `xml:"parameter,omitempty"` }
type DynamicTypeMgrDataTypeInfo ¶
type DynamicTypeMgrDataTypeInfo struct { types.DynamicData Name string `xml:"name"` WsdlName string `xml:"wsdlName"` Version string `xml:"version"` Base []string `xml:"base,omitempty"` Property []DynamicTypeMgrPropertyTypeInfo `xml:"property,omitempty"` Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` }
type DynamicTypeMgrFilterSpec ¶
type DynamicTypeMgrFilterSpec struct {
types.DynamicData
}
func (*DynamicTypeMgrFilterSpec) GetDynamicTypeMgrFilterSpec ¶
func (b *DynamicTypeMgrFilterSpec) GetDynamicTypeMgrFilterSpec() *DynamicTypeMgrFilterSpec
type DynamicTypeMgrManagedTypeInfo ¶
type DynamicTypeMgrManagedTypeInfo struct { types.DynamicData Name string `xml:"name"` WsdlName string `xml:"wsdlName"` Version string `xml:"version"` Base []string `xml:"base,omitempty"` Property []DynamicTypeMgrPropertyTypeInfo `xml:"property,omitempty"` Method []DynamicTypeMgrMethodTypeInfo `xml:"method,omitempty"` Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` }
type DynamicTypeMgrMethodTypeInfo ¶
type DynamicTypeMgrMethodTypeInfo struct { types.DynamicData Name string `xml:"name"` WsdlName string `xml:"wsdlName"` Version string `xml:"version"` ParamTypeInfo []DynamicTypeMgrParamTypeInfo `xml:"paramTypeInfo,omitempty"` ReturnTypeInfo *DynamicTypeMgrParamTypeInfo `xml:"returnTypeInfo,omitempty"` Fault []string `xml:"fault,omitempty"` PrivId string `xml:"privId,omitempty"` Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` }
type DynamicTypeMgrMoFilterSpec ¶
type DynamicTypeMgrMoFilterSpec struct { DynamicTypeMgrFilterSpec Id string `xml:"id,omitempty"` TypeSubstr string `xml:"typeSubstr,omitempty"` }
type DynamicTypeMgrMoInstance ¶
type DynamicTypeMgrMoInstance struct { types.DynamicData Id string `xml:"id"` MoType string `xml:"moType"` }
type DynamicTypeMgrParamTypeInfo ¶
type DynamicTypeMgrParamTypeInfo struct { types.DynamicData Name string `xml:"name"` Version string `xml:"version"` Type string `xml:"type"` PrivId string `xml:"privId,omitempty"` Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` }
type DynamicTypeMgrPropertyTypeInfo ¶
type DynamicTypeMgrPropertyTypeInfo struct { types.DynamicData Name string `xml:"name"` Version string `xml:"version"` Type string `xml:"type"` PrivId string `xml:"privId,omitempty"` MsgIdFormat string `xml:"msgIdFormat,omitempty"` Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` }
type DynamicTypeMgrQueryMoInstancesBody ¶
type DynamicTypeMgrQueryMoInstancesBody struct { Req *DynamicTypeMgrQueryMoInstancesRequest `xml:"urn:vim25 DynamicTypeMgrQueryMoInstances"` Res *DynamicTypeMgrQueryMoInstancesResponse `xml:"urn:vim25 DynamicTypeMgrQueryMoInstancesResponse"` Fault_ *soap.Fault }
func (*DynamicTypeMgrQueryMoInstancesBody) Fault ¶
func (b *DynamicTypeMgrQueryMoInstancesBody) Fault() *soap.Fault
type DynamicTypeMgrQueryMoInstancesRequest ¶
type DynamicTypeMgrQueryMoInstancesRequest struct { This types.ManagedObjectReference `xml:"_this"` FilterSpec BaseDynamicTypeMgrFilterSpec `xml:"filterSpec,omitempty,typeattr"` }
type DynamicTypeMgrQueryMoInstancesResponse ¶
type DynamicTypeMgrQueryMoInstancesResponse struct {
Returnval []DynamicTypeMgrMoInstance `xml:"urn:vim25 returnval"`
}
func DynamicTypeMgrQueryMoInstances ¶
func DynamicTypeMgrQueryMoInstances(ctx context.Context, r soap.RoundTripper, req *DynamicTypeMgrQueryMoInstancesRequest) (*DynamicTypeMgrQueryMoInstancesResponse, error)
type DynamicTypeMgrQueryTypeInfoBody ¶
type DynamicTypeMgrQueryTypeInfoBody struct { Req *DynamicTypeMgrQueryTypeInfoRequest `xml:"urn:vim25 DynamicTypeMgrQueryTypeInfo"` Res *DynamicTypeMgrQueryTypeInfoResponse `xml:"urn:vim25 DynamicTypeMgrQueryTypeInfoResponse"` Fault_ *soap.Fault }
func (*DynamicTypeMgrQueryTypeInfoBody) Fault ¶
func (b *DynamicTypeMgrQueryTypeInfoBody) Fault() *soap.Fault
type DynamicTypeMgrQueryTypeInfoRequest ¶
type DynamicTypeMgrQueryTypeInfoRequest struct { This types.ManagedObjectReference `xml:"_this"` FilterSpec BaseDynamicTypeMgrFilterSpec `xml:"filterSpec,omitempty,typeattr"` }
type DynamicTypeMgrQueryTypeInfoResponse ¶
type DynamicTypeMgrQueryTypeInfoResponse struct {
Returnval DynamicTypeMgrAllTypeInfoRequest `xml:"urn:vim25 returnval"`
}
func DynamicTypeMgrQueryTypeInfo ¶
func DynamicTypeMgrQueryTypeInfo(ctx context.Context, r soap.RoundTripper, req *DynamicTypeMgrQueryTypeInfoRequest) (*DynamicTypeMgrQueryTypeInfoResponse, error)
type DynamicTypeMgrTypeFilterSpec ¶
type DynamicTypeMgrTypeFilterSpec struct { DynamicTypeMgrFilterSpec TypeSubstr string `xml:"typeSubstr,omitempty"` }
type ExecuteSoapBody ¶
type ExecuteSoapBody struct { Req *ExecuteSoapRequest `xml:"urn:vim25 ExecuteSoap"` Res *ExecuteSoapResponse `xml:"urn:vim25 ExecuteSoapResponse"` Fault_ *soap.Fault }
func (*ExecuteSoapBody) Fault ¶
func (b *ExecuteSoapBody) Fault() *soap.Fault
type ExecuteSoapRequest ¶
type ExecuteSoapRequest struct { This types.ManagedObjectReference `xml:"_this"` Moid string `xml:"moid"` Version string `xml:"version"` Method string `xml:"method"` Argument []ReflectManagedMethodExecuterSoapArgument `xml:"argument,omitempty"` }
type ExecuteSoapResponse ¶
type ExecuteSoapResponse struct {
Returnval *ReflectManagedMethodExecuterSoapResult `xml:"urn:vim25 returnval"`
}
func ExecuteSoap ¶
func ExecuteSoap(ctx context.Context, r soap.RoundTripper, req *ExecuteSoapRequest) (*ExecuteSoapResponse, error)
type InternalDynamicTypeManager ¶
type InternalDynamicTypeManager struct {
types.ManagedObjectReference
}
type ReflectManagedMethodExecuter ¶
type ReflectManagedMethodExecuter struct {
types.ManagedObjectReference
}
type ReflectManagedMethodExecuterSoapArgument ¶
type ReflectManagedMethodExecuterSoapArgument struct { types.DynamicData Name string `xml:"name"` Val string `xml:"val"` }
type ReflectManagedMethodExecuterSoapFault ¶
type ReflectManagedMethodExecuterSoapFault struct { types.DynamicData FaultMsg string `xml:"faultMsg"` FaultDetail string `xml:"faultDetail,omitempty"` }
type ReflectManagedMethodExecuterSoapResult ¶
type ReflectManagedMethodExecuterSoapResult struct { types.DynamicData Response string `xml:"response,omitempty"` Fault *ReflectManagedMethodExecuterSoapFault `xml:"fault,omitempty"` }
type RetrieveDynamicTypeManagerBody ¶
type RetrieveDynamicTypeManagerBody struct { Req *RetrieveDynamicTypeManagerRequest `xml:"urn:vim25 RetrieveDynamicTypeManager"` Res *RetrieveDynamicTypeManagerResponse `xml:"urn:vim25 RetrieveDynamicTypeManagerResponse"` Fault_ *soap.Fault }
func (*RetrieveDynamicTypeManagerBody) Fault ¶
func (b *RetrieveDynamicTypeManagerBody) Fault() *soap.Fault
type RetrieveDynamicTypeManagerRequest ¶
type RetrieveDynamicTypeManagerRequest struct {
This types.ManagedObjectReference `xml:"_this"`
}
type RetrieveDynamicTypeManagerResponse ¶
type RetrieveDynamicTypeManagerResponse struct {
Returnval *InternalDynamicTypeManager `xml:"urn:vim25 returnval"`
}
func RetrieveDynamicTypeManager ¶
func RetrieveDynamicTypeManager(ctx context.Context, r soap.RoundTripper, req *RetrieveDynamicTypeManagerRequest) (*RetrieveDynamicTypeManagerResponse, error)
type RetrieveManagedMethodExecuterBody ¶
type RetrieveManagedMethodExecuterBody struct { Req *RetrieveManagedMethodExecuterRequest `xml:"urn:vim25 RetrieveManagedMethodExecuter"` Res *RetrieveManagedMethodExecuterResponse `xml:"urn:vim25 RetrieveManagedMethodExecuterResponse"` Fault_ *soap.Fault }
func (*RetrieveManagedMethodExecuterBody) Fault ¶
func (b *RetrieveManagedMethodExecuterBody) Fault() *soap.Fault
type RetrieveManagedMethodExecuterRequest ¶
type RetrieveManagedMethodExecuterRequest struct {
This types.ManagedObjectReference `xml:"_this"`
}
type RetrieveManagedMethodExecuterResponse ¶
type RetrieveManagedMethodExecuterResponse struct {
Returnval *ReflectManagedMethodExecuter `xml:"urn:vim25 returnval"`
}
func RetrieveManagedMethodExecuter ¶
func RetrieveManagedMethodExecuter(ctx context.Context, r soap.RoundTripper, req *RetrieveManagedMethodExecuterRequest) (*RetrieveManagedMethodExecuterResponse, error)