Documentation
¶
Index ¶
- func EligibleGroups(groups []*models.AppAppBranchInstallGroup) []*models.AppAppBranchInstallGroup
- func GroupLabels(group *models.AppAppBranchInstallGroup) (map[string]string, error)
- func MergeGroupLabels(into, groupLabels map[string]string) error
- func ResolveInputConfig(ctx context.Context, api nuon.Client, appID, appBranchID string) (*models.AppAppInputConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EligibleGroups ¶
func EligibleGroups(groups []*models.AppAppBranchInstallGroup) []*models.AppAppBranchInstallGroup
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.