Documentation
¶
Overview ¶
Package runconfig stores cloudprober config that is specific to a single invocation. e.g., servers injected by external cloudprober users.
Index ¶
- func AddWebHandler(path string, f func(w http.ResponseWriter, r *http.Request)) error
- func AllLinks() []string
- func BuildTimestamp() time.Time
- func ConfigFilePath() string
- func DefaultGRPCServer() *grpc.Server
- func DefaultHTTPServeMux() *http.ServeMux
- func IsHandled(url string) bool
- func LocalRDSServer() *rdsserver.Server
- func SetBuildTimestamp(ts time.Time)
- func SetConfigFilePath(configFilePath string)
- func SetDefaultGRPCServer(s *grpc.Server)
- func SetDefaultHTTPServeMux(mux *http.ServeMux)
- func SetLocalRDSServer(srv *rdsserver.Server)
- func SetVersion(version string)
- func Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWebHandler ¶
func BuildTimestamp ¶
BuildTimestamp returns the recorded build timestamp.
func ConfigFilePath ¶
func ConfigFilePath() string
func DefaultGRPCServer ¶
DefaultGRPCServer returns the configured gRPC server and nil if gRPC server was not set.
func DefaultHTTPServeMux ¶
DefaultHTTPServeMux returns the default HTTP ServeMux.
func LocalRDSServer ¶
LocalRDSServer returns the local RDS server, set through the SetLocalRDSServer() call.
func SetBuildTimestamp ¶
SetBuildTimestamp sets the cloudprober build timestamp.
func SetConfigFilePath ¶
func SetConfigFilePath(configFilePath string)
func SetDefaultGRPCServer ¶
SetDefaultGRPCServer sets the default gRPC server.
func SetDefaultHTTPServeMux ¶
SetDefaultHTTPServeMux stores the default HTTP ServeMux in state. This allows other modules to add their own handlers to the common ServeMux.
func SetLocalRDSServer ¶
SetLocalRDSServer stores local RDS server in the state. It can later be retrieved throuhg LocalRDSServer().
Types ¶
This section is empty.