Documentation ¶
Index ¶
- func SetConfig(config Config) error
- type Action
- type Config
- type Engine
- type EntryPoint
- type FeatureType
- type Plugin
- type PluginBuilder
- type PostGenerationContext
- type PostGenerationFeature
- type PostGenerationFeatureBuilder
- func (f *PostGenerationFeatureBuilder) AddFeature() *PluginBuilder
- func (f *PostGenerationFeatureBuilder) WithAvailabilityFilter(filter func() bool) *PostGenerationFeatureBuilder
- func (f *PostGenerationFeatureBuilder) WithDescription(description string) *PostGenerationFeatureBuilder
- func (f *PostGenerationFeatureBuilder) WithName(name string) *PostGenerationFeatureBuilder
- func (f *PostGenerationFeatureBuilder) WithPostGenerationAction(action func(PostGenerationContext) error) *PostGenerationFeatureBuilder
- type Predicate
- type TemplateContext
- type TemplateFeature
- type TemplateFeatureBuilder
- func (f *TemplateFeatureBuilder) AddFeature() *PluginBuilder
- func (f *TemplateFeatureBuilder) WithAvailabilityFilter(filter Predicate) *TemplateFeatureBuilder
- func (f *TemplateFeatureBuilder) WithDescription(description string) *TemplateFeatureBuilder
- func (f *TemplateFeatureBuilder) WithEntryPoint(entrypoint func(TemplateContext) EntryPoint) *TemplateFeatureBuilder
- func (f *TemplateFeatureBuilder) WithGetTemplateData(getter func(TemplateContext) (any, error)) *TemplateFeatureBuilder
- func (f *TemplateFeatureBuilder) WithName(name string) *TemplateFeatureBuilder
- func (f *TemplateFeatureBuilder) WithNewTemplate(templ template.Template) *TemplateFeatureBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EntryPoint ¶
type FeatureType ¶
type FeatureType int
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (Plugin) PostGenerationFeatures ¶
func (p Plugin) PostGenerationFeatures() []PostGenerationFeature
func (Plugin) TemplateFeatures ¶
func (p Plugin) TemplateFeatures() []TemplateFeature
type PluginBuilder ¶
type PluginBuilder struct {
// contains filtered or unexported fields
}
func Builder ¶
func Builder() *PluginBuilder
func (*PluginBuilder) Build ¶
func (p *PluginBuilder) Build() Plugin
func (*PluginBuilder) PostGenerationFeature ¶
func (p *PluginBuilder) PostGenerationFeature() *PostGenerationFeatureBuilder
func (*PluginBuilder) TemplateFeature ¶
func (p *PluginBuilder) TemplateFeature() *TemplateFeatureBuilder
type PostGenerationContext ¶
type PostGenerationContext struct {
EntryPoint EntryPoint
}
type PostGenerationFeature ¶
type PostGenerationFeature struct {
// contains filtered or unexported fields
}
type PostGenerationFeatureBuilder ¶
type PostGenerationFeatureBuilder struct {
// contains filtered or unexported fields
}
func (*PostGenerationFeatureBuilder) AddFeature ¶
func (f *PostGenerationFeatureBuilder) AddFeature() *PluginBuilder
func (*PostGenerationFeatureBuilder) WithAvailabilityFilter ¶
func (f *PostGenerationFeatureBuilder) WithAvailabilityFilter(filter func() bool) *PostGenerationFeatureBuilder
func (*PostGenerationFeatureBuilder) WithDescription ¶
func (f *PostGenerationFeatureBuilder) WithDescription(description string) *PostGenerationFeatureBuilder
func (*PostGenerationFeatureBuilder) WithName ¶
func (f *PostGenerationFeatureBuilder) WithName(name string) *PostGenerationFeatureBuilder
func (*PostGenerationFeatureBuilder) WithPostGenerationAction ¶
func (f *PostGenerationFeatureBuilder) WithPostGenerationAction(action func(PostGenerationContext) error) *PostGenerationFeatureBuilder
type TemplateContext ¶
type TemplateFeature ¶
type TemplateFeature struct {
// contains filtered or unexported fields
}
func (TemplateFeature) String ¶
func (t TemplateFeature) String() string
type TemplateFeatureBuilder ¶
type TemplateFeatureBuilder struct {
// contains filtered or unexported fields
}
func (*TemplateFeatureBuilder) AddFeature ¶
func (f *TemplateFeatureBuilder) AddFeature() *PluginBuilder
func (*TemplateFeatureBuilder) WithAvailabilityFilter ¶
func (f *TemplateFeatureBuilder) WithAvailabilityFilter(filter Predicate) *TemplateFeatureBuilder
func (*TemplateFeatureBuilder) WithDescription ¶
func (f *TemplateFeatureBuilder) WithDescription(description string) *TemplateFeatureBuilder
func (*TemplateFeatureBuilder) WithEntryPoint ¶
func (f *TemplateFeatureBuilder) WithEntryPoint(entrypoint func(TemplateContext) EntryPoint) *TemplateFeatureBuilder
func (*TemplateFeatureBuilder) WithGetTemplateData ¶
func (f *TemplateFeatureBuilder) WithGetTemplateData(getter func(TemplateContext) (any, error)) *TemplateFeatureBuilder
func (*TemplateFeatureBuilder) WithName ¶
func (f *TemplateFeatureBuilder) WithName(name string) *TemplateFeatureBuilder
func (*TemplateFeatureBuilder) WithNewTemplate ¶
func (f *TemplateFeatureBuilder) WithNewTemplate(templ template.Template) *TemplateFeatureBuilder
Click to show internal directories.
Click to hide internal directories.