clusterpki

package
v0.30.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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 Etcd

type Etcd struct {
	ClusterPKI
}

Etcd implements the ClusterComponent Interface.

func (Etcd) Create

func (e Etcd) 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.

Jump to

Keyboard shortcuts

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