Documentation
¶
Overview ¶
Code generated by 'cfn generate', changes will be undone by the next invocation. DO NOT EDIT. Updates to this type are made my editing the schema file and executing the 'generate' command.
Index ¶
- Constants
- func Create(req handler.Request, _ *Model, model *Model) (handler.ProgressEvent, error)
- func CreateKubeClientEks(session *session.Session, svc eksiface.EKSAPI, clusterName *string) (*kubernetes.Clientset, error)
- func CreateKubeClientFromToken(endpoint string, token string, caData []byte) (*kubernetes.Clientset, error)
- func Delete(req handler.Request, _ *Model, model *Model) (handler.ProgressEvent, error)
- func GetClusterDetails(svc eksiface.EKSAPI, clusterName *string) (*string, []byte, error)
- func GetToken(session *session.Session, clusterName *string) (*string, error)
- func List(req handler.Request, _ *Model, _ *Model) (handler.ProgressEvent, error)
- func Read(req handler.Request, _ *Model, model *Model) (handler.ProgressEvent, error)
- func Update(req handler.Request, _ *Model, model *Model) (handler.ProgressEvent, error)
- type Action
- type EncryptionConfigEntry
- type Event
- type IamAuthMap
- type KubernetesApiAccess
- type KubernetesApiAccessEntry
- type KubernetesNetworkConfig
- type Model
- type OperationComplete
- type Provider
- type ResourcesVpcConfig
- type Stage
- type Tags
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CreateKubeClientEks ¶
func GetClusterDetails ¶
Types ¶
type EncryptionConfigEntry ¶
type EncryptionConfigEntry struct { Resources []string `json:",omitempty"` Provider *Provider `json:",omitempty"` }
EncryptionConfigEntry is autogenerated from the json schema
type Event ¶
type Event struct { ClusterName *string `json:"clustername,omitempty"` Endpoint *string `json:"endpoint,omitempty"` CaData []byte `json:"cadata,omitempty"` AwsAuth *IamAuthMap `json:"apiaccess,omitempty"` Action Action `json:"action,omitempty"` }
type IamAuthMap ¶
type IamAuthMap struct { MapUsers []userMapping MapRoles []roleMapping }
func (IamAuthMap) GetFromCluster ¶
func (i IamAuthMap) GetFromCluster(clientset *kubernetes.Clientset) (*IamAuthMap, error)
func (IamAuthMap) PushConfigMap ¶
func (i IamAuthMap) PushConfigMap(clientset *kubernetes.Clientset) error
type KubernetesApiAccess ¶
type KubernetesApiAccess struct { Roles []KubernetesApiAccessEntry `json:",omitempty"` Users []KubernetesApiAccessEntry `json:",omitempty"` }
KubernetesApiAccess is autogenerated from the json schema
type KubernetesApiAccessEntry ¶
type KubernetesApiAccessEntry struct { Arn *string `json:",omitempty"` Username *string `json:",omitempty"` Groups []string `json:",omitempty"` }
KubernetesApiAccessEntry is autogenerated from the json schema
type KubernetesNetworkConfig ¶
type KubernetesNetworkConfig struct {
ServiceIpv4Cidr *string `json:",omitempty"`
}
KubernetesNetworkConfig is autogenerated from the json schema
type Model ¶
type Model struct { Name *string `json:",omitempty"` RoleArn *string `json:",omitempty"` LambdaRoleName *string `json:",omitempty"` Version *string `json:",omitempty"` KubernetesNetworkConfig *KubernetesNetworkConfig `json:",omitempty"` ResourcesVpcConfig *ResourcesVpcConfig `json:",omitempty"` EnabledClusterLoggingTypes []string `json:",omitempty"` EncryptionConfig []EncryptionConfigEntry `json:",omitempty"` KubernetesApiAccess *KubernetesApiAccess `json:",omitempty"` Arn *string `json:",omitempty"` CertificateAuthorityData *string `json:",omitempty"` ClusterSecurityGroupId *string `json:",omitempty"` Endpoint *string `json:",omitempty"` EncryptionConfigKeyArn *string `json:",omitempty"` OIDCIssuerURL *string `json:",omitempty"` Tags []Tags `json:",omitempty"` }
Model is autogenerated from the json schema
type OperationComplete ¶
type OperationComplete bool
const ( Complete OperationComplete = true InProgress OperationComplete = false )
type Provider ¶
type Provider struct {
KeyArn *string `json:",omitempty"`
}
Provider is autogenerated from the json schema
type ResourcesVpcConfig ¶
type ResourcesVpcConfig struct { SecurityGroupIds []string `json:",omitempty"` SubnetIds []string `json:",omitempty"` EndpointPublicAccess *bool `json:",omitempty"` EndpointPrivateAccess *bool `json:",omitempty"` PublicAccessCidrs []string `json:",omitempty"` }
ResourcesVpcConfig is autogenerated from the json schema
type Stage ¶
type Stage string
const ( InitStage Stage = "Init" LambdaInitStage Stage = "LambdaInit" ClusterStablilize Stage = "ClusterStabilize" LambdaStablilize Stage = "LambdaStabilize" IamAuthStage Stage = "IamAuthStage" UpdateClusterStage Stage = "UpdateCluster" DeleteClusterStage Stage = "DeleteCluster" CompleteStage Stage = "Complete" )
Click to show internal directories.
Click to hide internal directories.