Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, imageURL string, imageName string, loc string) error
- 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) GetLocations() map[string]interface{}
- func (c *Client) GetVMPath(name string, loc string) string
- type Config
- type Credentials
- type ImporterConfig
- type Location
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the govmomi client
func (*Client) GetLocations ¶ added in v0.5.0
GetLocations returns all configured vSphere locations
type Credentials ¶ added in v0.5.0
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
type Location ¶
type Location struct {
Datacenter string `yaml:"datacenter"`
Datastore string `yaml:"datastore"`
Folder string `yaml:"folder"`
Host string `yaml:"host"`
Resourcepool string `yaml:"resourcepool"`
Network string `yaml:"network"`
Cluster string `yaml:"cluster"`
ImageSuffix string `yaml:"imagesuffix"`
}
Click to show internal directories.
Click to hide internal directories.