configuration

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AppIdentifier = "ska"

Variables

This section is empty.

Functions

func TimeNowUTC

func TimeNowUTC() string

Types

type ConfigBlock

type ConfigBlock struct {
	BlueprintURI string   `yaml:"blueprintURI"`
	IgnorePaths  []string `yaml:"ignorePaths"`
}

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 StateBlock struct {
	LastUpdate string                 `yaml:"lastUpdate"`
	Variables  map[string]interface{} `yaml:"variables"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL