eks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorAlreadyExists

func IsErrorAlreadyExists(err error) bool

IsErrorAlreadyExists helper function

func IsErrorBadRequest

func IsErrorBadRequest(err error) bool

IsErrorBadRequest helper function

func IsErrorNotFound

func IsErrorNotFound(err error) bool

IsErrorNotFound helper function

Types

type Client

type Client interface {
	Create(string, awscomputev1alpha1.EKSClusterSpec) (*Cluster, error)
	Get(string) (*Cluster, error)
	Delete(string) error
	CreateWorkerNodes(name string, spec awscomputev1alpha1.EKSClusterSpec) (*ClusterWorkers, error)
	GetWorkerNodes(stackID string) (*ClusterWorkers, error)
	DeleteWorkerNodes(stackID string) error
	ConnectionToken(string) (string, error)
}

Client interface to perform cluster operations

func NewClient

func NewClient(config *aws.Config) Client

NewClient return new instance of the crossplane client for a specific AWS configuration

type Cluster

type Cluster struct {
	Name     string
	ARN      string
	Status   string
	Endpoint string
	CA       string
}

Cluster crossplane representation of the AWS EKS Cluster

func NewCluster

func NewCluster(c *eks.Cluster) *Cluster

NewCluster returns crossplane representation AWS EKS cluster

type ClusterWorkers

type ClusterWorkers struct {
	WorkersStatus cloudformation.StackStatus
	WorkerReason  string
	WorkerStackID string
	WorkerARN     string
}

ClusterWorkers crossplane representation of the AWS EKS cluster worker nodes

func NewClusterWorkers

func NewClusterWorkers(workerStackID string, workerStatus cloudformation.StackStatus, workerReason string, workerARN string) *ClusterWorkers

NewClusterWorkers returns crossplane representation of the AWS EKS cluster worker nodes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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