registry

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func (*Registry) CleanUpOrphanedExternalServices

func (r *Registry) CleanUpOrphanedExternalServices(ctx context.Context) error

CleanUpOrphanedExternalServices remove external services present in store that have not been registered on startup.

func (*Registry) GetExternalServiceNames

func (r *Registry) GetExternalServiceNames(ctx context.Context) ([]string, error)

GetExternalServiceNames returns the list of external services registered in store.

func (*Registry) HasExternalService

func (r *Registry) HasExternalService(ctx context.Context, name string) (bool, error)

HasExternalService returns whether an external service has been saved with that name.

func (*Registry) RemoveExternalService

func (r *Registry) RemoveExternalService(ctx context.Context, name string) error

RemoveExternalService removes an external service and its associated resources from the database (ex: service account, token).

func (*Registry) SaveExternalService

SaveExternalService creates or updates an external service in the database. Based on the requested auth provider, it generates client_id, secrets and any additional provider specificities (ex: rsa keys). It also ensures that the associated service account has the correct permissions.

Jump to

Keyboard shortcuts

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