evaluation

package
v0.0.0-...-d93761d Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingDependency = errors.New("missing dependency")

Functions

func FullyComputeValue

func FullyComputeValue(ctx context.Context, c Computer, requestedKey proto.Message, storeValueChildren ValueChildrenStorer) (model_core.Message[proto.Message], error)

Types

type Computer

type Computer interface {
	ComputeMessageValue(ctx context.Context, key proto.Message, e Environment) (model_core.PatchedMessage[proto.Message, dag.ObjectContentsWalker], error)
	ComputeNativeValue(ctx context.Context, key proto.Message, e Environment) (any, error)
}

type Environment

type Environment interface {
	GetMessageValue(key proto.Message) model_core.Message[proto.Message]
	GetNativeValue(key proto.Message) (any, bool)
}

type ValueChildrenStorer

type ValueChildrenStorer func(references []object.LocalReference, objectContentsWalkers []dag.ObjectContentsWalker) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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