variable

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileVariable added in v0.29.0

type FileVariable struct {
	// contains filtered or unexported fields
}

func (*FileVariable) ApplyMessage added in v0.29.0

func (tv *FileVariable) ApplyMessage(msg []byte) (bool, error)

func (*FileVariable) GetValue added in v0.29.0

func (tv *FileVariable) GetValue() []byte

func (*FileVariable) Info added in v0.29.0

func (tv *FileVariable) Info() Info

func (*FileVariable) NodeReference added in v0.29.0

func (tv *FileVariable) NodeReference() nodes.Node

func (*FileVariable) SetValue added in v0.29.0

func (tv *FileVariable) SetValue(v []byte)

func (*FileVariable) SwaggerProperty added in v0.32.0

func (tv *FileVariable) SwaggerProperty() swagger.Property

func (FileVariable) ToMessage added in v0.29.0

func (tv FileVariable) ToMessage() []byte

func (*FileVariable) Version added in v0.29.0

func (tv *FileVariable) Version() int

type ImageVariable added in v0.29.0

type ImageVariable struct {
	// contains filtered or unexported fields
}

func (*ImageVariable) ApplyMessage added in v0.29.0

func (tv *ImageVariable) ApplyMessage(msg []byte) (bool, error)

func (*ImageVariable) GetValue added in v0.29.0

func (tv *ImageVariable) GetValue() image.Image

func (*ImageVariable) Info added in v0.29.0

func (tv *ImageVariable) Info() Info

func (*ImageVariable) NodeReference added in v0.29.0

func (tv *ImageVariable) NodeReference() nodes.Node

func (*ImageVariable) SetValue added in v0.29.0

func (tv *ImageVariable) SetValue(v image.Image)

func (*ImageVariable) SwaggerProperty added in v0.32.0

func (tv *ImageVariable) SwaggerProperty() swagger.Property

func (ImageVariable) ToMessage added in v0.29.0

func (tv ImageVariable) ToMessage() []byte

func (*ImageVariable) Version added in v0.29.0

func (tv *ImageVariable) Version() int

type Info

type Info interface {
	Name() string
	Description() string
	SetDescription(description string)
}

type Profile added in v0.31.0

type Profile map[string]json.RawMessage

type Reference

type Reference interface {
	Reference() Variable
}

type System

type System interface {
	Variables() []Info
	Add(path string, variable Variable) error
	Variable(path string) (Variable, error)
	Info(path string) (Info, error)
	Exists(path string) bool
	Remove(path string) error
	Move(oldName, newName string) error
	Traverse(func(path string, info Info, v Variable))
	PersistedSchema(encoder *jbtf.Encoder) (schema.NestedGroup[schema.PersistedVariable], error)
	RuntimeSchema() (schema.NestedGroup[schema.RuntimeVariable], error)
	ApplyProfile(profile Profile) error
	GetProfile() Profile
	SwaggerDefinition() swagger.Definition
}

System Kinda copies/inspired by file systems

func NewSystem

func NewSystem() System

type TypeVariable

type TypeVariable[T any] struct {
	// contains filtered or unexported fields
}

func (*TypeVariable[T]) ApplyMessage

func (tv *TypeVariable[T]) ApplyMessage(msg []byte) (bool, error)

func (*TypeVariable[T]) GetValue

func (tv *TypeVariable[T]) GetValue() T

func (*TypeVariable[T]) Info

func (tv *TypeVariable[T]) Info() Info

func (TypeVariable[T]) MarshalJSON

func (tv TypeVariable[T]) MarshalJSON() ([]byte, error)

func (*TypeVariable[T]) NodeReference

func (tv *TypeVariable[T]) NodeReference() nodes.Node

func (*TypeVariable[T]) SetValue

func (tv *TypeVariable[T]) SetValue(v T)

func (*TypeVariable[T]) SwaggerProperty added in v0.32.0

func (tv *TypeVariable[T]) SwaggerProperty() swagger.Property

func (TypeVariable[T]) ToMessage

func (tv TypeVariable[T]) ToMessage() []byte

func (*TypeVariable[T]) Version

func (tv *TypeVariable[T]) Version() int

type Variable

type Variable interface {
	NodeReference() nodes.Node

	Info() Info

	ApplyMessage(msg []byte) (bool, error)
	ToMessage() []byte

	SwaggerProperty() swagger.Property
	// contains filtered or unexported methods
}

func DeserializePersistantVariableJSON added in v0.29.0

func DeserializePersistantVariableJSON(msg []byte, decoder jbtf.Decoder, variableFactory func(string) (Variable, error)) (Variable, error)

type VariableReferenceNode

type VariableReferenceNode[T any] struct {
	// contains filtered or unexported fields
}

func (*VariableReferenceNode[T]) Description

func (tv *VariableReferenceNode[T]) Description() string

func (*VariableReferenceNode[T]) Inputs

func (vrn *VariableReferenceNode[T]) Inputs() map[string]nodes.InputPort

func (*VariableReferenceNode[T]) Name

func (tv *VariableReferenceNode[T]) Name() string

func (*VariableReferenceNode[T]) Outputs

func (vrn *VariableReferenceNode[T]) Outputs() map[string]nodes.OutputPort

func (*VariableReferenceNode[T]) Reference

func (vrn *VariableReferenceNode[T]) Reference() Variable

Jump to

Keyboard shortcuts

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