plugin

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVSphereCloudConfig

func NewVSphereCloudConfig(c *cli.Context) cloudconfigs.CloudConfigProvider

Types

type AZCloudProperties

type AZCloudProperties struct {
	DataCenters []DataCenter `yaml:"datacenters"`
}

type DataCenter

type DataCenter struct {
	Name     string                    `yaml:"name"`
	Clusters []map[string]ResourcePool `yaml:"clusters"`
}

type NetworkCloudProperties

type NetworkCloudProperties struct {
	NetworkName string `yaml:"name"`
}

type Plugin

type Plugin struct {
	PluginVersion string
}

func (*Plugin) GetCloudConfig

func (s *Plugin) GetCloudConfig(args []string) ([]byte, error)

GetCloudConfig - get a serialized form of vCenter cloud configuration

func (*Plugin) GetContext

func (s *Plugin) GetContext(args []string) (c *cli.Context)

GetContext -

func (*Plugin) GetFlags

func (s *Plugin) GetFlags() []pcli.Flag

func (*Plugin) GetMeta

func (s *Plugin) GetMeta() cloudconfig.Meta

GetMeta - Get metadata of the plugin

type ResourcePool

type ResourcePool struct {
	ResourcePool string `yaml:"resource_pool"`
}

type VMProperties

type VMProperties struct {
	CPU        int      `yaml:"cpu,omitempty"`
	RAM        int      `yaml:"ram,omitempty"`
	Disk       int      `yaml:"disk,omitempty"`
	DataStores []string `yaml:"datastores,omitempty"`
}

type VSphereCloudConfig

type VSphereCloudConfig struct {
	Context *cli.Context
}

func (*VSphereCloudConfig) CreateAZs

func (c *VSphereCloudConfig) CreateAZs() ([]enaml.AZ, error)

func (*VSphereCloudConfig) CreateCompilation

func (c *VSphereCloudConfig) CreateCompilation() (*enaml.Compilation, error)

func (*VSphereCloudConfig) CreateDiskTypes

func (c *VSphereCloudConfig) CreateDiskTypes() ([]enaml.DiskType, error)

func (*VSphereCloudConfig) CreateNetworks

func (c *VSphereCloudConfig) CreateNetworks() ([]enaml.DeploymentNetwork, error)

func (*VSphereCloudConfig) CreateVMTypes

func (c *VSphereCloudConfig) CreateVMTypes() ([]enaml.VMType, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL