destroy

package
v0.0.0-...-a9d5b60 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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