Documentation ¶
Index ¶
- type CommitFile
- type ErrReturn
- type FileContent
- type Github
- func (t *Github) GetFile(owner, repo string, path string) (*FileContent, error)
- func (t *Github) Hooks(owner, repo string) (hooks []*Hook, err error)
- func (t *Github) Repositories() (repos []*Repository, err error)
- func (t *Github) UpdateFile(owner, repo string, file *CommitFile) error
- func (t *Github) User() (user *User, err error)
- type Hook
- type Repository
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitFile ¶
type CommitFile struct { Path string `json:"-"` Message string `json:"message"` Content string `json:"content"` Branch string `json:"branch"` // optional, default master }
func NewCommitFile ¶
func NewCommitFile(path string, message, content, branch string) *CommitFile
type ErrReturn ¶
type FileContent ¶
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func (*Github) GetFile ¶
func (t *Github) GetFile(owner, repo string, path string) (*FileContent, error)
func (*Github) Repositories ¶
func (t *Github) Repositories() (repos []*Repository, err error)
func (*Github) UpdateFile ¶
func (t *Github) UpdateFile(owner, repo string, file *CommitFile) error
type Hook ¶
type Repository ¶
Click to show internal directories.
Click to hide internal directories.