resource

package
v0.0.0-...-8305de6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

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

View Source
const (
	ZipFile            string = "k8svpc.zip"
	FunctionNamePrefix string = "k8s-api-vpc-connector-"
	Handler            string = "k8svpc"
	MemorySize         int64  = 256
	Runtime            string = "go1.x"
	Timeout            int64  = 900
)

Variables

This section is empty.

Functions

func Create

func Create(req handler.Request, _ *Model, model *Model) (handler.ProgressEvent, error)

func CreateKubeClientEks

func CreateKubeClientEks(session *session.Session, svc eksiface.EKSAPI, clusterName *string) (*kubernetes.Clientset, error)

func CreateKubeClientFromToken

func CreateKubeClientFromToken(endpoint string, token string, caData []byte) (*kubernetes.Clientset, error)

func Delete

func Delete(req handler.Request, _ *Model, model *Model) (handler.ProgressEvent, error)

func GetClusterDetails

func GetClusterDetails(svc eksiface.EKSAPI, clusterName *string) (*string, []byte, error)

func GetToken

func GetToken(session *session.Session, clusterName *string) (*string, error)

func List

func List(req handler.Request, _ *Model, _ *Model) (handler.ProgressEvent, error)

func Read

func Read(req handler.Request, _ *Model, model *Model) (handler.ProgressEvent, error)

func Update

func Update(req handler.Request, _ *Model, model *Model) (handler.ProgressEvent, error)

Types

type Action

type Action string

Status represents the status of the handler.

const (
	CreateAction Action = "Create"
	ReadAction   Action = "Read"
	UpdateAction Action = "Update"
	DeleteAction Action = "Delete"
	ListAction   Action = "List"
)

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"
)

type Tags

type Tags struct {
	Value *string `json:",omitempty"`
	Key   *string `json:",omitempty"`
}

Tags is autogenerated from the json schema

Jump to

Keyboard shortcuts

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