cloudconfigs

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 6 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() []cli.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 []cli.Flag, iaasNetworkFlagFunction func([]cli.Flag, int) []cli.Flag) []cli.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)

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)
}

Directories

Path Synopsis
aws
gcp

Jump to

Keyboard shortcuts

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