Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultProject ¶
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 }
func NewService ¶
func NewService(cfg config.Config, rp repository.Project, ru repository.User, rs repository.Secret, ops *oauth2.Providers, t *telemetry.Telemetry) (Service, error)
type SettingsType ¶
type SettingsType string
const ( SettingsTypeUsers SettingsType = "users" SettingsTypeStorage SettingsType = "storage" SettingsTypeProject SettingsType = "project" )
Click to show internal directories.
Click to hide internal directories.