Documentation ¶
Index ¶
- Variables
- type EncryptionParameters
- type Option
- type ShareApplication
- func (a *ShareApplication) DeleteShare(ctx context.Context) error
- func (a *ShareApplication) GetShare(ctx context.Context, opts ...Option) (*share.Share, error)
- func (a *ShareApplication) RegisterShare(ctx context.Context, shr *share.Share, opts ...Option) error
- func (a *ShareApplication) UpdateShare(ctx context.Context, shr *share.Share, opts ...Option) (*share.Share, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNotFound = errors.New("user not found") ErrExternalUserNotFound = errors.New("external user not found") ErrExternalUserAlreadyExists = errors.New("external user already exists") ErrEncryptionPartRequired = errors.New("encryption part is required") ErrEncryptionNotConfigured = errors.New("encryption not configured") ErrInvalidEncryptionPart = errors.New("invalid encryption part") ErrInvalidEncryptionSession = errors.New("invalid encryption session") ErrInternal = errors.New("internal error") )
Functions ¶
This section is empty.
Types ¶
type EncryptionParameters ¶
type Option ¶
type Option func(*options)
func WithEncryptionPart ¶
func WithEncryptionSession ¶ added in v0.1.11
type ShareApplication ¶
type ShareApplication struct {
// contains filtered or unexported fields
}
func New ¶
func New(shareSvc services.ShareService, shareRepo repositories.ShareRepository, projectRepo repositories.ProjectRepository, encryptionFactory factories.EncryptionFactory, shamirJob *shamirjob.Job) *ShareApplication
func (*ShareApplication) DeleteShare ¶ added in v0.1.6
func (a *ShareApplication) DeleteShare(ctx context.Context) error
func (*ShareApplication) RegisterShare ¶
Click to show internal directories.
Click to hide internal directories.