handler

package
v0.0.0-...-9408163 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCommand

type AWSCommand struct {
	Commands []kong.Option
}

func New

func New() *AWSCommand

func (*AWSCommand) AddCommand

func (a *AWSCommand) AddCommand(name, help, group string, cmd interface{}, tags ...string)

func (*AWSCommand) ClearEnvironment

func (a *AWSCommand) ClearEnvironment()

func (*AWSCommand) Parse

func (a *AWSCommand) Parse(cliStruct interface{}) *kong.Context

func (*AWSCommand) Run

func (a *AWSCommand) Run(cli *kong.Context, debug bool)

type CLI

type CLI struct {
	// Application wide debug flag
	Debug bool `help:"Enable debug mode."`
	// Actual commands
	Assume     commands.AssumeCmd     `cmd:"assume" help:"Assume credentials using MFA"`
	AssumeKeys commands.AssumeKeysCmd `cmd:"assume-keys" help:"Manage AWS Assume role session keys"`
	Clusters   commands.ClustersCmd   `cmd:"clusters" help:"List EKS clusters"`
	Configure  commands.ConfigureCmd  `cmd:"configure" help:"Run interactive configuration"`
	Keys       commands.KeysCmd       `cmd:"keys" help:"Manage AWS session keys"`
	Refresh    commands.RefreshCmd    `cmd:"refresh" help:"Refresh credentials using MFA"`
	Wrap       commands.WrapCmd       `cmd:"wrap" help:"Wrap kubectl with exported variables after assume role" passthrough:""`
	Images     commands.ImageCmd      `cmd:"images" help:"Get images using kubectl with exported variables after assume role" passthrough:""`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL