plugin

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGCPCloudConfig

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

Types

type GCPCloudConfig

type GCPCloudConfig struct {
	Context *cli.Context
}

func (*GCPCloudConfig) CreateAZs

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

func (*GCPCloudConfig) CreateCompilation

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

func (*GCPCloudConfig) CreateDiskTypes

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

func (*GCPCloudConfig) CreateNetworks

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

func (*GCPCloudConfig) CreateVMTypes

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

type NetworkCloudProperties

type NetworkCloudProperties struct {
	NetworkName    string   `yaml:"network_name"`
	SubNetworkName string   `yaml:"subnetwork_name"`
	Tags           []string `yaml:"tags"`
}

type Plugin

type Plugin struct {
	PluginVersion string
}

func (*Plugin) GetCloudConfig

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

GetCloudConfig - get a serialized form of GCP 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 VMProperties

type VMProperties struct {
	MachineType    string `yaml:"machine_type,omitempty"`
	RootDiskSizeGB int    `yaml:"root_disk_size_gb"`
	RootDiskType   string `yaml:"root_disk_type"`
}

Jump to

Keyboard shortcuts

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