Help us shape the future of Go! Take the 2026 Go Developer Survey

installcreate

package
v0.19.1256 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BranchConfigPoll    = 10 * time.Second
	BranchConfigTimeout = 15 * time.Minute
)

Functions

func AwaitBranchConfig added in v0.19.1252

func AwaitBranchConfig(
	ctx context.Context,
	api nuon.Client,
	appID string,
	branch *models.AppAppBranch,
	dryRun bool,
	log func(string),
) (*models.AppAppBranch, error)

AwaitBranchConfig waits until the branch has an active app config. A nil branch skips the wait. A branch whose only run has failed returns immediately. An in-flight run is polled until its config is active. Dry run fails immediately when the config is not already ready.

func EligibleGroups

EligibleGroups filters a branch config's install groups down to those that can be applied during install creation.

func GroupLabels

func GroupLabels(group *models.AppAppBranchInstallGroup) (map[string]string, error)

GroupLabels returns the labels an install must carry to join a group. Only label-based groups with fully concrete match labels can be selected at creation time, since a wildcard has no single value to apply.

func MergeGroupLabels

func MergeGroupLabels(into, groupLabels map[string]string) error

MergeGroupLabels applies a group's labels onto an install's labels, refusing to overwrite a value the user set explicitly.

func ResolveInputConfig

func ResolveInputConfig(ctx context.Context, api nuon.Client, appID, appBranchID string) (*models.AppAppInputConfig, error)

ResolveInputConfig returns the input config belonging to the app config that install creation will pin. Apps without branches retain the legacy app-wide latest-input behavior.

Types

This section is empty.

Jump to

Keyboard shortcuts

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