Documentation ¶
Index ¶
- Variables
- func EnableExternalPropertyResolvers(resolverTypes string) error
- func ExternalResolverProcessor(properties map[string]interface{}) error
- func RegisterExternalResolver(resolver ExternalResolver) error
- func RegisterPropertyResolver(resolver ExternalResolver) error
- func ResolvePropertyExternally(propertyName string) (interface{}, bool)
- func SetDefaultManager(manager *Manager)
- type ExternalResolver
- type Manager
- type PostProcessor
- type Resolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegisteredResolvers = make(map[string]ExternalResolver) EnabledResolvers []ExternalResolver )
Functions ¶
func EnableExternalPropertyResolvers ¶ added in v0.9.4
func ExternalResolverProcessor ¶ added in v0.9.4
func RegisterExternalResolver ¶ added in v0.9.4
func RegisterExternalResolver(resolver ExternalResolver) error
func RegisterPropertyResolver ¶
func RegisterPropertyResolver(resolver ExternalResolver) error
DEPRECATED
func ResolvePropertyExternally ¶ added in v0.9.4
func SetDefaultManager ¶
func SetDefaultManager(manager *Manager)
Types ¶
type ExternalResolver ¶ added in v0.9.4
type ExternalResolver interface { Name() string // Should return value and true if the given key exists in the external configuration otherwise should return nil and false. LookupValue(key string) (interface{}, bool) }
Resolver used to resolve property value from external configuration like env, file etc
func GetExternalPropertyResolver ¶ added in v0.9.4
func GetExternalPropertyResolver(resolverType string) ExternalResolver
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func DefaultManager ¶
func DefaultManager() *Manager
func NewManager ¶
func (*Manager) Finalize ¶
func (m *Manager) Finalize(processors ...PostProcessor) error
func (*Manager) GetProperty ¶
type PostProcessor ¶
type Resolver ¶
type Resolver struct { }
func (*Resolver) GetResolverInfo ¶ added in v0.9.4
func (*Resolver) GetResolverInfo() *resolve.ResolverInfo
Click to show internal directories.
Click to hide internal directories.