Documentation ¶
Index ¶
- type Context
- func (ctx *Context) GetTemplate(tmplHolder wfv1.TemplateHolder) (*wfv1.Template, error)
- func (ctx *Context) GetTemplateBase(tmplHolder wfv1.TemplateHolder) (wfv1.TemplateGetter, error)
- func (ctx *Context) GetTemplateByName(name string) (*wfv1.Template, error)
- func (ctx *Context) GetTemplateFromRef(tmplRef *wfv1.TemplateRef) (*wfv1.Template, error)
- func (ctx *Context) ResolveTemplate(tmplHolder wfv1.TemplateHolder) (*Context, *wfv1.Template, error)
- func (ctx *Context) WithTemplateBase(tmplBase wfv1.TemplateGetter) *Context
- type WorkflowTemplateNamespacedGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a context of template search.
func NewContext ¶
func NewContext(wftmplGetter WorkflowTemplateNamespacedGetter, tmplBase wfv1.TemplateGetter) *Context
NewContext returns new Context.
func NewContextFromClientset ¶
func NewContextFromClientset(clientset typed.WorkflowTemplateInterface, tmplBase wfv1.TemplateGetter) *Context
NewContext returns new Context.
func (*Context) GetTemplate ¶
GetTemplate returns a template found by template name or template ref.
func (*Context) GetTemplateBase ¶
func (ctx *Context) GetTemplateBase(tmplHolder wfv1.TemplateHolder) (wfv1.TemplateGetter, error)
GetTemplateBase returns a template base of a found template.
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) ResolveTemplate ¶
func (ctx *Context) ResolveTemplate(tmplHolder wfv1.TemplateHolder) (*Context, *wfv1.Template, error)
ResolveTemplate digs into referenes and returns a merged template. This method is the public start point of template resolution.
func (*Context) WithTemplateBase ¶
func (ctx *Context) WithTemplateBase(tmplBase wfv1.TemplateGetter) *Context
WithTemplateBase creates new context with a wfv1.TemplateGetter.
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.
Click to show internal directories.
Click to hide internal directories.