parameter

package
v0.12.9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(condition string) ([]string, bool, error)

Contains parses possible values for a conditional.

Types

type ComputeOptions

type ComputeOptions struct {
	// HideRedisplayValues removes the value from parameters that
	// come from schemas with RedisplayValue set to false.
	HideRedisplayValues bool
}

type ComputeScope

type ComputeScope struct {
	TemplateImportJobID       uuid.UUID
	TemplateID                uuid.NullUUID
	WorkspaceID               uuid.NullUUID
	AdditionalParameterValues []database.ParameterValue
}

ComputeScope targets identifiers to pull parameters from.

type ComputedValue

type ComputedValue struct {
	database.ParameterValue
	SchemaID           uuid.UUID `json:"schema_id"`
	DefaultSourceValue bool      `json:"default_source_value"`
	// contains filtered or unexported fields
}

ComputedValue represents a computed parameter value.

func Compute

func Compute(ctx context.Context, db database.Store, scope ComputeScope, options *ComputeOptions) ([]ComputedValue, error)

Compute accepts a scope in which parameter values are sourced. These sources are iterated in a hierarchical fashion to determine the runtime parameter values for schemas provided.

Jump to

Keyboard shortcuts

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