mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
45beec15f5
* enterprise build switch to disable license checking in default (OSS) version * remove community license quota * empty image references on OSS build in config Signed-off-by: Fabian Kammel <fk@edgeless.systems>
21 lines
417 B
Go
21 lines
417 B
Go
//go:build !enterprise
|
|
|
|
package license
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/edgelesssys/constellation/internal/file"
|
|
)
|
|
|
|
type Checker struct{}
|
|
|
|
func NewChecker(quotaChecker QuotaChecker, fileHandler file.Handler) *Checker {
|
|
return &Checker{}
|
|
}
|
|
|
|
// CheckLicense is a no-op for open source version of Constellation.
|
|
func (c *Checker) CheckLicense(ctx context.Context, printer func(string, ...any)) error {
|
|
return nil
|
|
}
|