hubself

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

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

Update do nothing

Jump to

Keyboard shortcuts

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