Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ActivityService ¶ added in v0.6.26
type Key ¶
type Key struct { ID string URN string ProjectID string ProjectSlug string Key string Description string ResourceID string }
func (Key) ToKeyLogData ¶ added in v0.6.26
func (key Key) ToKeyLogData() KeyLogData
type KeyLogData ¶ added in v0.6.26
type ProjectService ¶
type RelationService ¶
type RelationService interface { Create(ctx context.Context, rel relation.RelationV2) (relation.RelationV2, error) CheckPermission(ctx context.Context, usr user.User, resourceNS namespace.Namespace, resourceIdxa string, action action.Action) (bool, error) LookupResources(ctx context.Context, resourceType, permission, subjectType, subjectID string) ([]string, error) }
type Repository ¶
type ResourceService ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger log.Logger, repository Repository, resourceService ResourceService, relationService RelationService, projectService ProjectService, userService UserService, activityService ActivityService) *Service
func (Service) Upsert ¶ added in v0.6.22
func (s Service) Upsert(ctx context.Context, sd ServiceData) (ServiceData, error)
type ServiceData ¶ added in v0.6.22
type Transactor ¶
Click to show internal directories.
Click to hide internal directories.