Documentation ¶
Index ¶
- Variables
- func AcceptAllLines(fields cumulus.Fields) bool
- func Display[T cumulus.Common](ctx context.Context, options Options, list *CommonList, typename string, ...)
- type Accounts
- type ClusterList
- type CommonList
- type DBInstanceList
- type Filter
- type InstanceList
- type LineFilter
- type List
- type MachineImageList
- type Options
- type RecordList
- type RingArray
- type SnapshotList
- type SubscriptionList
- type TopicList
- type VersionCmd
- type VolumeList
- type ZoneList
Constants ¶
This section is empty.
Variables ¶
View Source
var NoFilter = &Filter{ Include: []*regexp.Regexp{regexp.MustCompile(".*")}, Exclude: []*regexp.Regexp{}, }
View Source
var Version = "unknown"
Functions ¶
func AcceptAllLines ¶
Types ¶
type ClusterList ¶ added in v0.5.0
type ClusterList struct {
CommonList `embed:""`
}
func (*ClusterList) Run ¶ added in v0.5.0
func (list *ClusterList) Run(program Options) error
type CommonList ¶
type CommonList struct { CredentialsFile string `group:"AWS" short:"c" help:"AWS Credentials File" type:"existingfile" default:"~/.aws/credentials"` Include []string `group:"Output" short:"I" help:"List of field regexps to include"` Exclude []string `group:"Output" short:"X" help:"List of fields regexps to exclude"` IncludeAll bool `group:"Output" short:"A" help:"Include all fields in output. This can get wide"` ListExpression []string `` /* 210-byte string literal not displayed */ }
type DBInstanceList ¶ added in v0.5.0
type DBInstanceList struct {
CommonList `embed:""`
}
func (*DBInstanceList) Run ¶ added in v0.5.0
func (list *DBInstanceList) Run(program Options) error
type InstanceList ¶
type InstanceList struct {
CommonList `embed:""`
}
func (*InstanceList) Run ¶
func (list *InstanceList) Run(program Options) error
type LineFilter ¶
func ParseExpression ¶
func ParseExpression(expr string) (LineFilter, error)
func ParseFilter ¶
func ParseFilter(s string) (LineFilter, error)
func ParseFilters ¶
func ParseFilters(s []string) (LineFilter, error)
type List ¶
type List struct {
CommonList
}
type MachineImageList ¶
type MachineImageList struct {
CommonList `embed:""`
}
func (*MachineImageList) Run ¶
func (list *MachineImageList) Run(program Options) error
type Options ¶
type Options struct { Version version `cmd:"" help:"Show program version"` Account Accounts `cmd:""` Instance struct { List InstanceList `cmd:""` } `cmd:""` Snapshot struct { List SnapshotList `cmd:""` } `cmd:""` MachineImage struct { List MachineImageList `cmd:""` } `cmd:""` Volume struct { List VolumeList `cmd:""` } `cmd:""` DNS struct { Zone struct { List ZoneList `cmd:""` } `cmd:""` Record struct { List RecordList `cmd:""` } `cmd:""` } `cmd:""` RDS struct { Cluster struct { List ClusterList `cmd:""` } `cmd:""` Instance struct { List DBInstanceList `cmd:""` } `cmd:""` } `cmd:""` SNS struct { Topic struct { List TopicList `cmd:""` } `cmd:""` Subscription struct { List SubscriptionList `cmd:""` } `cmd:""` } `cmd:""` Debug bool `group:"Output" help:"Show debugging information"` OutputFormat string `group:"Output" enum:"auto,jsonl,terminal" default:"auto" help:"How to show program output (auto|terminal|jsonl)"` Quiet bool `group:"Output" short:"q" help:"Be less verbose than usual"` Verbose bool `group:"Output" short:"v" help:"Be more verbose than usual"` Profile struct { CPU bool `group:"Profile" help:"profile the CPU" hidden:""` Memory bool `group:"Profile" help:"profile the Memory usage" hidden:""` } `embed:"" prefix:"profile." hidden:""` }
Options is the structure of program options
func (*Options) AfterApply ¶
AfterApply runs after the options are parsed but before anything runs
type RecordList ¶
type RecordList struct {
CommonList `embed:""`
}
func (*RecordList) Run ¶
func (list *RecordList) Run(program Options) error
type SnapshotList ¶
type SnapshotList struct {
CommonList `embed:""`
}
func (*SnapshotList) Run ¶
func (list *SnapshotList) Run(program Options) error
type SubscriptionList ¶ added in v0.4.0
type SubscriptionList struct {
CommonList `embed:""`
}
func (*SubscriptionList) Run ¶ added in v0.4.0
func (list *SubscriptionList) Run(program Options) error
type TopicList ¶ added in v0.4.0
type TopicList struct {
CommonList `embed:""`
}
type VersionCmd ¶
type VersionCmd struct{}
VersionCmd prints the program version
func (*VersionCmd) Run ¶
func (v *VersionCmd) Run(program *Options) error
type VolumeList ¶
type VolumeList struct {
CommonList `embed:""`
}
func (*VolumeList) Run ¶
func (list *VolumeList) Run(program Options) error
Click to show internal directories.
Click to hide internal directories.