Documentation ¶
Index ¶
- type Customizer
- type Environment
- type EnvironmentPropertySource
- func (s *EnvironmentPropertySource) ContainsProperty(name string) bool
- func (s *EnvironmentPropertySource) Name() string
- func (s *EnvironmentPropertySource) Property(name string) (any, bool)
- func (s *EnvironmentPropertySource) PropertyNames() []string
- func (s *EnvironmentPropertySource) PropertyOrDefault(name string, defaultValue any) any
- func (s *EnvironmentPropertySource) Source() any
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Customizer ¶
type Customizer interface {
CustomizeEnvironment(environment Environment) error
}
type Environment ¶
type Environment interface { ActiveProfiles() []string DefaultProfiles() []string IsProfileActive(profile string) bool SetActiveProfiles(profiles ...string) error AddActiveProfile(profile ...string) error SetDefaultProfiles(profiles ...string) error Merge(parent Environment) Variables() Variables PropertySources() *property.Sources PropertyResolver() property.Resolver }
func New ¶
func New() Environment
func WithSources ¶
func WithSources(sources *property.Sources) Environment
type EnvironmentPropertySource ¶
type EnvironmentPropertySource struct {
// contains filtered or unexported fields
}
func NewPropertySource ¶
func NewPropertySource() *EnvironmentPropertySource
func (*EnvironmentPropertySource) ContainsProperty ¶
func (s *EnvironmentPropertySource) ContainsProperty(name string) bool
func (*EnvironmentPropertySource) Name ¶
func (s *EnvironmentPropertySource) Name() string
func (*EnvironmentPropertySource) Property ¶
func (s *EnvironmentPropertySource) Property(name string) (any, bool)
func (*EnvironmentPropertySource) PropertyNames ¶
func (s *EnvironmentPropertySource) PropertyNames() []string
func (*EnvironmentPropertySource) PropertyOrDefault ¶
func (s *EnvironmentPropertySource) PropertyOrDefault(name string, defaultValue any) any
func (*EnvironmentPropertySource) Source ¶
func (s *EnvironmentPropertySource) Source() any
Click to show internal directories.
Click to hide internal directories.