Documentation ¶
Index ¶
- Variables
- func ErrCreatingUserDataDirectory(dir string) error
- func ErrEmptySchema() error
- func ErrGetById(err error, id string) error
- func ErrMarshalingRegisteryAttempts(err error) error
- func ErrRegisteringEntity(failedMsg string, hostName string) error
- func ErrUnknownHost(err error) error
- func ErrUnknownHostInMap() error
- func ErrWritingRegisteryAttempts(err error) error
- func HostnameToPascalCase(input string) string
- type MeshModelRegistrantData
- type Registry
- type RegistryManager
- func (rm *RegistryManager) Cleanup()
- func (rm *RegistryManager) GetEntities(f entity.Filter) ([]entity.Entity, int64, int, error)
- func (rm *RegistryManager) GetEntityById(f entity.Filter) (entity.Entity, error)
- func (rm *RegistryManager) GetRegistrant(e entity.Entity) v1beta1.Host
- func (rm *RegistryManager) GetRegistrants(f *v1beta1.HostFilter) ([]v1beta1.MeshModelHostsWithEntitySummary, int64, error)
- func (rm *RegistryManager) RegisterEntity(h v1beta1.Host, en entity.Entity) (bool, bool, error)
- func (rm *RegistryManager) UpdateEntityStatus(ID string, status string, entityType string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownHostCode = "replace_me" ErrEmptySchemaCode = "replace_me" ErrMarshalingRegisteryAttemptsCode = "replace_me" ErrWritingRegisteryAttemptsCode = "replace_me" ErrRegisteringEntityCode = "replace_me" ErrUnknownHostInMapCode = "replace_me" ErrCreatingUserDataDirectoryCode = "replace_me" ErrGetByIdCode = "replace_me" )
Functions ¶
func ErrCreatingUserDataDirectory ¶ added in v0.7.33
func ErrEmptySchema ¶ added in v0.7.33
func ErrEmptySchema() error
func ErrGetById ¶ added in v0.7.50
func ErrMarshalingRegisteryAttempts ¶ added in v0.7.33
func ErrRegisteringEntity ¶ added in v0.7.33
func ErrUnknownHost ¶
func ErrUnknownHostInMap ¶ added in v0.7.33
func ErrUnknownHostInMap() error
func ErrWritingRegisteryAttempts ¶ added in v0.7.33
func HostnameToPascalCase ¶ added in v0.6.54
Types ¶
type MeshModelRegistrantData ¶
type MeshModelRegistrantData struct { Host v1beta1.Host `json:"host"` EntityType entity.EntityType `json:"entityType"` Entity []byte `json:"entity"` //This will be type converted to appropriate entity on server based on passed entity type }
MeshModelRegistrantData struct defines the body of the POST request that is sent to the capability registry (Meshery)
The body contains the 1. Host information 2. Entity type 3. Entity
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 (*RegistryManager) GetEntityById ¶ added in v0.7.50
func (*RegistryManager) GetRegistrant ¶
func (rm *RegistryManager) GetRegistrant(e entity.Entity) v1beta1.Host
func (*RegistryManager) GetRegistrants ¶ added in v0.6.73
func (rm *RegistryManager) GetRegistrants(f *v1beta1.HostFilter) ([]v1beta1.MeshModelHostsWithEntitySummary, int64, error)
to be removed
func (*RegistryManager) RegisterEntity ¶
func (*RegistryManager) UpdateEntityStatus ¶ added in v0.7.14
func (rm *RegistryManager) UpdateEntityStatus(ID string, status string, entityType string) error
UpdateEntityStatus updates the ignore status of an entity based on the provided parameters. By default during models generation ignore is set to false
Click to show internal directories.
Click to hide internal directories.