Documentation ¶
Index ¶
Constants ¶
View Source
const ( ControlPlaneSaKey = "sa.key" ControlPlaneSaPub = "sa.pub" ControlPlaneFProxyCrt = "front-proxy-ca.crt" ControlPlaneFProxyKey = "front-proxy-ca.key" ControlPlaneCaKey = "ca.key" ControlPlaneCaCrt = "ca.crt" ControlPlanePath = "master" )
View Source
const ( EtcdCaCrt = "ca.crt" EtcdCaKey = "ca.key" )
Variables ¶
This section is empty.
Functions ¶
func EncodePrivateKey ¶
func EncodePrivateKey(key crypto.PrivateKey) []byte
Types ¶
type ClusterPKI ¶
type ClusterPKI struct {
Config
}
type Config ¶
type Config struct { Etcd EtcdConfig `json:"etcd"` ControlPlane ControlPlaneConfig `json:"controlPlane"` Path string `json:"path"` CertConfig pki.CertConfig `json:"certConfig"` }
Config represents the configuration for the whole cluster's PKI.
type ControlPlaneConfig ¶
type ControlPlaneConfig struct { CertDir string `json:"certDir"` CaCertFile string `json:"caCertFilename"` CaKeyFile string `json:"caKeyFilename"` SaPubFile string `json:"saPubFilename"` SaKeyFile string `json:"saKeyFilename"` ProxyCaCertFile string `json:"proxyCaCertFilename"` ProxyKeyCertFile string `json:"proxyKeyCertFilename"` }
ControlPlaneConfig is used to store the path to the several certificates for the control plane.
type ControlPlanePKI ¶
type ControlPlanePKI struct {
ClusterPKI
}
ControlPlanePKI implements the ClusterComponent interface.
func (ControlPlanePKI) Create ¶
func (cp ControlPlanePKI) Create() error
type EtcdConfig ¶
type EtcdConfig struct { CertDir string `json:"certDir"` CaCertFilename string `json:"caCertFilename"` CaKeyFilename string `json:"caKeyFilename"` ClientCertFilename string `json:"clientCertFilename"` ClientKeyFilename string `json:"clientKeyFilename"` }
EtcdConfig is used to store the path to the several certificates for etcd.
Click to show internal directories.
Click to hide internal directories.