model

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// OutputFieldName is the reference of context base object
	OutputFieldName = "output"
	// OutputsFieldName is the reference of context Auxiliaries
	OutputsFieldName = "outputs"
	// ConfigFieldName is the reference of context config
	ConfigFieldName = "config"
	// ParameterFieldName is the keyword in CUE template to define users' input and the reference to the context parameter
	ParameterFieldName = "parameter"
	// ContextName is the name of context
	ContextName = "name"
	// ContextNamespace is the namespace of the app
	ContextNamespace = "namespace"
	// ContextPublishVersion is the publish version of the app
	ContextPublishVersion = "publishVersion"
	// ContextWorkflowName is the name of the workflow
	ContextWorkflowName = "workflowName"
	// ContextStepSessionID is the session id of the step
	ContextStepSessionID = "stepSessionID"
	// ContextStepName is the name of the step
	ContextStepName = "stepName"
	// ContextSpanID is name for span id.
	ContextSpanID = "spanID"
	// OutputSecretName is used to store all secret names which are generated by cloud resource components
	OutputSecretName = "outputSecretName"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance interface {
	String() (string, error)
	Value() cue.Value
	Unstructured() (*unstructured.Unstructured, error)
	IsBase() bool
	Unify(other cue.Value, options ...sets.UnifyOption) error
	Compile() ([]byte, error)
}

Instance defines Model Interface

func NewBase

func NewBase(v cue.Value) (Instance, error)

NewBase create a base instance

func NewOther

func NewOther(v cue.Value) (Instance, error)

NewOther create a non-base instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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