Documentation ¶
Index ¶
- Constants
- func GetAppNamespace(ctx context.Context) string
- func SetAppNamespace(ctx context.Context, ns string) context.Context
- type BaseNode
- func (c *BaseNode) GetNextNode() []Node
- func (c *BaseNode) GetPrevNode() []Node
- func (c *BaseNode) Group() string
- func (c *BaseNode) Init(_ context.Context, _ dynamic.Interface, _ map[string]any) error
- func (c *BaseNode) Kind() string
- func (c *BaseNode) Name() string
- func (c *BaseNode) RefName() string
- func (c *BaseNode) RefNamespace() string
- func (c *BaseNode) Run(_ context.Context, _ dynamic.Interface, _ map[string]any) (map[string]any, error)
- func (c *BaseNode) SetNextNode(nodes ...Node)
- func (c *BaseNode) SetPrevNode(nodes ...Node)
- type Input
- type Node
- type Output
Constants ¶
View Source
const (
AppNamespaceContextKey contextKey = "app-ns"
)
Variables ¶
This section is empty.
Functions ¶
func GetAppNamespace ¶
Types ¶
type BaseNode ¶
type BaseNode struct { Ref arcadiav1alpha1.TypedObjectReference // contains filtered or unexported fields }
func NewBaseNode ¶
func NewBaseNode(appNamespace, nodeName string, ref arcadiav1alpha1.TypedObjectReference) BaseNode
func (*BaseNode) GetNextNode ¶
func (*BaseNode) GetPrevNode ¶
func (*BaseNode) RefNamespace ¶
func (*BaseNode) SetNextNode ¶
func (*BaseNode) SetPrevNode ¶
type Node ¶
type Node interface { Name() string Group() string Kind() string RefName() string RefNamespace() string Init(ctx context.Context, cli dynamic.Interface, args map[string]any) error Run(ctx context.Context, cli dynamic.Interface, args map[string]any) (map[string]any, error) SetPrevNode(nodes ...Node) SetNextNode(nodes ...Node) GetPrevNode() []Node GetNextNode() []Node }
Click to show internal directories.
Click to hide internal directories.