Documentation
¶
Index ¶
- Constants
- func IsErrorAlreadyExists(err error) bool
- func IsErrorBadRequest(err error) bool
- func IsErrorNotFound(err error) bool
- type Client
- type Cluster
- type ClusterWorkers
- type EKSClient
- func (e *EKSClient) ConnectionToken(name string) (string, error)
- func (e *EKSClient) Create(name string, spec awscomputev1alpha1.EKSClusterSpec) (*Cluster, error)
- func (e *EKSClient) CreateWorkerNodes(name string, spec awscomputev1alpha1.EKSClusterSpec) (*ClusterWorkers, error)
- func (e *EKSClient) Delete(name string) error
- func (e *EKSClient) DeleteWorkerNodes(stackID string) error
- func (e *EKSClient) Get(name string) (*Cluster, error)
- func (e *EKSClient) GetWorkerNodes(stackID string) (*ClusterWorkers, error)
Constants ¶
View Source
const (
CloudFormationNodeInstanceRole = "NodeInstanceRole"
)
Variables ¶
This section is empty.
Functions ¶
func IsErrorAlreadyExists ¶
IsErrorAlreadyExists 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
type Cluster ¶
Cluster crossplane representation of the AWS EKS Cluster
func NewCluster ¶
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
type EKSClient ¶
type EKSClient struct {
// contains filtered or unexported fields
}
EKSClient crossplane eks client
func (*EKSClient) ConnectionToken ¶
ConnectionToken to a cluster
func (*EKSClient) Create ¶
func (e *EKSClient) Create(name string, spec awscomputev1alpha1.EKSClusterSpec) (*Cluster, error)
Create new EKS cluster
func (*EKSClient) CreateWorkerNodes ¶
func (e *EKSClient) CreateWorkerNodes(name string, spec awscomputev1alpha1.EKSClusterSpec) (*ClusterWorkers, error)
CreateWorkerNodes new EKS cluster workers nodes
func (*EKSClient) DeleteWorkerNodes ¶
DeleteWorkerNodes deletes the cloud formation for this stack.
func (*EKSClient) GetWorkerNodes ¶
func (e *EKSClient) GetWorkerNodes(stackID string) (*ClusterWorkers, error)
GetWorkerNodes information about existing cloud formation stack
Click to show internal directories.
Click to hide internal directories.