type certificateReadWriter …
type pkiCertificateReadWriter …
func newPKICertificateReadWriter(certificateDir string, baseName string) *pkiCertificateReadWriter { … }
func (rw *pkiCertificateReadWriter) Exists() (bool, error) { … }
func fileExists(filename string) (bool, error) { … }
func (rw *pkiCertificateReadWriter) Read() (*x509.Certificate, error) { … }
func (rw *pkiCertificateReadWriter) Write(newCert *x509.Certificate, newKey crypto.Signer) error { … }
type kubeConfigReadWriter …
func newKubeconfigReadWriter(kubernetesDir string, kubeConfigFileName string, certificateDir, baseName string) *kubeConfigReadWriter { … }
func (rw *kubeConfigReadWriter) Exists() (bool, error) { … }
func (rw *kubeConfigReadWriter) Read() (*x509.Certificate, error) { … }
func (rw *kubeConfigReadWriter) Write(newCert *x509.Certificate, newKey crypto.Signer) error { … }