Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct { CloudProvider string `yaml:"cloudProvider"` Manager ClusterSet `yaml:"manager"` Worker ClusterSet `yaml:"worker"` // contains filtered or unexported fields }
Cluster describes the build-out info for 2 cluster sets:
manager, worker
func GetDefaultCluster ¶
GetDefaultCluster returns a simple default cluster config
func LoadClusterConfig ¶
LoadClusterConfig deserializes a yaml file with the cluster configuration
func (*Cluster) GetMachines ¶
GetMachines returns list of machines and their configuration
type ClusterSet ¶
type ClusterSet struct { Basename string `yaml:"basename"` NodeCount int `yaml:"nodeCount"` VMOptionsFile string `yaml:"vmOptionsFile,omitempty"` // contains filtered or unexported fields }
ClusterSet describes the build-out info for a set of cluster machines
type Config ¶
type Config struct { VMName string CloudProvider string CloudAPIToken string // contains filtered or unexported fields }
Config represents the CoreOS VM configuration
func NewConfigFrom ¶
func NewConfigFrom(vmName string, cloudProvider string, providerConfig ConfigRenderer) (*Config, error)
NewConfigFrom returns a new VM configuration from an already existing providerConfig
func (Config) GetCreateArguments ¶
GetCreateArguments builds and returns a list of cmd line arguments to pass to docker-machine's create command
type ConfigRenderer ¶
ConfigRenderer is the contract to render a configuration's argument string array
func GetDefaultProviderConfig ¶
func GetDefaultProviderConfig(cloudProvider string) (ConfigRenderer, error)
GetDefaultProviderConfig returns the default config renderer
func LoadProviderConfig ¶
func LoadProviderConfig(cloudProvider string, optionsYamlFile string) (ConfigRenderer, error)
LoadProviderConfig parses and returns a cloud provider config renderer
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
Machine represents a VM as known to local docker-machine
func NewMachine ¶
NewMachine instance of Machine
func (*Machine) CreateMachine ¶
CreateMachine initiates the creation of a new VM
type ReleaseChannel ¶
type ReleaseChannel int
ReleaseChannel enum represents a CoreOS release channel
const ( Stable ReleaseChannel = iota Beta Alpha )
Stable etc. release channels
func (ReleaseChannel) String ¶
func (c ReleaseChannel) String() string