destroy

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: Apache-2.0 Imports: 5 Imported by: 38 modules, 73 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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