Documentation ¶
Overview ¶
Package internal implements user facing commands for sloctl.
Index ¶
- Variables
- func Execute()
- func NewRootCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func NotifyDryRunFlag()
- func RegisterAutoConfirmationFlag(cmd *cobra.Command, storeIn *bool)
- func RegisterDryRunFlag(cmd *cobra.Command, storeIn *bool)
- func RegisterFileFlag(cmd *cobra.Command, required bool, storeIn *[]string)
- func RegisterOutputFormatFlags(cmd *cobra.Command, outputFormat, fieldSeparator, recordSeparator *string)
- func RegisterVerboseFlag(cmd *cobra.Command, storeIn *bool)
- type ApplyCmd
- type AwsIamIdsCmd
- type ConfigCmd
- func (c *ConfigCmd) AddContextCommand() *cobra.Command
- func (c *ConfigCmd) CurrentContextCommand() *cobra.Command
- func (c *ConfigCmd) DeleteContextCommand() *cobra.Command
- func (c *ConfigCmd) GetContextsCommand() *cobra.Command
- func (c *ConfigCmd) RenameContextCommand() *cobra.Command
- func (c *ConfigCmd) SetDefaultContextCommand() *cobra.Command
- type DeleteCmd
- type GetCmd
- type ReplayCmd
- type ReplayConfig
- type RootCmd
- func (r *RootCmd) GetClient() *sdk.Client
- func (r *RootCmd) NewApplyCmd() *cobra.Command
- func (r *RootCmd) NewAwsIamIds() *cobra.Command
- func (r *RootCmd) NewConfigCmd() *cobra.Command
- func (r *RootCmd) NewDeleteCmd() *cobra.Command
- func (r *RootCmd) NewGetCmd() *cobra.Command
- func (r *RootCmd) NewReplayCmd() *cobra.Command
- type Spinner
- type TimeValue
Constants ¶
This section is empty.
Variables ¶
var ( BuildGitRevision string BuildGitBranch string BuildVersion string )
Set during build time.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewRootCmd ¶
NewRootCmd returns the base command when called without any subcommands
func NewVersionCmd ¶
NewVersionCmd returns cobra command version with all flags for it.
func NotifyDryRunFlag ¶
func NotifyDryRunFlag()
func RegisterDryRunFlag ¶
func RegisterVerboseFlag ¶
Types ¶
type AwsIamIdsCmd ¶
type AwsIamIdsCmd struct {
// contains filtered or unexported fields
}
func (*AwsIamIdsCmd) DataExport ¶
func (a *AwsIamIdsCmd) DataExport(cmd *cobra.Command) error
type ConfigCmd ¶
type ConfigCmd struct {
// contains filtered or unexported fields
}
func (*ConfigCmd) AddContextCommand ¶
AddContextCommand returns cobra command add-context, allows to add context to your configuration file.
func (*ConfigCmd) CurrentContextCommand ¶
CurrentContextCommand returns cobra command current-context, prints current used context.
func (*ConfigCmd) DeleteContextCommand ¶
DeleteContextCommand return cobra command to delete context from configuration file.
func (*ConfigCmd) GetContextsCommand ¶
GetContextsCommand returns cobra command to prints all available contexts.
func (*ConfigCmd) RenameContextCommand ¶
RenameContextCommand return cobra command to rename one of contexts in configuration file.
func (*ConfigCmd) SetDefaultContextCommand ¶
SetDefaultContextCommand return cobra command to set current context in configuration file.
type GetCmd ¶
type GetCmd struct {
// contains filtered or unexported fields
}
func (*GetCmd) RegisterFlags ¶
type ReplayCmd ¶
type ReplayCmd struct {
// contains filtered or unexported fields
}
func (*ReplayCmd) RunReplays ¶
type ReplayConfig ¶
type RootCmd ¶
func (*RootCmd) NewApplyCmd ¶
NewApplyCmd returns cobra command apply with all its flags.
func (*RootCmd) NewAwsIamIds ¶
func (*RootCmd) NewConfigCmd ¶
func (*RootCmd) NewDeleteCmd ¶
NewDeleteCmd returns cobra command delete with all its flags.
func (*RootCmd) NewReplayCmd ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package csv provides a builder for csv data
|
Package csv provides a builder for csv data |
Package printer provides utilities for printing standard structures from api in convenient formats
|
Package printer provides utilities for printing standard structures from api in convenient formats |