Documentation
¶
Index ¶
- type CatalogStore
- func (s *CatalogStore) Count(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (int64, error)
- func (s *CatalogStore) Create(ctx context.Context, orgId uuid.UUID, resource *domain.Catalog, ...) (*domain.Catalog, error)
- func (s *CatalogStore) CreateItem(ctx context.Context, orgId uuid.UUID, catalogName string, ...) (*domain.CatalogItem, error)
- func (s *CatalogStore) CreateOrUpdate(ctx context.Context, orgId uuid.UUID, resource *domain.Catalog, ...) (*domain.Catalog, bool, error)
- func (s *CatalogStore) CreateOrUpdateItem(ctx context.Context, orgId uuid.UUID, catalogName string, ...) (*domain.CatalogItem, bool, error)
- func (s *CatalogStore) Delete(ctx context.Context, orgId uuid.UUID, name string, ...) error
- func (s *CatalogStore) DeleteItem(ctx context.Context, orgId uuid.UUID, catalogName string, itemName string) error
- func (s *CatalogStore) Get(ctx context.Context, orgId uuid.UUID, name string) (*domain.Catalog, error)
- func (s *CatalogStore) GetItem(ctx context.Context, orgId uuid.UUID, catalogName string, itemName string) (*domain.CatalogItem, error)
- func (s *CatalogStore) InitialMigration(ctx context.Context) error
- func (s *CatalogStore) List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.CatalogList, error)
- func (s *CatalogStore) ListAllItems(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.CatalogItemList, error)
- func (s *CatalogStore) ListItems(ctx context.Context, orgId uuid.UUID, catalogName string, ...) (*domain.CatalogItemList, error)
- func (s *CatalogStore) UnsetItemOwner(ctx context.Context, tx *gorm.DB, orgId uuid.UUID, owner string) error
- func (s *CatalogStore) UnsetOwner(ctx context.Context, tx *gorm.DB, orgId uuid.UUID, owner string) error
- func (s *CatalogStore) Update(ctx context.Context, orgId uuid.UUID, resource *domain.Catalog, ...) (*domain.Catalog, error)
- func (s *CatalogStore) UpdateItem(ctx context.Context, orgId uuid.UUID, catalogName string, ...) (*domain.CatalogItem, error)
- func (s *CatalogStore) UpdateStatus(ctx context.Context, orgId uuid.UUID, resource *domain.Catalog, ...) (*domain.Catalog, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogStore ¶
type CatalogStore struct {
// contains filtered or unexported fields
}
func (*CatalogStore) Count ¶
func (s *CatalogStore) Count(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (int64, error)
func (*CatalogStore) CreateItem ¶
func (s *CatalogStore) CreateItem(ctx context.Context, orgId uuid.UUID, catalogName string, item *domain.CatalogItem) (*domain.CatalogItem, error)
func (*CatalogStore) CreateOrUpdate ¶
func (*CatalogStore) CreateOrUpdateItem ¶
func (s *CatalogStore) CreateOrUpdateItem(ctx context.Context, orgId uuid.UUID, catalogName string, item *domain.CatalogItem) (*domain.CatalogItem, bool, error)
func (*CatalogStore) Delete ¶
func (s *CatalogStore) Delete(ctx context.Context, orgId uuid.UUID, name string, callback store.RemoveOwnerCallback, callbackEvent store.EventCallback) error
func (*CatalogStore) DeleteItem ¶
func (*CatalogStore) GetItem ¶
func (s *CatalogStore) GetItem(ctx context.Context, orgId uuid.UUID, catalogName string, itemName string) (*domain.CatalogItem, error)
func (*CatalogStore) InitialMigration ¶
func (s *CatalogStore) InitialMigration(ctx context.Context) error
func (*CatalogStore) List ¶
func (s *CatalogStore) List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.CatalogList, error)
func (*CatalogStore) ListAllItems ¶
func (s *CatalogStore) ListAllItems(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.CatalogItemList, error)
func (*CatalogStore) ListItems ¶
func (s *CatalogStore) ListItems(ctx context.Context, orgId uuid.UUID, catalogName string, listParams store.ListParams) (*domain.CatalogItemList, error)
func (*CatalogStore) UnsetItemOwner ¶
func (*CatalogStore) UnsetOwner ¶
func (*CatalogStore) UpdateItem ¶
func (s *CatalogStore) UpdateItem(ctx context.Context, orgId uuid.UUID, catalogName string, item *domain.CatalogItem) (*domain.CatalogItem, error)
func (*CatalogStore) UpdateStatus ¶
type Store ¶
type Store interface {
InitialMigration(ctx context.Context) error
Create(ctx context.Context, orgId uuid.UUID, catalog *domain.Catalog, callbackEvent store.EventCallback) (*domain.Catalog, error)
Update(ctx context.Context, orgId uuid.UUID, catalog *domain.Catalog, callbackEvent store.EventCallback) (*domain.Catalog, error)
CreateOrUpdate(ctx context.Context, orgId uuid.UUID, catalog *domain.Catalog, callbackEvent store.EventCallback) (*domain.Catalog, bool, error)
Get(ctx context.Context, orgId uuid.UUID, name string) (*domain.Catalog, error)
List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.CatalogList, error)
Delete(ctx context.Context, orgId uuid.UUID, name string, callback store.RemoveOwnerCallback, callbackEvent store.EventCallback) error
UpdateStatus(ctx context.Context, orgId uuid.UUID, resource *domain.Catalog, eventCallback store.EventCallback) (*domain.Catalog, error)
Count(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (int64, error)
UnsetOwner(ctx context.Context, tx *gorm.DB, orgId uuid.UUID, owner string) error
UnsetItemOwner(ctx context.Context, tx *gorm.DB, orgId uuid.UUID, owner string) error
// CatalogItem operations
ListAllItems(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.CatalogItemList, error)
ListItems(ctx context.Context, orgId uuid.UUID, catalogName string, listParams store.ListParams) (*domain.CatalogItemList, error)
GetItem(ctx context.Context, orgId uuid.UUID, catalogName string, itemName string) (*domain.CatalogItem, error)
CreateItem(ctx context.Context, orgId uuid.UUID, catalogName string, item *domain.CatalogItem) (*domain.CatalogItem, error)
UpdateItem(ctx context.Context, orgId uuid.UUID, catalogName string, item *domain.CatalogItem) (*domain.CatalogItem, error)
CreateOrUpdateItem(ctx context.Context, orgId uuid.UUID, catalogName string, item *domain.CatalogItem) (*domain.CatalogItem, bool, error)
DeleteItem(ctx context.Context, orgId uuid.UUID, catalogName string, itemName string) error
}
func NewCatalogStore ¶
func NewCatalogStore(db *gorm.DB, log logrus.FieldLogger) Store
Click to show internal directories.
Click to hide internal directories.