Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 OrganizationID uuid.UUID UserID uuid.UUID TemplateID uuid.NullUUID WorkspaceID uuid.NullUUID }
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"` }
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.
Click to show internal directories.
Click to hide internal directories.