Documentation
¶
Overview ¶
Package internal implements user facing commands for sloctl.
Index ¶
- Constants
- Variables
- func Execute()
- func NewRootCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- type ApplyCmd
- type AwsIamIdsCmd
- type ConfigCmd
- func (c *ConfigCmd) AddContextCommand() *cobra.Command
- func (c *ConfigCmd) CurrentContextCommand() *cobra.Command
- func (c *ConfigCmd) CurrentUserCommand() *cobra.Command
- func (c *ConfigCmd) DeleteContextCommand() *cobra.Command
- func (c *ConfigCmd) GetContextsCommand() *cobra.Command
- func (c *ConfigCmd) RenameContextCommand() *cobra.Command
- func (c *ConfigCmd) UseContextCommand() *cobra.Command
- type ConvertCmd
- type DeleteCmd
- type EditCmd
- type GetCmd
- type MCPCmd
- type MoveCmd
- type PlaylistConfiguration
- type ReplayCmd
- func (r *ReplayCmd) AddCancelCommand() *cobra.Command
- func (r *ReplayCmd) AddDeleteCommand() *cobra.Command
- func (r *ReplayCmd) AddListCommand() *cobra.Command
- func (r *ReplayCmd) Run(cmd *cobra.Command) error
- func (r *ReplayCmd) RunReplays(cmd *cobra.Command, replays []ReplayConfig) (failedReplays int, err error)
- type ReplayConfig
- type ReviewCmd
- func (r *ReviewCmd) NewSetStatusCmd() *cobra.Command
- func (r *ReviewCmd) NewSetStatusNotStartedCmd() *cobra.Command
- func (r *ReviewCmd) NewSetStatusOverdueCmd() *cobra.Command
- func (r *ReviewCmd) NewSetStatusReviewedCmd() *cobra.Command
- func (r *ReviewCmd) NewSetStatusSkippedCmd() *cobra.Command
- func (r *ReviewCmd) NewSetStatusToReviewCmd() *cobra.Command
- 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) NewConvertCmd() *cobra.Command
- func (r *RootCmd) NewDeleteCmd() *cobra.Command
- func (r *RootCmd) NewEditCmd() *cobra.Command
- func (r *RootCmd) NewGetCmd() *cobra.Command
- func (r *RootCmd) NewMCPCmd() *cobra.Command
- func (r *RootCmd) NewMoveCmd() *cobra.Command
- func (r *RootCmd) NewReplayCmd() *cobra.Command
- func (r *RootCmd) NewReviewCmd() *cobra.Command
- func (r *RootCmd) NewValidateCmd() *cobra.Command
- type Spinner
- type ValidateCmd
- type ValidateSLICmd
Constants ¶
const FlagDescriptionMarkdownAnnotation = "sloctl.nobl9.com/description-markdown"
FlagDescriptionMarkdownAnnotation stores the Markdown description exported for a flag.
Variables ¶
var ( BuildGitRevision string BuildGitBranch string BuildVersion string )
Set during build time.
Functions ¶
func Execute ¶
func Execute()
Execute may check for updates before running the requested command. A successful update exits without running the requested command. Notification and update failures let the requested command continue.
func NewRootCmd ¶
NewRootCmd returns the base command when called without any subcommands
func NewVersionCmd ¶
NewVersionCmd returns cobra command version with all flags for it.
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 ¶
func (*ConfigCmd) CurrentContextCommand ¶
func (*ConfigCmd) CurrentUserCommand ¶ added in v0.13.0
func (*ConfigCmd) DeleteContextCommand ¶
func (*ConfigCmd) GetContextsCommand ¶
func (*ConfigCmd) RenameContextCommand ¶
func (*ConfigCmd) UseContextCommand ¶ added in v0.17.0
type ConvertCmd ¶ added in v0.12.0
type ConvertCmd struct {
// contains filtered or unexported fields
}
type PlaylistConfiguration ¶ added in v0.7.0
type PlaylistConfiguration struct {
EnabledPlaylists bool `json:"enabledPlaylists"`
}
type ReplayCmd ¶
type ReplayCmd struct {
// contains filtered or unexported fields
}
func (*ReplayCmd) AddCancelCommand ¶ added in v0.13.0
AddCancelCommand returns cobra command delete, which allows to cancel running Replay.
func (*ReplayCmd) AddDeleteCommand ¶ added in v0.7.0
AddDeleteCommand returns cobra command delete, which allows to delete a queued Replay.
func (*ReplayCmd) AddListCommand ¶ added in v0.7.0
AddListCommand returns cobra command list, which allows to list all queued Replays.
func (*ReplayCmd) RunReplays ¶
type ReplayConfig ¶
type ReplayConfig struct {
Project string `json:"project" validate:"required"`
SLO string `json:"slo" validate:"required"`
From time.Time `json:"from" validate:"required"`
SourceSLO *replayV1.SourceSLO `json:"sourceSLO,omitempty"`
// contains filtered or unexported fields
}
func (ReplayConfig) ToReplay ¶
func (r ReplayConfig) ToReplay(timeNow time.Time) replayV1.RunRequest
type ReviewCmd ¶ added in v0.18.0
type ReviewCmd struct {
// contains filtered or unexported fields
}
func (*ReviewCmd) NewSetStatusCmd ¶ added in v0.18.0
func (*ReviewCmd) NewSetStatusNotStartedCmd ¶ added in v0.18.0
func (*ReviewCmd) NewSetStatusOverdueCmd ¶ added in v0.18.0
func (*ReviewCmd) NewSetStatusReviewedCmd ¶ added in v0.18.0
func (*ReviewCmd) NewSetStatusSkippedCmd ¶ added in v0.18.0
func (*ReviewCmd) NewSetStatusToReviewCmd ¶ added in v0.18.0
type RootCmd ¶
type RootCmd struct {
Client *sdk.Client
Flags globalFlags
// contains filtered or unexported fields
}
func (*RootCmd) NewApplyCmd ¶
NewApplyCmd returns cobra command apply with all its flags.
func (*RootCmd) NewAwsIamIds ¶
func (*RootCmd) NewConfigCmd ¶
func (*RootCmd) NewConvertCmd ¶ added in v0.12.0
func (*RootCmd) NewDeleteCmd ¶
NewDeleteCmd returns cobra command delete with all its flags.
func (*RootCmd) NewEditCmd ¶ added in v0.23.0
NewEditCmd returns cobra command edit.
func (*RootCmd) NewMoveCmd ¶ added in v0.16.0
func (*RootCmd) NewReplayCmd ¶
func (*RootCmd) NewReviewCmd ¶ added in v0.18.0
func (*RootCmd) NewValidateCmd ¶ added in v0.25.0
type ValidateCmd ¶ added in v0.25.0
type ValidateCmd struct {
// contains filtered or unexported fields
}
type ValidateSLICmd ¶ added in v0.25.0
type ValidateSLICmd struct {
// contains filtered or unexported fields
}
Source Files
¶
- apply.go
- aws_iam_ids.go
- common.go
- completion.go
- config.go
- convert.go
- definitions.go
- delete.go
- edit.go
- flags.go
- get.go
- help.go
- mcp.go
- mcp_server.go
- move.go
- object_selection.go
- replay.go
- replay_cancel.go
- replay_delete.go
- replay_errors.go
- replay_list.go
- review.go
- root.go
- spinner.go
- stdin.go
- validate.go
- validate_sli.go
- version.go
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
docgen
command
|
|
|
Package csv provides a builder for csv data
|
Package csv provides a builder for csv data |
|
Package jq provides logic which makes it easier to interact with gojq library.
|
Package jq provides logic which makes it easier to interact with gojq library. |
|
Package notifications displays release notices in eligible interactive sessions.
|
Package notifications displays release notices in eligible interactive sessions. |
|
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. |
|
Package style defines shared sloctl terminal styles.
|
Package style defines shared sloctl terminal styles. |