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"
|
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-12-22 04:16:36 -05:00
|
|
|
func NewChecker() *Checker {
|
2022-08-25 08:06:29 -04:00
|
|
|
return &Checker{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// CheckLicense is a no-op for open source version of Constellation.
|
2023-12-22 04:16:36 -05:00
|
|
|
func (c *Checker) CheckLicense(context.Context, cloudprovider.Provider, Action, string) (int, error) {
|
|
|
|
return 0, nil
|
2022-08-25 08:06:29 -04:00
|
|
|
}
|