Documentation ¶
Index ¶
- type GIT
- func (g *GIT) AddGroupMember(ctx context.Context, gid, userID int) error
- func (g *GIT) AddSSHKeyForUser(ctx context.Context, userID int, title, key string) error
- func (g *GIT) CreateFile(ctx context.Context, pid int, fullName, content, branch, commit string) error
- func (g *GIT) CreateGroup(ctx context.Context, name, path string) (*define.Group, error)
- func (g *GIT) CreateProject(ctx context.Context, name string, namespaceID int) (*define.Project, error)
- func (g *GIT) CreateUser(ctx context.Context, email, password, username, name string, ...) (*define.User, error)
- func (g *GIT) CreateUserToken(ctx context.Context, uid int) (string, error)
- func (g *GIT) DeleteSSHKeyFromUser(ctx context.Context, userID, keyID int) error
- func (g *GIT) GetGroupByID(ctx context.Context, gid int) (*define.Group, error)
- func (g *GIT) GetGroupByName(ctx context.Context, name string) (*define.Group, error)
- func (g *GIT) GetGroupProjects(ctx context.Context, gid interface{}) ([]*define.Project, error)
- func (g *GIT) GetProjectByID(ctx context.Context, id int) (*define.Project, error)
- func (g *GIT) GetProjectByName(ctx context.Context, name string) (*define.Project, error)
- func (g *GIT) GetUser(ctx context.Context, username string) (*define.User, error)
- func (g *GIT) ListGroup(ctx context.Context) ([]*define.Group, error)
- func (g *GIT) ListSSHKey(ctx context.Context, userID int) ([]*define.SSHKey, error)
- func (g *GIT) RemoveGroupMember(ctx context.Context, gid, userID int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GIT ¶
type GIT struct {
// contains filtered or unexported fields
}
TODO: init repo TODO: bind project
func (*GIT) AddGroupMember ¶
func (*GIT) AddSSHKeyForUser ¶
func (*GIT) CreateFile ¶
func (*GIT) CreateGroup ¶
func (*GIT) CreateProject ¶
func (*GIT) CreateUser ¶
func (*GIT) CreateUserToken ¶
func (*GIT) DeleteSSHKeyFromUser ¶
func (*GIT) GetGroupByID ¶
func (*GIT) GetGroupByName ¶
func (*GIT) GetGroupProjects ¶
func (*GIT) GetProjectByID ¶
func (*GIT) GetProjectByName ¶
func (*GIT) ListSSHKey ¶
Click to show internal directories.
Click to hide internal directories.