Documentation ¶
Index ¶
- Constants
- func CreateAsCA(cfg *certutil.Config) (*x509.Certificate, crypto.Signer, error)
- func CreateFromCA(cfg *certutil.Config, caCrt *x509.Certificate, caKey crypto.Signer) (encodedKey, encodedCrt []byte, err error)
- func FetchEtcdCertAndKey(etcdNode *pb.Node, baseName string) (*x509.Certificate, crypto.Signer, error)
- func GetAPIServerClientCrtConfig() *certutil.Config
- func GetCaCrtConfig() *certutil.Config
- func GetPeerCrtConfig(hostName, IP string) (*certutil.Config, error)
- func GetServerCrtConfig(hostName, IP string) (*certutil.Config, error)
- func NewDeployEtcdOperation(config *DeployEtcdOperationConfig) (*deployEtcdOperation, error)
- func ToByte(crt *x509.Certificate, key crypto.Signer) (encodedKey, encodedCrt []byte, err error)
- type DeployEtcdOperationConfig
Constants ¶
View Source
const ( DefaultPKIDir = "/etc/kubernetes/pki/" DefaultEtcdCACertPath = defautEtcdPKIDir + "/" + defaultEtcdCACertName )
Variables ¶
This section is empty.
Functions ¶
func CreateAsCA ¶
CreateAsCA creates a certificate authority, returning the created CA so it can be used to sign child certs.
func CreateFromCA ¶
func FetchEtcdCertAndKey ¶
func GetCaCrtConfig ¶
func NewDeployEtcdOperation ¶
func NewDeployEtcdOperation(config *DeployEtcdOperationConfig) (*deployEtcdOperation, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.