Documentation ¶
Overview ¶
Package gpgkey package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateGPGKeyInput ¶
CreateGPGKeyInput is the input for creating a GPG key
type GetGPGKeysInput ¶
type GetGPGKeysInput struct { // Sort specifies the field to sort on and direction Sort *db.GPGKeySortableField // PaginationOptions supports cursor based pagination PaginationOptions *pagination.Options // NamespacePath is the namespace to return gpg keys for NamespacePath string // IncludeInherited includes inherited gpg keys in the result IncludeInherited bool }
GetGPGKeysInput is the input for querying a list of gpg keys
type Service ¶
type Service interface { GetGPGKeyByID(ctx context.Context, id string) (*models.GPGKey, error) GetGPGKeys(ctx context.Context, input *GetGPGKeysInput) (*db.GPGKeysResult, error) GetGPGKeysByIDs(ctx context.Context, idList []string) ([]models.GPGKey, error) CreateGPGKey(ctx context.Context, input *CreateGPGKeyInput) (*models.GPGKey, error) DeleteGPGKey(ctx context.Context, gpgKey *models.GPGKey) error }
Service implements all gpg key related functionality
func NewService ¶
func NewService( logger logger.Logger, dbClient *db.Client, limitChecker limits.LimitChecker, activityService activityevent.Service, ) Service
NewService creates an instance of Service
Click to show internal directories.
Click to hide internal directories.