Documentation
¶
Index ¶
- type ENI
- type Instance
- func (i *Instance) Cleanup(ctx context.Context, ids []string) ([]string, error)
- func (i *Instance) Get(ctx context.Context, clusterName string) (ids []string, err error)
- func (i *Instance) GetExpired(ctx context.Context, expirationTime time.Time) (ids []string, err error)
- func (i *Instance) String() string
- type InstanceProfile
- func (ip *InstanceProfile) Cleanup(ctx context.Context, names []string) ([]string, error)
- func (ip *InstanceProfile) Get(ctx context.Context, clusterName string) (names []string, err error)
- func (ip *InstanceProfile) GetExpired(ctx context.Context, expirationTime time.Time) (names []string, err error)
- func (ip *InstanceProfile) String() string
- type LaunchTemplate
- func (lt *LaunchTemplate) Cleanup(ctx context.Context, names []string) ([]string, error)
- func (lt *LaunchTemplate) Get(ctx context.Context, clusterName string) (names []string, err error)
- func (lt *LaunchTemplate) GetExpired(ctx context.Context, expirationTime time.Time) (names []string, err error)
- func (lt *LaunchTemplate) String() string
- type OIDC
- type SecurityGroup
- func (sg *SecurityGroup) Cleanup(ctx context.Context, ids []string) ([]string, error)
- func (sg *SecurityGroup) Get(ctx context.Context, clusterName string) (ids []string, err error)
- func (sg *SecurityGroup) GetExpired(ctx context.Context, expirationTime time.Time) (ids []string, err error)
- func (sg *SecurityGroup) String() string
- type Stack
- func (s *Stack) Cleanup(ctx context.Context, names []string) ([]string, error)
- func (s *Stack) Get(ctx context.Context, clusterName string) (names []string, err error)
- func (s *Stack) GetExpired(ctx context.Context, expirationTime time.Time) (names []string, err error)
- func (s *Stack) String() string
- type Type
- type VPCEndpoint
- func (v *VPCEndpoint) Cleanup(ctx context.Context, ids []string) ([]string, error)
- func (v *VPCEndpoint) Get(ctx context.Context, clusterName string) (ids []string, err error)
- func (v *VPCEndpoint) GetExpired(ctx context.Context, expirationTime time.Time) (ids []string, err error)
- func (v *VPCEndpoint) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ENI ¶
type ENI struct {
// contains filtered or unexported fields
}
func (*ENI) Cleanup ¶
Cleanup any old ENIs that were managed by Karpenter or were provisioned as part of testing We execute these in serial since we will most likely get rate limited if we try to delete these too aggressively
func (*ENI) GetExpired ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func NewInstance ¶
func (*Instance) Cleanup ¶
Cleanup any old instances that were managed by Karpenter or were provisioned as part of testing
func (*Instance) GetExpired ¶
type InstanceProfile ¶
type InstanceProfile struct {
// contains filtered or unexported fields
}
func NewInstanceProfile ¶
func NewInstanceProfile(iamClient *iam.Client) *InstanceProfile
func (*InstanceProfile) Cleanup ¶
Cleanup any old instance profiles that were managed by Karpenter or were provisioned as part of testing We execute these in serial since we will most likely get rate limited if we try to delete these too aggressively
func (*InstanceProfile) GetExpired ¶
func (*InstanceProfile) String ¶
func (ip *InstanceProfile) String() string
type LaunchTemplate ¶
type LaunchTemplate struct {
// contains filtered or unexported fields
}
func NewLaunchTemplate ¶
func NewLaunchTemplate(ec2Client *ec2.Client) *LaunchTemplate
func (*LaunchTemplate) Cleanup ¶
Cleanup any old launch templates that were managed by Karpenter or were provisioned as part of testing We execute these in serial since we will most likely get rate limited if we try to delete these too aggressively
func (*LaunchTemplate) GetExpired ¶
func (*LaunchTemplate) String ¶
func (lt *LaunchTemplate) String() string
type OIDC ¶
type OIDC struct {
// contains filtered or unexported fields
}
func (*OIDC) Cleanup ¶
Cleanup any old OIDC providers that were are remaining as part of testing We execute these in serial since we will most likely get rate limited if we try to delete these too aggressively
func (*OIDC) GetExpired ¶
type SecurityGroup ¶
type SecurityGroup struct {
// contains filtered or unexported fields
}
func NewSecurityGroup ¶
func NewSecurityGroup(ec2Client *ec2.Client) *SecurityGroup
func (*SecurityGroup) Cleanup ¶
Cleanup any old security groups that were provisioned as part of testing We execute these in serial since we will most likely get rate limited if we try to delete these too aggressively
func (*SecurityGroup) GetExpired ¶
func (*SecurityGroup) String ¶
func (sg *SecurityGroup) String() string
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func NewStack ¶
func NewStack(cloudFormationClient *cloudformation.Client) *Stack
func (*Stack) Cleanup ¶
Cleanup any old stacks that were provisioned as part of testing We execute these in serial since we will most likely get rate limited if we try to delete these too aggressively
func (*Stack) GetExpired ¶
type Type ¶
type Type interface { // String is the string representation of the type String() string // Get returns all resources of the type associated with the clusterName Get(ctx context.Context, clusterName string) (ids []string, err error) // GetExpired returns all resources of the type that were provisioned before the expirationTime GetExpired(ctx context.Context, expirationTime time.Time) (ids []string, err error) // Cleanup deletes all resources of the type by id and returns the resource ids it succeeded to delete // In general, if all resources can't be deleted by id with a single API call (like with DeleteInstances) // you should call the requests synchronously to avoid rate limiting against the number of requests made Cleanup(ctx context.Context, ids []string) (cleaned []string, err error) }
Type is a resource type that can be cleaned through a cluster clean-up operation and through an expiration-based cleanup operation
type VPCEndpoint ¶
type VPCEndpoint struct {
// contains filtered or unexported fields
}
func NewVPCEndpoint ¶
func NewVPCEndpoint(ec2Client *ec2.Client) *VPCEndpoint
func (*VPCEndpoint) Cleanup ¶
Cleanup any old VPC endpoints that were provisioned as part of testing
func (*VPCEndpoint) GetExpired ¶
func (*VPCEndpoint) String ¶
func (v *VPCEndpoint) String() string