Documentation ¶
Index ¶
- Constants
- Variables
- func NewBaseNode(id string) (*baseNode, status.Status)
- func ReplaceImplicitRef(v reflect.Value, resourceIndex map[string]*models.Resource, ...) ([]string, reflect.Value, status.Status)
- func ReplaceRef(v reflect.Value, resourceIndex map[string]*models.Resource, ...) ([]string, reflect.Value, status.Status)
- func ReplaceSecretRef(v reflect.Value, ss *vals.SecretStores) ([]string, reflect.Value, status.Status)
- type ExecutableNode
- type ResourceNode
- type RootNode
Constants ¶
View Source
const (
ImplicitRefPrefix = "$kusion_path."
)
Variables ¶
Functions ¶
func NewBaseNode ¶
func ReplaceImplicitRef ¶ added in v0.7.4
func ReplaceRef ¶ added in v0.7.4
func ReplaceRef( v reflect.Value, resourceIndex map[string]*models.Resource, repImplDepFunc func(map[string]*models.Resource, string) (reflect.Value, status.Status), ss *vals.SecretStores, repSecretFunc func(string, string, *vals.SecretStores) (string, error), ) ([]string, reflect.Value, status.Status)
Types ¶
type ExecutableNode ¶
type ResourceNode ¶
type ResourceNode struct { Action opsmodels.ActionType // contains filtered or unexported fields }
func NewResourceNode ¶
func NewResourceNode(key string, state *models.Resource, action opsmodels.ActionType) (*ResourceNode, status.Status)
func (*ResourceNode) Execute ¶
func (rn *ResourceNode) Execute(operation *opsmodels.Operation) (s status.Status)
func (*ResourceNode) PreExecute ¶ added in v0.7.4
func (rn *ResourceNode) PreExecute(o *opsmodels.Operation) status.Status
func (*ResourceNode) State ¶
func (rn *ResourceNode) State() *models.Resource
Click to show internal directories.
Click to hide internal directories.