graph

package
v0.9.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ImplicitRefPrefix = "$kusion_path."
)

Variables

View Source
var MustImplicitReplaceFun = func(resourceIndex map[string]*intent.Resource, refPath string) (reflect.Value, status.Status) {
	return implicitReplaceFun(true, resourceIndex, refPath)
}
View Source
var OptionalImplicitReplaceFun = func(resourceIndex map[string]*intent.Resource, refPath string) (reflect.Value, status.Status) {
	return implicitReplaceFun(false, resourceIndex, refPath)
}

Functions

func NewBaseNode

func NewBaseNode(id string) (*baseNode, status.Status)

func ReplaceImplicitRef added in v0.7.4

func ReplaceImplicitRef(
	v reflect.Value,
	resourceIndex map[string]*intent.Resource,
	replaceFun func(map[string]*intent.Resource, string) (reflect.Value, status.Status),
) ([]string, reflect.Value, status.Status)

func ReplaceRef added in v0.7.4

func ReplaceRef(
	v reflect.Value,
	resourceIndex map[string]*intent.Resource,
	repImplDepFunc func(map[string]*intent.Resource, string) (reflect.Value, status.Status),
) ([]string, reflect.Value, status.Status)

func ReplaceSecretRef added in v0.7.4

func ReplaceSecretRef(v reflect.Value) ([]string, reflect.Value, status.Status)

Types

type ExecutableNode

type ExecutableNode interface {
	Execute(operation *opsmodels.Operation) status.Status
}

type ResourceNode

type ResourceNode struct {
	Action opsmodels.ActionType
	// contains filtered or unexported fields
}

func NewResourceNode

func NewResourceNode(key string, state *intent.Resource, action opsmodels.ActionType) (*ResourceNode, status.Status)

func (*ResourceNode) Execute

func (rn *ResourceNode) Execute(operation *opsmodels.Operation) (s status.Status)

func (ResourceNode) Hashcode

func (b ResourceNode) Hashcode() interface{}

func (ResourceNode) Name

func (b ResourceNode) Name() string

func (*ResourceNode) PreExecute added in v0.7.4

func (rn *ResourceNode) PreExecute(o *opsmodels.Operation) status.Status

func (*ResourceNode) State

func (rn *ResourceNode) State() *intent.Resource

type RootNode

type RootNode struct{}

func (*RootNode) Hashcode

func (r *RootNode) Hashcode() interface{}

func (*RootNode) Name

func (r *RootNode) Name() string

Jump to

Keyboard shortcuts

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