services

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectService

type ProjectService interface {
	Create(ctx context.Context, name string) (*project.Project, error)
	SetEncryptionPart(ctx context.Context, projectID, part string) error
}

type ProviderService

type ProviderService interface {
	Configure(ctx context.Context, prov *provider.Provider) error
}

type ShareOption

type ShareOption func(*ShareOptions)

func WithEncryptionKey

func WithEncryptionKey(key string) ShareOption

type ShareOptions

type ShareOptions struct {
	EncryptionKey *string
}

type ShareService

type ShareService interface {
	Create(ctx context.Context, share *share.Share, opts ...ShareOption) error
}

type UserService

type UserService interface {
	Create(ctx context.Context, projectID string) (*user.User, error)
	Get(ctx context.Context, userID string) (*user.User, error)
	GetByExternal(ctx context.Context, externalUserID, providerID string) (*user.User, error)
	CreateExternal(ctx context.Context, projectID, userID, externalUserID, providerID string) (*user.ExternalUser, error)
}

Jump to

Keyboard shortcuts

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