2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-01-19 09:57:50 -05:00
|
|
|
// Package license provides functions to check a user's Constellation license.
|
2022-08-16 10:06:38 -04:00
|
|
|
package license
|
|
|
|
|
2023-12-22 04:16:36 -05:00
|
|
|
// Action performed by Constellation.
|
|
|
|
type Action string
|
2022-08-16 10:06:38 -04:00
|
|
|
|
|
|
|
const (
|
|
|
|
// CommunityLicense is used by everyone who has not bought an enterprise license.
|
|
|
|
CommunityLicense = "00000000-0000-0000-0000-000000000000"
|
2024-03-01 11:06:02 -05:00
|
|
|
// MarketplaceLicense is used by everyone who uses a marketplace image.
|
|
|
|
MarketplaceLicense = "11111111-1111-1111-1111-111111111111"
|
2022-08-16 10:06:38 -04:00
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
// Init action denotes the initialization of a Constellation cluster.
|
2022-08-16 10:06:38 -04:00
|
|
|
Init Action = "init"
|
2023-12-22 04:16:36 -05:00
|
|
|
// Apply action denotes an update of a Constellation cluster.
|
|
|
|
// It is used after a cluster has already been initialized once.
|
|
|
|
Apply Action = "apply"
|
2022-08-16 10:06:38 -04:00
|
|
|
)
|