mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-27 00:19:36 -05:00
161bb37cba
* discuss miniup config.Default() usage + discourage usage for Default() in comment * Update internal/config/config_test.go Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> * add enterprise version check for config.Default * split config comment lines * daniel feedback * featureset.CanUseEmbeddedMeasurmentsAndImage --------- Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
32 lines
1008 B
Go
32 lines
1008 B
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
// package featureset provides a way to check whether a feature is enabled in the current build.
|
|
package featureset
|
|
|
|
// Edition is the edition of a build.
|
|
type Edition int
|
|
|
|
const (
|
|
// EditionOSS is the open-source software edition.
|
|
EditionOSS Edition = iota
|
|
// EditionEnterprise is the enterprise edition.
|
|
EditionEnterprise
|
|
)
|
|
|
|
// CanFetchMeasurements returns whether the current build can fetch measurements.
|
|
const CanFetchMeasurements = canFetchMeasurements
|
|
|
|
// CanUseEmbeddedMeasurmentsAndImage returns whether the current build can use embedded measurements and can provide a node image.
|
|
const CanUseEmbeddedMeasurmentsAndImage = canUseEmbeddedMeasurmentsAndImage
|
|
|
|
// CanUpgradeCheck returns whether the current build can check for upgrades.
|
|
// This also includes fetching new measurements.
|
|
const CanUpgradeCheck = canUpgradeCheck
|
|
|
|
// CurrentEdition is the edition of the current build.
|
|
const CurrentEdition = edition
|