Documentation
¶
Index ¶
- func IsRemotePath(path string) bool
- func OVFMap(op []Property) (p []types.KeyValue)
- func ReadEnvelope(data []byte) (*ovf.Envelope, error)
- func ReadOvf(fpath string, a Archive) ([]byte, error)
- func ValidateChecksum(ctx context.Context, lease *nfc.Lease, sum *library.Checksum, file string, ...) error
- func ValidateNetwork(e *ovf.Envelope, net Network) error
- type Archive
- type FileArchive
- type Importer
- func (imp *Importer) Import(ctx context.Context, fpath string, opts Options) (*types.ManagedObjectReference, error)
- func (imp *Importer) ImportVApp(ctx context.Context, fpath string, opts Options) (*nfc.LeaseInfo, *nfc.Lease, error)
- func (imp *Importer) NetworkMap(ctx context.Context, e *ovf.Envelope, networks []Network) ([]types.OvfNetworkMapping, error)
- func (imp *Importer) ReadManifest(fpath string) error
- func (imp *Importer) Upload(ctx context.Context, lease *nfc.Lease, item nfc.FileItem) error
- type KeyValue
- type Network
- type Opener
- type Options
- type Property
- type TapeArchive
- type TapeArchiveEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRemotePath ¶
func ValidateChecksum ¶
Types ¶
type FileArchive ¶
func (*FileArchive) Open ¶
func (t *FileArchive) Open(name string) (io.ReadCloser, int64, error)
type Importer ¶
type Importer struct {
Log progress.LogFunc
Name string
VerifyManifest bool
Hidden bool
Client *vim25.Client
Finder *find.Finder
Sinker progress.Sinker
Datacenter *object.Datacenter
Datastore *object.Datastore
ResourcePool *object.ResourcePool
Host *object.HostSystem
Folder *object.Folder
Archive Archive
Manifest map[string]*library.Checksum
}
func (*Importer) ImportVApp ¶ added in v0.50.0
func (*Importer) NetworkMap ¶
func (*Importer) ReadManifest ¶
type KeyValue ¶
func (*KeyValue) UnmarshalJSON ¶
case insensitive for Key + Value
type Opener ¶
func (Opener) OpenRemote ¶
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 TapeArchive ¶
func (*TapeArchive) Open ¶
func (t *TapeArchive) Open(name string) (io.ReadCloser, int64, error)
type TapeArchiveEntry ¶
func (*TapeArchiveEntry) Close ¶
func (t *TapeArchiveEntry) Close() error
Click to show internal directories.
Click to hide internal directories.