Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoResult = errors.New("no result from remote server")
)
Functions ¶
This section is empty.
Types ¶
type MergeOption ¶
type MergeOption struct {
Title string
Body string
SourceBranch string
TargetBranch string
Upstream *Repository
}
type Provider ¶
type Provider interface {
Name() string
SearchRepositories(group, query string) ([]*Repository, error)
ListRepositories(group string) ([]*Repository, error)
GetRepository(name string) (*Repository, error)
GetMerge(repo *core.Repository, opts MergeOption) (string, error)
CreateMerge(repo *core.Repository, opts MergeOption) (string, error)
GetRelease(repo *core.Repository, tag string) (*Release, error)
ListReleases(repo *core.Repository) ([]*Release, error)
DownloadReleaseFile(repo *core.Repository, file *ReleaseFile) (io.ReadCloser, error)
}
type Release ¶ added in v0.3.0
type Release struct {
Name string
Tag string
WebURL string
Files []*ReleaseFile
}
type ReleaseFile ¶ added in v0.3.0
type Repository ¶
Click to show internal directories.
Click to hide internal directories.