mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
519efe637d
* Clean up license checker code Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Create license check depending on init/upgrade actions Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Run license check in Terraform provider Signed-off-by: Daniel Weiße <dw@edgeless.systems> * fix license integration test action Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Run tests with enterprise tag Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Allow b64 encoding for license ID Signed-off-by: Daniel Weiße <dw@edgeless.systems> * Update checker_enterprise.go --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>
23 lines
636 B
Go
23 lines
636 B
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
// Package license provides functions to check a user's Constellation license.
|
|
package license
|
|
|
|
// Action performed by Constellation.
|
|
type Action string
|
|
|
|
const (
|
|
// CommunityLicense is used by everyone who has not bought an enterprise license.
|
|
CommunityLicense = "00000000-0000-0000-0000-000000000000"
|
|
|
|
// 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"
|
|
)
|