guest_manager

package
v0.0.0-...-6157915 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadClient

type DownloadClient interface {
	Download(ctx context.Context, u *url.URL, param *soap.Download) (io.ReadCloser, int64, error)
}

type FileManager

type FileManager interface {
	InitiateFileTransferFromGuest(ctx context.Context, auth types.BaseGuestAuthentication, guestFilePath string) (*types.FileTransferInformation, error)
	TransferURL(ctx context.Context, u string) (*url.URL, error)
}

type GuestManager

type GuestManager struct {
	// contains filtered or unexported fields
}

func NewGuestManager

func NewGuestManager(auth types.NamePasswordAuthentication, processManager ProcManager, fileManager FileManager, client DownloadClient) *GuestManager

func (*GuestManager) DownloadFileInGuest

func (g *GuestManager) DownloadFileInGuest(ctx context.Context, path string) (io.Reader, int64, error)

func (*GuestManager) ExitCodeForProgramInGuest

func (g *GuestManager) ExitCodeForProgramInGuest(ctx context.Context, pid int64) (int32, error)

func (*GuestManager) StartProgramInGuest

func (g *GuestManager) StartProgramInGuest(ctx context.Context, command, args string) (int64, error)

type ProcManager

type ProcManager interface {
	StartProgram(ctx context.Context, auth types.BaseGuestAuthentication, spec types.BaseGuestProgramSpec) (int64, error)
	ListProcesses(ctx context.Context, auth types.BaseGuestAuthentication, pids []int64) ([]types.GuestProcessInfo, error)
	Client() *vim25.Client
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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