cloudconfigs

package
v1.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SupportedNetworkCount = 10

Variables

This section is empty.

Functions

func CheckRequiredLength

func CheckRequiredLength(targetLength, index int, c *cli.Context, names ...string) error

func CreateAZFlags added in v0.0.14

func CreateAZFlags() []pcli.Flag

func CreateCloudConfigManifest

func CreateCloudConfigManifest(provider CloudConfigProvider) (*enaml.CloudConfigManifest, error)

func CreateCompilation added in v0.0.14

func CreateCompilation(c *cli.Context) (*enaml.Compilation, error)

func CreateFlagnameWithSuffix

func CreateFlagnameWithSuffix(name string, suffix int) (flagname string)

func CreateNetworkFlags added in v0.0.14

func CreateNetworkFlags(flags []pcli.Flag, iaasNetworkFlagFunction func([]pcli.Flag, int) []pcli.Flag) []pcli.Flag

func CreateNetworks added in v0.0.14

func CreateNetworks(context *cli.Context, validateCloudPropertiesFunction func(int, int) error, cloudPropertiesFunction func(int, int) interface{}) ([]enaml.DeploymentNetwork, error)

func GetDeploymentManifestBytes

func GetDeploymentManifestBytes(provider CloudConfigProvider) ([]byte, error)

func GetNetwork added in v1.0.0

func GetNetwork(networks []*enaml.ManualNetwork, networkName string) *enaml.ManualNetwork

GetNetwork - returns a network if already created with the same name

Types

type BaseCloudConfig

type BaseCloudConfig struct {
	Manifest *enaml.CloudConfigManifest
}

type CloudConfigProvider

type CloudConfigProvider interface {
	CreateAZs() ([]enaml.AZ, error)
	CreateNetworks() ([]enaml.DeploymentNetwork, error)
	CreateVMTypes() ([]enaml.VMType, error)
	CreateDiskTypes() ([]enaml.DiskType, error)
	CreateCompilation() (*enaml.Compilation, error)
}

Jump to

Keyboard shortcuts

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