Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTemplateConfig ¶
Types ¶
type AppConfig ¶
type PGConfig ¶
type Template ¶
type Template struct {
ID string `yaml:"id,omitempty"`
Path string `yaml:"path,omitempty"`
Type domain.TemplateType `yaml:"type,omitempty"`
SupportedProviders []domain.ProviderType `yaml:"supported_providers"`
}
type TemplateConfig ¶
type TemplateConfig struct {
Templates []Template `yaml:"templates"`
}
func (*TemplateConfig) ReadYAML ¶
func (config *TemplateConfig) ReadYAML(configPath string) error
func (*TemplateConfig) Validate ¶
func (tc *TemplateConfig) Validate() error
type TemplateConfigFactory ¶
type TemplateConfigFactory interface {
GetTemplateConfig() *TemplateConfig
}
func NewTemplateConfigFactory ¶
func NewTemplateConfigFactory() TemplateConfigFactory
Click to show internal directories.
Click to hide internal directories.