Documentation
¶
Index ¶
- Constants
- type App
- type BindKeysFunc
- type Browser
- type Command
- type ContextFunc
- type Cow
- type EBS
- type EC2
- type EC2I
- type EC2S
- type EnterFunc
- type Help
- type HelpFunc
- type IAMU
- type IAMUG
- type IamGroupUser
- type IamRole
- type IamRolePloicy
- type Lambda
- type LiveView
- func (v *LiveView) Actions() ui.KeyActions
- func (v *LiveView) BufferActive(state bool, k model.BufferKind)
- func (v *LiveView) BufferChanged(_, _ string)
- func (v *LiveView) BufferCompleted(text, _ string)
- func (v *LiveView) ExtraHints() map[string]string
- func (v *LiveView) Hints() model.MenuHints
- func (v *LiveView) InCmdMode() bool
- func (v *LiveView) Init(_ context.Context) error
- func (v *LiveView) Name() string
- func (v *LiveView) ResourceChanged(lines []string, matches fuzzy.Matches)
- func (v *LiveView) ResourceFailed(err error)
- func (v *LiveView) Start()
- func (v *LiveView) Stop()
- type MetaViewer
- type MetaViewers
- type ObjectParams
- type PageStack
- type ResourceViewer
- func NewBrowser(resource string) ResourceViewer
- func NewEBS(resource string) ResourceViewer
- func NewEC2(resource string) ResourceViewer
- func NewEC2I(resource string) ResourceViewer
- func NewEC2S(resource string) ResourceViewer
- func NewIAMU(resource string) ResourceViewer
- func NewIAMUG(resource string) ResourceViewer
- func NewIamGroupUser(resource string) ResourceViewer
- func NewIamRole(resource string) ResourceViewer
- func NewIamRolePloicy(resource string) ResourceViewer
- func NewIamUserGroupPloicy(resource string) ResourceViewer
- func NewIamUserPloicy(resource string) ResourceViewer
- func NewLambda(resource string) ResourceViewer
- func NewS3(resource string) ResourceViewer
- func NewSG(resource string) ResourceViewer
- func NewSQS(resource string) ResourceViewer
- func NewSubnet(resource string) ResourceViewer
- func NewVPC(resource string) ResourceViewer
- type S3
- type S3FileViewer
- type SG
- type SQS
- type Subnet
- type Tab
- type Table
- type TableViewer
- type VPC
- type Viewer
- type ViewerFunc
Constants ¶
const (
DefaultRefreshRate = time.Second * 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { *ui.App Content *PageStack IsPageContentSorted bool // contains filtered or unexported fields }
func (*App) GetContext ¶
func (*App) PrevCmd ¶
func (a *App) PrevCmd(evt *tcell.EventKey) *tcell.EventKey
PrevCmd pops the command stack.
func (*App) QueueUpdateDraw ¶
func (a *App) QueueUpdateDraw(f func())
QueueUpdateDraw queues up a ui action and redraw the ui.
func (*App) SetContext ¶
type Browser ¶
type Browser struct { *Table // contains filtered or unexported fields }
Browser represents a generic resource browser.
func (*Browser) SetContextFn ¶
func (b *Browser) SetContextFn(f ContextFunc)
SetContextFn populates a custom context.
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command represents a user command.
type ContextFunc ¶
ContextFunc enhances a given context.
type Cow ¶
Cow represents a bomb viewer.
func (*Cow) ExtraHints ¶
ExtraHints returns additional hints.
type EBS ¶
type EBS struct {
ResourceViewer
}
type EC2 ¶
type EC2 struct {
ResourceViewer
}
type EC2I ¶
type EC2I struct {
ResourceViewer
}
type EC2S ¶
type EC2S struct {
ResourceViewer
}
type Help ¶
type Help struct { *Table // contains filtered or unexported fields }
Help presents a help viewer.
type IAMU ¶
type IAMU struct {
ResourceViewer
}
type IAMUG ¶
type IAMUG struct {
ResourceViewer
}
type IamGroupUser ¶
type IamGroupUser struct {
ResourceViewer
}
type IamRole ¶
type IamRole struct {
ResourceViewer
}
type IamRolePloicy ¶
type IamRolePloicy struct {
ResourceViewer
}
type Lambda ¶
type Lambda struct {
ResourceViewer
}
type LiveView ¶
LiveView represents a live text viewer.
func NewLiveView ¶
func NewLiveView(app *App, title string, m model.ResourceViewer) *LiveView
NewLiveView returns a live viewer.
func (*LiveView) BufferActive ¶
func (v *LiveView) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*LiveView) BufferChanged ¶
BufferChanged indicates the buffer was changed.
func (*LiveView) BufferCompleted ¶
BufferCompleted indicates input was accepted.
func (*LiveView) ExtraHints ¶
ExtraHints returns additional hints.
func (*LiveView) ResourceChanged ¶
ResourceChanged notifies when the filter changes.
func (*LiveView) ResourceFailed ¶
ResourceFailed notifies when their is an issue.
type MetaViewer ¶
type MetaViewer struct {
// contains filtered or unexported fields
}
MetaViewer represents a registered meta viewer.
type MetaViewers ¶
type MetaViewers map[string]MetaViewer
MetaViewers represents a collection of meta viewers.
type ObjectParams ¶
type ObjectParams struct {
// contains filtered or unexported fields
}
type PageStack ¶
PageStack represents a stack of pages.
func (*PageStack) StackPopped ¶
StackPopped notifies a page was removed.
func (*PageStack) StackPushed ¶
StackPushed notifies a new page was added.
type ResourceViewer ¶
type ResourceViewer interface { TableViewer Resource() string // SetContextFn provision a custom context. SetContextFn(ContextFunc) // AddBindKeys provision additional key bindings. AddBindKeysFn(BindKeysFunc) }
ResourceViewer represents a generic resource viewer.
func NewEBS ¶
func NewEBS(resource string) ResourceViewer
func NewEC2I ¶
func NewEC2I(resource string) ResourceViewer
func NewEC2S ¶
func NewEC2S(resource string) ResourceViewer
func NewIamGroupUser ¶
func NewIamGroupUser(resource string) ResourceViewer
func NewIamRolePloicy ¶
func NewIamRolePloicy(resource string) ResourceViewer
func NewIamUserGroupPloicy ¶
func NewIamUserGroupPloicy(resource string) ResourceViewer
func NewIamUserPloicy ¶
func NewIamUserPloicy(resource string) ResourceViewer
func NewLambda ¶
func NewLambda(resource string) ResourceViewer
func NewS3 ¶
func NewS3(resource string) ResourceViewer
type S3 ¶
type S3 struct {
ResourceViewer
}
type S3FileViewer ¶
type S3FileViewer struct { ResourceViewer // contains filtered or unexported fields }
func NewS3FileViewer ¶
func NewS3FileViewer(path, resource string) *S3FileViewer
func (*S3FileViewer) Name ¶
func (obj *S3FileViewer) Name() string
type SG ¶
type SG struct {
ResourceViewer
}
type SQS ¶
type SQS struct {
ResourceViewer
}
type Subnet ¶
type Subnet struct {
ResourceViewer
}
type Table ¶
Table represents a table viewer.
func (*Table) AddBindKeysFn ¶
func (t *Table) AddBindKeysFn(f BindKeysFunc)
AddBindKeysFn adds additional key bindings.
func (*Table) SetEnterFn ¶
SetEnterFn specifies the default enter behavior.
type TableViewer ¶
TableViewer represents a tabular viewer.
type VPC ¶
type VPC struct {
ResourceViewer
}
type Viewer ¶
type Viewer interface { model.Component // Actions returns active menu bindings. Actions() ui.KeyActions // App returns an app handle. App() *App // Refresh updates the viewer Refresh() }
Viewer represents a component viewer.
type ViewerFunc ¶
type ViewerFunc func(string) ResourceViewer
ViewerFunc returns a viewer matching a given gvr.
Source Files
¶
- app.go
- browser.go
- buck_obj.go
- command.go
- crow.go
- ebs.go
- ec2.go
- ec2_image.go
- ec2_snapshot.go
- help.go
- helpers.go
- iam_group_user.go
- iam_role.go
- iam_role_policy.go
- iam_user.go
- iam_user_group.go
- iam_user_group_policy.go
- iam_user_policy.go
- lambda.go
- live_view.go
- page_stack.go
- registrar.go
- s3.go
- sec_grp.go
- sqs.go
- subnet.go
- tab.go
- table.go
- types.go
- vpc.go