controlconfig

package
v0.38.9 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 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

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

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

Returns an 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 a structure that provides access to "grpc" subsection of "control" section.

func (GRPCConfig) Endpoint

func (g GRPCConfig) Endpoint() string

Endpoint returns the value of "endpoint" config parameter.

Returns GRPCEndpointDefault if the 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