Documentation ¶
Index ¶
- Constants
- func TimeNowUTC() string
- type ConfigBlock
- type ConfigFile
- type LocalConfigService
- func (cs *LocalConfigService) BlueprintUpstream() string
- func (cs *LocalConfigService) GetIgnorePaths() []string
- func (cs *LocalConfigService) ProcessAllFiles() bool
- func (cs *LocalConfigService) ReadConfig(dirPath string) error
- func (cs *LocalConfigService) Variables() map[string]interface{}
- func (cs *LocalConfigService) WithBlueprintUpstream(bpURI string) *LocalConfigService
- func (cs *LocalConfigService) WithExcludeMatchingFiles(ignorePaths []string) *LocalConfigService
- func (cs *LocalConfigService) WithVariables(variables map[string]interface{}) *LocalConfigService
- func (cs *LocalConfigService) WriteConfig(dirPath string) error
- type StateBlock
- type UpstreamConfigInput
- type UpstreamConfigService
Constants ¶
View Source
const AppIdentifier = "ska"
Variables ¶
This section is empty.
Functions ¶
func TimeNowUTC ¶
func TimeNowUTC() string
Types ¶
type ConfigBlock ¶
type ConfigFile ¶
type ConfigFile struct {
// contains filtered or unexported fields
}
func NewConfigFromDirectory ¶
func NewConfigFromDirectory(dirPath string) *ConfigFile
func NewConfigFromFile ¶
func NewConfigFromFile(filePath string) *ConfigFile
func (*ConfigFile) GetFilePath ¶
func (cf *ConfigFile) GetFilePath() string
func (*ConfigFile) ReadConfig ¶
func (cf *ConfigFile) ReadConfig() ([]byte, error)
func (*ConfigFile) WriteConfig ¶
func (cf *ConfigFile) WriteConfig(configData []byte) error
type LocalConfigService ¶ added in v0.0.7
type LocalConfigService struct {
// contains filtered or unexported fields
}
func NewLocalConfigService ¶ added in v0.0.7
func NewLocalConfigService() *LocalConfigService
func (*LocalConfigService) BlueprintUpstream ¶ added in v0.0.7
func (cs *LocalConfigService) BlueprintUpstream() string
func (*LocalConfigService) GetIgnorePaths ¶ added in v0.0.7
func (cs *LocalConfigService) GetIgnorePaths() []string
func (*LocalConfigService) ProcessAllFiles ¶ added in v0.0.7
func (cs *LocalConfigService) ProcessAllFiles() bool
func (*LocalConfigService) ReadConfig ¶ added in v0.0.7
func (cs *LocalConfigService) ReadConfig(dirPath string) error
func (*LocalConfigService) Variables ¶ added in v0.0.7
func (cs *LocalConfigService) Variables() map[string]interface{}
func (*LocalConfigService) WithBlueprintUpstream ¶ added in v0.0.7
func (cs *LocalConfigService) WithBlueprintUpstream(bpURI string) *LocalConfigService
func (*LocalConfigService) WithExcludeMatchingFiles ¶ added in v0.0.7
func (cs *LocalConfigService) WithExcludeMatchingFiles(ignorePaths []string) *LocalConfigService
func (*LocalConfigService) WithVariables ¶ added in v0.0.7
func (cs *LocalConfigService) WithVariables(variables map[string]interface{}) *LocalConfigService
func (*LocalConfigService) WriteConfig ¶ added in v0.0.7
func (cs *LocalConfigService) WriteConfig(dirPath string) error
type StateBlock ¶
type UpstreamConfigInput ¶ added in v0.0.7
type UpstreamConfigInput struct { Placeholder string `yaml:"placeholder"` Label string `yaml:"label"` Regexp string `yaml:"regexp,omitempty"` MinLength int `yaml:"minLength,omitempty"` MaxLength int `yaml:"maxLength,omitempty"` Help string `yaml:"help,omitempty"` Default string `yaml:"default,omitempty"` }
type UpstreamConfigService ¶ added in v0.0.7
type UpstreamConfigService struct {
// contains filtered or unexported fields
}
func NewUpstreamConfigService ¶ added in v0.0.7
func NewUpstreamConfigService() *UpstreamConfigService
func (*UpstreamConfigService) GetIgnorePaths ¶ added in v0.0.7
func (ucs *UpstreamConfigService) GetIgnorePaths() []string
func (*UpstreamConfigService) GetInputs ¶ added in v0.0.7
func (ucs *UpstreamConfigService) GetInputs() []UpstreamConfigInput
func (*UpstreamConfigService) LoadFromPath ¶ added in v0.0.7
func (ucs *UpstreamConfigService) LoadFromPath(path string) (*UpstreamConfigService, error)
Click to show internal directories.
Click to hide internal directories.