config

package
v0.14.26 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	SessionTimeoutSeconds time.Duration
	Listener              string
	Advertise             string
	Identity              identity.Identity
	IdentityConfig        identity.IdentityConfig
	IdentityCaPem         []byte
}

type Config

type Config struct {
	RootIdentityConfig identity.IdentityConfig
	RootIdentity       identity.Identity
	RootIdentityCaPem  []byte
	Enabled            bool
	Api                Api
	Enrollment         Enrollment
	Persistence        Persistence
	// contains filtered or unexported fields
}

func LoadFromFile

func LoadFromFile(path string) (*Config, error)

func LoadFromMap

func LoadFromMap(cfgmap map[interface{}]interface{}) (*Config, error)

func (*Config) CaPems

func (c *Config) CaPems() []byte

func (*Config) SessionTimeoutDuration

func (c *Config) SessionTimeoutDuration() time.Duration

type Db

type Db struct {
	ConnectionUrl string `yaml:"connectionUrl"`
	DbName        string `yaml:"dbName"`
}

type Enrollment

type Enrollment struct {
	SigningCert       identity.Identity
	SigningCertConfig identity.IdentityConfig
	SigningCertCaPem  []byte
	EdgeIdentity      EnrollmentOption
	EdgeRouter        EnrollmentOption
}

type EnrollmentOption

type EnrollmentOption struct {
	DurationMinutes time.Duration
}

type Persistence

type Persistence struct {
	Postgres *Db `yaml:"postgres"`
	// contains filtered or unexported fields
}

func (*Persistence) AddMigrationBox

func (p *Persistence) AddMigrationBox(b *packr.Box)

func (*Persistence) GetBoxes

func (p *Persistence) GetBoxes() []*packr.Box

Jump to

Keyboard shortcuts

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