Documentation ¶
Index ¶
- func ClearCache() error
- func DocGenFromPipeline(cfg *Config) error
- func ExecutePipeline(cfg *Config) error
- func HasRunAlready(id string) bool
- func IsCached(id string) bool
- func MarkdownToText(md string) string
- func NewTemplateFilter(varsFile string) (func([]byte) ([]byte, error), error)
- func PopFromCache(id string) (model.GenericYAML, error)
- func PushToCache(genericYAML model.GenericYAML) error
- func ReadYAML(filePath string) (model.GenericYAML, error)
- func RenderPipeline(cfg *Config) (int, string, error)
- type Config
- type SafeCounter
- type TemplateFilter
- type TmplVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCache ¶
func ClearCache() error
func DocGenFromPipeline ¶
func ExecutePipeline ¶
func HasRunAlready ¶ added in v0.0.2
func MarkdownToText ¶
func NewTemplateFilter ¶
NewTemplateFilter creates a new Template Filter based in the file and inline variables.
func PopFromCache ¶ added in v0.0.2
func PopFromCache(id string) (model.GenericYAML, error)
func PushToCache ¶ added in v0.0.2
func PushToCache(genericYAML model.GenericYAML) error
Types ¶
type SafeCounter ¶ added in v0.0.2
type SafeCounter struct {
// contains filtered or unexported fields
}
SafeCounter is safe to use concurrently.
func (*SafeCounter) Inc ¶ added in v0.0.2
func (c *SafeCounter) Inc()
Inc increments the counter for the given key.
func (*SafeCounter) Lock ¶ added in v0.0.2
func (c *SafeCounter) Lock()
func (*SafeCounter) Unlock ¶ added in v0.0.2
func (c *SafeCounter) Unlock()
func (*SafeCounter) Value ¶ added in v0.0.2
func (c *SafeCounter) Value() int
Value returns the current value of the counter for the given key.
type TemplateFilter ¶
TemplateFilter is the type of the yapl Template Filter which include custom variables and functions.
Click to show internal directories.
Click to hide internal directories.