Documentation ¶
Index ¶
- func Less(isNumber, isDuration bool, id1, id2, v1, v2 string) bool
- type Alias
- type AliasRes
- type BObj
- type EBS
- type EC2
- type EC2I
- type EC2S
- type Fields
- type Header
- func (h Header) Clone() Header
- func (h Header) Columns(wide bool) []string
- func (h Header) Customize(cols []string, wide bool) Header
- func (h Header) Dump()
- func (h Header) IndexOf(colName string, includeWide bool) int
- func (h Header) IsMetricsCol(col int) bool
- func (h Header) IsTimeCol(col int) bool
- func (h Header) MapIndices(cols []string, wide bool) []int
- type HeaderColumn
- type IAMU
- type IAMUG
- type IamGroupUser
- type IamRole
- type IamRolePloicy
- type IamUserGroupPloicy
- type IamUserPloicy
- type Lambda
- type ResEvent
- type Row
- type RowEvent
- type RowEventSorter
- type RowEvents
- func (r RowEvents) Clear() RowEvents
- func (r RowEvents) Clone() RowEvents
- func (r RowEvents) Customize(cols []int) RowEvents
- func (r RowEvents) Delete(id string) RowEvents
- func (r RowEvents) FindIndex(id string) (int, bool)
- func (r RowEvents) Sort(sortCol int, isDuration, numCol, asc bool)
- func (r RowEvents) Upsert(re RowEvent) RowEvents
- type Rows
- type S3
- type SG
- type SQS
- type Subnet
- type TableData
- func (t *TableData) Clear()
- func (t *TableData) Clone() *TableData
- func (t *TableData) Count() int
- func (t *TableData) Customize(cols []string, wide bool) *TableData
- func (t *TableData) Delete(newKeys map[string]struct{})
- func (t *TableData) Empty() bool
- func (t *TableData) IndexOfHeader(h string) int
- func (t *TableData) SetHeader(h Header)
- func (t *TableData) Update(rows Rows)
- type VPC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AliasRes ¶
AliasRes represents an alias resource.
func (AliasRes) DeepCopyObject ¶
func (a AliasRes) DeepCopyObject() interface{}
DeepCopyObject returns a container copy.
type Header ¶
type Header []HeaderColumn
Header represents a table header.
func (Header) IsMetricsCol ¶
IsMetricsCol checks if given column index represents metrics.
type HeaderColumn ¶
type HeaderColumn struct { Name string SortIndicatorIdx int Align int Hide bool Wide bool MX bool Time bool }
HeaderColumn represent a table header. SortIndicatorIdx is the position of alphabet in header name to highlight. Set SortIndicatorIdx to -1 to ignore highlighting any alphabet in header name.
type IamGroupUser ¶
type IamGroupUser struct { }
func (IamGroupUser) Header ¶
func (igu IamGroupUser) Header() Header
type IamRolePloicy ¶
type IamRolePloicy struct { }
func (IamRolePloicy) Header ¶
func (irp IamRolePloicy) Header() Header
type IamUserGroupPloicy ¶
type IamUserGroupPloicy struct { }
func (IamUserGroupPloicy) Header ¶
func (iugp IamUserGroupPloicy) Header() Header
type IamUserPloicy ¶
type IamUserPloicy struct { }
func (IamUserPloicy) Header ¶
func (iup IamUserPloicy) Header() Header
type ResEvent ¶
type ResEvent int
ResEvent represents a resource event.
const ( // EventUnchanged notifies listener resource has not changed. EventUnchanged ResEvent = 1 << iota // EventAdd notifies listener of a resource was added. EventAdd // EventUpdate notifies listener of a resource updated. EventUpdate // EventDelete notifies listener of a resource was deleted. EventDelete // EventClear the stack was reset. EventClear )
type Row ¶
Row represents a collection of columns.
type RowEvent ¶
RowEvent tracks resource instance events.
func NewRowEvent ¶
NewRowEvent returns a new row event.
type RowEventSorter ¶
RowEventSorter sorts row events by a given colon.
func (RowEventSorter) Len ¶
func (r RowEventSorter) Len() int
func (RowEventSorter) Less ¶
func (r RowEventSorter) Less(i, j int) bool
func (RowEventSorter) Swap ¶
func (r RowEventSorter) Swap(i, j int)
type RowEvents ¶
type RowEvents []RowEvent
RowEvents a collection of row events.
type Rows ¶
type Rows []Row
Rows represents a collection of rows.
type TableData ¶
type TableData struct { Header Header RowEvents RowEvents // contains filtered or unexported fields }
func (*TableData) IndexOfHeader ¶
IndexOfHeader return the index of the header.