guest

package
v0.0.0-...-5f55900 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 (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 (FileManager) TransferURL

func (m FileManager) TransferURL(ctx context.Context, u string) (*url.URL, error)

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 (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 (ProcessManager) ReadEnvironmentVariable

func (m ProcessManager) ReadEnvironmentVariable(ctx context.Context, auth types.BaseGuestAuthentication, names []string) ([]string, error)

func (ProcessManager) Reference

func (ProcessManager) StartProgram

func (ProcessManager) TerminateProcess

func (m ProcessManager) TerminateProcess(ctx context.Context, auth types.BaseGuestAuthentication, pid int64) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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