Documentation ¶
Index ¶
- type ClusterWorkflowTemplateGetter
- type Context
- func (ctx *Context) GetCurrentTemplateBase() wfv1.TemplateHolder
- func (ctx *Context) GetTemplate(tmplHolder wfv1.TemplateReferenceHolder) (*wfv1.Template, error)
- func (ctx *Context) GetTemplateByName(name string) (*wfv1.Template, error)
- func (ctx *Context) GetTemplateFromRef(tmplRef *wfv1.TemplateRef) (*wfv1.Template, error)
- func (ctx *Context) GetTemplateGetterFromRef(tmplRef *wfv1.TemplateRef) (wfv1.TemplateHolder, error)
- func (ctx *Context) GetTemplateScope() string
- func (ctx *Context) ResolveTemplate(tmplHolder wfv1.TemplateReferenceHolder) (*Context, *wfv1.Template, bool, error)
- func (ctx *Context) WithClusterWorkflowTemplate(name string) (*Context, error)
- func (ctx *Context) WithTemplateBase(tmplBase wfv1.TemplateHolder) *Context
- func (ctx *Context) WithTemplateHolder(tmplHolder wfv1.TemplateReferenceHolder) (*Context, error)
- func (ctx *Context) WithWorkflowTemplate(name string) (*Context, error)
- type NullClusterWorkflowTemplateGetter
- type WorkflowTemplateNamespacedGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterWorkflowTemplateGetter ¶
type ClusterWorkflowTemplateGetter interface { // Get retrieves the WorkflowTemplate from the indexer for a given name. Get(name string) (*wfv1.ClusterWorkflowTemplate, error) }
WorkflowTemplateNamespaceLister helps get WorkflowTemplates.
func WrapClusterWorkflowTemplateInterface ¶
func WrapClusterWorkflowTemplateInterface(clusterClientset v1alpha1.ClusterWorkflowTemplateInterface) ClusterWorkflowTemplateGetter
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a context of template search.
func NewContext ¶
func NewContext(wftmplGetter WorkflowTemplateNamespacedGetter, cwftmplGetter ClusterWorkflowTemplateGetter, tmplBase wfv1.TemplateHolder, workflow *wfv1.Workflow) *Context
NewContext returns new Context.
func NewContextFromClientset ¶
func NewContextFromClientset(wftmplClientset typed.WorkflowTemplateInterface, clusterWftmplClient typed.ClusterWorkflowTemplateInterface, tmplBase wfv1.TemplateHolder, workflow *wfv1.Workflow) *Context
NewContext returns new Context.
func (*Context) GetCurrentTemplateBase ¶
func (ctx *Context) GetCurrentTemplateBase() wfv1.TemplateHolder
GetCurrentTemplateBase returns the current template base of the context.
func (*Context) GetTemplate ¶
GetTemplate returns a template found by template name or template ref.
func (*Context) GetTemplateByName ¶
GetTemplateByName returns a template by name in the context.
func (*Context) GetTemplateFromRef ¶
GetTemplateFromRef returns a template found by a given template ref.
func (*Context) GetTemplateGetterFromRef ¶
func (ctx *Context) GetTemplateGetterFromRef(tmplRef *wfv1.TemplateRef) (wfv1.TemplateHolder, error)
func (*Context) GetTemplateScope ¶
func (*Context) ResolveTemplate ¶
func (ctx *Context) ResolveTemplate(tmplHolder wfv1.TemplateReferenceHolder) (*Context, *wfv1.Template, bool, error)
ResolveTemplate digs into referenes and returns a merged template. This method is the public start point of template resolution.
func (*Context) WithClusterWorkflowTemplate ¶
WithWorkflowTemplate creates new context with a wfv1.TemplateHolder.
func (*Context) WithTemplateBase ¶
func (ctx *Context) WithTemplateBase(tmplBase wfv1.TemplateHolder) *Context
WithTemplateBase creates new context with a wfv1.TemplateHolder.
func (*Context) WithTemplateHolder ¶
func (ctx *Context) WithTemplateHolder(tmplHolder wfv1.TemplateReferenceHolder) (*Context, error)
WithTemplateHolder creates new context with a template base of a given template holder.
type NullClusterWorkflowTemplateGetter ¶
type NullClusterWorkflowTemplateGetter struct{}
func (*NullClusterWorkflowTemplateGetter) Get ¶
func (n *NullClusterWorkflowTemplateGetter) Get(name string) (*wfv1.ClusterWorkflowTemplate, error)
type WorkflowTemplateNamespacedGetter ¶
type WorkflowTemplateNamespacedGetter interface { // Get retrieves the WorkflowTemplate from the indexer for a given name. Get(name string) (*wfv1.WorkflowTemplate, error) }
WorkflowTemplateNamespaceLister helps get WorkflowTemplates.
func WrapWorkflowTemplateInterface ¶
func WrapWorkflowTemplateInterface(clientset v1alpha1.WorkflowTemplateInterface) WorkflowTemplateNamespacedGetter