2022-08-25 08:06:29 -04:00
|
|
|
//go:build !enterprise
|
|
|
|
|
2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-08-25 08:06:29 -04:00
|
|
|
package license
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-09-21 07:47:57 -04:00
|
|
|
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
|
|
|
"github.com/edgelesssys/constellation/v2/internal/config"
|
|
|
|
"github.com/edgelesssys/constellation/v2/internal/file"
|
2022-08-25 08:06:29 -04:00
|
|
|
)
|
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
// Checker checks the Constellation license.
|
2022-08-25 08:06:29 -04:00
|
|
|
type Checker struct{}
|
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
// NewChecker creates a new Checker.
|
2023-03-20 06:03:36 -04:00
|
|
|
func NewChecker(_ QuotaChecker, _ file.Handler) *Checker {
|
2022-08-25 08:06:29 -04:00
|
|
|
return &Checker{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// CheckLicense is a no-op for open source version of Constellation.
|
2023-03-20 06:03:36 -04:00
|
|
|
func (c *Checker) CheckLicense(_ context.Context, _ cloudprovider.Provider, _ config.ProviderConfig, _ func(string, ...any)) error {
|
2022-08-25 08:06:29 -04:00
|
|
|
return nil
|
|
|
|
}
|