Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Leftovers ¶
type Leftovers struct {
// contains filtered or unexported fields
}
func NewLeftovers ¶
NewLeftovers returns a new Leftovers for GCP that can be used to list resources, list types, or delete resources for the provided account. It returns an error if the credentials provided are invalid or if a client fails to be created.
func (Leftovers) Delete ¶
Delete will collect all resources that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete those that are selected.
func (Leftovers) DeleteByType ¶ added in v0.55.0
DeleteByType will collect all resources of the provided type that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete those that are selected.
func (Leftovers) List ¶ added in v0.16.0
List will print all of the resources that match the provided filter.
func (Leftovers) ListByType ¶ added in v0.55.0
ListByType will print resources of the specified type with names that match the provided filter.