Documentation
¶
Index ¶
Constants ¶
View Source
const ( File = "file" Database = "database" Kubernetes = "kubernetes" )
Variables ¶
This section is empty.
Functions ¶
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:"{}"`
}
Click to show internal directories.
Click to hide internal directories.