importx

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: Apache-2.0 Imports: 22 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
}

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 {
	Opener
	// contains filtered or unexported fields
}

func (*FileArchive) Open

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

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) 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 {
	Opener
	// contains filtered or unexported fields
}

func (*TapeArchive) Open

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

type TapeArchiveEntry

type TapeArchiveEntry struct {
	io.Reader
	// 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