services

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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 {
	GetOrCreate(ctx context.Context, projectID, externalUserID, providerID string) (*user.User, error)
}

Jump to

Keyboard shortcuts

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