Documentation
¶
Overview ¶
Package registry provides an interface to an aggregate of deployers, and a factory for that aggregate.
Package registry provides an interface to an aggregate of deployers, and a factory for that aggregate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface { // List lists the registered deployers with their scopes. List() map[string]schema.Object // DeploymentTypes returns a slice of all deployment types in the registry. DeploymentTypes() []deployer.DeploymentType // DeployConfigSchema returns a composite schema for all types in the registry of that deployment type. DeployConfigSchema(deploymentType deployer.DeploymentType) schema.OneOf[string] // Create creates a connector with the given configuration type. The registry must identify the correct deployer // based on the type passed. Create(deploymentType deployer.DeploymentType, config any, logger log.Logger) (deployer.Connector, error) }
Registry describes the functions a deployer registry must implement.
func New ¶
func New(factory ...deployer.AnyConnectorFactory) Registry
New creates a new registry with the given factories.
Click to show internal directories.
Click to hide internal directories.