derived

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdCluster

type EtcdCluster struct {
	model.EtcdCluster
	Network
	// contains filtered or unexported fields
}

func NewEtcdCluster

func NewEtcdCluster(config model.EtcdCluster, region model.Region, network Network, nodeCount int) EtcdCluster

func (EtcdCluster) DNSNames

func (c EtcdCluster) DNSNames() []string

func (EtcdCluster) NodeCount

func (c EtcdCluster) NodeCount() int

func (EtcdCluster) Region

func (c EtcdCluster) Region() model.Region

type EtcdNode

type EtcdNode interface {
	AdvertisedFQDNRef() (string, error)
	DependencyExists() bool
	DependencyRef() (string, error)
	EBSLogicalName() string
	EBSRef() string
	EIPAllocationIDRef() (string, error)
	EIPLogicalName() (string, error)
	EIPManaged() bool
	EIPRef() (string, error)
	// The name of the etcd member runs on this etcd node
	Name() string
	NetworkInterfaceIDRef() string
	NetworkInterfaceLogicalName() string
	NetworkInterfaceManaged() bool
	NetworkInterfacePrivateIPRef() string
	NetworkInterfacePrivateIPLogicalName() string
	ImportedAdvertisedFQDNRef() (string, error)
	LaunchConfigurationLogicalName() string
	LogicalName() string
	RecordSetManaged() bool
	RecordSetLogicalName() string
	SubnetRef() string
}

func NewEtcdNode

func NewEtcdNode(cluster EtcdCluster, index int, nodeConfig model.EtcdNode, s model.Subnet) EtcdNode

func NewEtcdNodeDependsOnManagedNGW

func NewEtcdNodeDependsOnManagedNGW(cluster EtcdCluster, index int, nodeConfig model.EtcdNode, s model.Subnet, ngw model.NATGateway) EtcdNode

func NewEtcdNodes

func NewEtcdNodes(nodeConfigs []model.EtcdNode, cluster EtcdCluster) ([]EtcdNode, error)

NewEtcdNodes derives etcd nodes from user-provided etcd node configs

type Network

type Network interface {
	Subnets() []model.Subnet
	NATGateways() []model.NATGateway
	NATGatewayForSubnet(model.Subnet) (*model.NATGateway, error)
}

func NewNetwork

func NewNetwork(subnets []model.Subnet, natGateways []model.NATGateway) Network

Jump to

Keyboard shortcuts

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