openstack

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 37 Imported by: 39

Documentation

Overview

Package openstack provides a cluster-destroyer for openstack clusters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGlanceImage added in v0.9.2

func DeleteGlanceImage(ctx context.Context, name string, cloud string) error

DeleteGlanceImage deletes the image with the specified name

func New

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
	// InfraID contains unique cluster identifier
	InfraID string
	Logger  logrus.FieldLogger
}

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

func (*ClusterUninstaller) Run

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