Documentation ¶
Overview ¶
Package destroy contains tools for destroying clusters based on their metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Registry = make(map[string]NewFunc)
Registry maps ClusterMetadata.Platform() to per-platform Destroyer creators.
Functions ¶
This section is empty.
Types ¶
type Destroyer ¶
type Destroyer interface {
Run() error
}
Destroyer allows multiple implementations of destroy for different platforms.
func New ¶
func New(logger logrus.FieldLogger, rootDir string) (Destroyer, error)
New returns a Destroyer based on `metadata.json` in `rootDir`.
func NewAWS ¶
func NewAWS(logger logrus.FieldLogger, metadata *types.ClusterMetadata) (Destroyer, error)
NewAWS returns an AWS destroyer from ClusterMetadata.
type NewFunc ¶
type NewFunc func(logger logrus.FieldLogger, metadata *types.ClusterMetadata) (Destroyer, error)
NewFunc is an interface for creating platform-specific destroyers.
Directories ¶
Path | Synopsis |
---|---|
Package bootstrap uses Terraform to remove bootstrap resources.
|
Package bootstrap uses Terraform to remove bootstrap resources. |
Package libvirt provides a cluster-destroyer for libvirt clusters.
|
Package libvirt provides a cluster-destroyer for libvirt clusters. |
Package openstack provides a cluster-destroyer for openstack clusters.
|
Package openstack provides a cluster-destroyer for openstack clusters. |
Click to show internal directories.
Click to hide internal directories.