Documentation
¶
Index ¶
- Constants
- Variables
- func IsTrue(s string) bool
- func Log(project *gcputil.Project, resourceType string, r resources.Resource, ...)
- func NewResourceTypesCommand() *cobra.Command
- func NewRootCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- func Prompt(expect string) error
- func ResolveResourceTypes(base types.Collection, mapping map[string]string, ...) types.Collection
- func Scan(project *gcputil.Project, resourceTypes []string) <-chan *Item
- func Sorted(m map[string]string) string
- type Item
- type ItemState
- type Nuke
- type NukeParameters
- type Queue
Constants ¶
View Source
const ScannerParallelQueries = 16
Variables ¶
View Source
var ( ReasonSkip = *color.New(color.FgYellow) ReasonError = *color.New(color.FgRed) ReasonRemoveTriggered = *color.New(color.FgGreen) ReasonWaitPending = *color.New(color.FgBlue) ReasonSuccess = *color.New(color.FgGreen) )
View Source
var ( ColorProject = *color.New(color.Bold) ColorResourceType = *color.New() ColorResourceID = *color.New(color.Bold) ColorResourceProperties = *color.New(color.Italic) )
View Source
var ( BuildVersion = "unknown" BuildDate = "unknown" BuildHash = "unknown" BuildEnvironment = "unknown" )
Functions ¶
func NewResourceTypesCommand ¶
func NewRootCommand ¶
func NewVersionCommand ¶
func ResolveResourceTypes ¶
func ResolveResourceTypes( base types.Collection, mapping map[string]string, include, exclude, cloudControl []types.Collection) types.Collection
Types ¶
type Item ¶
type Item struct { Resource resources.Resource State ItemState Reason string Project *gcputil.Project Type string }
An Item describes an actual GCP resource entity with the current state and some metadata.
type Nuke ¶
type Nuke struct { Parameters NukeParameters Creds *gcputil.Credentials Project *gcputil.Project Config *config.Nuke ResourceTypes types.Collection // contains filtered or unexported fields }
func NewNuke ¶
func NewNuke(params NukeParameters, creds *gcputil.Credentials) *Nuke
func (*Nuke) HandleQueue ¶
func (n *Nuke) HandleQueue()
func (*Nuke) HandleRemove ¶
func (*Nuke) HandleWait ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.