Versions in this module Expand all Collapse all v1 v1.0.2 Aug 9, 2016 v1.0.1 Aug 6, 2016 Changes in this version + var Log *log.Logger = log.New(os.Stdout, "", log.Ldate | log.Ltime | log.Lshortfile) + func IsRepositoryExists(err error) bool + func IsRepositoryNotFound(err error) bool + type Branch struct + DisplayID string + ID string + IsDefault bool + LatestChangeSet string + type BranchPermission struct + Branch string + Groups []string + Type string + Users []string + type BranchRestriction struct + Branch Branch + Id int + type BranchRestrictions struct + BranchRestriction []BranchRestriction + type Branches struct + Branch []Branch + IsLastPage bool + NextPageStart int + Size int + Start int + type Client struct + func (client Client) CreateBranchRestriction(projectKey, repositorySlug, branch, user string) (BranchRestriction, error) + func (client Client) CreateComment(projectKey, repositorySlug, pullRequest, text string) (Comment, error) + func (client Client) CreatePullRequest(projectKey, repositorySlug, title, description, fromRef, toRef string, ...) (PullRequest, error) + func (client Client) CreateRepository(projectKey, projectSlug string) (Repository, error) + func (client Client) DeleteBranch(projectKey, repositorySlug, branchName string) error + func (client Client) DeleteBranchRestriction(projectKey, repositorySlug string, id int) error + func (client Client) GetBranchRestrictions(projectKey, repositorySlug string) (BranchRestrictions, error) + func (client Client) GetBranches(projectKey, repositorySlug string) (map[string]Branch, error) + func (client Client) GetCommit(projectKey, repositorySlug, commitHash string) (Commit, error) + func (client Client) GetCommits(projectKey, repositorySlug, commitSinceHash string, commitUntilHash string) (Commits, error) + func (client Client) GetPullRequest(projectKey, projectSlug, identifier string) (PullRequest, error) + func (client Client) GetPullRequests(projectKey, projectSlug, state string) ([]PullRequest, error) + func (client Client) GetRawFile(repositoryProjectKey, repositorySlug, filePath, branch string) ([]byte, error) + func (client Client) GetRepositories() (map[int]Repository, error) + func (client Client) GetRepository(projectKey, repositorySlug string) (Repository, error) + func (client Client) GetTags(projectKey, repositorySlug string) (map[string]Tag, error) + func (client Client) UpdatePullRequest(projectKey, repositorySlug, identifier string, version int, ...) (PullRequest, error) + type Clone struct + HREF string + Name string + type Comment struct + ID int + type CommentResource struct + Text string + type Commit struct + Attributes struct{ ... } + Author struct{ ... } + AuthorTimestamp int64 + DisplayID string + ID string + type Commits struct + Commits []Commit + type Links struct + Clones []Clone + type Page struct + IsLastPage bool + NextPageStart int + Size int + Start int + type Project struct + Key string + type PullRequest struct + Closed bool + CreatedDate int64 + Description string + FromRef Ref + ID int + Open bool + Reviewers []Reviewer + State string + Title string + ToRef Ref + UpdatedDate int64 + Version int + type PullRequestProject struct + Key string + type PullRequestRef struct + Id string + Repository PullRequestRepository + type PullRequestRepository struct + Name string + Project PullRequestProject + Slug string + type PullRequestResource struct + Description string + FromRef interface{} + Reviewers []Reviewer + Title string + ToRef interface{} + Version int + type PullRequests struct + PullRequests []PullRequest + type Ref struct + DisplayID string + type Repositories struct + IsLastPage bool + NextPageStart int + Repository []Repository + Size int + Start int + type Repository struct + ID int + Links Links + Name string + Project Project + ScmID string + Slug string + func HasRepository(repositories map[int]Repository, url string) (Repository, bool) + func (repo Repository) SshUrl() string + type Reviewer struct + User User + type Stash interface + CreateBranchRestriction func(projectKey, repositorySlug, branch, user string) (BranchRestriction, error) + CreateComment func(projectKey, repositorySlug, pullRequest, text string) (Comment, error) + CreatePullRequest func(projectKey, repositorySlug, title, description, fromRef, toRef string, ...) (PullRequest, error) + CreateRepository func(projectKey, slug string) (Repository, error) + DeleteBranch func(projectKey, repositorySlug, branchName string) error + DeleteBranchRestriction func(projectKey, repositorySlug string, id int) error + GetBranchRestrictions func(projectKey, repositorySlug string) (BranchRestrictions, error) + GetBranches func(projectKey, repositorySlug string) (map[string]Branch, error) + GetCommit func(projectKey, repositorySlug, commitHash string) (Commit, error) + GetCommits func(projectKey, repositorySlug, commitSinceHash string, commitUntilHash string) (Commits, error) + GetPullRequest func(projectKey, repositorySlug, identifier string) (PullRequest, error) + GetPullRequests func(projectKey, repositorySlug, state string) ([]PullRequest, error) + GetRawFile func(projectKey, repositorySlug, branch, filePath string) ([]byte, error) + GetRepositories func() (map[int]Repository, error) + GetRepository func(projectKey, repositorySlug string) (Repository, error) + GetTags func(projectKey, repositorySlug string) (map[string]Tag, error) + UpdatePullRequest func(projectKey, repositorySlug, identifier string, version int, ...) (PullRequest, error) + func NewClient(userName, password string, baseURL *url.URL) Stash + type Tag struct + DisplayID string + Hash string + ID string + type Tags struct + Tags []Tag + type User struct + Name string