2022-08-25 14:06:29 +02:00
|
|
|
//go:build !enterprise
|
|
|
|
|
2022-09-05 09:06:08 +02:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-08-25 14:06:29 +02:00
|
|
|
package license
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-09-21 13:47:57 +02: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 14:06:29 +02:00
|
|
|
)
|
|
|
|
|
2022-11-09 15:57:54 +01:00
|
|
|
// Checker checks the Constellation license.
|
2022-08-25 14:06:29 +02:00
|
|
|
type Checker struct{}
|
|
|
|
|
2022-11-09 15:57:54 +01:00
|
|
|
// NewChecker creates a new Checker.
|
2022-08-25 14:06:29 +02:00
|
|
|
func NewChecker(quotaChecker QuotaChecker, fileHandler file.Handler) *Checker {
|
|
|
|
return &Checker{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// CheckLicense is a no-op for open source version of Constellation.
|
2022-09-08 11:02:04 +02:00
|
|
|
func (c *Checker) CheckLicense(ctx context.Context, provider cloudprovider.Provider, providerCfg config.ProviderConfig, printer func(string, ...any)) error {
|
2022-08-25 14:06:29 +02:00
|
|
|
return nil
|
|
|
|
}
|