Documentation ¶
Overview ¶
Package aws provides a cluster-destroyer for AWS clusters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.9.2
func New(logger logrus.FieldLogger, metadata *types.ClusterMetadata) (providers.Destroyer, error)
New returns an AWS destroyer from ClusterMetadata.
Types ¶
type ClusterUninstaller ¶
type ClusterUninstaller struct { // Filters is a slice of filters for matching resources. A // resources matches the whole slice if it matches any of the // entries. For example: // // filter := []map[string]string{ // { // "a": "b", // "c": "d:, // }, // { // "d": "e", // }, // } // // will match resources with (a:b and c:d) or d:e. Filters []Filter // filter(s) we will be searching for Logger logrus.FieldLogger Region string ClusterID string ClusterDomain string // Session is the AWS session to be used for deletion. If nil, a // new session will be created based on the usual credential // configuration (AWS_PROFILE, AWS_ACCESS_KEY_ID, etc.). Session *session.Session }
ClusterUninstaller holds the various options for the cluster we want to delete
func (*ClusterUninstaller) Run ¶
func (o *ClusterUninstaller) Run() (*types.ClusterQuota, error)
Run is the entrypoint to start the uninstall process
func (*ClusterUninstaller) RunWithContext ¶ added in v0.9.2
func (o *ClusterUninstaller) RunWithContext(ctx context.Context) ([]string, error)
RunWithContext runs the uninstall process with a context. The first return is the list of ARNs for resources that could not be destroyed.
Click to show internal directories.
Click to hide internal directories.