runconfig

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 8

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 DefaultGRPCServer

func DefaultGRPCServer() *grpc.Server

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

func LocalRDSServer added in v0.10.5

func LocalRDSServer() *rdsserver.Server

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

func SetDefaultGRPCServer

func SetDefaultGRPCServer(s *grpc.Server) error

SetDefaultGRPCServer sets the default gRPC server.

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