kubernetes

package module
Version: v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 31 Imported by: 30

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 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 NewLicenseEnforcer added in v0.3.0

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

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

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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