get

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IconRollout    = "⟳"
	IconRevision   = "#"
	IconReplicaSet = "⧉"
	IconPod        = "□"
	IconJob        = "⊞"
	IconService    = "⑃" // other options: ⋲ ⇶ ⋔ ⤨
	IconExperiment = "Σ" // other options: ꀀ ⋃ ⨄
	IconAnalysis   = "α" // other options: ⚯
)
View Source
const (
	Bold      = 1
	FgBlack   = 30
	FgRed     = 31
	FgGreen   = 32
	FgYellow  = 33
	FgBlue    = 34
	FgMagenta = 35
	FgCyan    = 36
	FgWhite   = 37
	FgDefault = 39
	FgHiBlue  = 94
)

ANSI escape codes

Variables

This section is empty.

Functions

func NewCmdGet

NewCmdGet returns a new instance of an `rollouts get` command

func NewCmdGetExperiment

func NewCmdGetExperiment(o *options.ArgoRolloutsOptions) *cobra.Command

NewCmdGetExperiment returns a new instance of an `rollouts get experiment` command

func NewCmdGetRollout

func NewCmdGetRollout(o *options.ArgoRolloutsOptions) *cobra.Command

NewCmdGet returns a new instance of an `rollouts get rollout` command

Types

type GetOptions

type GetOptions struct {
	Watch   bool
	NoColor bool

	options.ArgoRolloutsOptions
}

func (*GetOptions) Clear

func (o *GetOptions) Clear()

Clear clears the terminal for updates for live watching of objects

func (*GetOptions) PrintAnalysisRunInfo

func (o *GetOptions) PrintAnalysisRunInfo(w io.Writer, arInfo info.AnalysisRunInfo, prefix string, subpfx string)

func (*GetOptions) PrintExperiment

func (o *GetOptions) PrintExperiment(exInfo *info.ExperimentInfo)

func (*GetOptions) PrintExperimentInfo

func (o *GetOptions) PrintExperimentInfo(w io.Writer, expInfo info.ExperimentInfo, prefix string, subpfx string)

func (*GetOptions) PrintExperimentTree

func (o *GetOptions) PrintExperimentTree(exInfo *info.ExperimentInfo)

func (*GetOptions) PrintHeader

func (o *GetOptions) PrintHeader(w io.Writer)

func (*GetOptions) PrintJob

func (o *GetOptions) PrintJob(w io.Writer, jobInfo info.JobInfo, prefix string, subpfx string)

func (*GetOptions) PrintReplicaSetInfo

func (o *GetOptions) PrintReplicaSetInfo(w io.Writer, rsInfo info.ReplicaSetInfo, prefix string, subpfx string)

func (*GetOptions) PrintRevision

func (o *GetOptions) PrintRevision(w io.Writer, roInfo *info.RolloutInfo, revision int, prefix string, subpfx string)

func (*GetOptions) PrintRollout

func (o *GetOptions) PrintRollout(roInfo *info.RolloutInfo)

func (*GetOptions) PrintRolloutTree

func (o *GetOptions) PrintRolloutTree(roInfo *info.RolloutInfo)

func (*GetOptions) WatchExperiment

func (o *GetOptions) WatchExperiment(stopCh <-chan struct{}, expUpdates chan *info.ExperimentInfo)

func (*GetOptions) WatchRollout

func (o *GetOptions) WatchRollout(stopCh <-chan struct{}, rolloutUpdates chan *info.RolloutInfo)

Jump to

Keyboard shortcuts

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