2023-09-14 17:40:54 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
|
|
package auth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/internal/auth/internal/types"
|
|
|
|
"github.com/hashicorp/consul/internal/resource"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// API Group Information
|
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
APIGroup = types.GroupName
|
|
|
|
VersionV2Beta1 = types.VersionV2Beta1
|
|
|
|
CurrentVersion = types.CurrentVersion
|
2023-09-14 17:40:54 +00:00
|
|
|
|
|
|
|
// Resource Kind Names.
|
|
|
|
|
|
|
|
WorkloadIdentity = types.WorkloadIdentityKind
|
|
|
|
TrafficPermissions = types.TrafficPermissionsKind
|
|
|
|
ComputedTrafficPermissions = types.ComputedTrafficPermissionsKind
|
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
// Resource Types for the v2beta1 version.
|
2023-09-14 17:40:54 +00:00
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
WorkloadIdentityV2Beta1Type = types.WorkloadIdentityV2Beta1Type
|
|
|
|
TrafficPermissionsV2Beta1Type = types.TrafficPermissionsV2Beta1Type
|
|
|
|
ComputedTrafficPermissionsV2Beta1Type = types.ComputedTrafficPermissionsV2Beta1Type
|
2023-09-14 17:40:54 +00:00
|
|
|
|
|
|
|
// Resource Types for the latest version.
|
|
|
|
|
|
|
|
WorkloadIdentityType = types.WorkloadIdentityType
|
|
|
|
TrafficPermissionsType = types.TrafficPermissionsType
|
|
|
|
ComputedTrafficPermissionsType = types.ComputedTrafficPermissionsType
|
|
|
|
)
|
|
|
|
|
|
|
|
// RegisterTypes adds all resource types within the "catalog" API group
|
|
|
|
// to the given type registry
|
|
|
|
func RegisterTypes(r resource.Registry) {
|
|
|
|
types.Register(r)
|
|
|
|
}
|