certmanager

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 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) GetCAData added in v1.5.0

func (c *CertManager) GetCAData() []byte

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