Documentation
¶
Index ¶
- type Registry
- func (r *Registry) CreateService(name string, cfg config.ServiceConfig) (service.Service, error)
- func (r *Registry) GetSupportedTypes() []string
- func (r *Registry) HasImplementation(serviceType string) bool
- func (r *Registry) IsSupported(serviceType string) bool
- func (r *Registry) RegisterFactory(serviceType string, factory ServiceFactory)
- type ServiceFactory
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 ¶
CreateService creates a service instance from configuration
func (*Registry) GetSupportedTypes ¶
GetSupportedTypes returns a list of supported service types
func (*Registry) HasImplementation ¶
HasImplementation checks if a service type has an actual implementation
func (*Registry) IsSupported ¶
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
Click to show internal directories.
Click to hide internal directories.