runconfig

package
v0.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package runconfig stores cloudprober config that is specific to a single invocation. e.g., servers injected by external cloudprober users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTimestamp added in v0.12.1

func BuildTimestamp() time.Time

BuildTimestamp returns the recorded build timestamp.

func DefaultGRPCServer

func DefaultGRPCServer() *grpc.Server

DefaultGRPCServer returns the configured gRPC server and nil if gRPC server was not set.

func DefaultHTTPServeMux added in v0.11.8

func DefaultHTTPServeMux() *http.ServeMux

DefaultHTTPServeMux returns the default HTTP ServeMux.

func LocalRDSServer added in v0.10.5

func LocalRDSServer() *rdsserver.Server

LocalRDSServer returns the local RDS server, set through the SetLocalRDSServer() call.

func SetBuildTimestamp added in v0.12.1

func SetBuildTimestamp(ts time.Time)

SetBuildTimestamp sets the cloudprober build timestamp.

func SetDefaultGRPCServer

func SetDefaultGRPCServer(s *grpc.Server)

SetDefaultGRPCServer sets the default gRPC server.

func SetDefaultHTTPServeMux added in v0.11.8

func SetDefaultHTTPServeMux(mux *http.ServeMux)

SetDefaultHTTPServeMux stores the default HTTP ServeMux in runconfig. This allows other modules to add their own handlers to the common ServeMux.

func SetLocalRDSServer added in v0.10.5

func SetLocalRDSServer(srv *rdsserver.Server)

SetLocalRDSServer stores local RDS server in the runconfig. It can later be retrieved throuhg LocalRDSServer().

func SetVersion

func SetVersion(version string)

SetVersion sets the cloudprober version.

func Version

func Version() string

Version returns the runconfig version set through the SetVersion() function call. It's useful only if called after SetVersion(), otherwise it will return an empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL