Versions in this module Expand all Collapse all v0 v0.3.0 May 5, 2025 Changes in this version type RepositoriesService + ListUserRepos func(username string) (*[]Repository, error) type Repository + Origin *Repository v0.2.0 Jun 26, 2024 Changes in this version + var ChangeTypes = []string + func ExtractCloneLinks(clones []CloneLink) (httpLink, sshLink string) + type Attachment struct + ID string + Links struct{ ... } + URL string + type AttachmentRoot struct + Attachments []Attachment + type AuthInfo struct + Token string + Username string + type Change struct + ContentID string + Executable bool + FromContentID string + Links Links + NodeType string + Path *File + PercentUnchanged int + Properties *ChangesPropertiesValues + Type string + type ChangesProperties struct + ChangeScope string + type ChangesPropertiesValues struct + ChangeScope string + type ChangesResponse struct + FromHash string + Properties *ChangesProperties + ToHash string + type Client struct + BaseURL string + HTTPClient *httpclient.Client + Logger hclog.Logger + Projects ProjectsService + PullRequests PullRequestsService + Repositories RepositoriesService + func New(logger hclog.Logger, domain string, auth AuthInfo, globalConfig *config.Config) (*Client, error) + type CloneLink struct + Href string + Name string + type Error struct + Context string + ExceptionName string + Message string + type ErrorList struct + Errors []Error + type File struct + Components []string + Extension string + Name string + Parent string + ToString string + type Link struct + Href string + type Links struct + Clone []CloneLink + Self []Link + type MergeResult struct + Current bool + Outcome string + type Project struct + Description string + ID int + Key string + Links Links + Name string + Public bool + Type string + type ProjectsService interface + List func() (*[]Project, error) + func NewProjectsService(client *Client, limit int) ProjectsService + type PullRequest struct + Author *UserData + Closed bool + CreatedDate int64 + Description string + FromReference Reference + ID int + Links Links + Locked bool + Open bool + Participants []UserData + Properties struct{ ... } + Reviewers []UserData + State string + Title string + ToReference Reference + UpdatedDate int64 + Version int + func (pr *PullRequest) AddComment(commentText string, paths []string) (*PullRequest, error) + func (pr *PullRequest) AddRole(role, login string) (*UserData, error) + func (pr *PullRequest) AttachFileToRepository(path string) (*Attachment, string, error) + func (pr *PullRequest) GetChanges() (*[]Change, error) + func (pr *PullRequest) SetStatus(status, login string) (*PullRequest, error) + type PullRequestsService interface + Get func(project, repository string, id int) (*PullRequest, error) + func NewPullRequestsService(client *Client, limit int) PullRequestsService + type Reference struct + DisplayID string + ID string + LatestCommit string + Repository Repository + type RepositoriesService interface + List func(project string) (*[]Repository, error) + func NewRepositoriesService(client *Client, limit int) RepositoriesService + type Repository struct + Archived bool + Description string + Forkable bool + HierarchyID string + ID int + Links Links + Name string + Project *Project + Public bool + ScmID string + Slug string + State string + StatusMessage string + type Response struct + IsLastPage bool + Limit int + NextPageStart *int + Size int + Start int + Values []T + type User struct + Active bool + DisplayName string + EmailAddress string + ID int + Links Links + Name string + Slug string + Type string + type UserData struct + Approved bool + LastReviewedCommit string + Role string + Status string + User User