Documentation ¶
Index ¶
- func AddQueryFlags(flagSet *flag.FlagSet, commandFlags map[string]interface{})
- func GetExpiredResources(commandFlags map[string]interface{}, ...) 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 ¶
AddQueryFlags returns the flags required to query expired infrastructure in the order:
- Infrastructure filter tags, in the order needed by infra.AddFilterFlags
- Maximum age flag
- Expiry tag flag
- Expiry tag not applicable value
- Expiry tag format flag
func GetExpiredResources ¶
func GetExpiredResources(commandFlags map[string]interface{}, 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.