openstack

package
Version: v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package openstack provides a cluster-destroyer for openstack clusters.

Package openstack provides a cluster-destroyer for openstack clusters.

Package openstack provides a cluster-destroyer for openstack clusters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger logrus.FieldLogger, metadata *types.ClusterMetadata) (destroy.Destroyer, error)

New returns an OpenStack destroyer from ClusterMetadata.

Types

type ClusterUninstaller

type ClusterUninstaller struct {
	// Cloud is the cloud name as set in clouds.yml
	Cloud string
	// Filter contains the openshiftClusterID to filter tags
	Filter Filter
	Logger logrus.FieldLogger
}

ClusterUninstaller holds the various options for the cluster we want to delete.

func (*ClusterUninstaller) Run

func (o *ClusterUninstaller) Run() error

Run is the entrypoint to start the uninstall process.

type Filter

type Filter map[string]string

Filter holds the key/value pairs for the tags we will be matching against.

type ObjectWithTags

type ObjectWithTags struct {
	ID   string
	Tags map[string]string
}

ObjectWithTags is a generic way to represent an OpenStack object and its tags so that filtering objects client-side can be done in a generic way.

Note we use UUID not Name as not all OpenStack services require a unique name.

Jump to

Keyboard shortcuts

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