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