Documentation
¶
Index ¶
- Constants
- type OutputsOptions
- type Service
- func (s *Service) ActionOutputs(ctx context.Context, installID, actionWorkflowID string, asJSON bool) error
- func (s *Service) Actions(ctx context.Context, installID string, offset, limit int, asJSON bool) error
- func (s *Service) ActionsList(ctx context.Context, installID string, offset, limit int, asJSON bool) error
- func (s *Service) ComponentOutputs(ctx context.Context, installID, componentID string, asJSON bool) error
- func (s *Service) Components(ctx context.Context, installID string, offset, limit int, asJSON bool) error
- func (s *Service) Create(ctx context.Context, appID, name, region string, inputs, labelArgs []string, ...) error
- func (s *Service) CreateDeploy(ctx context.Context, installID, buildID string, ...) error
- func (s *Service) CurrentInputs(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) Delete(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) DeployComponents(ctx context.Context, installID string, roleName string, planOnly bool, ...) error
- func (s *Service) DeployLogs(ctx context.Context, installID, deployID, installComponentID string, ...) error
- func (s *Service) Deprovision(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) DeprovisionSandbox(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) Deselect(ctx context.Context) error
- func (s *Service) EditInputs(ctx context.Context, installID string, deployDependents bool) error
- func (s *Service) Forget(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) ForgetComponent(ctx context.Context, installID, componentID string, skipConfirm, asJSON bool) error
- func (s *Service) GenerateConfig(ctx context.Context, installID string) error
- func (s *Service) Get(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) GetDeploy(ctx context.Context, installID, deployID string, asJSON bool) error
- func (s *Service) GetInputs(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) GetInstallID() string
- func (s *Service) GetWorkflowID() string
- func (s *Service) LabelsList(ctx context.Context, installIDOrName string, asJSON bool) error
- func (s *Service) LabelsSet(ctx context.Context, installIDOrName string, args []string, asJSON bool) error
- func (s *Service) LabelsUnset(ctx context.Context, installIDOrName string, args []string, asJSON bool) error
- func (s *Service) List(ctx context.Context, appID string, offset, limit int, labelFilters []string, ...) error
- func (s *Service) ListDeploys(ctx context.Context, installID string, offset, limit int, asJSON bool) error
- func (s *Service) Outputs(ctx context.Context, installID string, opts OutputsOptions, asJSON bool) error
- func (s *Service) Reprovision(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) ReprovisionSandbox(ctx context.Context, installID string, skipComponents bool, asJSON bool) error
- func (s *Service) RunnerGet(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) RunnerRestart(ctx context.Context, installID string) error
- func (s *Service) RunnerShutDown(ctx context.Context, installID string) error
- func (s *Service) RunnerVMShutDown(ctx context.Context, installID string) error
- func (s *Service) SandboxRunLogs(ctx context.Context, installID, runID string, asJSON bool) error
- func (s *Service) SandboxRuns(ctx context.Context, installID string, offset, limit int, asJSON bool) error
- func (s *Service) Select(ctx context.Context, appID, installID string, asJSON bool) error
- func (s *Service) SetCurrent(ctx context.Context, installID string, asJSON bool)
- func (s *Service) SetInputs(ctx context.Context, installID string, args []string, deployDependents bool, ...) error
- func (s *Service) StacksGet(ctx context.Context, stackID string, asJSON bool) error
- func (s *Service) StacksLatest(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) StacksList(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) Sync(ctx context.Context, fileOrDir string, appID string, ...) error
- func (s *Service) TeardownComponent(ctx context.Context, installID, componentID string, roleName string, ...) error
- func (s *Service) TeardownComponents(ctx context.Context, installID string, asJSON bool) error
- func (s *Service) ToggleComponent(ctx context.Context, installID, componentID string, ...) error
- func (s *Service) ToggleSync(ctx context.Context, installID string, enable, disable bool) error
- func (s *Service) UnsetCurrent(ctx context.Context) error
- func (s *Service) UpdateInput(ctx context.Context, installID string, inputs []string, deployDependents bool, ...) error
- func (s *Service) WorkflowSetApprovalOption(ctx context.Context, workflowID string, approveAll, prompt, asJSON bool) error
- func (s *Service) WorkflowStepApprove(ctx context.Context, installID, workflowID, stepID, note string, ...) error
- func (s *Service) WorkflowStepLogs(ctx context.Context, installID, workflowID, stepID string, asJSON bool, ...) error
- func (s *Service) WorkflowStepPlan(ctx context.Context, installID, workflowID, stepID string, asJSON bool) error
- func (s *Service) WorkflowStepReject(ctx context.Context, installID, workflowID, stepID, note string, ...) error
- func (s *Service) WorkflowStepRetry(ctx context.Context, installID, workflowID, stepID string, ...) error
- func (s *Service) WorkflowStepsGet(ctx context.Context, workflowID, stepID string, asJSON bool) error
- func (s *Service) WorkflowStepsList(ctx context.Context, workflowID string, asJSON bool) error
- func (s *Service) WorkflowsDeselect(ctx context.Context) error
- func (s *Service) WorkflowsGet(ctx context.Context, workflowID string, asJSON bool) error
- func (s *Service) WorkflowsList(ctx context.Context, installID string, offset, limit int, asJSON bool) error
- func (s *Service) WorkflowsSelect(ctx context.Context, installID, workflowID string, offset, limit int, ...) error
- func (s *Service) WorkflowsTUI(ctx context.Context, installID, workflowID string, asJSON bool, autoRetry bool) error
- func (s *Service) WorkflowsWatch(ctx context.Context, installID, workflowID string, interval time.Duration, ...) (int, error)
- func (s *Service) WorkflowsWatchTUI(ctx context.Context, installID, workflowID string) (int, error)
- type WorkflowStepLogsOptions
Constants ¶
const ( ManagedByNuonCLIConfig = "nuon/cli/install-config" ManagedByNuonDashboard = "nuon/dashboard" )
const ( ExitCodeSuccess = 0 ExitCodeFailed = 1 ExitCodeCancelled = 2 ExitCodeApprovalRequired = 3 ExitCodeStepFailed = 4 ExitCodeInterrupt = 130 )
Exit codes for workflow watch command
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutputsOptions ¶ added in v0.19.974
type OutputsOptions struct {
StackOnly bool
SandboxOnly bool
ComponentID string // id or name; empty means no component filter
}
OutputsOptions filters what `Outputs` returns. At most one of StackOnly, SandboxOnly, or ComponentID may be set — Cobra enforces this at the flag layer.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ActionOutputs ¶ added in v0.19.894
func (*Service) ActionsList ¶ added in v0.19.894
func (*Service) ComponentOutputs ¶ added in v0.19.894
func (*Service) Components ¶
func (*Service) CreateDeploy ¶
func (*Service) CurrentInputs ¶
func (*Service) DeployComponents ¶
func (*Service) DeployLogs ¶
func (*Service) Deprovision ¶
func (*Service) DeprovisionSandbox ¶
func (*Service) EditInputs ¶ added in v0.19.998
EditInputs launches an interactive TUI for editing an install's inputs.
func (*Service) ForgetComponent ¶ added in v0.19.1065
func (*Service) GenerateConfig ¶
func (*Service) GetInputs ¶ added in v0.19.992
GetInputs prints the install's current inputs alongside their declared defaults.
func (*Service) GetInstallID ¶
func (*Service) GetWorkflowID ¶ added in v0.19.777
func (*Service) LabelsList ¶ added in v0.19.986
LabelsList prints the labels on an install.
func (*Service) LabelsSet ¶ added in v0.19.986
func (s *Service) LabelsSet(ctx context.Context, installIDOrName string, args []string, asJSON bool) error
LabelsSet adds or overwrites labels on an install. Args are kubectl-style "key=value" pairs.
func (*Service) LabelsUnset ¶ added in v0.19.986
func (s *Service) LabelsUnset(ctx context.Context, installIDOrName string, args []string, asJSON bool) error
LabelsUnset removes labels from an install by key.
func (*Service) ListDeploys ¶
func (*Service) Reprovision ¶
func (*Service) ReprovisionSandbox ¶ added in v0.19.850
func (*Service) RunnerRestart ¶ added in v0.19.850
func (*Service) RunnerShutDown ¶ added in v0.19.850
func (*Service) RunnerVMShutDown ¶ added in v0.19.850
func (*Service) SandboxRunLogs ¶
func (*Service) SandboxRuns ¶
func (*Service) SetCurrent ¶
func (*Service) SetInputs ¶ added in v0.19.992
func (s *Service) SetInputs(ctx context.Context, installID string, args []string, deployDependents bool, asJSON bool) error
SetInputs patches install inputs from a list of key=value pairs. It fetches the current inputs first so it can show which values changed, and validates that each key refers to a declared input.
func (*Service) StacksLatest ¶ added in v0.19.894
func (*Service) StacksList ¶ added in v0.19.894
func (*Service) TeardownComponent ¶
func (*Service) TeardownComponents ¶
func (*Service) ToggleComponent ¶ added in v0.19.1015
func (*Service) ToggleSync ¶
func (*Service) UpdateInput ¶
func (*Service) WorkflowSetApprovalOption ¶ added in v0.19.777
func (*Service) WorkflowStepApprove ¶ added in v0.19.777
func (*Service) WorkflowStepLogs ¶ added in v0.19.777
func (*Service) WorkflowStepPlan ¶ added in v0.19.777
func (*Service) WorkflowStepReject ¶ added in v0.19.777
func (*Service) WorkflowStepRetry ¶ added in v0.19.777
func (*Service) WorkflowStepsGet ¶ added in v0.19.777
func (*Service) WorkflowStepsList ¶ added in v0.19.777
func (*Service) WorkflowsDeselect ¶ added in v0.19.777
func (*Service) WorkflowsGet ¶ added in v0.19.777
func (*Service) WorkflowsList ¶ added in v0.19.777
func (*Service) WorkflowsSelect ¶ added in v0.19.777
func (*Service) WorkflowsTUI ¶ added in v0.19.777
func (*Service) WorkflowsWatch ¶ added in v0.19.777
func (s *Service) WorkflowsWatch(ctx context.Context, installID, workflowID string, interval time.Duration, asJSON, quiet bool) (int, error)
WorkflowsWatch polls a workflow until it reaches a terminal state or requires approval
func (*Service) WorkflowsWatchTUI ¶ added in v0.19.777
WorkflowsWatchTUI launches the full-screen TUI for watching all workflows for an install. It accepts either an installID or workflowID. If workflowID is provided, it resolves the install ID from the workflow's OwnerID field. Returns an exit code and error for proper CLI exit handling.
Source Files
¶
- actions.go
- app_install_syncer.go
- component_outputs.go
- components.go
- create.go
- create_deploy.go
- current_inputs.go
- delete.go
- deploy_components.go
- deploy_logs.go
- deprovision.go
- deprovision_sandbox.go
- deselect.go
- forget.go
- forget_component.go
- generate_config.go
- get.go
- get_deploy.go
- inputs.go
- labels.go
- list.go
- list_deploys.go
- outputs.go
- reprovision.go
- reprovision_sandbox.go
- runner_mng.go
- sandbox_run_logs.go
- sandbox_runs.go
- select.go
- service.go
- set_current.go
- stacks.go
- sync.go
- teardown_component.go
- teardown_components.go
- toggle_component.go
- toggle_sync.go
- unset_current.go
- update_input.go
- workflow_step_logs.go
- workflows.go
- workflows_select.go
- workflows_tui.go
- workflows_watch.go