Documentation
¶
Index ¶
- Variables
- func FindPlan(cfg *v1.Config, planID string) *v1.Plan
- func FindRepo(cfg *v1.Config, repoID string) *v1.Repo
- func FindRepoByGUID(cfg *v1.Config, guid string) *v1.Repo
- func NewDefaultConfig() *v1.Config
- func ValidateConfig(c *v1.Config) error
- type CachingValidatingStore
- type ConfigManager
- type ConfigStore
- type JsonFileStore
- type MemoryStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigNotFound = fmt.Errorf("config not found")
Functions ¶
func NewDefaultConfig ¶
func ValidateConfig ¶
Types ¶
type CachingValidatingStore ¶
type CachingValidatingStore struct { ConfigStore // contains filtered or unexported fields }
TODO: merge caching validating store functions into config manager
type ConfigManager ¶ added in v1.7.0
type ConfigManager struct { Store ConfigStore // contains filtered or unexported fields }
func (*ConfigManager) StopWatching ¶ added in v1.7.0
func (m *ConfigManager) StopWatching(ch <-chan struct{}) bool
func (*ConfigManager) Update ¶ added in v1.7.0
func (m *ConfigManager) Update(config *v1.Config) error
func (*ConfigManager) Watch ¶ added in v1.7.0
func (m *ConfigManager) Watch() <-chan struct{}
type ConfigStore ¶
type JsonFileStore ¶
type JsonFileStore struct { Path string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.