Documentation ¶
Index ¶
- Variables
- type API
- func (gh *API) GetBranch(location *Location) (*Branch, error)
- func (gh *API) GetFile(location *Location) (File, error)
- func (gh *API) GetFileAsync(location *Location) *FileFuture
- func (gh *API) GetFiles(location *Location) ([]File, error)
- func (gh *API) GetStatuses(location *Location) ([]github.RepoStatus, error)
- type Branch
- type File
- type FileFuture
- type Interface
- type Location
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ContentLocationRE = regexp.MustCompile(`^github.com/([^/]+)/([^/]+)/(.*)$`)
)
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetFileAsync ¶
func (gh *API) GetFileAsync(location *Location) *FileFuture
func (*API) GetStatuses ¶
func (gh *API) GetStatuses(location *Location) ([]github.RepoStatus, error)
type FileFuture ¶
type FileFuture struct {
// contains filtered or unexported fields
}
func (*FileFuture) Get ¶
func (ff *FileFuture) Get() (File, error)
type Interface ¶
type Location ¶
type Location struct {
Owner, Repo, Path, Ref string `yaml:",omitempty"`
}
func NewLocation ¶
Click to show internal directories.
Click to hide internal directories.