package
Version:
v0.5.2
Opens a new window with list of versions in this module.
Published: May 14, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateNamespaceRequest struct {
Name string `json:"name"`
Public bool `json:"public"`
}
type CreateRepoRequest struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Public bool `json:"public"`
}
type Namespace struct {
Name string `json:"name"`
Public bool `json:"public"`
}
type NamespacePermission struct {
UserID string `json:"uid"`
Namespace string `json:"namespace"`
Read bool `json:"read"`
Write bool `json:"write"`
Admin bool `json:"admin"`
}
type Repo struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Public bool `json:"public"`
}
type RepoPermission struct {
UserID string `json:"uid"`
RepoName string `json:"repo_name"`
Read bool `json:"read"`
Write bool `json:"write"`
Admin bool `json:"admin"`
}
User is the model of connected users from 3rd party providers
such as github
UserPubKey is a model storing the uid against the SSH Public Key
UserSession is a model of a connected users session.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.