config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsTablePrefix = "ca_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CsrTemplates

type CsrTemplates struct {
	RootCa         RootCa         `yaml:"root-ca"`
	IntermediateCa IntermediateCa `yaml:"intermediate-ca"`
}

type HTTP

type HTTP struct {
	OcspListen string `yaml:"ocsp-listen"`
	CaListen   string `yaml:"ca-listen"`
	Listen     string `yaml:"listen"`
}

type IConfig

type IConfig struct {
	Log            Log                   `yaml:"log"`
	Keymanager     Keymanager            `yaml:"keymanager"`
	Singleca       Singleca              `yaml:"singleca"`
	OCSPHost       string                `yaml:"ocsp-host"`
	HTTP           HTTP                  `yaml:"http"`
	Mysql          Mysql                 `yaml:"mysql"`
	Vault          Vault                 `yaml:"vault"`
	Influxdb       influxdb.CustomConfig `yaml:"influxdb"`
	SwaggerEnabled bool                  `yaml:"swagger-enabled"`
	Debug          bool                  `yaml:"debug"`
	Version        string                `yaml:"version"`
	Hostname       string                `yaml:"hostname"`
	Ocsp           Ocsp                  `yaml:"ocsp"`
}

type IntermediateCa

type IntermediateCa struct {
	O      string `yaml:"o"`
	Ou     string `yaml:"ou"`
	Expiry string `yaml:"expiry"`
}

type Keymanager

type Keymanager struct {
	UpperCa      []string     `yaml:"upper-ca"`
	SelfSign     bool         `yaml:"self-sign"`
	CsrTemplates CsrTemplates `yaml:"csr-templates"`
}

type Log

type Log struct {
	LogProxy LogProxy `yaml:"log-proxy"`
}

type LogProxy

type LogProxy struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
	Key  string `yaml:"key"`
}

type Mysql

type Mysql struct {
	Dsn string `yaml:"dsn"`
}

type Ocsp

type Ocsp struct {
	CacheTime int `yaml:"cache-time"`
}

ocsp

type Registry

type Registry struct {
	SelfName string `yaml:"self-name"`
	Command  string `yaml:"command"`
}

type RootCa

type RootCa struct {
	O      string `yaml:"o"`
	Expiry string `yaml:"expiry"`
}

type Singleca

type Singleca struct {
	ConfigPath string `yaml:"config-path"`

	// Raw
	CfsslConfig *cfssl_config.Config
}

type Vault

type Vault struct {
	Enabled bool   `yaml:"enabled"`
	Addr    string `yaml:"addr"`
	Token   string `yaml:"token"`
	Prefix  string `yaml:"prefix"`
}

Jump to

Keyboard shortcuts

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