Documentation ¶ Index ¶ type Commit type Ref type Repo func NewRepo(gittarAddr, repo string) *Repo func (r *Repo) Branches() ([]string, error) func (r *Repo) FetchFile(ref string, filename string) (b []byte, err error) func (r *Repo) GetCommit(ref string) (Commit, error) func (r *Repo) Tags() ([]string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Commit ¶ type Commit struct { ID string `json:"id"` Committer struct { Email string `json:"email"` Name string `json:"name"` When string `json:"when"` } `json:"committer"` CommitMessage string `json:"commitMessage"` } type Ref ¶ type Ref struct { Name string `json:"name"` } type Repo ¶ type Repo struct { GittarAddr string Repo string } func NewRepo ¶ func NewRepo(gittarAddr, repo string) *Repo func (*Repo) Branches ¶ func (r *Repo) Branches() ([]string, error) func (*Repo) FetchFile ¶ func (r *Repo) FetchFile(ref string, filename string) (b []byte, err error) func (*Repo) GetCommit ¶ func (r *Repo) GetCommit(ref string) (Commit, error) func (*Repo) Tags ¶ func (r *Repo) Tags() ([]string, error) Source Files ¶ View all Source files commit.go files.go gittar.go ref.go Click to show internal directories. Click to hide internal directories.