registry

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL