license

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package license provides functions to check a user's Constellation license.

Index

Constants

View Source
const (
	// CommunityLicense is used by everyone who has not bought an enterprise license.
	CommunityLicense = "00000000-0000-0000-0000-000000000000"
	// MarketplaceLicense is used by everyone who uses a marketplace image.
	MarketplaceLicense = "11111111-1111-1111-1111-111111111111"

	// Init action denotes the initialization of a Constellation cluster.
	Init Action = "init"
	// Apply action denotes an update of a Constellation cluster.
	// It is used after a cluster has already been initialized once.
	Apply Action = "apply"
)

Variables

This section is empty.

Functions

func FromBytes added in v2.14.0

func FromBytes(license []byte) (string, error)

FromBytes reads the given license bytes and returns it as a string.

Types

type Action

type Action string

Action performed by Constellation.

type Checker

type Checker struct{}

Checker checks the Constellation license.

func NewChecker

func NewChecker() *Checker

NewChecker creates a new Checker.

func (*Checker) CheckLicense

CheckLicense is a no-op for open source version of Constellation.

Jump to

Keyboard shortcuts

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