internal

package
v0.46.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientWithEnvoyHostGateway added in v0.31.0

func ClientWithEnvoyHostGateway(vc *vim25.Client) *vim25.Client

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

func HostGatewayTransferURL(u *url.URL, hostMoref types.ManagedObjectReference) *url.URL

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 IsDatastoreVSAN(ds mo.Datastore) bool

func UsingEnvoySidecar added in v0.31.0

func UsingEnvoySidecar(c *vim25.Client) bool

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

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"`
}

type DynamicTypeMgrQueryTypeInfoBody

type DynamicTypeMgrQueryTypeInfoBody struct {
	Req    *DynamicTypeMgrQueryTypeInfoRequest  `xml:"urn:vim25 DynamicTypeMgrQueryTypeInfo"`
	Res    *DynamicTypeMgrQueryTypeInfoResponse `xml:"urn:vim25 DynamicTypeMgrQueryTypeInfoResponse"`
	Fault_ *soap.Fault
}

func (*DynamicTypeMgrQueryTypeInfoBody) 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"`
}

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"`
}

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

type RetrieveDynamicTypeManagerRequest

type RetrieveDynamicTypeManagerRequest struct {
	This types.ManagedObjectReference `xml:"_this"`
}

type RetrieveDynamicTypeManagerResponse

type RetrieveDynamicTypeManagerResponse struct {
	Returnval *InternalDynamicTypeManager `xml:"urn:vim25 returnval"`
}

type RetrieveManagedMethodExecuterBody

type RetrieveManagedMethodExecuterBody struct {
	Req    *RetrieveManagedMethodExecuterRequest  `xml:"urn:vim25 RetrieveManagedMethodExecuter"`
	Res    *RetrieveManagedMethodExecuterResponse `xml:"urn:vim25 RetrieveManagedMethodExecuterResponse"`
	Fault_ *soap.Fault
}

func (*RetrieveManagedMethodExecuterBody) Fault

type RetrieveManagedMethodExecuterRequest

type RetrieveManagedMethodExecuterRequest struct {
	This types.ManagedObjectReference `xml:"_this"`
}

type RetrieveManagedMethodExecuterResponse

type RetrieveManagedMethodExecuterResponse struct {
	Returnval *ReflectManagedMethodExecuter `xml:"urn:vim25 returnval"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL