config

package
v0.2300.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package config implements global configuration options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Key manager Runtime ID.
	RuntimeID string `yaml:"runtime_id"`
	// Key manager may generate a new master secret.
	MayGenerate bool `yaml:"may_generate"`
	// Base64-encoded public keys of unadvertised peers that may call protected methods.
	PrivatePeerPubKeys []string `yaml:"private_peer_pub_keys"`
}

Config is the keymanager worker configuration structure.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration settings.

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration settings.

Jump to

Keyboard shortcuts

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