Documentation ¶
Index ¶
- Constants
- type Analyzer
- type ConfigurationConfig
- type ConfigurationService
- func (s *ConfigurationService) CloneConfig(ctx context.Context, env, newEnv string, updateGlobals map[string]interface{}) error
- func (s *ConfigurationService) DeleteConfig(ctx context.Context, deleteEnv string) error
- func (s *ConfigurationService) GetEnvOriginal(ctx context.Context, env string) (string, bool, error)
- func (s *ConfigurationService) GetEnvs(ctx context.Context) []string
- func (s *ConfigurationService) IsEnvOriginal(ctx context.Context, env string) bool
- func (s *ConfigurationService) ReadConfig(ctx context.Context, env string, groups, globals []string) (map[string]interface{}, error)
- func (s *ConfigurationService) Run(ctx context.Context)
- func (s *ConfigurationService) Shutdown()
- type Extractor
- type Notify
- type Parser
- type Secrets
Constants ¶
View Source
const (
PullIntervalDefault = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationConfig ¶
type ConfigurationService ¶
type ConfigurationService struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg ConfigurationConfig, parser Parser, extractor Extractor, repository repository.Repository, analyzer Analyzer, secrets Secrets, notify Notify) *ConfigurationService
func (*ConfigurationService) CloneConfig ¶
func (*ConfigurationService) DeleteConfig ¶
func (s *ConfigurationService) DeleteConfig(ctx context.Context, deleteEnv string) error
func (*ConfigurationService) GetEnvOriginal ¶
func (*ConfigurationService) GetEnvs ¶
func (s *ConfigurationService) GetEnvs(ctx context.Context) []string
func (*ConfigurationService) IsEnvOriginal ¶
func (s *ConfigurationService) IsEnvOriginal(ctx context.Context, env string) bool
func (*ConfigurationService) ReadConfig ¶
func (*ConfigurationService) Run ¶
func (s *ConfigurationService) Run(ctx context.Context)
func (*ConfigurationService) Shutdown ¶
func (s *ConfigurationService) Shutdown()
type Extractor ¶
type Extractor interface {
ExtractConfigList(dir string) (*types.ExtractedConfigList, error)
}
type Parser ¶
type Parser interface {
ParseConfigList(*types.ExtractedConfigList) (*types.ParsedRepoConfig, error)
}
Click to show internal directories.
Click to hide internal directories.