mirror of https://github.com/hashicorp/consul
26 lines
759 B
Go
26 lines
759 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package hcp
|
|
|
|
import (
|
|
"github.com/hashicorp/consul/internal/controller"
|
|
"github.com/hashicorp/consul/internal/hcp/internal/controllers"
|
|
"github.com/hashicorp/consul/internal/hcp/internal/types"
|
|
"github.com/hashicorp/consul/internal/resource"
|
|
)
|
|
|
|
// RegisterTypes adds all resource types within the "hcp" API group
|
|
// to the given type registry
|
|
func RegisterTypes(r resource.Registry) {
|
|
types.Register(r)
|
|
}
|
|
|
|
type ControllerDependencies = controllers.Dependencies
|
|
|
|
// RegisterControllers registers controllers for the catalog types with
|
|
// the given controller Manager.
|
|
func RegisterControllers(mgr *controller.Manager, deps ControllerDependencies) {
|
|
controllers.Register(mgr, deps)
|
|
}
|