Documentation ¶
Index ¶
- Constants
- Variables
- type ImportFromProviderCriteria
- type Option
- type 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
Constants ¶
View Source
const ( AuditKeyRevoke = "grant.revoke" AuditKeyUpdate = "grant.update" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func SkipNotifications ¶
func SkipNotifications() Option
func SkipRevokeAccessInProvider ¶
func SkipRevokeAccessInProvider() Option
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(deps ServiceDeps) *Service
func (*Service) BulkRevoke ¶
func (*Service) ImportFromProvider ¶
type ServiceDeps ¶
Click to show internal directories.
Click to hide internal directories.