Documentation ¶
Index ¶
- Constants
- func NewFakeYurtHubCertManager(rootDir, yurthubConfigFile, certificatePEM, keyPEM string) (interfaces.YurtCertificateManager, error)
- func NewYurtHubCertManager(cfg *config.YurtHubConfiguration) (interfaces.YurtCertificateManager, error)
- type FakeYurtHubCertManager
- func (fyc *FakeYurtHubCertManager) Current() *tls.Certificate
- func (fyc *FakeYurtHubCertManager) GetCaFile() string
- func (fyc *FakeYurtHubCertManager) GetConfFilePath() string
- func (fyc *FakeYurtHubCertManager) NotExpired() bool
- func (fyc *FakeYurtHubCertManager) ServerHealthy() bool
- func (fyc *FakeYurtHubCertManager) Start()
- func (fyc *FakeYurtHubCertManager) Stop()
- func (fyc *FakeYurtHubCertManager) Update(_ *config.YurtHubConfiguration) error
Constants ¶
View Source
const ( HubName = "yurthub" HubRootDir = "/var/lib/" YurtHubCSROrg = "openyurt:yurthub" )
Variables ¶
This section is empty.
Functions ¶
func NewFakeYurtHubCertManager ¶ added in v0.4.1
func NewFakeYurtHubCertManager(rootDir, yurthubConfigFile, certificatePEM, keyPEM string) (interfaces.YurtCertificateManager, error)
NewFakeYurtHubCertManager new a YurtCertificateManager instance
func NewYurtHubCertManager ¶
func NewYurtHubCertManager(cfg *config.YurtHubConfiguration) (interfaces.YurtCertificateManager, error)
NewYurtHubCertManager new a YurtCertificateManager instance
Types ¶
type FakeYurtHubCertManager ¶ added in v1.1.0
type FakeYurtHubCertManager struct {
// contains filtered or unexported fields
}
func (*FakeYurtHubCertManager) Current ¶ added in v1.1.0
func (fyc *FakeYurtHubCertManager) Current() *tls.Certificate
Current returns the certificate created by the entered fyc.certificatePEM and fyc.keyPEM
func (*FakeYurtHubCertManager) GetCaFile ¶ added in v1.1.0
func (fyc *FakeYurtHubCertManager) GetCaFile() string
GetCaFile returns the empty path
func (*FakeYurtHubCertManager) GetConfFilePath ¶ added in v1.1.0
func (fyc *FakeYurtHubCertManager) GetConfFilePath() string
GetConfFilePath returns the path of yurtHub config file path
func (*FakeYurtHubCertManager) NotExpired ¶ added in v1.1.0
func (fyc *FakeYurtHubCertManager) NotExpired() bool
NotExpired returns true
func (*FakeYurtHubCertManager) ServerHealthy ¶ added in v1.1.0
func (fyc *FakeYurtHubCertManager) ServerHealthy() bool
ServerHealthy returns true
func (*FakeYurtHubCertManager) Start ¶ added in v1.1.0
func (fyc *FakeYurtHubCertManager) Start()
Start create the yurthub.conf file
func (*FakeYurtHubCertManager) Stop ¶ added in v1.1.0
func (fyc *FakeYurtHubCertManager) Stop()
Stop do nothing
func (*FakeYurtHubCertManager) Update ¶ added in v1.1.0
func (fyc *FakeYurtHubCertManager) Update(_ *config.YurtHubConfiguration) error
Update do nothing
Click to show internal directories.
Click to hide internal directories.