mirror of
https://github.com/absmach/magistrala.git
synced 2026-08-07 07:14:46 +00:00
168e8b90cb
Property Based Tests / api-test (push) Has been cancelled
Continuous Delivery / lint-and-build (push) Has been cancelled
Deploy GitHub Pages / swagger-ui (push) Has been cancelled
CI Pipeline / Lint Proto (push) Has been cancelled
CI Pipeline / Detect Changes (push) Has been cancelled
Continuous Delivery / Build and Push Docker Images (push) Has been cancelled
CI Pipeline / lint-and-build (push) Has been cancelled
CI Pipeline / Test ${{ matrix.module }} (push) Has been cancelled
CI Pipeline / Upload Coverage (push) Has been cancelled
Signed-off-by: dusan <borovcanindusan1@gmail.com>
18 lines
572 B
Go
18 lines
572 B
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package atom
|
|
|
|
import "context"
|
|
|
|
type Projector interface {
|
|
UpsertTenant(ctx context.Context, tenant Tenant) error
|
|
UpsertEntity(ctx context.Context, entity Entity) error
|
|
UpsertGroup(ctx context.Context, group Group) error
|
|
UpsertResource(ctx context.Context, resource Resource) error
|
|
DeleteTenant(ctx context.Context, id string) error
|
|
DeleteEntity(ctx context.Context, id string) error
|
|
DeleteGroup(ctx context.Context, id string) error
|
|
DeleteResource(ctx context.Context, id string) error
|
|
}
|