services

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry manages service creation and registration for rotation targets

func NewRegistry

func NewRegistry() *Registry

NewRegistry creates a new service registry with built-in services

func NewRegistryWithDataDriven

func NewRegistryWithDataDriven(repository *dsopsdata.Repository) *Registry

NewRegistryWithDataDriven creates a new service registry with dsops-data integration

func (*Registry) CreateService

func (r *Registry) CreateService(name string, cfg config.ServiceConfig) (service.Service, error)

CreateService creates a service instance from configuration

func (*Registry) GetSupportedTypes

func (r *Registry) GetSupportedTypes() []string

GetSupportedTypes returns a list of supported service types

func (*Registry) HasImplementation

func (r *Registry) HasImplementation(serviceType string) bool

HasImplementation checks if a service type has an actual implementation

func (*Registry) IsSupported

func (r *Registry) IsSupported(serviceType string) bool

IsSupported checks if a service type is supported

func (*Registry) RegisterFactory

func (r *Registry) RegisterFactory(serviceType string, factory ServiceFactory)

RegisterFactory registers a service factory for a given type

type ServiceFactory

type ServiceFactory func(name string, config map[string]interface{}) (service.Service, error)

ServiceFactory creates a service instance from configuration

Jump to

Keyboard shortcuts

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