Documentation
¶
Overview ¶
Package settings is the HTTP adapter of the project settings: the users, the access tokens of the project and the nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the settings routes.
type Service ¶
type Service interface {
Users(ctx context.Context) ([]models.User, error)
CreateProjectToken(ctx context.Context, projectID uint, in access.NewToken) (*models.AccessToken, error)
ProjectTokens(ctx context.Context, projectID uint) ([]models.AccessToken, error)
DeleteProjectToken(ctx context.Context, projectID, tokenID uint) error
CreateNode(ctx context.Context, name string) (*access.NodeToken, error)
Nodes(ctx context.Context) ([]models.Node, error)
Node(ctx context.Context, id uint) (*models.Node, error)
IssueNodeToken(ctx context.Context, id uint) (*access.NodeToken, error)
DeleteNode(ctx context.Context, id uint) error
}
Service is what the handlers need from the access use cases.