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
CheckLicenseEndpoint verifies whether the provided api server has a valid license is valid for products.
func CheckLicenseFile ¶ added in v0.3.0
CheckLicenseFile 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
Click to show internal directories.
Click to hide internal directories.