cmd

package
v0.0.0-...-e206658 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildVersion     = "unknown"
	BuildDate        = "unknown"
	BuildHash        = "unknown"
	BuildEnvironment = "unknown"
)

Functions

func NewRootCommand

func NewRootCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type AlicloudConfig

type AlicloudConfig struct {
	Config   *sdk.Config
	Creds    *credentials.AccessKeyCredential
	RegionId string
}

type Item

type Item struct {
	Resource Resource
	State    ItemState
}

type ItemState

type ItemState int
const (
	ItemStateNew ItemState = iota
	ItemStatePending
	ItemStateFailed
	ItemStateFinished
)

type LifecycleManager

type LifecycleManager struct {
	// contains filtered or unexported fields
}

func GetResourceManager

func GetResourceManager() *LifecycleManager

type Purge

type Purge struct {
	Config AlicloudConfig
}

func NewPurge

func NewPurge(config AlicloudConfig) *Purge

func (*Purge) Run

func (p *Purge) Run() error

func (*Purge) Scan

func (p *Purge) Scan() error

type Resource

type Resource interface {
	Remove() error
}

Jump to

Keyboard shortcuts

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