installs

package
v0.19.1069 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagedByNuonCLIConfig = "nuon/cli/install-config"
	ManagedByNuonDashboard = "nuon/dashboard"
)
View Source
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 New

func New(apiClient nuon.Client, cfg *config.Config) *Service

func (*Service) ActionOutputs added in v0.19.894

func (s *Service) ActionOutputs(ctx context.Context, installID, actionWorkflowID string, asJSON bool) error

func (*Service) Actions

func (s *Service) Actions(ctx context.Context, installID string, offset, limit int, asJSON bool) error

func (*Service) ActionsList added in v0.19.894

func (s *Service) ActionsList(ctx context.Context, installID string, offset, limit int, asJSON bool) error

func (*Service) ComponentOutputs added in v0.19.894

func (s *Service) ComponentOutputs(ctx context.Context, installID, componentID string, asJSON bool) error

func (*Service) Components

func (s *Service) Components(ctx context.Context, installID string, offset, limit int, asJSON bool) error

func (*Service) Create

func (s *Service) Create(ctx context.Context, appID, name, region string, inputs, labelArgs []string, asJSON, noSelect bool) error

func (*Service) CreateDeploy

func (s *Service) CreateDeploy(ctx context.Context, installID, buildID string, deployDeps, deployDependencies, asJSON bool) error

func (*Service) CurrentInputs

func (s *Service) CurrentInputs(ctx context.Context, installID string, asJSON bool) error

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, installID string, asJSON bool) error

func (*Service) DeployComponents

func (s *Service) DeployComponents(ctx context.Context, installID string, roleName string, planOnly bool, asJSON bool) error

func (*Service) DeployLogs

func (s *Service) DeployLogs(ctx context.Context, installID, deployID, installComponentID string, asJSON bool) error

func (*Service) Deprovision

func (s *Service) Deprovision(ctx context.Context, installID string, asJSON bool) error

func (*Service) DeprovisionSandbox

func (s *Service) DeprovisionSandbox(ctx context.Context, installID string, asJSON bool) error

func (*Service) Deselect added in v0.19.850

func (s *Service) Deselect(ctx context.Context) error

func (*Service) EditInputs added in v0.19.998

func (s *Service) EditInputs(ctx context.Context, installID string, deployDependents bool) error

EditInputs launches an interactive TUI for editing an install's inputs.

func (*Service) Forget

func (s *Service) Forget(ctx context.Context, installID string, asJSON bool) error

func (*Service) ForgetComponent added in v0.19.1065

func (s *Service) ForgetComponent(ctx context.Context, installID, componentID string, skipConfirm, asJSON bool) error

func (*Service) GenerateConfig

func (s *Service) GenerateConfig(ctx context.Context, installID string) error

func (*Service) Get

func (s *Service) Get(ctx context.Context, installID string, asJSON bool) error

func (*Service) GetDeploy

func (s *Service) GetDeploy(ctx context.Context, installID, deployID string, asJSON bool) error

func (*Service) GetInputs added in v0.19.992

func (s *Service) GetInputs(ctx context.Context, installID string, asJSON bool) error

GetInputs prints the install's current inputs alongside their declared defaults.

func (*Service) GetInstallID

func (s *Service) GetInstallID() string

func (*Service) GetWorkflowID added in v0.19.777

func (s *Service) GetWorkflowID() string

func (*Service) LabelsList added in v0.19.986

func (s *Service) LabelsList(ctx context.Context, installIDOrName string, asJSON bool) error

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) List

func (s *Service) List(ctx context.Context, appID string, offset, limit int, labelFilters []string, asJSON bool) error

func (*Service) ListDeploys

func (s *Service) ListDeploys(ctx context.Context, installID string, offset, limit int, asJSON bool) error

func (*Service) Outputs added in v0.19.974

func (s *Service) Outputs(ctx context.Context, installID string, opts OutputsOptions, asJSON bool) error

func (*Service) Reprovision

func (s *Service) Reprovision(ctx context.Context, installID string, asJSON bool) error

func (*Service) ReprovisionSandbox added in v0.19.850

func (s *Service) ReprovisionSandbox(ctx context.Context, installID string, skipComponents bool, asJSON bool) error

func (*Service) RunnerGet added in v0.19.850

func (s *Service) RunnerGet(ctx context.Context, installID string, asJSON bool) error

func (*Service) RunnerRestart added in v0.19.850

func (s *Service) RunnerRestart(ctx context.Context, installID string) error

func (*Service) RunnerShutDown added in v0.19.850

func (s *Service) RunnerShutDown(ctx context.Context, installID string) error

func (*Service) RunnerVMShutDown added in v0.19.850

func (s *Service) RunnerVMShutDown(ctx context.Context, installID string) error

func (*Service) SandboxRunLogs

func (s *Service) SandboxRunLogs(ctx context.Context, installID, runID string, asJSON bool) error

func (*Service) SandboxRuns

func (s *Service) SandboxRuns(ctx context.Context, installID string, offset, limit int, asJSON bool) error

func (*Service) Select

func (s *Service) Select(ctx context.Context, appID, installID string, asJSON bool) error

func (*Service) SetCurrent

func (s *Service) SetCurrent(ctx context.Context, installID string, asJSON bool)

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) StacksGet added in v0.19.894

func (s *Service) StacksGet(ctx context.Context, stackID string, asJSON bool) error

func (*Service) StacksLatest added in v0.19.894

func (s *Service) StacksLatest(ctx context.Context, installID string, asJSON bool) error

func (*Service) StacksList added in v0.19.894

func (s *Service) StacksList(ctx context.Context, installID string, asJSON bool) error

func (*Service) Sync

func (s *Service) Sync(ctx context.Context, fileOrDir string, appID string, autoApprove, wait, dryRun bool) error

func (*Service) TeardownComponent

func (s *Service) TeardownComponent(ctx context.Context, installID, componentID string, roleName string, asJSON bool) error

func (*Service) TeardownComponents

func (s *Service) TeardownComponents(ctx context.Context, installID string, asJSON bool) error

func (*Service) ToggleComponent added in v0.19.1015

func (s *Service) ToggleComponent(ctx context.Context, installID, componentID string, enableFlag, disableFlag, planOnly, asJSON bool) error

func (*Service) ToggleSync

func (s *Service) ToggleSync(ctx context.Context, installID string, enable, disable bool) error

func (*Service) UnsetCurrent

func (s *Service) UnsetCurrent(ctx context.Context) error

func (*Service) UpdateInput

func (s *Service) UpdateInput(ctx context.Context, installID string, inputs []string, deployDependents bool, printJSON bool) error

func (*Service) WorkflowSetApprovalOption added in v0.19.777

func (s *Service) WorkflowSetApprovalOption(ctx context.Context, workflowID string, approveAll, prompt, asJSON bool) error

func (*Service) WorkflowStepApprove added in v0.19.777

func (s *Service) WorkflowStepApprove(ctx context.Context, installID, workflowID, stepID, note string, skipConfirm, asJSON bool) error

func (*Service) WorkflowStepLogs added in v0.19.777

func (s *Service) WorkflowStepLogs(ctx context.Context, installID, workflowID, stepID string, asJSON bool, opts WorkflowStepLogsOptions) error

func (*Service) WorkflowStepPlan added in v0.19.777

func (s *Service) WorkflowStepPlan(ctx context.Context, installID, workflowID, stepID string, asJSON bool) error

func (*Service) WorkflowStepReject added in v0.19.777

func (s *Service) WorkflowStepReject(ctx context.Context, installID, workflowID, stepID, note string, skipConfirm, asJSON bool) error

func (*Service) WorkflowStepRetry added in v0.19.777

func (s *Service) WorkflowStepRetry(ctx context.Context, installID, workflowID, stepID string, skipConfirm, asJSON bool) error

func (*Service) WorkflowStepsGet added in v0.19.777

func (s *Service) WorkflowStepsGet(ctx context.Context, workflowID, stepID string, asJSON bool) error

func (*Service) WorkflowStepsList added in v0.19.777

func (s *Service) WorkflowStepsList(ctx context.Context, workflowID string, asJSON bool) error

func (*Service) WorkflowsDeselect added in v0.19.777

func (s *Service) WorkflowsDeselect(ctx context.Context) error

func (*Service) WorkflowsGet added in v0.19.777

func (s *Service) WorkflowsGet(ctx context.Context, workflowID string, asJSON bool) error

func (*Service) WorkflowsList added in v0.19.777

func (s *Service) WorkflowsList(ctx context.Context, installID string, offset, limit int, asJSON bool) error

func (*Service) WorkflowsSelect added in v0.19.777

func (s *Service) WorkflowsSelect(ctx context.Context, installID, workflowID string, offset, limit int, asJSON bool) error

func (*Service) WorkflowsTUI added in v0.19.777

func (s *Service) WorkflowsTUI(ctx context.Context, installID, workflowID string, asJSON bool, autoRetry bool) error

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

func (s *Service) WorkflowsWatchTUI(ctx context.Context, installID, workflowID string) (int, error)

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.

type WorkflowStepLogsOptions added in v0.19.850

type WorkflowStepLogsOptions struct {
	Follow    bool
	Raw       bool
	Browser   bool
	Limit     int
	Filter    string
	Severity  []string
	Service   []string
	SortOrder string
}

Jump to

Keyboard shortcuts

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