clusterservice

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	//ActionDelete Deletion would be performed
	ActionDelete Action = "delete"
	//ActionStatusDryRun Action will not be performed
	ActionStatusDryRun ActionStatus = "dry run"
	//ActionStatusInProgress Action is being performed currently
	ActionStatusInProgress ActionStatus = "in progress"
	//ActionStatusComplete Action has completed
	ActionStatusComplete ActionStatus = "complete"
	//ActionStatusSkipped Action has been skipped, not due to dry-run
	ActionStatusSkipped ActionStatus = "skipped"
	//ActionStatusEmpty Blank status of action
	ActionStatusEmpty ActionStatus = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string

Action Descriptor of an action

type ActionStatus

type ActionStatus string

ActionStatus Descriptor of the current status of an action

type Client

type Client interface {
	//DeleteResources delete resources belonging to a cluster based on filters from additional tags
	DeleteResourcesForCluster(clusterId string, tags map[string]string, dryRun bool) (*Report, error)
}

Client Client for handling extra resources cleanup for a cluster

type Report

type Report struct {
	Items []*ReportItem
}

Report Information about what resources are found in the AWS account related to the cluster

func (*Report) AllItemsComplete added in v0.4.0

func (r *Report) AllItemsComplete() bool

func (*Report) MergeForward

func (r *Report) MergeForward(mergeTarget *Report)

MergeForward Merge provided report into this report, assuming the provided report was created after this one

type ReportItem

type ReportItem struct {
	ID           string
	Name         string
	Action       Action
	ActionStatus ActionStatus
}

ReportItem Information about a specific AWS resource

func (*ReportItem) MergeForward

func (r *ReportItem) MergeForward(mergeTarget *ReportItem)

MergeForward Merge provided item into this item, assuming the provided item was created after this one

Jump to

Keyboard shortcuts

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