controllercontext

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func NewContext

func NewContext(ctx context.Context, c Context) context.Context

Types

type Cluster

type Cluster struct {
	AWSAccount    ClusterAWSAccount
	ASG           ClusterASG
	EncryptionKey string
}

type ClusterASG

type ClusterASG struct {
	DesiredCapacity int
	MaxSize         int
	MinSize         int
}

func (ClusterASG) IsEmpty

func (a ClusterASG) IsEmpty() bool

type ClusterAWSAccount

type ClusterAWSAccount struct {
	ID string
}

type Context

type Context struct {
	AWSClient      awsclient.Clients
	AWSService     awsservice.Interface
	CloudFormation cloudformationservice.CloudFormation
	EBSService     ebs.Interface

	// Status holds the data used to communicate between controller's
	// resources. It can be edited in place as Context is stored as
	// a pointer within context.Context.
	Status Status
}

func FromContext

func FromContext(ctx context.Context) (*Context, error)

type Drainer

type Drainer struct {
	// WorkerASGName is filled by the workerasgname resource.
	WorkerASGName string
}

type Status

type Status struct {
	// Cluster carries information between cluster controller resource.
	Cluster Cluster
	// Drainer carries information between drainer controller resource.
	Drainer Drainer
}

Jump to

Keyboard shortcuts

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