license

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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