status

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExperimentCreated   ExperimentSummary = "Created"
	ExperimentPaused                      = "Paused"
	ExperimentEmpty                       = "Never run" // TODO This is misleading, it could be that we already deleted the trials that ran
	ExperimentIdle                        = "Idle"
	ExperimentRunning                     = "Running"
	ExperimentCompleted                   = "Completed"

	TrialCreated      TrialSummary = "Created"
	TrialSetupCreated              = "Setup Created"
	TrialSettingUp                 = "Setting up"
	TrialSetupDeleted              = "Setup Deleted"
	TrialTearingDown               = "Tearing Down"
	TrialPatched                   = "Patched"
	TrialPatching                  = "Patching"
	TrialRunning                   = "Running"
	TrialStabilized                = "Stabilized"
	TrailWaiting                   = "Waiting"
	TrialCaptured                  = "Captured"
	TrialCapturing                 = "Capturing"
	TrialCompleted                 = "Completed"
	TrialFailed                    = "Failed"
)

TODO Make the constant names better reflect the code, not the text

Variables

This section is empty.

Functions

func NewStatusCommand

func NewStatusCommand(f cmdutil.Factory, ioStreams cmdutil.IOStreams) *cobra.Command

Types

type ExperimentStatusSummary added in v1.1.4

type ExperimentStatusSummary struct {
	Status         ExperimentSummary `json:"status"`
	CompletedCount int               `json:"completed"`
	FailedCount    int               `json:"failed"`
	ActiveCount    int               `json:"active"`
}

ExperimentStatusSummary is a summary of the resource status (which doesn't make sense since the resource status is an empty struct)

func NewExperimentStatusSummary added in v1.1.4

func NewExperimentStatusSummary(experiment *v1alpha1.Experiment, trialList *v1alpha1.TrialList) (*ExperimentStatusSummary, error)

func (*ExperimentStatusSummary) String added in v1.1.4

func (s *ExperimentStatusSummary) String() string

type ExperimentSummary added in v1.1.4

type ExperimentSummary string

ExperimentSummary is text description summarizing the entire status of an experiment

type StatusOptions

type StatusOptions struct {
	Namespace string
	Name      string

	Printer         cmdutil.ResourcePrinter
	RedSkyClientSet *redskykube.Clientset

	cmdutil.IOStreams
	// contains filtered or unexported fields
}

func NewStatusOptions

func NewStatusOptions(ioStreams cmdutil.IOStreams) *StatusOptions

func (*StatusOptions) Allow added in v1.1.4

func (o *StatusOptions) Allow(outputFormat string) bool

func (*StatusOptions) Columns added in v1.1.4

func (o *StatusOptions) Columns(outputFormat string) []string

func (*StatusOptions) Complete

func (o *StatusOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, printFlags *cmdutil.PrintFlags, args []string) error

func (*StatusOptions) ExtractValue added in v1.1.4

func (o *StatusOptions) ExtractValue(obj runtime.Object, column string) (string, error)

func (*StatusOptions) Header added in v1.1.4

func (*StatusOptions) Header(outputFormat string, column string) string

func (*StatusOptions) Run

func (o *StatusOptions) Run() error

type TrialStatusSummary added in v1.1.4

type TrialStatusSummary struct {
	Status TrialSummary `json:"status"`
}

TrialStatusSummary is just a summary of the resource status

func NewTrialStatusSummary added in v1.1.4

func NewTrialStatusSummary(trial *v1alpha1.Trial) (*TrialStatusSummary, error)

Returns a string to summarize the trial status

func (*TrialStatusSummary) String added in v1.1.4

func (s *TrialStatusSummary) String() string

type TrialSummary added in v1.1.4

type TrialSummary string

TrialSummary is text description summarizing the entire status of a trial

Jump to

Keyboard shortcuts

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