Documentation ¶
Index ¶
Constants ¶
View Source
const ( ID = "env" EnableByDefault = false )
View Source
const (
EnvPropertiesPrefix = "management.endpoint.env"
)
Variables ¶
View Source
var (
DefaultKeysToSanitize = utils.NewStringSet(
`.*password.*`, `.*secret.*`,
`key`, `.*credentials.*`,
`vcap_services`, `sun.java.command`,
)
)
View Source
var Module = &bootstrap.Module{ Name: "actuator-env", Precedence: actuator.MinActuatorPrecedence, Options: []fx.Option{ fx.Provide(BindEnvProperties), fx.Invoke(register), }, }
Functions ¶
Types ¶
type EnvDescriptor ¶
type EnvDescriptor struct { ActiveProfiles []string `json:"activeProfiles,omitempty"` PropertySources []PSourceDescriptor `json:"propertySources,omitempty"` }
type EnvEndpoint ¶
type EnvEndpoint struct { actuator.WebEndpointBase // contains filtered or unexported fields }
EnvEndpoint implements actuator.Endpoint, actuator.WebEndpoint
func (*EnvEndpoint) Read ¶
func (ep *EnvEndpoint) Read(ctx context.Context, input *Input) (*EnvDescriptor, error)
Read never returns error
type EnvProperties ¶
type EnvProperties struct { // KeysToSanitize holds list of regular expressions KeysToSanitize utils.StringSet `json:"keys-to-sanitize"` }
func BindEnvProperties ¶
func BindEnvProperties(ctx *bootstrap.ApplicationContext) EnvProperties
BindHealthProperties create and bind SessionProperties, with a optional prefix
func NewEnvProperties ¶
func NewEnvProperties() *EnvProperties
NewSessionProperties create a SessionProperties with default values
type PSourceDescriptor ¶
type PSourceDescriptor struct { Name string `json:"name"` Properties map[string]PValueDescriptor `json:"properties,omitempty"` // contains filtered or unexported fields }
type PValueDescriptor ¶
type PValueDescriptor struct { Value interface{} `json:"value,omitempty"` Origin string `json:"origin,omitempty"` }
Click to show internal directories.
Click to hide internal directories.