kubernetes

package module
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 33 Imported by: 44

Documentation

Index

Constants

View Source
const (
	EventSourceLicenseVerifier           = "License Verifier"
	EventReasonLicenseVerificationFailed = "License Verification Failed"
)

Variables

This section is empty.

Functions

func CheckLicenseEndpoint added in v0.3.0

func CheckLicenseEndpoint(config *rest.Config, apiServiceName string, features []string) error

CheckLicenseEndpoint verifies whether the provided api server has a valid license is valid for features.

func CheckLicenseFile added in v0.3.0

func CheckLicenseFile(config *rest.Config, licenseFile string) error

CheckLicenseFile verifies whether the provided license is valid for the current cluster or not.

func LicenseProvided added in v0.14.0

func LicenseProvided(cfg *rest.Config, licenseFile string) bool

func VerifyLicensePeriodically

func VerifyLicensePeriodically(config *rest.Config, licenseFile string, stopCh <-chan struct{}) error

VerifyLicensePeriodically periodically verifies whether the provided license is valid for the current cluster or not.

Types

type LicenseEnforcer

type LicenseEnforcer struct {
	// contains filtered or unexported fields
}

func MustLicenseEnforcer added in v0.12.0

func MustLicenseEnforcer(config *rest.Config, licenseFile string) *LicenseEnforcer

func NewLicenseEnforcer added in v0.3.0

func NewLicenseEnforcer(config *rest.Config, licenseFile string) (*LicenseEnforcer, error)

NewLicenseEnforcer returns a newly created license enforcer

func (*LicenseEnforcer) Install added in v0.3.0

func (le *LicenseEnforcer) Install(c *mux.PathRecorderMux)

Install adds the License info handler

func (*LicenseEnforcer) LoadLicense added in v0.3.1

func (le *LicenseEnforcer) LoadLicense() v1alpha1.License

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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