Documentation ¶
Index ¶
- type AccessService
- func (a *AccessService) DeleteAccessKeys(ctx context.Context, keys []string) error
- func (a *AccessService) GenerateAccessKey(ctx context.Context, accessKeyPerms dto.AccessKeyPermissionsDto) (dto.AccessKeyPermissionsDto, error)
- func (a *AccessService) GetAccessKeyPermissions(ctx context.Context, key string) (*permissions.AccessKeyPermissions, bool, error)
- func (a *AccessService) GetAvailableAccessKeyPermissions(_ context.Context) []permissions.SinglePermission
- func (a *AccessService) GetMaskedKey(key string) string
- func (a *AccessService) PaginateAccessKeys(ctx context.Context, page, size int) (*repository.PaginatedAccessKeys, error)
- type EnvPerms
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessService ¶
type AccessService struct {
// contains filtered or unexported fields
}
func New ¶
func New(keys interfaces.Keys, perms interfaces.Permissions, repository interfaces.AccessRepository) *AccessService
New creates a new instance of AccessService service.
func (*AccessService) DeleteAccessKeys ¶
func (a *AccessService) DeleteAccessKeys(ctx context.Context, keys []string) error
func (*AccessService) GenerateAccessKey ¶
func (a *AccessService) GenerateAccessKey(ctx context.Context, accessKeyPerms dto.AccessKeyPermissionsDto) (dto.AccessKeyPermissionsDto, error)
func (*AccessService) GetAccessKeyPermissions ¶
func (a *AccessService) GetAccessKeyPermissions(ctx context.Context, key string) (*permissions.AccessKeyPermissions, bool, error)
func (*AccessService) GetAvailableAccessKeyPermissions ¶
func (a *AccessService) GetAvailableAccessKeyPermissions(_ context.Context) []permissions.SinglePermission
func (*AccessService) GetMaskedKey ¶
func (a *AccessService) GetMaskedKey(key string) string
func (*AccessService) PaginateAccessKeys ¶
func (a *AccessService) PaginateAccessKeys(ctx context.Context, page, size int) (*repository.PaginatedAccessKeys, error)
type EnvPerms ¶
type EnvPerms struct { Environment string Operations permissions.Operation }
Click to show internal directories.
Click to hide internal directories.