controllercontext

package
v5.5.0-fix+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 4 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 Context

type Context struct {
	// Client holds the client implementations used for several tenant cluster
	// specific actions.
	Client ContextClient
	// 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 ContextStatus
}

func FromContext

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

type ContextClient

type ContextClient struct {
	ControlPlane  ContextClientControlPlane
	TenantCluster ContextClientTenantCluster
}

type ContextClientControlPlane

type ContextClientControlPlane struct {
	AWS aws.Clients
}

type ContextClientTenantCluster

type ContextClientTenantCluster struct {
	AWS aws.Clients
}

type ContextStatus

type ContextStatus struct {
	ControlPlane  ContextStatusControlPlane
	TenantCluster ContextStatusTenantCluster
}

type ContextStatusControlPlaneNATGateway

type ContextStatusControlPlaneNATGateway struct {
	Addresses []*ec2.Address
}

type ContextStatusControlPlanePeerRole

type ContextStatusControlPlanePeerRole struct {
	ARN string
}

type ContextStatusControlPlaneRouteTable

type ContextStatusControlPlaneRouteTable struct {
	// Mappings are key value pairs of control plane route table names and their
	// IDs, where the map keys are route table names and the map values are route
	// table IDs. The mapping is managed by the routetable resource.
	Mappings map[string]string
}

type ContextStatusControlPlaneVPC

type ContextStatusControlPlaneVPC struct {
	CIDR string
}

type ContextStatusTenantCluster

type ContextStatusTenantCluster struct {
	AWSAccountID          string
	Encryption            ContextStatusTenantClusterEncryption
	HostedZoneNameServers string
	MasterInstance        ContextStatusTenantClusterMasterInstance
	TCCP                  ContextStatusTenantClusterTCCP
	VersionBundleVersion  string
	WorkerInstance        ContextStatusTenantClusterWorkerInstance
}

type ContextStatusTenantClusterEncryption

type ContextStatusTenantClusterEncryption struct {
	Key string
}

type ContextStatusTenantClusterMasterInstance

type ContextStatusTenantClusterMasterInstance struct {
	DockerVolumeResourceName string
	Image                    string
	ResourceName             string
	Type                     string
	CloudConfigVersion       string
}

type ContextStatusTenantClusterTCCP

type ContextStatusTenantClusterTCCP struct {
	ASG             ContextStatusTenantClusterTCCPASG
	IsTransitioning bool
	RouteTables     []*ec2.RouteTable
	Subnets         []*ec2.Subnet
	VPC             ContextStatusTenantClusterTCCPVPC
}

type ContextStatusTenantClusterTCCPASG

type ContextStatusTenantClusterTCCPASG struct {
	DesiredCapacity int
	MaxSize         int
	MinSize         int
	Name            string
}

func (ContextStatusTenantClusterTCCPASG) IsEmpty

type ContextStatusTenantClusterTCCPVPC

type ContextStatusTenantClusterTCCPVPC struct {
	ID                  string
	PeeringConnectionID string
}

type ContextStatusTenantClusterWorkerInstance

type ContextStatusTenantClusterWorkerInstance struct {
	DockerVolumeSizeGB string
	CloudConfigVersion string
	Image              string
	Type               string
}

Jump to

Keyboard shortcuts

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