importx

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2016 License: Apache-2.0 Imports: 27 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(fpath string) (*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 {
	// contains filtered or unexported fields
}

func (*FileArchive) Open

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

type FolderFlag

type FolderFlag struct {
	*flags.DatacenterFlag
	// contains filtered or unexported fields
}

func (*FolderFlag) Folder

func (flag *FolderFlag) Folder() (*object.Folder, error)

func (*FolderFlag) Process added in v0.3.0

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

func (*FolderFlag) Register

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

type Network added in v0.9.0

type Network struct {
	Name    string
	Network string
}

type Options

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

	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"`

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