Documentation ¶
Index ¶
- type AuthManager
- func (m AuthManager) AcquireCredentials(ctx context.Context, requestedAuth types.BaseGuestAuthentication, ...) (types.BaseGuestAuthentication, error)
- func (m AuthManager) Reference() types.ManagedObjectReference
- func (m AuthManager) ReleaseCredentials(ctx context.Context, auth types.BaseGuestAuthentication) error
- func (m AuthManager) ValidateCredentials(ctx context.Context, auth types.BaseGuestAuthentication) error
- type FileManager
- func (m FileManager) ChangeFileAttributes(ctx context.Context, auth types.BaseGuestAuthentication, guestFilePath string, ...) error
- func (m FileManager) CreateTemporaryDirectory(ctx context.Context, auth types.BaseGuestAuthentication, prefix, suffix string, ...) (string, error)
- func (m FileManager) CreateTemporaryFile(ctx context.Context, auth types.BaseGuestAuthentication, prefix, suffix string, ...) (string, error)
- func (m FileManager) DeleteDirectory(ctx context.Context, auth types.BaseGuestAuthentication, directoryPath string, ...) error
- func (m FileManager) DeleteFile(ctx context.Context, auth types.BaseGuestAuthentication, filePath string) error
- func (m FileManager) InitiateFileTransferFromGuest(ctx context.Context, auth types.BaseGuestAuthentication, guestFilePath string) (*types.FileTransferInformation, error)
- func (m FileManager) InitiateFileTransferToGuest(ctx context.Context, auth types.BaseGuestAuthentication, guestFilePath string, ...) (string, error)
- func (m FileManager) ListFiles(ctx context.Context, auth types.BaseGuestAuthentication, filePath string, ...) (*types.GuestListFileInfo, error)
- func (m FileManager) MakeDirectory(ctx context.Context, auth types.BaseGuestAuthentication, directoryPath string, ...) error
- func (m FileManager) MoveDirectory(ctx context.Context, auth types.BaseGuestAuthentication, ...) error
- func (m FileManager) MoveFile(ctx context.Context, auth types.BaseGuestAuthentication, srcFilePath string, ...) error
- func (m FileManager) Reference() types.ManagedObjectReference
- func (m FileManager) TransferURL(ctx context.Context, u string) (*url.URL, error)
- type OperationsManager
- type ProcessManager
- func (m ProcessManager) Client() *vim25.Client
- func (m ProcessManager) ListProcesses(ctx context.Context, auth types.BaseGuestAuthentication, pids []int64) ([]types.GuestProcessInfo, error)
- func (m ProcessManager) ReadEnvironmentVariable(ctx context.Context, auth types.BaseGuestAuthentication, names []string) ([]string, error)
- func (m ProcessManager) Reference() types.ManagedObjectReference
- func (m ProcessManager) StartProgram(ctx context.Context, auth types.BaseGuestAuthentication, ...) (int64, error)
- func (m ProcessManager) TerminateProcess(ctx context.Context, auth types.BaseGuestAuthentication, pid int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthManager ¶
type AuthManager struct { types.ManagedObjectReference // contains filtered or unexported fields }
func (AuthManager) AcquireCredentials ¶
func (m AuthManager) AcquireCredentials(ctx context.Context, requestedAuth types.BaseGuestAuthentication, sessionID int64) (types.BaseGuestAuthentication, error)
func (AuthManager) Reference ¶
func (m AuthManager) Reference() types.ManagedObjectReference
func (AuthManager) ReleaseCredentials ¶
func (m AuthManager) ReleaseCredentials(ctx context.Context, auth types.BaseGuestAuthentication) error
func (AuthManager) ValidateCredentials ¶
func (m AuthManager) ValidateCredentials(ctx context.Context, auth types.BaseGuestAuthentication) error
type FileManager ¶
type FileManager struct { types.ManagedObjectReference // contains filtered or unexported fields }
func (FileManager) ChangeFileAttributes ¶
func (m FileManager) ChangeFileAttributes(ctx context.Context, auth types.BaseGuestAuthentication, guestFilePath string, fileAttributes types.BaseGuestFileAttributes) error
func (FileManager) CreateTemporaryDirectory ¶
func (m FileManager) CreateTemporaryDirectory(ctx context.Context, auth types.BaseGuestAuthentication, prefix, suffix string, path string) (string, error)
func (FileManager) CreateTemporaryFile ¶
func (m FileManager) CreateTemporaryFile(ctx context.Context, auth types.BaseGuestAuthentication, prefix, suffix string, path string) (string, error)
func (FileManager) DeleteDirectory ¶
func (m FileManager) DeleteDirectory(ctx context.Context, auth types.BaseGuestAuthentication, directoryPath string, recursive bool) error
func (FileManager) DeleteFile ¶
func (m FileManager) DeleteFile(ctx context.Context, auth types.BaseGuestAuthentication, filePath string) error
func (FileManager) InitiateFileTransferFromGuest ¶
func (m FileManager) InitiateFileTransferFromGuest(ctx context.Context, auth types.BaseGuestAuthentication, guestFilePath string) (*types.FileTransferInformation, error)
func (FileManager) InitiateFileTransferToGuest ¶
func (m FileManager) InitiateFileTransferToGuest(ctx context.Context, auth types.BaseGuestAuthentication, guestFilePath string, fileAttributes types.BaseGuestFileAttributes, fileSize int64, overwrite bool) (string, error)
func (FileManager) ListFiles ¶
func (m FileManager) ListFiles(ctx context.Context, auth types.BaseGuestAuthentication, filePath string, index int32, maxResults int32, matchPattern string) (*types.GuestListFileInfo, error)
func (FileManager) MakeDirectory ¶
func (m FileManager) MakeDirectory(ctx context.Context, auth types.BaseGuestAuthentication, directoryPath string, createParentDirectories bool) error
func (FileManager) MoveDirectory ¶
func (m FileManager) MoveDirectory(ctx context.Context, auth types.BaseGuestAuthentication, srcDirectoryPath string, dstDirectoryPath string) error
func (FileManager) MoveFile ¶
func (m FileManager) MoveFile(ctx context.Context, auth types.BaseGuestAuthentication, srcFilePath string, dstFilePath string, overwrite bool) error
func (FileManager) Reference ¶
func (m FileManager) Reference() types.ManagedObjectReference
func (FileManager) TransferURL ¶
TransferURL rewrites the url with a valid hostname and adds the host's thumbprint. The InitiateFileTransfer{From,To}Guest methods return a URL with the host set to "*" when connected directly to ESX, but return the address of VM's runtime host when connected to vCenter.
type OperationsManager ¶
type OperationsManager struct {
// contains filtered or unexported fields
}
func NewOperationsManager ¶
func NewOperationsManager(c *vim25.Client, vm types.ManagedObjectReference) *OperationsManager
func (OperationsManager) AuthManager ¶
func (m OperationsManager) AuthManager(ctx context.Context) (*AuthManager, error)
func (OperationsManager) FileManager ¶
func (m OperationsManager) FileManager(ctx context.Context) (*FileManager, error)
func (OperationsManager) ProcessManager ¶
func (m OperationsManager) ProcessManager(ctx context.Context) (*ProcessManager, error)
type ProcessManager ¶
type ProcessManager struct { types.ManagedObjectReference // contains filtered or unexported fields }
func (ProcessManager) Client ¶
func (m ProcessManager) Client() *vim25.Client
func (ProcessManager) ListProcesses ¶
func (m ProcessManager) ListProcesses(ctx context.Context, auth types.BaseGuestAuthentication, pids []int64) ([]types.GuestProcessInfo, error)
func (ProcessManager) ReadEnvironmentVariable ¶
func (m ProcessManager) ReadEnvironmentVariable(ctx context.Context, auth types.BaseGuestAuthentication, names []string) ([]string, error)
func (ProcessManager) Reference ¶
func (m ProcessManager) Reference() types.ManagedObjectReference
func (ProcessManager) StartProgram ¶
func (m ProcessManager) StartProgram(ctx context.Context, auth types.BaseGuestAuthentication, spec types.BaseGuestProgramSpec) (int64, error)
func (ProcessManager) TerminateProcess ¶
func (m ProcessManager) TerminateProcess(ctx context.Context, auth types.BaseGuestAuthentication, pid int64) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.