mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 08:36:46 +00:00
tenancy: split up tenancy types.go
into CE version (#18966)
This commit is contained in:
parent
0a11499588
commit
d2be7577b9
@ -3,16 +3,8 @@
|
|||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/hashicorp/consul/internal/resource"
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
GroupName = "tenancy"
|
GroupName = "tenancy"
|
||||||
VersionV1Alpha1 = "v1alpha1"
|
VersionV1Alpha1 = "v1alpha1"
|
||||||
CurrentVersion = VersionV1Alpha1
|
CurrentVersion = VersionV1Alpha1
|
||||||
)
|
)
|
||||||
|
|
||||||
func Register(r resource.Registry) {
|
|
||||||
RegisterNamespace(r)
|
|
||||||
}
|
|
||||||
|
13
internal/tenancy/internal/types/types_ce.go
Normal file
13
internal/tenancy/internal/types/types_ce.go
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// Copyright (c) HashiCorp, Inc.
|
||||||
|
// SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
//go:build !consulent
|
||||||
|
// +build !consulent
|
||||||
|
|
||||||
|
package types
|
||||||
|
|
||||||
|
import "github.com/hashicorp/consul/internal/resource"
|
||||||
|
|
||||||
|
func Register(r resource.Registry) {
|
||||||
|
RegisterNamespace(r)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user