Documentation ¶
Overview ¶
Package projects provides the project related business logic.
Index ¶
- func CreateProject(ctx context.Context, be *backend.Backend, owner types.ID, name string) (*types.Project, error)
- func From(ctx context.Context) *types.Project
- func GetProject(ctx context.Context, be *backend.Backend, owner types.ID, name string) (*types.Project, error)
- func GetProjectFromAPIKey(ctx context.Context, be *backend.Backend, apiKey string) (*types.Project, error)
- func GetProjectFromSecretKey(ctx context.Context, be *backend.Backend, secretKey string) (*types.Project, error)
- func ListProjects(ctx context.Context, be *backend.Backend, owner types.ID) ([]*types.Project, error)
- func UpdateProject(ctx context.Context, be *backend.Backend, owner types.ID, id types.ID, ...) (*types.Project, error)
- func With(ctx context.Context, project *types.Project) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProject ¶
func CreateProject( ctx context.Context, be *backend.Backend, owner types.ID, name string, ) (*types.Project, error)
CreateProject creates a project.
func GetProject ¶ added in v0.2.6
func GetProject( ctx context.Context, be *backend.Backend, owner types.ID, name string, ) (*types.Project, error)
GetProject returns a project by the given name.
func GetProjectFromAPIKey ¶
func GetProjectFromAPIKey(ctx context.Context, be *backend.Backend, apiKey string) (*types.Project, error)
GetProjectFromAPIKey returns a project from an API key.
func GetProjectFromSecretKey ¶ added in v0.4.13
func GetProjectFromSecretKey(ctx context.Context, be *backend.Backend, secretKey string) (*types.Project, error)
GetProjectFromSecretKey returns a project from a secret key.
func ListProjects ¶
func ListProjects( ctx context.Context, be *backend.Backend, owner types.ID, ) ([]*types.Project, error)
ListProjects lists all projects.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.