importx

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 24 Imported by: 53

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 KeyValue added in v0.32.0

type KeyValue struct {
	Key   string
	Value string
}

func (*KeyValue) UnmarshalJSON added in v0.32.0

func (kv *KeyValue) UnmarshalJSON(b []byte) error

case insensitive for Key + Value

type Network added in v0.9.0

type Network struct {
	Name    string
	Network string
}

type Opener added in v0.16.0

type Opener struct {
	*vim25.Client
}

func (Opener) OpenFile added in v0.16.0

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

func (Opener) OpenLocal added in v0.16.0

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

func (Opener) OpenRemote added in v0.16.0

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 added in v0.21.0

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 {
	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