Documentation
¶
Index ¶
- func LoadCredentials(path string) (string, string, string, error)
- func LoadLocations(path string) (map[string]*Location, error)
- type Client
- func (c *Client) Delete(ctx context.Context, name string, loc string) error
- func (c *Client) Exists(ctx context.Context, name string, loc string) (bool, error)
- func (c *Client) GetVMPath(name string, loc string) string
- func (c *Client) Import(ctx context.Context, imageURL string, imageName string, loc string) (*types.ManagedObjectReference, error)
- func (c *Client) Process(ctx context.Context, ref types.ManagedObjectReference) error
- type Config
- type ImporterConfig
- type Location
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client wraps the govmomi client
type ImporterConfig ¶
type ImporterConfig struct {
Name string
Datacenter *object.Datacenter
Datastore *object.Datastore
Folder *object.Folder
Host *object.HostSystem
Network types.ManagedObjectReference
ResourcePool *object.ResourcePool
Finder *find.Finder
Path string
}
ImporterConfig holds the configuration for the OVF importer
Click to show internal directories.
Click to hide internal directories.