project

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultProject

func DefaultProject() *project.Project

func DefaultProjectSettings

func DefaultProjectSettings() *project_settings.Settings

func DefaultStorageSettings

func DefaultStorageSettings() *storage_settings.Settings

func DefaultUserSettings

func DefaultUserSettings() *user_settings.Settings

Types

type Service

type Service interface {
	CreateProject(ctx context.Context, initializers []*project.Update) (*project.Project, error)
	GetProject(ctx context.Context) (*project.Project, error)
	UpdateProject(ctx context.Context, projectID uuid.UUID, us []*project.Update) error
	List(ctx context.Context, query *model.Pagination) (iterator.Iterator[*project.Project], int64, error)
	DeleteProject(ctx context.Context) error

	GetProjectDockerSecret(ctx context.Context) ([]byte, error)

	GetEmailProvider(ctx context.Context) (email.Gateway, error)

	GetSettings(ctx context.Context, settingsType SettingsType, ss proto.Message) error
	SetSettings(ctx context.Context, settingsType SettingsType, ss proto.Message) error
	GetProjectSettings(ctx context.Context) (*project_settings.Settings, error)
	UpdateProjectSettings(ctx context.Context, su []*project_settings.Update) error
}

type SettingsType

type SettingsType string
const (
	SettingsTypeUsers   SettingsType = "users"
	SettingsTypeStorage SettingsType = "storage"
	SettingsTypeProject SettingsType = "project"
)

Jump to

Keyboard shortcuts

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