Documentation ¶
Index ¶
- func Access(repo string, verb string, users []string) (bool, error)
- func AccessWithLogin(org, repo, verb, username, password string) (bool, error)
- func Add(repoId, branch string, files []AddFile, commitMessage string) error
- func AddSubtrees(repoId, branch string, subtrees []AddSubtree) error
- func Blob(repoId, ref, path string) (io.ReadCloser, error)
- func Create(repoId string, req *CreateRequest) error
- func Delete(repoId string) error
- func Exist(repoId string) bool
- func GitServer(command string, stdin io.Reader, stdout io.Writer, stderr io.Writer, ...) (*exec.Cmd, error)
- func Log(repoId, ref string) ([]byte, error)
- func Pack(repoId string, service string, out io.Writer, in io.Reader) error
- func RefsInfo(repoId string, service string, out io.Writer) error
- func TemplateId(repo string) (string, error)
- type AddFile
- type AddSubtree
- type CreateRequest
- type RemoteWithRef
- type RepoStatus
- type UserAccess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessWithLogin ¶
func AddSubtrees ¶
func AddSubtrees(repoId, branch string, subtrees []AddSubtree) error
TODO add subtree to an empty branch
func Create ¶
func Create(repoId string, req *CreateRequest) error
func TemplateId ¶
Types ¶
type AddSubtree ¶
type AddSubtree struct { Prefix string // add subtree under specified directory Remote string Ref string SplitPrefix string `json:"splitPrefix"` // what directory from remote to extract, whole repo if empty Branch string // if subtree split is requested then this is a branch to push the split branch to Squash bool // contains filtered or unexported fields }
type CreateRequest ¶
type RemoteWithRef ¶
type RepoStatus ¶
type RepoStatus struct { Commit string `json:"commit,omitempty"` Ref string `json:"ref,omitempty"` Date string `json:"date,omitempty"` Author string `json:"author,omitempty"` Subject string `json:"subject,omitempty"` }
func Status ¶
func Status(repoId, ref string) (*RepoStatus, error)
type UserAccess ¶
Click to show internal directories.
Click to hide internal directories.