certmanager

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertFileType

type CertFileType int
const (
	RootCA CertFileType = iota
	YurthubClientCert
	YurthubClientKey
	NodeLeaseProxyClientCert
	NodeLeaseProxyClientKey
)

type CertManager

type CertManager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewCertManager

func NewCertManager(pkiDir, yurtHubNs string, yurtClient kubernetes.Interface, informerFactory informers.SharedInformerFactory) (*CertManager, error)

func (*CertManager) GetAPIServerClientCert

func (c *CertManager) GetAPIServerClientCert() *tls.Certificate

func (*CertManager) GetCaFile

func (c *CertManager) GetCaFile() string

func (*CertManager) GetFilePath

func (c *CertManager) GetFilePath(t CertFileType) string

func (*CertManager) GetNodeLeaseProxyClientCert

func (c *CertManager) GetNodeLeaseProxyClientCert() *tls.Certificate

Jump to

Keyboard shortcuts

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