Versions in this module Expand all Collapse all v1 v1.0.3 Jan 27, 2021 v1.0.2 Jan 27, 2021 v1.0.1 Jan 27, 2021 Changes in this version + const BASE_URI + const PROJECT_READ + const PROJECT_WRITE + const REPO_ADMIN + const REPO_READ + const REPO_WRITE + type Author struct + Approved bool + Role string + Status string + User User + type BitClient struct + func NewBitClient(conf BitConf) *BitClient + func (bc *BitClient) CloneRepositoryGroupPermissions(...) error + func (bc *BitClient) CloneRepositoryMasterBranchRestrictions(...) error + func (bc *BitClient) CloneRepositoryUserPermissions(...) error + func (bc *BitClient) CreateRepository(projectKey string, params CreateRepositoryRequest) (Repository, error) + func (bc *BitClient) CreateRepositoryDefaultReviewers(projectKey, repositorySlug string, params DefaultReviewers) (DefaultReviewers, error) + func (bc *BitClient) CreateTag(projectKey string, repositorySlug string, params CreateTagRequest) (Tag, error) + func (bc *BitClient) CreateUser(params CreateUserRequest) error + func (bc *BitClient) DeleteUser(params DeleteUserRequest) (DetailedUser, error) + func (bc *BitClient) DisableHook(projectKey, repositorySlug, hookKey string) error + func (bc *BitClient) DoDeleteUrl(uri string, params interface{}, rData interface{}) (*http.Response, error) + func (bc *BitClient) DoGet(uri string, params interface{}, rData interface{}) (*http.Response, error) + func (bc *BitClient) DoPost(uri string, data interface{}, rData interface{}) (*http.Response, error) + func (bc *BitClient) DoPostUrl(uri string, params interface{}, rData interface{}) (*http.Response, error) + func (bc *BitClient) DoPut(uri string, data interface{}, rData interface{}) (*http.Response, error) + func (bc *BitClient) DoPutUrl(uri string, data interface{}, rData interface{}) (*http.Response, error) + func (bc *BitClient) EnableHook(projectKey, repositorySlug, hookKey string, hookSettings interface{}) error + func (bc *BitClient) GetBranchingModel(projectKey, repositorySlug string) (BranchingModel, error) + func (bc *BitClient) GetFile(projectKey string, repositorySlug string, path string) (data []byte, err error) + func (bc *BitClient) GetGroupUsersNonMember(params GetGroupUsersNonMemberRequest) (GetGroupUsersNonMemberResponse, error) + func (bc *BitClient) GetHooks(projectKey, repositorySlug string, params GetHooksRequest) (GetHooksResponse, error) + func (bc *BitClient) GetInboxPullRequests(params GetInboxPullRequestsRequest) (GetInboxPullRequestsResponse, error) + func (bc *BitClient) GetInboxPullRequestsCount() (GetInboxPullRequestsCountResponse, error) + func (bc *BitClient) GetMyPullRequestSuggestions(params GetMyPullRequestSuggestionsRequest) (GetMyPullRequestSuggestionsResponse, error) + func (bc *BitClient) GetMyPullRequests(params GetMyPullRequestsRequest) (GetMyPullRequestsResponse, error) + func (bc *BitClient) GetProjectGroupPermission(projectKey string, params GetProjectGroupPermissionRequest) (GetProjectGroupPermissionResponse, error) + func (bc *BitClient) GetProjectUserPermission(projectKey string, params GetProjectUserPermissionRequest) (GetProjectUserPermissionResponse, error) + func (bc *BitClient) GetProjects(params PagedRequest) (GetProjectsResponse, error) + func (bc *BitClient) GetPullRequestSettings(projectKey string, repositorySlug string) (PullRequestSettings, error) + func (bc *BitClient) GetPullRequests(projectKey string, repositorySlug string, params GetPullRequestsRequest) (GetPullRequestsResponse, error) + func (bc *BitClient) GetRepositories(projectKey string, params PagedRequest) (GetRepositoriesResponse, error) + func (bc *BitClient) GetRepositoryBranchRestrictions(projectKey, repositorySlug string, ...) ([]BranchRestriction, error) + func (bc *BitClient) GetRepositoryDefaultReviewers(projectKey, repositorySlug string) ([]DefaultReviewers, error) + func (bc *BitClient) GetRepositoryGroupPermission(projectKey string, repositorySlug string, ...) (GetRepositoryGroupPermissionResponse, error) + func (bc *BitClient) GetRepositoryUserPermission(projectKey string, repositorySlug string, ...) (GetRepositoryUserPermissionResponse, error) + func (bc *BitClient) GetSonarSettings(projectKey string, repositorySlug string) (SonarSettings, error) + func (bc *BitClient) GetTags(projectKey string, repositorySlug string, params PagedRequest) (GetTagsResponse, error) + func (bc *BitClient) GetUserGroups(params GetUserGroupsRequest) (GetUserGroupsResponse, error) + func (bc *BitClient) GetUserGroupsNonMember(params GetUserGroupsNonMembersRequest) (GetUserGroupsNonMembersResponse, error) + func (bc *BitClient) GetUsers(params PagedRequest) (GetUsersResponse, error) + func (bc *BitClient) GetYACCHookSettings(projectKey string, repositorySlug string) (YaccHookSettings, error) + func (bc *BitClient) RenameUser(params RenameUserRequest) (DetailedUser, error) + func (bc *BitClient) Request(uri string, params interface{}) (*http.Response, error) + func (bc *BitClient) SearchUsers(params SearchUsersRequest) (SearchUsersResponse, error) + func (bc *BitClient) SetBranchingModel(projectKey, repositorySlug string, settings BranchingModel) error + func (bc *BitClient) SetPullRequestSettings(projectKey string, repositorySlug string, params PullRequestSettings) error + func (bc *BitClient) SetRepositoryBranchRestrictions(projectKey, repositorySlug string, ...) error + func (bc *BitClient) SetRepositoryGroupPermission(projectKey string, repositorySlug string, ...) error + func (bc *BitClient) SetRepositoryUserPermission(projectKey string, repositorySlug string, ...) error + func (bc *BitClient) SetSonarSettings(projectKey string, repositorySlug string, settings SonarSettings) error + func (bc *BitClient) UnsetRepositoryGroupPermission(projectKey string, repositorySlug string, ...) error + func (bc *BitClient) UnsetRepositoryUserPermission(projectKey string, repositorySlug string, ...) error + func (bc *BitClient) UpdateRepository(projectKey string, repositorySlug string, params UpdateRepositoryRequest) (Repository, error) + func (bc *BitClient) UpdateRepositoryDefaultReviewers(projectKey, repositorySlug string, params DefaultReviewers) (DefaultReviewers, error) + func (bc *BitClient) UpdateUser(params UpdateUserRequest) (DetailedUser, error) + func (bc *BitClient) UpdateUserPassword(params UpdateUserPasswordRequest) error + type BitConf struct + Password string + Url string + UserName string + type BranchRestriction struct + Groups []string + Id int + Matcher Matcher + Type string + Users []User + type BranchingModel struct + Development BranchingModelBranch + Production BranchingModelBranch + Types []BranchingModelType + type BranchingModelBranch struct + RefId string + UseDefault bool + type BranchingModelType struct + DisplayName string + Enabled bool + Id string + Prefix string + type CreateRepositoryRequest struct + Forkable bool + Name string + ScmId string + type CreateTagRequest struct + Message string + Name string + StartPoint string + type CreateUserRequest struct + AddToDefaultGroup bool + DisplayName string + EmailAddress string + Name string + Notify bool + Password string + type DefaultReviewers struct + FromRefMatcher Matcher + Id int + Repository Repository + RequiredApprovals int + Reviewers []User + ToRefMatcher Matcher + type DeleteUserRequest struct + Name string + type DetailedUser struct + Deletable bool + DirectoryName string + LastAuthenticationTimestamp uint + MutableDetails bool + MutableGroups bool + User User + type Error struct + Context string + ExceptionName string + Message string + type ErrorResponse struct + Errors []Error + type GetGroupUsersNonMemberRequest struct + Context string + Filter string + type GetGroupUsersNonMemberResponse struct + Values []DetailedUser + type GetHooksRequest struct + Type string + type GetHooksResponse struct + Values []Hook + type GetInboxPullRequestsCountResponse struct + Count uint + type GetInboxPullRequestsRequest struct + Limit uint + Role string + Start uint + type GetInboxPullRequestsResponse struct + Values []PullRequest + type GetMyPullRequestSuggestionsRequest struct + ChangeSince uint + Limit uint + type GetMyPullRequestSuggestionsResponse struct + Values []PullRequestSuggestion + type GetMyPullRequestsRequest struct + ClosedSince string + Order string + ParticipantStatus string + Role string + State string + type GetMyPullRequestsResponse struct + PagedResponse PagedResponse + PullRequests []PullRequest + type GetProjectGroupPermissionRequest struct + Filter string + type GetProjectGroupPermissionResponse struct + Values []GroupPermission + type GetProjectUserPermissionRequest struct + Filter string + type GetProjectUserPermissionResponse struct + Values []UserPermission + type GetProjectsResponse struct + Values []Project + type GetPullRequestsRequest struct + At string + Direction string + Order string + State string + WithAttributes bool + WithProperties bool + type GetPullRequestsResponse struct + Values []PullRequest + type GetRepositoriesResponse struct + Values []Repository + type GetRepositoryBranchRestrictionRequest struct + Effective bool + MatcherId string + MatcherType string + Type string + type GetRepositoryBranchRestrictionResponse struct + Values []BranchRestriction + type GetRepositoryGroupPermissionRequest struct + Filter string + type GetRepositoryGroupPermissionResponse struct + Values []GroupPermission + type GetRepositoryUserPermissionRequest struct + Filter string + type GetRepositoryUserPermissionResponse struct + Values []UserPermission + type GetTagsResponse struct + Values []Tag + type GetUserGroupsNonMembersRequest struct + Context string + Filter string + type GetUserGroupsNonMembersResponse struct + Values []Group + type GetUserGroupsRequest struct + Context string + Filter string + type GetUserGroupsResponse struct + Values []Group + type GetUsersResponse struct + Values []User + type Group struct + Deletable bool + Name string + type GroupPermission struct + Group Group + Permission string + type Hook struct + Configured bool + Details HookDetails + Enabled bool + type HookDetails struct + ConfigFormKey string + Description string + Key string + Name string + Type string + Version string + type Link map[string]string + type Links map[string][]Link + type Matcher struct + Active bool + DisplayId string + Id string + Type MatcherType + type MatcherType struct + Id string + Name string + type PagedRequest struct + Limit uint + Start uint + type PagedResponse struct + IsLastPage bool + Limit uint + Size uint + Start uint + type Participant struct + Approved bool + LastReviewedCommit string + Role string + Status string + User User + type Project struct + Description string + Id uint + Key string + Links Links + Name string + Public bool + Type string + type PullRequest struct + Author Author + Closed bool + CreatedDate uint + Description string + FromRef Ref + Id uint + Links Links + Locked bool + Open bool + Participants []Participant + Reviewers []Participant + State string + Title string + ToRef Ref + UpdatedDate uint + Version uint + type PullRequestMergeConfig struct + DefaultStrategy PullRequestStrategy + Strategies []PullRequestStrategy + Type string + type PullRequestSettings struct + MergeConfig PullRequestMergeConfig + RequiredAllApprovers bool + RequiredAllTasksComplete bool + RequiredApprovers uint + RequiredSuccessfulBuilds uint + UnapproveOnUpdate bool + type PullRequestStrategy struct + Description string + Enabled bool + Flag string + Id string + Name string + type PullRequestSuggestion struct + ChangeTime uint + FromRef Ref + RefChange RefChange + Repository Repository + ToRef Ref + type Ref struct + DisplayId string + Id string + Type string + type RefChange struct + FromHash string + Ref Ref + RefId string + ToHash string + Type string + type RenameUserRequest struct + Name string + NewName string + type Repository struct + Forkable bool + Id uint + Links Links + Name string + Project Project + Public bool + ScmId string + Slug string + State string + StatusMessage string + type RepositoryDefaultReviewersRequest struct + RequiredApprovals int + Reviewers []User + SourceMatcher Matcher + TargetMatcher Matcher + type RequestError struct + Code int + Message string + func (r RequestError) Error() string + type SearchUsersRequest struct + Filter string + PagedRequest string + type SearchUsersResponse struct + Values []DetailedUser + type SetRepositoryBranchRestrictionsRequest struct + Groups []string + Id int + Matcher Matcher + Type string + Users []string + type SetRepositoryGroupPermissionRequest struct + Name string + Permission string + type SetRepositoryUserPermissionRequest struct + Permission string + Username string + type SonarSettings struct + DuplicateCode SonarSettingsDuplicateCode + Issues SonarSettingsIssues + MergeChecks SonarSettingsMergeChecks + Project SonarSettingsProject + Provisioning SonarSettingsProvisioning + Statistics SonarSettingsStatistics + TestCoverage SonarSettingsTestCoverage + type SonarSettingsDuplicateCode struct + ShowDuplicateCode bool + type SonarSettingsIssues struct + ShowOnlyNewIssues bool + ShowSonarIssues bool + SonarIssuesMinSeverity string + type SonarSettingsMergeChecks struct + CoverageMinPercentage int + DuplicateCodeMaxIncrease int + MergeChecksEnabled bool + QualityGatesEnabled bool + SonarIssueTypeMaxNew string + SonarIssuesMaxNew int + TechnicalDebtMaxIncrease int + type SonarSettingsProject struct + AnalysisMode string + BranchPrefix string + BuildType string + ForkCleanupEnabled bool + IllegalBranchCharReplacement string + IncrementalModeForMatches string + MasterProjectKey string + MatchingBranchesRegex string + ProjectBaseKey string + ProjectCleanupEnabled bool + PullRequestBranch string + ServerConfigId int + ShowIssuesInSource bool + ShowOnlyNewOrChangedLines bool + SonarEnabled bool + UseSonarBranchFeature bool + type SonarSettingsProvisioning struct + PropertiesProvisioningEnabled bool + QualityProfileProvisioningEnabled bool + type SonarSettingsStatistics struct + CollapsedByDefault bool + ShowBehindCommitsWarning bool + ShowQualityGates bool + ShowStatistics bool + type SonarSettingsTestCoverage struct + CoverageType string + ShowCoverage bool + type Tag struct + DisplayId string + Hash string + Id string + LatestChangeset string + LatestCommit string + Type string + type UnsetRepositoryGroupPermissionRequest struct + Name string + type UnsetRepositoryUserPermissionRequest struct + Username string + type UpdateRepositoryRequest struct + Forkable bool + Name string + Project Project + Public bool + type UpdateUserPasswordRequest struct + Name string + NewPassword string + Password string + type UpdateUserRequest struct + DisplayName string + Email string + Name string + type User struct + Active bool + DisplayName string + EmailAddress string + Id uint + Name string + Slug string + Type string + type UserPermission struct + Permission string + User User + type YaccHookSettings struct + BranchNameRegex string + CommitMessageRegex string + CommitterEmailRegex string + ErrorMessageBranchName string + ErrorMessageCommitRegex string + ErrorMessageCommiterEmail string + ErrorMessageCommiterEmailRegex string + ErrorMessageCommiterName string + ErrorMessageFooter string + ErrorMessageHeader string + ErrorMessageIssueJQL string + ExcludeBranchRegex string + ExcludeByRegex string + ExcludeMergeCommits bool + ExcludeServiceUserCommits bool + ExcludeUsers string + IgnoreUnknownIssueProjectKeys bool + IssueJqlMatcher string + RequireJiraIssue bool + RequireMatchingAuthorEmail bool + RequireMatchingAuthorName bool