Versions in this module Expand all Collapse all v0 v0.8.0 Jun 30, 2023 Changes in this version + const AuditKeyRevoke + const AuditKeyUpdate + var ErrEmptyIDParam = errors.New("grant id can't be empty") + var ErrEmptyImportedGrants = errors.New("imported grants not found") + var ErrEmptyOwner = errors.New("owner can't be empty") + var ErrGrantNotFound = errors.New("grant not found") + type ImportFromProviderCriteria struct + ProviderID string + ResourceIDs []string + ResourceTypes []string + ResourceURNs []string + type Option func(*options) + func SkipNotifications() Option + func SkipRevokeAccessInProvider() Option + type Service struct + func NewService(deps ServiceDeps) *Service + func (s *Service) BulkRevoke(ctx context.Context, filter domain.RevokeGrantsFilter, actor, reason string) ([]*domain.Grant, error) + func (s *Service) GetByID(ctx context.Context, id string) (*domain.Grant, error) + func (s *Service) ImportFromProvider(ctx context.Context, criteria ImportFromProviderCriteria) ([]*domain.Grant, error) + func (s *Service) List(ctx context.Context, filter domain.ListGrantsFilter) ([]domain.Grant, error) + func (s *Service) Prepare(ctx context.Context, appeal domain.Appeal) (*domain.Grant, error) + func (s *Service) Revoke(ctx context.Context, id, actor, reason string, opts ...Option) (*domain.Grant, error) + func (s *Service) Update(ctx context.Context, payload *domain.Grant) error + type ServiceDeps struct + AuditLogger auditLogger + Logger log.Logger + Notifier notifier + ProviderService providerService + Repository repository + ResourceService resourceService + Validator *validator.Validate