package internal
import "github.com/vmware/govmomi/internal"
Index ¶
- func ClientWithEnvoyHostGateway(vc *vim25.Client) *vim25.Client
- func EsxcliName(name string) string
- 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 ArrayOfVirtualDiskInfo
- type BaseDynamicTypeMgrFilterSpec
- type DynamicTypeEnumTypeInfo
- type DynamicTypeMgrAllTypeInfo
- 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 QueryVirtualDiskInfoTaskBody
- type QueryVirtualDiskInfoTaskRequest
- type QueryVirtualDiskInfo_TaskResponse
- type ReflectManagedMethodExecuter
- type ReflectManagedMethodExecuterSoapArgument
- type ReflectManagedMethodExecuterSoapFault
- type ReflectManagedMethodExecuterSoapResult
- type RetrieveDynamicTypeManagerBody
- type RetrieveDynamicTypeManagerRequest
- type RetrieveDynamicTypeManagerResponse
- type RetrieveManagedMethodExecuterBody
- type RetrieveManagedMethodExecuterRequest
- type RetrieveManagedMethodExecuterResponse
- type VimEsxCLICLIFault
- type VirtualDiskInfo
Functions ¶
func ClientWithEnvoyHostGateway ¶
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 EsxcliName ¶
func HostGatewayTransferURL ¶
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 ¶
func HostSystemManagementIPs(config []types.VirtualNicManagerNetConfig) []net.IP
func InventoryPath ¶
func InventoryPath(entities []mo.ManagedEntity) string
InventoryPath composed of entities by Name
func IsDatastoreVSAN ¶
func UsingEnvoySidecar ¶
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 ArrayOfVirtualDiskInfo ¶
type ArrayOfVirtualDiskInfo struct { VirtualDiskInfo []VirtualDiskInfo `xml:"VirtualDiskInfo,omitempty"` }
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 DynamicTypeMgrAllTypeInfo ¶
type DynamicTypeMgrAllTypeInfo 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 DynamicTypeMgrAllTypeInfo `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 QueryVirtualDiskInfoTaskBody ¶
type QueryVirtualDiskInfoTaskBody struct { Req *QueryVirtualDiskInfoTaskRequest `xml:"urn:internalvim25 QueryVirtualDiskInfo_Task,omitempty"` Res *QueryVirtualDiskInfo_TaskResponse `xml:"urn:vim25 QueryVirtualDiskInfo_TaskResponse,omitempty"` InternalRes *QueryVirtualDiskInfo_TaskResponse `xml:"urn:internalvim25 QueryVirtualDiskInfo_TaskResponse,omitempty"` Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"` }
func (*QueryVirtualDiskInfoTaskBody) Fault ¶
func (b *QueryVirtualDiskInfoTaskBody) Fault() *soap.Fault
type QueryVirtualDiskInfoTaskRequest ¶
type QueryVirtualDiskInfoTaskRequest struct { This types.ManagedObjectReference `xml:"_this"` Name string `xml:"name"` Datacenter *types.ManagedObjectReference `xml:"datacenter,omitempty"` IncludeParents bool `xml:"includeParents"` }
type QueryVirtualDiskInfo_TaskResponse ¶
type QueryVirtualDiskInfo_TaskResponse struct { Returnval types.ManagedObjectReference `xml:"returnval"` }
func QueryVirtualDiskInfoTask ¶
func QueryVirtualDiskInfoTask(ctx context.Context, r soap.RoundTripper, req *QueryVirtualDiskInfoTaskRequest) (*QueryVirtualDiskInfo_TaskResponse, error)
type ReflectManagedMethodExecuter ¶
type ReflectManagedMethodExecuter struct { types.ManagedObjectReference }
type ReflectManagedMethodExecuterSoapArgument ¶
type ReflectManagedMethodExecuterSoapArgument struct { types.DynamicData Name string `xml:"name"` Val string `xml:"val"` }
func (ReflectManagedMethodExecuterSoapArgument) Value ¶
func (arg ReflectManagedMethodExecuterSoapArgument) Value() []string
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)
type VimEsxCLICLIFault ¶
type VimEsxCLICLIFault struct { types.MethodFault ErrMsg []string `xml:"errMsg"` }
type VirtualDiskInfo ¶
type VirtualDiskInfo struct { Name string `xml:"unit>name"` DiskType string `xml:"diskType"` Parent string `xml:"parent,omitempty"` }
Source Files ¶
helpers.go methods.go types.go
Directories ¶
Path | Synopsis |
---|---|
internal/version |
- Version
- v0.48.1 (latest)
- Published
- Feb 11, 2025
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 2 months ago –
Tools for package owners.