Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(conv EntityConverter) *pgRepository
NewRepository missing godoc
func NewService ¶
func NewService(tombstoneRepo TombstoneRepository, uidService UIDService) *service
NewService missing godoc
Types ¶
type Entity ¶
type Entity struct { ID string `db:"id"` OrdID string `db:"ord_id"` ApplicationID sql.NullString `db:"app_id"` ApplicationTemplateVersionID sql.NullString `db:"app_template_version_id"` RemovalDate string `db:"removal_date"` Description sql.NullString `db:"description"` }
Entity represents a tombstone entity.
func (*Entity) DecorateWithTenantID ¶
DecorateWithTenantID decorates the entity with the given tenant ID.
type EntityConverter ¶
type EntityConverter interface { ToEntity(in *model.Tombstone) *Entity FromEntity(entity *Entity) (*model.Tombstone, error) }
EntityConverter missing godoc
type TombstoneRepository ¶
type TombstoneRepository interface { Create(ctx context.Context, tenant string, item *model.Tombstone) error CreateGlobal(ctx context.Context, model *model.Tombstone) error Update(ctx context.Context, tenant string, item *model.Tombstone) error UpdateGlobal(ctx context.Context, model *model.Tombstone) error Delete(ctx context.Context, tenant, id string) error Exists(ctx context.Context, tenant, id string) (bool, error) GetByID(ctx context.Context, tenant, id string) (*model.Tombstone, error) GetByIDGlobal(ctx context.Context, id string) (*model.Tombstone, error) ListByResourceID(ctx context.Context, tenantID, resourceID string, resourceType resource.Type) ([]*model.Tombstone, error) }
TombstoneRepository missing godoc
Click to show internal directories.
Click to hide internal directories.