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-08 05:02:04 -04:00
|
|
|
"github.com/edgelesssys/constellation/internal/cloud/cloudprovider"
|
|
|
|
"github.com/edgelesssys/constellation/internal/config"
|
2022-08-25 08:06:29 -04:00
|
|
|
"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.
|
2022-09-08 05:02:04 -04:00
|
|
|
func (c *Checker) CheckLicense(ctx context.Context, provider cloudprovider.Provider, providerCfg config.ProviderConfig, printer func(string, ...any)) error {
|
2022-08-25 08:06:29 -04:00
|
|
|
return nil
|
|
|
|
}
|