service

package
v0.0.0-...-e163d20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL