Documentation ¶
Overview ¶
Package tmpl manage step that generate files from templates
Index ¶
- func Load(ctx context.Context, log *logrus.Entry, recipePath string, name string, ...) (priority uint, steps []common.Steper, err error)
- type Mode
- type Step
- func (st *Step) Cancel(log *logrus.Entry)
- func (st *Step) Do(ctx context.Context, log *logrus.Entry) error
- func (st *Step) Finish(log *logrus.Entry)
- func (st *Step) Init(ctx context.Context, log *logrus.Entry) error
- func (st *Step) PostLoad(log *logrus.Entry, superseed map[string]string) error
- func (st *Step) ToSkip(ctx context.Context, log *logrus.Entry) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, log *logrus.Entry, recipePath string, name string, nameIndex int, v *viper.Viper, dss datasource.Datasourcers, force bool, dryRun bool, limitedTags []string) (priority uint, steps []common.Steper, err error)
Load data from step file using its viper representation a return priority and list of steps.
Types ¶
type Mode ¶
type Mode int
Mode discriminate the result on the destination file.
const ( // Replace the destination file for each datasource of a step (if the destination field is a not template, file will be a concatenation of template for each datasource) Replace Mode = iota // Append to the destination Append Mode = iota // Unique avoid duplicate the generated content in the file Unique Mode = iota )
type Step ¶
type Step struct { Name string // contains filtered or unexported fields }
Step informations.
func (*Step) Finish ¶
Finish manage the finish of the step (called after all other step of the same priority has ended their Do).
Click to show internal directories.
Click to hide internal directories.