Documentation ¶
Index ¶
- func ExtractFromPath(p string) string
- func LoadConfigurationsFromEnvFiles(ctx context.Context, dir string) ([]*basev0.ConfigurationInformation, error)
- type ConfigurationInformationLocalReader
- type ConfigurationInformationWrapper
- type ConfigurationSource
- type Loader
- type Manager
- func (manager *Manager) DNS() []*basev0.DNS
- func (manager *Manager) ExposeConfiguration(ctx context.Context, service *configurations.Service, ...) error
- func (manager *Manager) GetConfigurations(ctx context.Context) ([]*basev0.Configuration, error)
- func (manager *Manager) GetDNS(ctx context.Context, svc *configurations.Service, endpointName string) (*basev0.DNS, error)
- func (manager *Manager) GetProjectConfiguration(_ context.Context, name string) (*basev0.Configuration, error)
- func (manager *Manager) GetServiceConfiguration(_ context.Context, service *configurations.Service) (*basev0.Configuration, error)
- func (manager *Manager) GetSharedServiceConfiguration(_ context.Context, unique string) ([]*basev0.Configuration, error)
- func (manager *Manager) Load(ctx context.Context, env *configurations.Environment) error
- func (manager *Manager) LoadConfigurations(_ context.Context) error
- func (manager *Manager) LoadDNS(_ context.Context) error
- func (manager *Manager) Restrict(_ context.Context, values []*configurations.Service) error
- func (manager *Manager) WithLoader(loader Loader) *Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFromPath ¶ added in v0.1.39
ExtractFromPath gets applications/app/services/ServiceWithApplication and we want to extract app/ServiceWithApplication
func LoadConfigurationsFromEnvFiles ¶ added in v0.1.62
Types ¶
type ConfigurationInformationLocalReader ¶ added in v0.1.62
type ConfigurationInformationLocalReader struct {
// contains filtered or unexported fields
}
func NewConfigurationLocalReader ¶ added in v0.1.62
func NewConfigurationLocalReader(_ context.Context, project *configurations.Project) (*ConfigurationInformationLocalReader, error)
func (*ConfigurationInformationLocalReader) Configurations ¶ added in v0.1.64
func (local *ConfigurationInformationLocalReader) Configurations() []*basev0.Configuration
func (*ConfigurationInformationLocalReader) DNS ¶ added in v0.1.64
func (local *ConfigurationInformationLocalReader) DNS() []*basev0.DNS
func (*ConfigurationInformationLocalReader) Load ¶ added in v0.1.62
func (local *ConfigurationInformationLocalReader) Load(ctx context.Context, env *configurations.Environment) error
type ConfigurationInformationWrapper ¶ added in v0.1.62
type ConfigurationInformationWrapper struct {
*basev0.ConfigurationInformation
}
type ConfigurationSource ¶ added in v0.1.62
type ConfigurationSource struct { ServiceWithApplication *configurations.ServiceWithApplication Name string }
func FromService ¶
func FromService(service *configurations.Service, dep string) (*ConfigurationSource, error)
FromService satisfies this format - Name - unique:Name
type Loader ¶ added in v0.1.64
type Loader interface { Load(ctx context.Context, env *configurations.Environment) error Configurations() []*basev0.Configuration DNS() []*basev0.DNS }
type Manager ¶ added in v0.1.64
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v0.1.64
func (*Manager) ExposeConfiguration ¶ added in v0.1.64
func (manager *Manager) ExposeConfiguration(ctx context.Context, service *configurations.Service, confs ...*basev0.Configuration) error
func (*Manager) GetConfigurations ¶ added in v0.1.64
func (*Manager) GetProjectConfiguration ¶ added in v0.1.64
func (*Manager) GetServiceConfiguration ¶ added in v0.1.64
func (manager *Manager) GetServiceConfiguration(_ context.Context, service *configurations.Service) (*basev0.Configuration, error)
func (*Manager) GetSharedServiceConfiguration ¶ added in v0.1.64
func (*Manager) Load ¶ added in v0.1.64
func (manager *Manager) Load(ctx context.Context, env *configurations.Environment) error
func (*Manager) LoadConfigurations ¶ added in v0.1.64
func (*Manager) WithLoader ¶ added in v0.1.64
Click to show internal directories.
Click to hide internal directories.