Documentation ¶
Index ¶
- func AddQueryFlags(flagSet *flag.FlagSet) (*flags.StringArray, *flags.StringArray, *flags.StringArray, *flags.StringArray, ...)
- func GetExpiredResources(providerFlag *flags.StringArray, regionFlag *flags.StringArray, ...) error
- type ExpiredResourceHandler
- type Query
- func (query *Query) GetDescription() string
- func (query *Query) GetFlagSet() *flag.FlagSet
- func (query *Query) GetHelpFlag() *bool
- func (query *Query) GetName() string
- func (query *Query) GetSubCommands() []cli.Command
- func (query *Query) Init(helpFlagName string, helpFlagDescription string)
- func (query *Query) Process()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddQueryFlags ¶
func AddQueryFlags(flagSet *flag.FlagSet) (*flags.StringArray, *flags.StringArray, *flags.StringArray, *flags.StringArray, *string, *string, *string, *string)
AddQueryFlags returns the flags required to query expired infrastructure in the order:
- Infrastructure filter tags, in the order needed by cloud.AddFilterFlags
- Maximum age flag
- Expiry tag flag
- Expiry tag not applicable value
- Expiry tag format flag
func GetExpiredResources ¶
func GetExpiredResources( providerFlag *flags.StringArray, regionFlag *flags.StringArray, typeFlag *flags.StringArray, tagFlag *flags.StringArray, maxAgeFlag *string, expiryTagFlag *string, expiryTagNAValueFlag *string, expiryTagFormatFlag *string, expiredResourceHandler ExpiredResourceHandler) error
GetExpiredResources returns a list of expired resources
Types ¶
type ExpiredResourceHandler ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query queries then notifies (using configured notification channels) infrastructure that has expired
func (*Query) GetDescription ¶
GetDescription returns the description for the query command
func (*Query) GetFlagSet ¶
GetFlagSet returns a pointer to the flag.FlagSet associated to the command
func (*Query) GetHelpFlag ¶
GetHelpFlag returns a pointer to the initialized help flag for the command
func (*Query) GetSubCommands ¶
GetSubCommands returns a slice of subcommands under the query command (expect empty slice if none)
Click to show internal directories.
Click to hide internal directories.