pki

package
v0.0.0-...-7c21e21 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	File       = "file"
	Database   = "database"
	Kubernetes = "kubernetes"
)

Variables

This section is empty.

Functions

func NewPKI

func NewPKI() (plugin.Plugin, error)

NewPKI new

func NewStorage

func NewStorage(cfg Persistent) (pki.Storage, error)

func NewStorageDatabase

func NewStorageDatabase(cfg Persistent) (pki.Storage, error)

Types

type CloudConfig

type CloudConfig struct {
	PKI struct {
		RootCAFile    string     `yaml:"rootCAFile" json:"rootCAFile" validate:"nonzero"`
		RootCAKeyFile string     `yaml:"rootCAKeyFile" json:"rootCAKeyFile" validate:"nonzero"`
		SubDuration   int        `yaml:"subDuration" json:"subDuration" default:"7300"`
		RootDuration  int        `yaml:"rootDuration" json:"rootDuration" default:"18250"`
		Persistent    Persistent `yaml:"persistent" json:"persistent" validate:"nonzero"`
	} `yaml:"defaultpki" json:"defaultpki"`
}

CloudConfig baetyl-cloud config

type Persistent

type Persistent struct {
	Kind     string `yaml:"kind" json:"kind" validate:"nonzero"`
	Database struct {
		Type            string `yaml:"type" json:"type" validate:"nonzero"`
		URL             string `yaml:"url" json:"url" validate:"nonzero"`
		MaxConns        int    `yaml:"maxConns" json:"maxConns" default:"20"`
		MaxIdleConns    int    `yaml:"maxIdleConns" json:"maxIdleConns" default:"5"`
		ConnMaxLifetime int    `yaml:"connMaxLifetime" json:"connMaxLifetime" default:"150"`
	} `yaml:"database" json:"database" default:"{}"`
}

Jump to

Keyboard shortcuts

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