Documentation
¶
Index ¶
- type GroupedTransporters
- type Task
- func (t *Task) AllocateNewTemplate(name, data string) error
- func (t *Task) AllocatedTemplateExisted(name string) bool
- func (t *Task) AllocatedTemplateNameList(reload bool) []string
- func (t *Task) AppendTemplate(name, data string) error
- func (t *Task) LoadTemplates() error
- func (t *Task) LoadTemplatesFromMap(kv map[string]string) error
- func (t *Task) Perform(ctx stdcontext.Context) error
- func (t *Task) RegisterTemplateFunc(name string, funk interface{})
- func (t *Task) RegisterTransporters(name string, transporters ...transport.Transporter) error
- func (t *Task) Render(ctx stdcontext.Context, names ...string) error
- func (t *Task) RenderAll(ctx stdcontext.Context) error
- func (t *Task) Transport(ctx stdcontext.Context, groups ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupedTransporters ¶
type GroupedTransporters map[string]transport.Transporters
func (GroupedTransporters) UnmarshalJSON ¶
func (g GroupedTransporters) UnmarshalJSON(data []byte) error
type Task ¶
type Task struct { Logger *zap.SugaredLogger `json:"-"` BasePath string `json:"base_path,omitempty"` Glob string `json:"glob,omitempty"` LeftDelim string `json:"left_delim,omitempty"` RightDelim string `json:"right_delim,omitempty"` FuncMap map[string]interface{} `json:"-,omitempty"` RenderedEndTag string `json:"rendered_end_tag"` PerformCtx context.Context `json:"perform_ctx,omitempty"` Transporters GroupedTransporters `json:"transporters,omitempty"` // contains filtered or unexported fields }
func (*Task) AllocateNewTemplate ¶
func (*Task) AllocatedTemplateExisted ¶
func (*Task) AllocatedTemplateNameList ¶
func (*Task) AppendTemplate ¶
func (*Task) LoadTemplates ¶
func (*Task) RegisterTemplateFunc ¶
func (*Task) RegisterTransporters ¶
func (t *Task) RegisterTransporters(name string, transporters ...transport.Transporter) error
Click to show internal directories.
Click to hide internal directories.