internal

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MPL-2.0 Imports: 65 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package internal implements user facing commands for sloctl.

Index

Constants

View Source
const FlagDescriptionMarkdownAnnotation = "sloctl.nobl9.com/description-markdown"

FlagDescriptionMarkdownAnnotation stores the Markdown description exported for a flag.

Variables

View Source
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

func NewRootCmd() *cobra.Command

NewRootCmd returns the base command when called without any subcommands

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd returns cobra command version with all flags for it.

Types

type ApplyCmd

type ApplyCmd struct {
	// contains filtered or unexported fields
}

func (ApplyCmd) Run

func (a ApplyCmd) Run(cmd *cobra.Command) error

type AwsIamIdsCmd

type AwsIamIdsCmd struct {
	// contains filtered or unexported fields
}

func (*AwsIamIdsCmd) DataExport

func (a *AwsIamIdsCmd) DataExport(cmd *cobra.Command) error

func (*AwsIamIdsCmd) Direct

func (a *AwsIamIdsCmd) Direct(cmd *cobra.Command) error

type ConfigCmd

type ConfigCmd struct {
	// contains filtered or unexported fields
}

func (*ConfigCmd) AddContextCommand

func (c *ConfigCmd) AddContextCommand() *cobra.Command

func (*ConfigCmd) CurrentContextCommand

func (c *ConfigCmd) CurrentContextCommand() *cobra.Command

func (*ConfigCmd) CurrentUserCommand added in v0.13.0

func (c *ConfigCmd) CurrentUserCommand() *cobra.Command

func (*ConfigCmd) DeleteContextCommand

func (c *ConfigCmd) DeleteContextCommand() *cobra.Command

func (*ConfigCmd) GetContextsCommand

func (c *ConfigCmd) GetContextsCommand() *cobra.Command

func (*ConfigCmd) RenameContextCommand

func (c *ConfigCmd) RenameContextCommand() *cobra.Command

func (*ConfigCmd) UseContextCommand added in v0.17.0

func (c *ConfigCmd) UseContextCommand() *cobra.Command

type ConvertCmd added in v0.12.0

type ConvertCmd struct {
	// contains filtered or unexported fields
}

type DeleteCmd

type DeleteCmd struct {
	// contains filtered or unexported fields
}

func (DeleteCmd) Run

func (d DeleteCmd) Run(cmd *cobra.Command) error

type EditCmd added in v0.23.0

type EditCmd struct {
	// contains filtered or unexported fields
}

type GetCmd

type GetCmd struct {
	// contains filtered or unexported fields
}

type MCPCmd added in v0.14.0

type MCPCmd struct {
	// contains filtered or unexported fields
}

type MoveCmd added in v0.16.0

type MoveCmd 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

func (r *ReplayCmd) AddCancelCommand() *cobra.Command

AddCancelCommand returns cobra command delete, which allows to cancel running Replay.

func (*ReplayCmd) AddDeleteCommand added in v0.7.0

func (r *ReplayCmd) AddDeleteCommand() *cobra.Command

AddDeleteCommand returns cobra command delete, which allows to delete a queued Replay.

func (*ReplayCmd) AddListCommand added in v0.7.0

func (r *ReplayCmd) AddListCommand() *cobra.Command

AddListCommand returns cobra command list, which allows to list all queued Replays.

func (*ReplayCmd) Run

func (r *ReplayCmd) Run(cmd *cobra.Command) error

func (*ReplayCmd) RunReplays

func (r *ReplayCmd) RunReplays(cmd *cobra.Command, replays []ReplayConfig) (failedReplays int, err error)

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 (r *ReviewCmd) NewSetStatusCmd() *cobra.Command

func (*ReviewCmd) NewSetStatusNotStartedCmd added in v0.18.0

func (r *ReviewCmd) NewSetStatusNotStartedCmd() *cobra.Command

func (*ReviewCmd) NewSetStatusOverdueCmd added in v0.18.0

func (r *ReviewCmd) NewSetStatusOverdueCmd() *cobra.Command

func (*ReviewCmd) NewSetStatusReviewedCmd added in v0.18.0

func (r *ReviewCmd) NewSetStatusReviewedCmd() *cobra.Command

func (*ReviewCmd) NewSetStatusSkippedCmd added in v0.18.0

func (r *ReviewCmd) NewSetStatusSkippedCmd() *cobra.Command

func (*ReviewCmd) NewSetStatusToReviewCmd added in v0.18.0

func (r *ReviewCmd) NewSetStatusToReviewCmd() *cobra.Command

type RootCmd

type RootCmd struct {
	Client *sdk.Client
	Flags  globalFlags
	// contains filtered or unexported fields
}

func (*RootCmd) GetClient

func (r *RootCmd) GetClient() *sdk.Client

func (*RootCmd) NewApplyCmd

func (r *RootCmd) NewApplyCmd() *cobra.Command

NewApplyCmd returns cobra command apply with all its flags.

func (*RootCmd) NewAwsIamIds

func (r *RootCmd) NewAwsIamIds() *cobra.Command

func (*RootCmd) NewConfigCmd

func (r *RootCmd) NewConfigCmd() *cobra.Command

func (*RootCmd) NewConvertCmd added in v0.12.0

func (r *RootCmd) NewConvertCmd() *cobra.Command

func (*RootCmd) NewDeleteCmd

func (r *RootCmd) NewDeleteCmd() *cobra.Command

NewDeleteCmd returns cobra command delete with all its flags.

func (*RootCmd) NewEditCmd added in v0.23.0

func (r *RootCmd) NewEditCmd() *cobra.Command

NewEditCmd returns cobra command edit.

func (*RootCmd) NewGetCmd

func (r *RootCmd) NewGetCmd() *cobra.Command

NewGetCmd returns cobra command get with all flags for it.

func (*RootCmd) NewMCPCmd added in v0.14.0

func (r *RootCmd) NewMCPCmd() *cobra.Command

func (*RootCmd) NewMoveCmd added in v0.16.0

func (r *RootCmd) NewMoveCmd() *cobra.Command

func (*RootCmd) NewReplayCmd

func (r *RootCmd) NewReplayCmd() *cobra.Command

func (*RootCmd) NewReviewCmd added in v0.18.0

func (r *RootCmd) NewReviewCmd() *cobra.Command

func (*RootCmd) NewValidateCmd added in v0.25.0

func (r *RootCmd) NewValidateCmd() *cobra.Command

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

func NewSpinner

func NewSpinner(description string) *Spinner

func (Spinner) Go

func (s Spinner) Go()

func (Spinner) Stop

func (s Spinner) Stop()

type ValidateCmd added in v0.25.0

type ValidateCmd struct {
	// contains filtered or unexported fields
}

func (*ValidateCmd) NewSLICmd added in v0.25.0

func (v *ValidateCmd) NewSLICmd(clientProvider func() *sdk.Client) *cobra.Command

type ValidateSLICmd added in v0.25.0

type ValidateSLICmd struct {
	// contains filtered or unexported fields
}

func (*ValidateSLICmd) Run added in v0.25.0

func (v *ValidateSLICmd) Run(cmd *cobra.Command) error

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.

Jump to

Keyboard shortcuts

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