config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New(configService configService, name string, defaultConfig bool) (*Config, error)

func (*Config) CACert

func (c *Config) CACert() string

func (*Config) GetBool

func (c *Config) GetBool(key string) bool

func (*Config) GetDuration

func (c *Config) GetDuration(key string) time.Duration

func (*Config) GetPath

func (c *Config) GetPath(key string) string

func (*Config) GetString

func (c *Config) GetString(key string) string

func (*Config) Identities

func (c *Config) Identities() ([]Identity, error)

func (*Config) IsSet

func (c *Config) IsSet(key string) bool

func (*Config) ServerID

func (c *Config) ServerID() string

func (*Config) ServerURL

func (c *Config) ServerURL() string

func (*Config) TranslatePath

func (c *Config) TranslatePath(path string) string

TranslatePath translates the passed path relative to the path from which the configuration has been loaded

func (*Config) UnmarshalKey

func (c *Config) UnmarshalKey(key string, rawVal interface{}) error

func (*Config) VaultPersistencePrefix

func (c *Config) VaultPersistencePrefix() string

func (*Config) VaultPersistenceType

func (c *Config) VaultPersistenceType() string

type Identities

type Identities struct {
	Identities []Identity `yaml:"identities,omitempty"`
}

type Identity

type Identity struct {
	// Name of the resolver
	Name string `yaml:"name,omitempty"`
	Cert string `yaml:"cert,omitempty"`
	Key  string `yaml:"key,omitempty"`
}

Identity models an Orion identity

Jump to

Keyboard shortcuts

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