package
2.16.1
Repository: https://github.com/elastic/cloud-on-k8s.git
Documentation: pkg.go.dev

# Functions

BestMatch tries to find the best matching license given a list of enterprise licenses based on the the minimal Elasticsearch version in the cluster, the desired license type and the remaining validity period of the license.
CreateTrialLicense creates en empty secret with the correct meta data to start an enterprise trial.
EnterpriseLicenses lists all Enterprise licenses or an aggregate error.
EnterpriseLicensesOrErrors lists all Enterprise licenses and all errors encountered during retrieval.
ExpectedTrialStatus creates the expected state of the trial status secret for the given trial state for reconciliation purposes.
No description provided by the author
HasRequestedLicenseLevel returns true if the operator license level matches the level expressed in the map of annotations.
IsEnterpriseTrial returns true if the given secret is a wrapper for an Enterprise Trial license.
IsOperatorLicense returns true if the given secret is a wrapper for an operator license.
LabelsForOperatorScope creates a map of labels for operator scope with licence type set to the given value.
No description provided by the author
No description provided by the author
NewLicenseChecker creates a new license checker.
NewSigner creates a new license signer from a private key.
NewTrialState creates a new trial state based on a new RSA key pair.
NewTrialStateFromStatus reconstructs trial state from a trial status secret.
NewVerifier creates a new license verifier from a DER encoded public key.
No description provided by the author
No description provided by the author
TrialLicense returns the trial license, its containing secret or an error.
UpdateEnterpriseLicense updates an Enterprise license wrapped in a secret.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventInvalidLicense describes an event fired when a license is not valid.
FileName is the name used in the license secret to point to the license data.
No description provided by the author
LicenseLabelName is a label pointing to the name of the source enterprise license.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Supported LicenseStatus values.
Supported LicenseStatus values.
Supported LicenseStatus values.
No description provided by the author
No description provided by the author
No description provided by the author
LicenseTypeLegacyTrial earlier versions of ECK used this as the trial identifier.
No description provided by the author
nolint:gosec.
nolint:gosec.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

OperatorLicenseTypeOrder license types mapped to ints in increasing order of feature sets for sorting purposes.

# Structs

No description provided by the author
No description provided by the author
Error is a custom error type that captures the resource that contained an erroneous license file for use in Kubernetes events.
No description provided by the author
No description provided by the author
Signer signs Enterprise licenses.
TrialState captures the in-memory representation of the trial status.
Verifier verifies Enterprise licenses.

# Interfaces

No description provided by the author
Signable represents data that can be signed by a Signer.

# Type aliases

No description provided by the author
LicenseStatus expresses the validity status of a license.
OperatorLicenseType is the type of operator level license a resource is describing.