Documentation
¶
Index ¶
- Constants
- func NewStatusCommand(f cmdutil.Factory, ioStreams cmdutil.IOStreams) *cobra.Command
- type ExperimentStatusSummary
- type ExperimentSummary
- type StatusOptions
- func (o *StatusOptions) Allow(outputFormat string) bool
- func (o *StatusOptions) Columns(outputFormat string) []string
- func (o *StatusOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, printFlags *cmdutil.PrintFlags, ...) error
- func (o *StatusOptions) ExtractValue(obj runtime.Object, column string) (string, error)
- func (*StatusOptions) Header(outputFormat string, column string) string
- func (o *StatusOptions) Run() error
- type TrialStatusSummary
- type TrialSummary
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 ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.