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) DormancyCheck(ctx context.Context, criteria domain.DormancyCheckCriteria) error
- func (s *Service) GetByID(ctx context.Context, id string) (*domain.Grant, error)
- func (s *Service) GetGrantsTotalCount(ctx context.Context, filters domain.ListGrantsFilter) (int64, 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) ListUserRoles(ctx context.Context, owner string) ([]string, 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) DormancyCheck ¶ added in v0.7.5
func (*Service) GetGrantsTotalCount ¶ added in v0.7.5
func (*Service) ImportFromProvider ¶
func (*Service) ListUserRoles ¶ added in v0.7.6
type ServiceDeps ¶
Click to show internal directories.
Click to hide internal directories.