Documentation ¶
Index ¶
- type EtcdCluster
- type EtcdNode
- func NewEtcdNode(cluster EtcdCluster, index int, nodeConfig model.EtcdNode, s model.Subnet) EtcdNode
- func NewEtcdNodeDependsOnManagedNGW(cluster EtcdCluster, index int, nodeConfig model.EtcdNode, s model.Subnet, ...) EtcdNode
- func NewEtcdNodes(nodeConfigs []model.EtcdNode, cluster EtcdCluster) ([]EtcdNode, error)
- type Network
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 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
Click to show internal directories.
Click to hide internal directories.