importx

package
v0.0.0-...-d5d7872 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive interface {
	Open(string) (io.ReadCloser, int64, error)
}

type ArchiveFlag

type ArchiveFlag struct {
	Archive
	// contains filtered or unexported fields
}

ArchiveFlag doesn't register any flags; only encapsulates some common archive related functionality.

func (*ArchiveFlag) Process

func (f *ArchiveFlag) Process(ctx context.Context) error

func (*ArchiveFlag) ReadEnvelope

func (f *ArchiveFlag) ReadEnvelope(data []byte) (*ovf.Envelope, error)

func (*ArchiveFlag) ReadOvf

func (f *ArchiveFlag) ReadOvf(fpath string) ([]byte, error)

func (*ArchiveFlag) Register

func (f *ArchiveFlag) Register(ctx context.Context, fs *flag.FlagSet)

type FileArchive

type FileArchive struct {
	Path string
	Opener
}

func (*FileArchive) Open

func (t *FileArchive) Open(name string) (io.ReadCloser, int64, error)

type Network

type Network struct {
	Name    string
	Network string
}

type Opener

type Opener struct {
	*vim25.Client
}

func (Opener) OpenFile

func (o Opener) OpenFile(path string) (io.ReadCloser, int64, error)

func (Opener) OpenLocal

func (o Opener) OpenLocal(path string) (io.ReadCloser, int64, error)

func (Opener) OpenRemote

func (o Opener) OpenRemote(link string) (io.ReadCloser, int64, error)

type Options

type Options struct {
	AllDeploymentOptions []string `json:",omitempty"`
	Deployment           string   `json:",omitempty"`

	AllDiskProvisioningOptions []string `json:",omitempty"`
	DiskProvisioning           string

	AllIPAllocationPolicyOptions []string `json:",omitempty"`
	IPAllocationPolicy           string

	AllIPProtocolOptions []string `json:",omitempty"`
	IPProtocol           string

	PropertyMapping []Property `json:",omitempty"`

	NetworkMapping []Network `json:",omitempty"`

	Annotation string `json:",omitempty"`

	MarkAsTemplate bool
	PowerOn        bool
	InjectOvfEnv   bool
	WaitForIP      bool
	Name           *string
}

type OptionsFlag

type OptionsFlag struct {
	Options Options
	// contains filtered or unexported fields
}

func (*OptionsFlag) Deploy

func (flag *OptionsFlag) Deploy(vm *object.VirtualMachine, out *flags.OutputFlag) error

func (*OptionsFlag) Process

func (flag *OptionsFlag) Process(ctx context.Context) error

func (*OptionsFlag) Register

func (flag *OptionsFlag) Register(ctx context.Context, f *flag.FlagSet)

type Property

type Property struct {
	types.KeyValue
	Spec *ovf.Property `json:",omitempty"`
}

type TapeArchive

type TapeArchive struct {
	Path string
	Opener
}

func (*TapeArchive) Open

func (t *TapeArchive) Open(name string) (io.ReadCloser, int64, error)

type TapeArchiveEntry

type TapeArchiveEntry struct {
	io.Reader

	Name string
	// contains filtered or unexported fields
}

func (*TapeArchiveEntry) Close

func (t *TapeArchiveEntry) Close() error

Jump to

Keyboard shortcuts

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