Documentation ¶
Index ¶
- func NewCreateApplicationCommand(cfg Config, p Printer) *cobra.Command
- func NewCreateRecommendationsConfigCommand(cfg Config, p Printer) *cobra.Command
- func NewCreateScenarioCommand(cfg Config, p Printer) *cobra.Command
- func NewCreateTrialCommand(cfg Config, p Printer) *cobra.Command
- func NewDeleteApplicationsCommand(cfg Config, p Printer) *cobra.Command
- func NewDeleteClustersCommand(cfg Config, p Printer) *cobra.Command
- func NewDeleteExperimentsCommand(cfg Config, p Printer) *cobra.Command
- func NewDeleteScenariosCommand(cfg Config, p Printer) *cobra.Command
- func NewDeleteTrialsCommand(cfg Config, p Printer) *cobra.Command
- func NewEditApplicationCommand(cfg Config, p Printer) *cobra.Command
- func NewEditClusterCommand(cfg Config, p Printer) *cobra.Command
- func NewEditExperimentCommand(cfg Config, p Printer) *cobra.Command
- func NewEditScenarioCommand(cfg Config, p Printer) *cobra.Command
- func NewEditTrialCommand(cfg Config, p Printer) *cobra.Command
- func NewGetActivityCommand(cfg Config, p Printer) *cobra.Command
- func NewGetApplicationsCommand(cfg Config, p Printer) *cobra.Command
- func NewGetClustersCommand(cfg Config, p Printer) *cobra.Command
- func NewGetExperimentsCommand(cfg Config, p Printer) *cobra.Command
- func NewGetRecommendationsCommand(cfg Config, p Printer) *cobra.Command
- func NewGetScenariosCommand(cfg Config, p Printer) *cobra.Command
- func NewGetTrialsCommand(cfg Config, p Printer) *cobra.Command
- func NewWatchActivityCommand(cfg Config) *cobra.Command
- type ActivityOutput
- type ActivityRow
- type ApplicationOutput
- type ApplicationRow
- type ClusterOutput
- type ClusterRow
- type Config
- type ExperimentOutput
- type ExperimentRow
- type Printer
- type RecommendationOutput
- type RecommendationRow
- type ScenarioOutput
- type ScenarioRow
- type TrialOutput
- type TrialRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateApplicationCommand ¶
NewCreateApplicationCommand returns a command for creating applications.
func NewCreateRecommendationsConfigCommand ¶
NewCreateRecommendationsConfigCommand returns a new command for creating recommendation configurations.
func NewCreateScenarioCommand ¶
NewCreateScenarioCommand returns a command for creating scenarios.
func NewCreateTrialCommand ¶
NewCreateTrialCommand returns a command for creating a trial.
func NewDeleteApplicationsCommand ¶
NewDeleteApplicationsCommand returns a command for deleting applications.
func NewDeleteClustersCommand ¶
NewDeleteClustersCommand returns a command for deleting clusters.
func NewDeleteExperimentsCommand ¶
NewDeleteExperimentsCommand returns a command for deleting experiments.
func NewDeleteScenariosCommand ¶
NewDeleteScenariosCommand returns a command for deleting scenarios.
func NewDeleteTrialsCommand ¶
NewDeleteTrialsCommand returns a command for deleting ("abandoning") trials.
func NewEditApplicationCommand ¶
NewEditApplicationCommand returns a command for editing an application.
func NewEditClusterCommand ¶
NewEditClusterCommand returns a command for editing a cluster.
func NewEditExperimentCommand ¶
NewEditExperimentCommand returns a command for editing an experiment.
func NewEditScenarioCommand ¶
NewEditScenarioCommand returns a command for editing a scenario.
func NewEditTrialCommand ¶
NewEditTrialCommand returns a command for editing a trial.
func NewGetActivityCommand ¶ added in v0.0.27
NewGetActivityCommand returns a command for getting activity feed items.
func NewGetApplicationsCommand ¶
NewGetApplicationsCommand returns a command for getting applications.
func NewGetClustersCommand ¶
NewGetClustersCommand returns a command for getting clusters.
func NewGetExperimentsCommand ¶
NewGetExperimentsCommand returns a command for getting experiments.
func NewGetRecommendationsCommand ¶
NewGetRecommendationsCommand returns a command for getting recommendations.
func NewGetScenariosCommand ¶
NewGetScenariosCommand returns a command for getting scenarios.
func NewGetTrialsCommand ¶
NewGetTrialsCommand returns a command for getting trials.
func NewWatchActivityCommand ¶
NewWatchActivityCommand returns a command for watching the activity feed.
Types ¶
type ActivityOutput ¶ added in v0.0.27
type ActivityOutput struct { Items []ActivityRow `json:"-"` applications.ActivityFeed }
func (*ActivityOutput) Add ¶ added in v0.0.27
func (o *ActivityOutput) Add(item *applications.ActivityItem)
type ActivityRow ¶ added in v0.0.27
type ActivityRow struct { ID string `table:"id" csv:"id" json:"-"` Title string `table:"title" csv:"title" json:"-"` Tags string `table:"tags" csv:"tags" json:"-"` ExternalURL string `table:"reference" csv:"external_url" json:"-"` URL string `table:"url,wide" csv:"url" json:"-"` FailureReason string `table:"reason,wide" csv:"failure_reason" json:"-"` PublishedHuman string `table:"published" csv:"-" json:"-"` PublishedMachine string `table:"-" csv:"published" json:"-"` applications.ActivityItem `table:"-" csv:"-"` }
type ApplicationOutput ¶
type ApplicationOutput struct {
Items []ApplicationRow `json:"items"`
}
ApplicationOutput wraps an application list for output.
func (*ApplicationOutput) Add ¶
func (o *ApplicationOutput) Add(item *applications.ApplicationItem) error
Add an application item to the output.
type ApplicationRow ¶
type ApplicationRow struct { Name string `table:"name" csv:"name" json:"-"` Title string `table:"title" csv:"title" json:"-"` ScenarioCount int `table:"scenarios,wide" csv:"scenario_count" json:"-"` RecommendationMode string `table:"recommendations" csv:"recommendations" json:"-"` DeployInterval string `table:"deploy_interval" csv:"deploy_interval" json:"-"` LastDeployedMachine string `table:"-" csv:"last_deployed" json:"-"` LastDeployedHuman string `table:"last_deployed" csv:"-" json:"-"` Age string `table:"age,wide" csv:"-" json:"-"` applications.ApplicationItem `table:"-" csv:"-"` }
ApplicationRow is a table row representation of an application.
type ClusterOutput ¶
type ClusterOutput struct {
Items []ClusterRow `json:"items"`
}
ClusterOutput wraps a cluster list for output.
func (*ClusterOutput) Add ¶
func (o *ClusterOutput) Add(item *applications.ClusterItem) error
Add a cluster item to the output.
type ClusterRow ¶
type ClusterRow struct { Name string `table:"name" csv:"name" json:"-"` DisplayName string `table:"title" json:"-"` OptimizeProVersion string `table:"optimize_pro" csv:"optimize_pro_version" json:"-"` OptimizeLiveVersion string `table:"optimize_live" csv:"optimize_live_version" json:"-"` PerformanceTestVersion string `table:"performance_test,wide" csv:"performance_test_version" json:"-"` KubernetesVersion string `table:"kubernetes,wide" csv:"kubernetes_version" json:"-"` LastSeenMachine string `table:"-" csv:"last_seen" json:"-"` LastSeenHuman string `table:"last_seen" csv:"-" json:"-"` Age string `table:"age,wide" csv:"-" json:"-"` applications.ClusterItem `table:"-" csv:"-"` }
ClusterRow is a table row representation of a cluster.
type Config ¶
type Config interface { // Address returns the base address for the API endpoints. Address() string }
Config represents the configuration necessary to run a command.
type ExperimentOutput ¶
type ExperimentOutput struct {
Items []ExperimentRow `json:"items"`
}
ExperimentOutput wraps an experiment list for output.
func (*ExperimentOutput) Add ¶
func (o *ExperimentOutput) Add(item *experiments.ExperimentItem) error
Add an experiment item to the output.
type ExperimentRow ¶
type ExperimentRow struct { Name string `table:"name" csv:"name" json:"-"` DisplayName string `table:"Name,custom" json:"-"` Observations int64 `table:"observations,wide" csv:"observations" json:"-"` Labels map[string]string `table:"labels,labels" csv:"label_,labels,flatten" json:"-"` experiments.ExperimentItem `table:"-" csv:"-"` }
ExperimentRow is a table row representation of an experiment.
type Printer ¶
type Printer interface { // Fprint renders an object (which may represent a list) to the supplied writer. Fprint(out io.Writer, obj interface{}) error }
Printer is the interface required to render results.
type RecommendationOutput ¶
type RecommendationOutput struct {
Items []RecommendationRow `json:"items"`
}
RecommendationOutput wraps a recommendation list for output.
func (*RecommendationOutput) Add ¶
func (o *RecommendationOutput) Add(item *applications.RecommendationItem) error
Add a recommendation item to the output.
type RecommendationRow ¶
type RecommendationRow struct {
applications.RecommendationItem `table:"-" csv:"-"`
}
RecommendationRow is a table row representation of a recommendation.
type ScenarioOutput ¶
type ScenarioOutput struct {
Items []ScenarioRow `json:"items"`
}
ScenarioOutput wraps a scenario list for output.
func (*ScenarioOutput) Add ¶
func (o *ScenarioOutput) Add(item *applications.ScenarioItem) error
Add a scenario item to the output.
type ScenarioRow ¶
type ScenarioRow struct { Name string `table:"name" csv:"name" json:"-"` applications.ScenarioItem `table:"-" csv:"-"` }
ScenarioRow is a table row representation of a scenario.
type TrialOutput ¶
type TrialOutput struct {
Items []TrialRow `json:"items"`
}
TrialOutput wraps a trial list for output.
func (*TrialOutput) Add ¶
func (o *TrialOutput) Add(item *experiments.TrialItem) error
Add a trial item to the output.
type TrialRow ¶
type TrialRow struct { Experiment string `table:"experiment,custom" csv:"experiment" json:"-"` Name string `table:"name" json:"-"` Number int64 `table:"number,custom" csv:"number" json:"-"` Status string `table:"status" csv:"status" json:"-"` Assignments map[string]string `csv:"parameter_,flatten" json:"-"` Values map[string]string `csv:"metric_,flatten" json:"-"` FailureReason string `table:"failure_reason,wide" csv:"failure_reason" json:"-"` FailureMessage string `table:"failure_message,wide" csv:"failure_message" json:"-"` Labels map[string]string `table:"labels,labels" csv:"label_,labels,flatten" json:"-"` experiments.TrialItem `table:"-" csv:"-"` }
TrialRow is a table row representation of a trial.