aws

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultProfile is the default profile to be used when
	// loading configuration from the config files if another profile name
	// is not provided.
	DefaultProfile = session.DefaultSharedConfigProfile
)

Variables

This section is empty.

Functions

func SessionConfig

func SessionConfig(region, profile string) (*session.Session, *aws.Config, error)

SessionConfig returns AWS API client session and config with given region and profile

Types

type HookHandler

type HookHandler struct {
	AutoScaling *autoscaling.AutoScaling
	Drainer     drainer.Drainer
}

HookHandler implements a drainer trigger for AWS ASG instance lifecycle hook

func (*HookHandler) Loop

func (h *HookHandler) Loop(nodeName string)

Loop starts an infinite handler loop

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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