Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity interface {
Type() types.CapabilityType
}
Entity is referred as any type of schema managed by the registry ComponentDefinitions and PolicyDefinitions are examples of entities
type RegistryManager ¶
type RegistryManager struct {
// contains filtered or unexported fields
}
RegistryManager instance will expose methods for registry operations & sits between the database level operations and user facing API handlers.
func NewRegistryManager ¶
func NewRegistryManager(db *database.Handler) (*RegistryManager, error)
NewRegistryManager initializes the registry manager by creating appropriate tables. Any new entities that are added to the registry should be migrated here into the database
func (*RegistryManager) Cleanup ¶
func (rm *RegistryManager) Cleanup()
func (*RegistryManager) GetEntities ¶
func (rm *RegistryManager) GetEntities(f types.Filter) []Entity
func (*RegistryManager) RegisterEntity ¶
func (rm *RegistryManager) RegisterEntity(h Host, en Entity) error
Click to show internal directories.
Click to hide internal directories.