aws

package
v0.0.0-...-1d9db5a Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

AWS returns the instances in the local auto scaling group.

func NewAWS

func NewAWS() (*AWS, error)

NewAWS returns the Members this local instance belongs to.

func (*AWS) GetInstances

func (m *AWS) GetInstances() ([]cloud.Instance, error)

GetInstances will return the aws etcd instances

func (*AWS) GetLocalIP

func (m *AWS) GetLocalIP() (string, error)

GetLocalIP returns the local instance's PrivateIP.

func (*AWS) GetLocalInstance

func (m *AWS) GetLocalInstance() (cloud.Instance, error)

GetLocalInstance will get the aws instance etcd bootstrap is running on

type LBTargetGroupRegistrationProvider

type LBTargetGroupRegistrationProvider struct {
	// contains filtered or unexported fields
}

LBTargetGroupRegistrationProvider contains an aws elb client and a target group name used for registering etcd cluster information with an aws elb target group

func NewLBTargetGroupRegistrationProvider

func NewLBTargetGroupRegistrationProvider(c *LBTargetGroupRegistrationProviderConfig) (*LBTargetGroupRegistrationProvider, error)

NewLBTargetGroupRegistrationProvider returns a default LBTargetGroupRegistrationProvider and initiates a new aws elb client

func (LBTargetGroupRegistrationProvider) Update

func (l LBTargetGroupRegistrationProvider) Update(instances []cloud.Instance) error

Update will update the aws lb target group with the discovered etcd instances

type LBTargetGroupRegistrationProviderConfig

type LBTargetGroupRegistrationProviderConfig struct {
	TargetGroupName string
}

LBTargetGroupRegistrationProviderConfig contains configuration when creating a default LBTargetGroupRegistrationProvider

type Route53RegistrationProvider

type Route53RegistrationProvider struct {
	// contains filtered or unexported fields
}

Route53RegistrationProvider contains an aws route53 client and information about the desired hosted zone the user wants to update

func NewRoute53RegistrationProvider

func NewRoute53RegistrationProvider(c *Route53RegistrationProviderConfig) (*Route53RegistrationProvider, error)

NewRoute53RegistrationProvider returns a default Route53RegistrationProvider and initiates an new aws route53 client

func (Route53RegistrationProvider) Update

func (r Route53RegistrationProvider) Update(instances []cloud.Instance) error

Update will update the specified hostname in the route53 zone with discovered etcd ip addresses

type Route53RegistrationProviderConfig

type Route53RegistrationProviderConfig struct {
	ZoneID   string
	Hostname string
}

Route53RegistrationProviderConfig contains configuration when creating a default Route53RegistrationProvider

Jump to

Keyboard shortcuts

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