installs

package
v0.19.786 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 36 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 Service

type Service struct {
	// contains filtered or unexported fields
}

func New

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

func (*Service) Actions

func (s *Service) Actions(ctx context.Context, installID string, offset, limit int, 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 []string, asJSON, noSelect bool) error

func (*Service) CreateDeploy

func (s *Service) CreateDeploy(ctx context.Context, installID, buildID string, deployDeps, 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, 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) Forget

func (s *Service) Forget(ctx context.Context, installID string, 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) GetInstallID

func (s *Service) GetInstallID() string

func (*Service) GetWorkflowID added in v0.19.777

func (s *Service) GetWorkflowID() string

func (*Service) List

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

func (*Service) ListDeploys

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

func (*Service) Reprovision

func (s *Service) Reprovision(ctx context.Context, installID string, asJSON bool) 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) 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, asJSON bool) error

func (*Service) TeardownComponents

func (s *Service) TeardownComponents(ctx context.Context, installID string, 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, 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) 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) 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.

Jump to

Keyboard shortcuts

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