controlconfig

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GRPCEndpointDefault is a default endpoint of gRPC Control service.
	GRPCEndpointDefault = ""
)

Variables

This section is empty.

Functions

func AuthorizedKeys added in v0.22.0

func AuthorizedKeys(c *config.Config) keys.PublicKeys

AuthorizedKeys parses and returns array of "authorized_keys" config parameter from "control" section.

Returns empty list if not set.

Types

type GRPCConfig

type GRPCConfig struct {
	// contains filtered or unexported fields
}

GRPCConfig is a wrapper over "grpc" config section which provides access to gRPC configuration of control service.

func GRPC

func GRPC(c *config.Config) GRPCConfig

GRPC returns structure that provides access to "grpc" subsection of "control" section.

func (GRPCConfig) Endpoint

func (g GRPCConfig) Endpoint() string

Endpoint returns value of "endpoint" config parameter.

Returns GRPCEndpointDefault if value is not a non-empty string.

Jump to

Keyboard shortcuts

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