Documentation
¶
Index ¶
Constants ¶
View Source
const ( GitHubAPIName = "GitHub" GitHubAPIProto = "https" GitHubAPIHost = "api.github.com" GitHubAPIReposPath = "repos" GitHubAPITagsPath = "tags" )
View Source
const ( ErrOwner = "owner's name contains forbidden symbols" ErrPath = "repository's path contains forbidden symbols" )
View Source
const (
ForbiddenChars = `/\`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository object.
func NewRepository ¶
func NewRepository(owner string, repository string) (r *Repository, err error)
NewRepository creates an object of Repository type. Supported APIs can be found in the GitHub's file.
func (*Repository) ListCleanVersions ¶
func (r *Repository) ListCleanVersions() (versions []*ver.Version, err error)
func (*Repository) ListTags ¶
func (r *Repository) ListTags() (tags []*Tag, err error)
func (*Repository) ListVersions ¶
func (r *Repository) ListVersions() (versions []*ver.Version, err error)
Click to show internal directories.
Click to hide internal directories.