destroy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 71

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 libvirt provides a cluster-destroyer for libvirt clusters.
Package libvirt provides a cluster-destroyer for libvirt clusters.

Jump to

Keyboard shortcuts

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