Documentation ¶
Index ¶
- Variables
- func RunCLI(ctx context.Context, args []string) error
- type Option
- type ReservedInstance
- type ReservedInstances
- type Riex
- func (app *Riex) Print(ris ReservedInstances, w io.Writer) error
- func (app *Riex) PrintJSON(ris ReservedInstances, w io.Writer) error
- func (app *Riex) PrintMarkdown(ris ReservedInstances, w io.Writer) error
- func (app *Riex) PrintTSV(ris ReservedInstances, w io.Writer) error
- func (app *Riex) Run(ctx context.Context) error
- func (app *Riex) RunForDummy(ctx context.Context, endTime time.Time) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Functions ¶
Types ¶
type Option ¶
type Option struct { Active bool `help:"Show active reserved instances."` Pending bool `help:"Show payment-pending reserved instances."` Expired int `help:"Show reserved instances expired in the last specified days."` Days int `arg:"" help:"Show reserved instances that will be expired within specified days."` Format string `enum:"json,markdown,tsv" help:"Output format.(json, markdown, tsv)" default:"json"` DummyOutput bool `help:"Dummy output for testing."` DummyEndTime time.Time `help:"Endtime for testing. works only with --dummy-output."` IgnoreTags map[string]string `help:"Resource tag for ignore RI."` LocalTime bool `help:"Use local time for output."` }
type ReservedInstance ¶
type ReservedInstance struct { Service string `json:"service"` Name string `json:"name"` Description string `json:"description"` InstanceType string `json:"instance_type"` Count int `json:"count"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` State string `json:"state"` Tags map[string]string `json:"tags,omitempty"` }
type ReservedInstances ¶
type ReservedInstances []ReservedInstance
type Riex ¶
type Riex struct {
// contains filtered or unexported fields
}
func (*Riex) Print ¶ added in v0.0.3
func (app *Riex) Print(ris ReservedInstances, w io.Writer) error
func (*Riex) PrintJSON ¶ added in v0.0.3
func (app *Riex) PrintJSON(ris ReservedInstances, w io.Writer) error
func (*Riex) PrintMarkdown ¶ added in v0.0.3
func (app *Riex) PrintMarkdown(ris ReservedInstances, w io.Writer) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.