projectapp

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProjectNotFound             = errors.New("project not found")
	ErrNoProviderSpecified         = errors.New("no provider specified")
	ErrProviderMismatch            = errors.New("provider mismatch")
	ErrKeyTypeNotSpecified         = errors.New("key type not specified")
	ErrInvalidProviderConfig       = errors.New("invalid provider config")
	ErrUnknownProviderType         = errors.New("unknown provider type")
	ErrProviderAlreadyExists       = errors.New("custom authentication already registered for this project")
	ErrProviderNotFound            = errors.New("custom authentication not found")
	ErrInvalidEncryptionPart       = errors.New("invalid encryption part")
	ErrInvalidEncryptionSession    = errors.New("invalid encryption session")
	ErrEncryptionPartAlreadyExists = errors.New("encryption part already exists")
	ErrEncryptionNotConfigured     = errors.New("encryption not configured")
	ErrJWKPemConflict              = errors.New("jwk and pem cannot be set at the same time")
	ErrInternal                    = errors.New("internal error")
)

Functions

This section is empty.

Types

type ProjectApplication

type ProjectApplication struct {
	// contains filtered or unexported fields
}

func (*ProjectApplication) AddProviders

func (a *ProjectApplication) AddProviders(ctx context.Context, opts ...ProviderOption) ([]*provider.Provider, error)

func (*ProjectApplication) CreateProject

func (a *ProjectApplication) CreateProject(ctx context.Context, name string, opts ...ProjectOption) (*project.Project, error)

func (*ProjectApplication) EncryptProjectShares

func (a *ProjectApplication) EncryptProjectShares(ctx context.Context, externalPart string) error

func (*ProjectApplication) GetProject

func (a *ProjectApplication) GetProject(ctx context.Context) (*project.Project, error)

func (*ProjectApplication) GetProviderDetail

func (a *ProjectApplication) GetProviderDetail(ctx context.Context, providerID string) (*provider.Provider, error)

func (*ProjectApplication) GetProviders

func (a *ProjectApplication) GetProviders(ctx context.Context) ([]*provider.Provider, error)

func (*ProjectApplication) RegisterEncryptionKey

func (a *ProjectApplication) RegisterEncryptionKey(ctx context.Context) (string, error)

func (*ProjectApplication) RegisterEncryptionSession added in v0.1.11

func (a *ProjectApplication) RegisterEncryptionSession(ctx context.Context, encryptionPart string) (string, error)

func (*ProjectApplication) RemoveProvider

func (a *ProjectApplication) RemoveProvider(ctx context.Context, providerID string) error

func (*ProjectApplication) UpdateProvider

func (a *ProjectApplication) UpdateProvider(ctx context.Context, providerID string, opts ...ProviderOption) error

type ProjectOption

type ProjectOption func(options *projectOptions)

func WithEncryptionKey

func WithEncryptionKey() ProjectOption

type ProviderOption

type ProviderOption func(*providerConfig)

func WithCustomJWK added in v0.1.5

func WithCustomJWK(url string) ProviderOption

func WithCustomPEM added in v0.1.5

func WithCustomPEM(pem string, keyType provider.KeyType) ProviderOption

func WithOpenfort

func WithOpenfort(openfortProjectID string) ProviderOption

Jump to

Keyboard shortcuts

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