Versions in this module Expand all Collapse all v0 v0.17.3 Apr 7, 2024 v0.17.2 Apr 7, 2024 Changes in this version + func GetAgent() (agent.Agent, error) + func OptionalBool(v bool) *bool + func OptionalInt64(v int64) *int64 + func OptionalString(v string) *string + func VerifyWebhookSignature(secret, expected string, payload []byte) (bool, error) + func VerifyWebhookSignatureMiddleware(secret string) func(http.Handler) http.Handler + func Version() string + type AccessMode string + const AccessModeAdmin + const AccessModeNone + const AccessModeOwner + const AccessModeRead + const AccessModeWrite + type AccessToken struct + ID int64 + Name string + Scopes []AccessTokenScope + Token string + TokenLastEight string + type AccessTokenScope string + const AccessTokenScopeAdminApplication + const AccessTokenScopeAdminGPGKey + const AccessTokenScopeAdminOrg + const AccessTokenScopeAdminOrgHook + const AccessTokenScopeAdminPublicKey + const AccessTokenScopeAdminRepoHook + const AccessTokenScopeAdminUserHook + const AccessTokenScopeAll + const AccessTokenScopeDeletePackage + const AccessTokenScopeDeleteRepo + const AccessTokenScopeNotification + const AccessTokenScopePackage + const AccessTokenScopePublicRepo + const AccessTokenScopeReadApplication + const AccessTokenScopeReadGPGKey + const AccessTokenScopeReadOrg + const AccessTokenScopeReadPackage + const AccessTokenScopeReadPublicKey + const AccessTokenScopeReadRepoHook + const AccessTokenScopeReadUser + const AccessTokenScopeRepo + const AccessTokenScopeRepoStatus + const AccessTokenScopeSudo + const AccessTokenScopeUser + const AccessTokenScopeUserEmail + const AccessTokenScopeUserFollow + const AccessTokenScopeWriteApplication + const AccessTokenScopeWriteGPGKey + const AccessTokenScopeWriteOrg + const AccessTokenScopeWritePackage + const AccessTokenScopeWritePublicKey + const AccessTokenScopeWriteRepoHook + type AddCollaboratorOption struct + Permission *AccessMode + func (opt *AddCollaboratorOption) Validate() error + type AddTimeOption struct + Created time.Time + Time int64 + User string + func (opt AddTimeOption) Validate() error + type AdminListOrgsOptions struct + type AdminListUsersOptions struct + type AnnotatedTag struct + Message string + Object *AnnotatedTagObject + SHA string + Tag string + Tagger *CommitUser + URL string + Verification *PayloadCommitVerification + type AnnotatedTagObject struct + SHA string + Type string + URL string + type ArchiveType string + const TarGZArchive + const ZipArchive + type Attachment struct + Created time.Time + DownloadCount int64 + DownloadURL string + ID int64 + Name string + Size int64 + UUID string + type Branch struct + Commit *PayloadCommit + EffectiveBranchProtectionName string + EnableStatusCheck bool + Name string + Protected bool + RequiredApprovals int64 + StatusCheckContexts []string + UserCanMerge bool + UserCanPush bool + type BranchProtection struct + ApprovalsWhitelistTeams []string + ApprovalsWhitelistUsernames []string + BlockOnOfficialReviewRequests bool + BlockOnOutdatedBranch bool + BlockOnRejectedReviews bool + BranchName string + Created time.Time + DismissStaleApprovals bool + EnableApprovalsWhitelist bool + EnableMergeWhitelist bool + EnablePush bool + EnablePushWhitelist bool + EnableStatusCheck bool + MergeWhitelistTeams []string + MergeWhitelistUsernames []string + ProtectedFilePatterns string + PushWhitelistDeployKeys bool + PushWhitelistTeams []string + PushWhitelistUsernames []string + RequireSignedCommits bool + RequiredApprovals int64 + RuleName string + StatusCheckContexts []string + UnprotectedFilePatterns string + Updated time.Time + type ChangedFile struct + Additions int + Changes int + ContentsURL string + Deletions int + Filename string + HTMLURL string + PreviousFilename string + RawURL string + Status string + type Client struct + func NewClient(url string, options ...ClientOption) (*Client, error) + func NewClientWithHTTP(url string, httpClient *http.Client) *Client + func (c *Client) AcceptRepoTransfer(owner, reponame string) (*Repository, *Response, error) + func (c *Client) AddCollaborator(user, repo, collaborator string, opt AddCollaboratorOption) (*Response, error) + func (c *Client) AddEmail(opt CreateEmailOption) ([]*Email, *Response, error) + func (c *Client) AddIssueLabels(owner, repo string, index int64, opt IssueLabelsOption) ([]*Label, *Response, error) + func (c *Client) AddIssueSubscription(owner, repo string, index int64, user string) (*Response, error) + func (c *Client) AddRepoTeam(user, repo, team string) (*Response, error) + func (c *Client) AddRepoTopic(user, repo, topic string) (*Response, error) + func (c *Client) AddTeamMember(id int64, user string) (*Response, error) + func (c *Client) AddTeamRepository(id int64, org, repo string) (*Response, error) + func (c *Client) AddTime(owner, repo string, index int64, opt AddTimeOption) (*TrackedTime, *Response, error) + func (c *Client) AdminCreateOrg(user string, opt CreateOrgOption) (*Organization, *Response, error) + func (c *Client) AdminCreateRepo(user string, opt CreateRepoOption) (*Repository, *Response, error) + func (c *Client) AdminCreateUser(opt CreateUserOption) (*User, *Response, error) + func (c *Client) AdminCreateUserPublicKey(user string, opt CreateKeyOption) (*PublicKey, *Response, error) + func (c *Client) AdminDeleteUser(user string) (*Response, error) + func (c *Client) AdminDeleteUserPublicKey(user string, keyID int) (*Response, error) + func (c *Client) AdminEditUser(user string, opt EditUserOption) (*Response, error) + func (c *Client) AdminListOrgs(opt AdminListOrgsOptions) ([]*Organization, *Response, error) + func (c *Client) AdminListUsers(opt AdminListUsersOptions) ([]*User, *Response, error) + func (c *Client) CheckIssueSubscription(owner, repo string, index int64) (*WatchInfo, *Response, error) + func (c *Client) CheckNotifications() (int64, *Response, error) + func (c *Client) CheckOrgMembership(org, user string) (bool, *Response, error) + func (c *Client) CheckPublicOrgMembership(org, user string) (bool, *Response, error) + func (c *Client) CheckRepoTeam(user, repo, team string) (*Team, *Response, error) + func (c *Client) CheckRepoWatch(owner, repo string) (bool, *Response, error) + func (c *Client) CheckServerVersionConstraint(constraint string) error + func (c *Client) ClearIssueLabels(owner, repo string, index int64) (*Response, error) + func (c *Client) CollaboratorPermission(user, repo, collaborator string) (*CollaboratorPermissionResult, *Response, error) + func (c *Client) CreateAccessToken(opt CreateAccessTokenOption) (*AccessToken, *Response, error) + func (c *Client) CreateBranch(owner, repo string, opt CreateBranchOption) (*Branch, *Response, error) + func (c *Client) CreateBranchProtection(owner, repo string, opt CreateBranchProtectionOption) (*BranchProtection, *Response, error) + func (c *Client) CreateDeployKey(user, repo string, opt CreateKeyOption) (*DeployKey, *Response, error) + func (c *Client) CreateFile(owner, repo, filepath string, opt CreateFileOptions) (*FileResponse, *Response, error) + func (c *Client) CreateFork(user, repo string, form CreateForkOption) (*Repository, *Response, error) + func (c *Client) CreateGPGKey(opt CreateGPGKeyOption) (*GPGKey, *Response, error) + func (c *Client) CreateIssue(owner, repo string, opt CreateIssueOption) (*Issue, *Response, error) + func (c *Client) CreateIssueComment(owner, repo string, index int64, opt CreateIssueCommentOption) (*Comment, *Response, error) + func (c *Client) CreateLabel(owner, repo string, opt CreateLabelOption) (*Label, *Response, error) + func (c *Client) CreateMilestone(owner, repo string, opt CreateMilestoneOption) (*Milestone, *Response, error) + func (c *Client) CreateOauth2(opt CreateOauth2Option) (*Oauth2, *Response, error) + func (c *Client) CreateOrg(opt CreateOrgOption) (*Organization, *Response, error) + func (c *Client) CreateOrgHook(org string, opt CreateHookOption) (*Hook, *Response, error) + func (c *Client) CreateOrgRepo(org string, opt CreateRepoOption) (*Repository, *Response, error) + func (c *Client) CreatePublicKey(opt CreateKeyOption) (*PublicKey, *Response, error) + func (c *Client) CreatePullRequest(owner, repo string, opt CreatePullRequestOption) (*PullRequest, *Response, error) + func (c *Client) CreatePullReview(owner, repo string, index int64, opt CreatePullReviewOptions) (*PullReview, *Response, error) + func (c *Client) CreateRelease(owner, repo string, opt CreateReleaseOption) (*Release, *Response, error) + func (c *Client) CreateReleaseAttachment(user, repo string, release int64, file io.Reader, filename string) (*Attachment, *Response, error) + func (c *Client) CreateRepo(opt CreateRepoOption) (*Repository, *Response, error) + func (c *Client) CreateRepoFromTemplate(templateOwner, templateRepo string, opt CreateRepoFromTemplateOption) (*Repository, *Response, error) + func (c *Client) CreateRepoHook(user, repo string, opt CreateHookOption) (*Hook, *Response, error) + func (c *Client) CreateReviewRequests(owner, repo string, index int64, opt PullReviewRequestOptions) (*Response, error) + func (c *Client) CreateStatus(owner, repo, sha string, opts CreateStatusOption) (*Status, *Response, error) + func (c *Client) CreateTag(user, repo string, opt CreateTagOption) (*Tag, *Response, error) + func (c *Client) CreateTeam(org string, opt CreateTeamOption) (*Team, *Response, error) + func (c *Client) DeleteAccessToken(value interface{}) (*Response, error) + func (c *Client) DeleteBranchProtection(owner, repo, name string) (*Response, error) + func (c *Client) DeleteCollaborator(user, repo, collaborator string) (*Response, error) + func (c *Client) DeleteDeployKey(owner, repo string, keyID int64) (*Response, error) + func (c *Client) DeleteEmail(opt DeleteEmailOption) (*Response, error) + func (c *Client) DeleteFile(owner, repo, filepath string, opt DeleteFileOptions) (*Response, error) + func (c *Client) DeleteGPGKey(keyID int64) (*Response, error) + func (c *Client) DeleteIssue(user, repo string, id int64) (*Response, error) + func (c *Client) DeleteIssueComment(owner, repo string, commentID int64) (*Response, error) + func (c *Client) DeleteIssueCommentReaction(owner, repo string, commentID int64, reaction string) (*Response, error) + func (c *Client) DeleteIssueLabel(owner, repo string, index, label int64) (*Response, error) + func (c *Client) DeleteIssueReaction(owner, repo string, index int64, reaction string) (*Response, error) + func (c *Client) DeleteIssueStopwatch(owner, repo string, index int64) (*Response, error) + func (c *Client) DeleteIssueSubscription(owner, repo string, index int64, user string) (*Response, error) + func (c *Client) DeleteLabel(owner, repo string, id int64) (*Response, error) + func (c *Client) DeleteMilestone(owner, repo string, id int64) (*Response, error) + func (c *Client) DeleteMilestoneByName(owner, repo, name string) (*Response, error) + func (c *Client) DeleteOauth2(oauth2id int64) (*Response, error) + func (c *Client) DeleteOrg(orgname string) (*Response, error) + func (c *Client) DeleteOrgHook(org string, id int64) (*Response, error) + func (c *Client) DeleteOrgMembership(org, user string) (*Response, error) + func (c *Client) DeletePackage(owner, packageType, name, version string) (*Response, error) + func (c *Client) DeletePublicKey(keyID int64) (*Response, error) + func (c *Client) DeletePullReview(owner, repo string, index, id int64) (*Response, error) + func (c *Client) DeleteRelease(user, repo string, id int64) (*Response, error) + func (c *Client) DeleteReleaseAttachment(user, repo string, release, id int64) (*Response, error) + func (c *Client) DeleteReleaseByTag(user, repo, tag string) (*Response, error) + func (c *Client) DeleteRepo(owner, repo string) (*Response, error) + func (c *Client) DeleteRepoBranch(user, repo, branch string) (bool, *Response, error) + func (c *Client) DeleteRepoGitHook(user, repo, id string) (*Response, error) + func (c *Client) DeleteRepoHook(user, repo string, id int64) (*Response, error) + func (c *Client) DeleteRepoTopic(user, repo, topic string) (*Response, error) + func (c *Client) DeleteReviewRequests(owner, repo string, index int64, opt PullReviewRequestOptions) (*Response, error) + func (c *Client) DeleteTag(user, repo, tag string) (*Response, error) + func (c *Client) DeleteTeam(id int64) (*Response, error) + func (c *Client) DeleteTime(owner, repo string, index, timeID int64) (*Response, error) + func (c *Client) DismissPullReview(owner, repo string, index, id int64, opt DismissPullReviewOptions) (*Response, error) + func (c *Client) EditBranchProtection(owner, repo, name string, opt EditBranchProtectionOption) (*BranchProtection, *Response, error) + func (c *Client) EditIssue(owner, repo string, index int64, opt EditIssueOption) (*Issue, *Response, error) + func (c *Client) EditIssueComment(owner, repo string, commentID int64, opt EditIssueCommentOption) (*Comment, *Response, error) + func (c *Client) EditLabel(owner, repo string, id int64, opt EditLabelOption) (*Label, *Response, error) + func (c *Client) EditMilestone(owner, repo string, id int64, opt EditMilestoneOption) (*Milestone, *Response, error) + func (c *Client) EditMilestoneByName(owner, repo, name string, opt EditMilestoneOption) (*Milestone, *Response, error) + func (c *Client) EditOrg(orgname string, opt EditOrgOption) (*Response, error) + func (c *Client) EditOrgHook(org string, id int64, opt EditHookOption) (*Response, error) + func (c *Client) EditPullRequest(owner, repo string, index int64, opt EditPullRequestOption) (*PullRequest, *Response, error) + func (c *Client) EditRelease(owner, repo string, id int64, form EditReleaseOption) (*Release, *Response, error) + func (c *Client) EditReleaseAttachment(user, repo string, release, attachment int64, form EditAttachmentOptions) (*Attachment, *Response, error) + func (c *Client) EditRepo(owner, reponame string, opt EditRepoOption) (*Repository, *Response, error) + func (c *Client) EditRepoGitHook(user, repo, id string, opt EditGitHookOption) (*Response, error) + func (c *Client) EditRepoHook(user, repo string, id int64, opt EditHookOption) (*Response, error) + func (c *Client) EditTeam(id int64, opt EditTeamOption) (*Response, error) + func (c *Client) Follow(target string) (*Response, error) + func (c *Client) GetAnnotatedTag(user, repo, sha string) (*AnnotatedTag, *Response, error) + func (c *Client) GetArchive(owner, repo, ref string, ext ArchiveType) ([]byte, *Response, error) + func (c *Client) GetArchiveReader(owner, repo, ref string, ext ArchiveType) (io.ReadCloser, *Response, error) + func (c *Client) GetAssignees(user, repo string) ([]*User, *Response, error) + func (c *Client) GetBlob(user, repo, sha string) (*GitBlobResponse, *Response, error) + func (c *Client) GetBranchProtection(owner, repo, name string) (*BranchProtection, *Response, error) + func (c *Client) GetCombinedStatus(owner, repo, ref string) (*CombinedStatus, *Response, error) + func (c *Client) GetCommitDiff(user, repo, commitID string) ([]byte, *Response, error) + func (c *Client) GetCommitPatch(user, repo, commitID string) ([]byte, *Response, error) + func (c *Client) GetContents(owner, repo, ref, filepath string) (*ContentsResponse, *Response, error) + func (c *Client) GetDeployKey(user, repo string, keyID int64) (*DeployKey, *Response, error) + func (c *Client) GetFile(owner, repo, ref, filepath string, resolveLFS ...bool) ([]byte, *Response, error) + func (c *Client) GetFileReader(owner, repo, ref, filepath string, resolveLFS ...bool) (io.ReadCloser, *Response, error) + func (c *Client) GetGPGKey(keyID int64) (*GPGKey, *Response, error) + func (c *Client) GetGlobalAPISettings() (*GlobalAPISettings, *Response, error) + func (c *Client) GetGlobalAttachmentSettings() (*GlobalAttachmentSettings, *Response, error) + func (c *Client) GetGlobalRepoSettings() (*GlobalRepoSettings, *Response, error) + func (c *Client) GetGlobalUISettings() (*GlobalUISettings, *Response, error) + func (c *Client) GetIssue(owner, repo string, index int64) (*Issue, *Response, error) + func (c *Client) GetIssueComment(owner, repo string, id int64) (*Comment, *Response, error) + func (c *Client) GetIssueCommentReactions(owner, repo string, commentID int64) ([]*Reaction, *Response, error) + func (c *Client) GetIssueLabels(owner, repo string, index int64, opts ListLabelsOptions) ([]*Label, *Response, error) + func (c *Client) GetIssueReactions(owner, repo string, index int64) ([]*Reaction, *Response, error) + func (c *Client) GetIssueSubscribers(owner, repo string, index int64) ([]*User, *Response, error) + func (c *Client) GetIssueTemplates(owner, repo string) ([]*IssueTemplate, *Response, error) + func (c *Client) GetMilestone(owner, repo string, id int64) (*Milestone, *Response, error) + func (c *Client) GetMilestoneByName(owner, repo, name string) (*Milestone, *Response, error) + func (c *Client) GetMyStarredRepos() ([]*Repository, *Response, error) + func (c *Client) GetMyStopwatches() ([]*StopWatch, *Response, error) + func (c *Client) GetMyTrackedTimes() ([]*TrackedTime, *Response, error) + func (c *Client) GetMyUserInfo() (*User, *Response, error) + func (c *Client) GetMyWatchedRepos() ([]*Repository, *Response, error) + func (c *Client) GetNotification(id int64) (*NotificationThread, *Response, error) + func (c *Client) GetOauth2(oauth2id int64) (*Oauth2, *Response, error) + func (c *Client) GetOrg(orgname string) (*Organization, *Response, error) + func (c *Client) GetOrgHook(org string, id int64) (*Hook, *Response, error) + func (c *Client) GetOrgPermissions(org, user string) (*OrgPermissions, *Response, error) + func (c *Client) GetPackage(owner, packageType, name, version string) (*Package, *Response, error) + func (c *Client) GetPublicKey(keyID int64) (*PublicKey, *Response, error) + func (c *Client) GetPullRequest(owner, repo string, index int64) (*PullRequest, *Response, error) + func (c *Client) GetPullRequestDiff(owner, repo string, index int64, opts PullRequestDiffOptions) ([]byte, *Response, error) + func (c *Client) GetPullRequestPatch(owner, repo string, index int64) ([]byte, *Response, error) + func (c *Client) GetPullReview(owner, repo string, index, id int64) (*PullReview, *Response, error) + func (c *Client) GetRelease(owner, repo string, id int64) (*Release, *Response, error) + func (c *Client) GetReleaseAttachment(user, repo string, release, id int64) (*Attachment, *Response, error) + func (c *Client) GetReleaseByTag(owner, repo, tag string) (*Release, *Response, error) + func (c *Client) GetRepo(owner, reponame string) (*Repository, *Response, error) + func (c *Client) GetRepoBranch(user, repo, branch string) (*Branch, *Response, error) + func (c *Client) GetRepoByID(id int64) (*Repository, *Response, error) + func (c *Client) GetRepoGitHook(user, repo, id string) (*GitHook, *Response, error) + func (c *Client) GetRepoHook(user, repo string, id int64) (*Hook, *Response, error) + func (c *Client) GetRepoLabel(owner, repo string, id int64) (*Label, *Response, error) + func (c *Client) GetRepoLanguages(owner, repo string) (map[string]int64, *Response, error) + func (c *Client) GetRepoRef(user, repo, ref string) (*Reference, *Response, error) + func (c *Client) GetRepoRefs(user, repo, ref string) ([]*Reference, *Response, error) + func (c *Client) GetRepoTeams(user, repo string) ([]*Team, *Response, error) + func (c *Client) GetReviewers(user, repo string) ([]*User, *Response, error) + func (c *Client) GetSingleCommit(user, repo, commitID string) (*Commit, *Response, error) + func (c *Client) GetStarredRepos(user string) ([]*Repository, *Response, error) + func (c *Client) GetTag(user, repo, tag string) (*Tag, *Response, error) + func (c *Client) GetTeam(id int64) (*Team, *Response, error) + func (c *Client) GetTeamMember(id int64, user string) (*User, *Response, error) + func (c *Client) GetTrees(user, repo, ref string, recursive bool, page, perPage int) (*GitTreeResponse, *Response, error) + func (c *Client) GetUserByID(id int64) (*User, *Response, error) + func (c *Client) GetUserInfo(user string) (*User, *Response, error) + func (c *Client) GetUserSettings() (*UserSettings, *Response, error) + func (c *Client) GetWatchedRepos(user string) ([]*Repository, *Response, error) + func (c *Client) IsCollaborator(user, repo, collaborator string) (bool, *Response, error) + func (c *Client) IsFollowing(target string) (bool, *Response) + func (c *Client) IsPullRequestMerged(owner, repo string, index int64) (bool, *Response, error) + func (c *Client) IsRepoStarring(user, repo string) (bool, *Response, error) + func (c *Client) IsUserFollowing(user, target string) (bool, *Response) + func (c *Client) IssueSubscribe(owner, repo string, index int64) (*Response, error) + func (c *Client) IssueUnSubscribe(owner, repo string, index int64) (*Response, error) + func (c *Client) ListAccessTokens(opts ListAccessTokensOptions) ([]*AccessToken, *Response, error) + func (c *Client) ListBranchProtections(owner, repo string, opt ListBranchProtectionsOptions) ([]*BranchProtection, *Response, error) + func (c *Client) ListCollaborators(user, repo string, opt ListCollaboratorsOptions) ([]*User, *Response, error) + func (c *Client) ListContents(owner, repo, ref, filepath string) ([]*ContentsResponse, *Response, error) + func (c *Client) ListCronTasks(opt ListCronTaskOptions) ([]*CronTask, *Response, error) + func (c *Client) ListDeployKeys(user, repo string, opt ListDeployKeysOptions) ([]*DeployKey, *Response, error) + func (c *Client) ListEmails(opt ListEmailsOptions) ([]*Email, *Response, error) + func (c *Client) ListFollowers(user string, opt ListFollowersOptions) ([]*User, *Response, error) + func (c *Client) ListFollowing(user string, opt ListFollowingOptions) ([]*User, *Response, error) + func (c *Client) ListForks(user, repo string, opt ListForksOptions) ([]*Repository, *Response, error) + func (c *Client) ListGPGKeys(user string, opt ListGPGKeysOptions) ([]*GPGKey, *Response, error) + func (c *Client) ListIssueComments(owner, repo string, index int64, opt ListIssueCommentOptions) ([]*Comment, *Response, error) + func (c *Client) ListIssueTrackedTimes(owner, repo string, index int64, opt ListTrackedTimesOptions) ([]*TrackedTime, *Response, error) + func (c *Client) ListIssues(opt ListIssueOption) ([]*Issue, *Response, error) + func (c *Client) ListMyFollowers(opt ListFollowersOptions) ([]*User, *Response, error) + func (c *Client) ListMyFollowing(opt ListFollowingOptions) ([]*User, *Response, error) + func (c *Client) ListMyGPGKeys(opt *ListGPGKeysOptions) ([]*GPGKey, *Response, error) + func (c *Client) ListMyOrgs(opt ListOrgsOptions) ([]*Organization, *Response, error) + func (c *Client) ListMyPublicKeys(opt ListPublicKeysOptions) ([]*PublicKey, *Response, error) + func (c *Client) ListMyRepos(opt ListReposOptions) ([]*Repository, *Response, error) + func (c *Client) ListMyTeams(opt *ListTeamsOptions) ([]*Team, *Response, error) + func (c *Client) ListNotifications(opt ListNotificationOptions) ([]*NotificationThread, *Response, error) + func (c *Client) ListOauth2(opt ListOauth2Option) ([]*Oauth2, *Response, error) + func (c *Client) ListOrgActionSecret(org string, opt ListOrgActionSecretOption) ([]*Secret, *Response, error) + func (c *Client) ListOrgHooks(org string, opt ListHooksOptions) ([]*Hook, *Response, error) + func (c *Client) ListOrgMembership(org string, opt ListOrgMembershipOption) ([]*User, *Response, error) + func (c *Client) ListOrgRepos(org string, opt ListOrgReposOptions) ([]*Repository, *Response, error) + func (c *Client) ListOrgTeams(org string, opt ListTeamsOptions) ([]*Team, *Response, error) + func (c *Client) ListPackageFiles(owner, packageType, name, version string) ([]*PackageFile, *Response, error) + func (c *Client) ListPackages(owner string, opt ListPackagesOptions) ([]*Package, *Response, error) + func (c *Client) ListPublicKeys(user string, opt ListPublicKeysOptions) ([]*PublicKey, *Response, error) + func (c *Client) ListPublicOrgMembership(org string, opt ListOrgMembershipOption) ([]*User, *Response, error) + func (c *Client) ListPullRequestCommits(owner, repo string, index int64, opt ListPullRequestCommitsOptions) ([]*Commit, *Response, error) + func (c *Client) ListPullRequestFiles(owner, repo string, index int64, opt ListPullRequestFilesOptions) ([]*ChangedFile, *Response, error) + func (c *Client) ListPullReviewComments(owner, repo string, index, id int64) ([]*PullReviewComment, *Response, error) + func (c *Client) ListPullReviews(owner, repo string, index int64, opt ListPullReviewsOptions) ([]*PullReview, *Response, error) + func (c *Client) ListReleaseAttachments(user, repo string, release int64, opt ListReleaseAttachmentsOptions) ([]*Attachment, *Response, error) + func (c *Client) ListReleases(owner, repo string, opt ListReleasesOptions) ([]*Release, *Response, error) + func (c *Client) ListRepoBranches(user, repo string, opt ListRepoBranchesOptions) ([]*Branch, *Response, error) + func (c *Client) ListRepoCommits(user, repo string, opt ListCommitOptions) ([]*Commit, *Response, error) + func (c *Client) ListRepoGitHooks(user, repo string, opt ListRepoGitHooksOptions) ([]*GitHook, *Response, error) + func (c *Client) ListRepoHooks(user, repo string, opt ListHooksOptions) ([]*Hook, *Response, error) + func (c *Client) ListRepoIssueComments(owner, repo string, opt ListIssueCommentOptions) ([]*Comment, *Response, error) + func (c *Client) ListRepoIssues(owner, repo string, opt ListIssueOption) ([]*Issue, *Response, error) + func (c *Client) ListRepoLabels(owner, repo string, opt ListLabelsOptions) ([]*Label, *Response, error) + func (c *Client) ListRepoMilestones(owner, repo string, opt ListMilestoneOption) ([]*Milestone, *Response, error) + func (c *Client) ListRepoNotifications(owner, repo string, opt ListNotificationOptions) ([]*NotificationThread, *Response, error) + func (c *Client) ListRepoPullRequests(owner, repo string, opt ListPullRequestsOptions) ([]*PullRequest, *Response, error) + func (c *Client) ListRepoStargazers(user, repo string, opt ListStargazersOptions) ([]*User, *Response, error) + func (c *Client) ListRepoTags(user, repo string, opt ListRepoTagsOptions) ([]*Tag, *Response, error) + func (c *Client) ListRepoTopics(user, repo string, opt ListRepoTopicsOptions) ([]string, *Response, error) + func (c *Client) ListRepoTrackedTimes(owner, repo string, opt ListTrackedTimesOptions) ([]*TrackedTime, *Response, error) + func (c *Client) ListStatuses(owner, repo, ref string, opt ListStatusesOption) ([]*Status, *Response, error) + func (c *Client) ListTeamMembers(id int64, opt ListTeamMembersOptions) ([]*User, *Response, error) + func (c *Client) ListTeamRepositories(id int64, opt ListTeamRepositoriesOptions) ([]*Repository, *Response, error) + func (c *Client) ListUserOrgs(user string, opt ListOrgsOptions) ([]*Organization, *Response, error) + func (c *Client) ListUserRepos(user string, opt ListReposOptions) ([]*Repository, *Response, error) + func (c *Client) MergePullRequest(owner, repo string, index int64, opt MergePullRequestOption) (bool, *Response, error) + func (c *Client) MigrateRepo(opt MigrateRepoOption) (*Repository, *Response, error) + func (c *Client) MirrorSync(owner, repo string) (*Response, error) + func (c *Client) PostIssueCommentReaction(owner, repo string, commentID int64, reaction string) (*Reaction, *Response, error) + func (c *Client) PostIssueReaction(owner, repo string, index int64, reaction string) (*Reaction, *Response, error) + func (c *Client) PushMirrors(user, repo string, opt CreatePushMirrorOption) (*PushMirrorResponse, *Response, error) + func (c *Client) ReadNotification(id int64, status ...NotifyStatus) (*NotificationThread, *Response, error) + func (c *Client) ReadNotifications(opt MarkNotificationOptions) ([]*NotificationThread, *Response, error) + func (c *Client) ReadRepoNotifications(owner, repo string, opt MarkNotificationOptions) ([]*NotificationThread, *Response, error) + func (c *Client) RejectRepoTransfer(owner, reponame string) (*Repository, *Response, error) + func (c *Client) RemoveRepoTeam(user, repo, team string) (*Response, error) + func (c *Client) RemoveTeamMember(id int64, user string) (*Response, error) + func (c *Client) RemoveTeamRepository(id int64, org, repo string) (*Response, error) + func (c *Client) ReplaceIssueLabels(owner, repo string, index int64, opt IssueLabelsOption) ([]*Label, *Response, error) + func (c *Client) ResetIssueTime(owner, repo string, index int64) (*Response, error) + func (c *Client) RunCronTasks(task string) (*Response, error) + func (c *Client) SearchOrgTeams(org string, opt *SearchTeamsOptions) ([]*Team, *Response, error) + func (c *Client) SearchRepos(opt SearchRepoOptions) ([]*Repository, *Response, error) + func (c *Client) SearchUsers(opt SearchUsersOption) ([]*User, *Response, error) + func (c *Client) ServerVersion() (string, *Response, error) + func (c *Client) SetBasicAuth(username, password string) + func (c *Client) SetContext(ctx context.Context) + func (c *Client) SetHTTPClient(client *http.Client) + func (c *Client) SetOTP(otp string) + func (c *Client) SetPublicOrgMembership(org, user string, visible bool) (*Response, error) + func (c *Client) SetRepoTopics(user, repo string, list []string) (*Response, error) + func (c *Client) SetSudo(sudo string) + func (c *Client) SetUserAgent(userAgent string) + func (c *Client) SignRequest(r *http.Request) error + func (c *Client) StarRepo(user, repo string) (*Response, error) + func (c *Client) StartIssueStopWatch(owner, repo string, index int64) (*Response, error) + func (c *Client) StopIssueStopWatch(owner, repo string, index int64) (*Response, error) + func (c *Client) SubmitPullReview(owner, repo string, index, id int64, opt SubmitPullReviewOptions) (*PullReview, *Response, error) + func (c *Client) TransferRepo(owner, reponame string, opt TransferRepoOption) (*Repository, *Response, error) + func (c *Client) UnDismissPullReview(owner, repo string, index, id int64) (*Response, error) + func (c *Client) UnStarRepo(user, repo string) (*Response, error) + func (c *Client) UnWatchRepo(owner, repo string) (*Response, error) + func (c *Client) Unfollow(target string) (*Response, error) + func (c *Client) UpdateFile(owner, repo, filepath string, opt UpdateFileOptions) (*FileResponse, *Response, error) + func (c *Client) UpdateOauth2(oauth2id int64, opt CreateOauth2Option) (*Oauth2, *Response, error) + func (c *Client) UpdateUserSettings(opt UserSettingsOptions) (*UserSettings, *Response, error) + func (c *Client) WatchRepo(owner, repo string) (*Response, error) + type ClientOption func(*Client) error + func SetBasicAuth(username, password string) ClientOption + func SetContext(ctx context.Context) ClientOption + func SetDebugMode() ClientOption + func SetGiteaVersion(v string) ClientOption + func SetHTTPClient(httpClient *http.Client) ClientOption + func SetOTP(otp string) ClientOption + func SetSudo(sudo string) ClientOption + func SetToken(token string) ClientOption + func SetUserAgent(userAgent string) ClientOption + func UseSSHCert(principal, sshKey, passphrase string) ClientOption + func UseSSHPubkey(fingerprint, sshKey, passphrase string) ClientOption + type CollaboratorPermissionResult struct + Permission AccessMode + Role string + User *User + type CombinedStatus struct + CommitURL string + Repository *Repository + SHA string + State StatusState + Statuses []*Status + TotalCount int + URL string + type Comment struct + Body string + Created time.Time + HTMLURL string + ID int64 + IssueURL string + OriginalAuthor string + OriginalAuthorID int64 + PRURL string + Poster *User + Updated time.Time + type Commit struct + Author *User + Committer *User + Files []*CommitAffectedFiles + HTMLURL string + Parents []*CommitMeta + RepoCommit *RepoCommit + Stats *CommitStats + type CommitAffectedFiles struct + Filename string + type CommitDateOptions struct + Author time.Time + Committer time.Time + type CommitMeta struct + Created time.Time + SHA string + URL string + type CommitStats struct + Additions int + Deletions int + Total int + type CommitUser struct + Date string + type ContentsResponse struct + Content *string + DownloadURL *string + Encoding *string + GitURL *string + HTMLURL *string + Links *FileLinksResponse + Name string + Path string + SHA string + Size int64 + SubmoduleGitURL *string + Target *string + Type string + URL *string + type CreateAccessTokenOption struct + Name string + Scopes []AccessTokenScope + type CreateBranchOption struct + BranchName string + OldBranchName string + func (opt CreateBranchOption) Validate() error + type CreateBranchProtectionOption struct + ApprovalsWhitelistTeams []string + ApprovalsWhitelistUsernames []string + BlockOnOfficialReviewRequests bool + BlockOnOutdatedBranch bool + BlockOnRejectedReviews bool + BranchName string + DismissStaleApprovals bool + EnableApprovalsWhitelist bool + EnableMergeWhitelist bool + EnablePush bool + EnablePushWhitelist bool + EnableStatusCheck bool + MergeWhitelistTeams []string + MergeWhitelistUsernames []string + ProtectedFilePatterns string + PushWhitelistDeployKeys bool + PushWhitelistTeams []string + PushWhitelistUsernames []string + RequireSignedCommits bool + RequiredApprovals int64 + RuleName string + StatusCheckContexts []string + UnprotectedFilePatterns string + type CreateEmailOption struct + Emails []string + type CreateFileOptions struct + Content string + type CreateForkOption struct + Name *string + Organization *string + type CreateGPGKeyOption struct + ArmoredKey string + type CreateHookOption struct + Active bool + AuthorizationHeader string + BranchFilter string + Config map[string]string + Events []string + Type HookType + func (opt CreateHookOption) Validate() error + type CreateIssueCommentOption struct + Body string + func (opt CreateIssueCommentOption) Validate() error + type CreateIssueOption struct + Assignees []string + Body string + Closed bool + Deadline *time.Time + Labels []int64 + Milestone int64 + Ref string + Title string + func (opt CreateIssueOption) Validate() error + type CreateKeyOption struct + Key string + ReadOnly bool + Title string + type CreateLabelOption struct + Color string + Description string + Name string + func (opt CreateLabelOption) Validate() error + type CreateMilestoneOption struct + Deadline *time.Time + Description string + State StateType + Title string + func (opt CreateMilestoneOption) Validate() error + type CreateOauth2Option struct + ConfidentialClient bool + Name string + RedirectURIs []string + type CreateOrgOption struct + Description string + FullName string + Location string + Name string + RepoAdminChangeTeamAccess bool + Visibility VisibleType + Website string + func (opt CreateOrgOption) Validate() error + type CreatePullRequestOption struct + Assignee string + Assignees []string + Base string + Body string + Deadline *time.Time + Head string + Labels []int64 + Milestone int64 + Title string + type CreatePullReviewComment struct + Body string + NewLineNum int64 + OldLineNum int64 + Path string + func (opt CreatePullReviewComment) Validate() error + type CreatePullReviewOptions struct + Body string + Comments []CreatePullReviewComment + CommitID string + State ReviewStateType + func (opt CreatePullReviewOptions) Validate() error + type CreatePushMirrorOption struct + Interval string + RemoteAddress string + RemotePassword string + RemoteUsername string + SyncONCommit bool + type CreateReleaseOption struct + IsDraft bool + IsPrerelease bool + Note string + TagName string + Target string + Title string + func (opt CreateReleaseOption) Validate() error + type CreateRepoFromTemplateOption struct + Avatar bool + Description string + GitContent bool + GitHooks bool + Labels bool + Name string + Owner string + Private bool + Topics bool + Webhooks bool + func (opt CreateRepoFromTemplateOption) Validate() error + type CreateRepoOption struct + AutoInit bool + DefaultBranch string + Description string + Gitignores string + IssueLabels string + License string + Name string + Private bool + Readme string + Template bool + TrustModel TrustModel + func (opt CreateRepoOption) Validate(c *Client) error + type CreateStatusOption struct + Context string + Description string + State StatusState + TargetURL string + type CreateTagOption struct + Message string + TagName string + Target string + func (opt CreateTagOption) Validate() error + type CreateTeamOption struct + CanCreateOrgRepo bool + Description string + IncludesAllRepositories bool + Name string + Permission AccessMode + Units []RepoUnitType + func (opt *CreateTeamOption) Validate() error + type CreateUserOption struct + Email string + FullName string + LoginName string + MustChangePassword *bool + Password string + SendNotify bool + SourceID int64 + Username string + Visibility *VisibleType + func (opt CreateUserOption) Validate() error + type CronTask struct + ExecTimes int64 + Name string + Next time.Time + Prev time.Time + Schedule string + type DeleteEmailOption struct + Emails []string + type DeleteFileOptions struct + SHA string + type DeployKey struct + Created time.Time + Fingerprint string + ID int64 + Key string + KeyID int64 + ReadOnly bool + Repository *Repository + Title string + URL string + type DismissPullReviewOptions struct + Message string + type EditAttachmentOptions struct + Name string + type EditBranchProtectionOption struct + ApprovalsWhitelistTeams []string + ApprovalsWhitelistUsernames []string + BlockOnOfficialReviewRequests *bool + BlockOnOutdatedBranch *bool + BlockOnRejectedReviews *bool + DismissStaleApprovals *bool + EnableApprovalsWhitelist *bool + EnableMergeWhitelist *bool + EnablePush *bool + EnablePushWhitelist *bool + EnableStatusCheck *bool + MergeWhitelistTeams []string + MergeWhitelistUsernames []string + ProtectedFilePatterns *string + PushWhitelistDeployKeys *bool + PushWhitelistTeams []string + PushWhitelistUsernames []string + RequireSignedCommits *bool + RequiredApprovals *int64 + StatusCheckContexts []string + UnprotectedFilePatterns *string + type EditGitHookOption struct + Content string + type EditHookOption struct + Active *bool + AuthorizationHeader string + BranchFilter string + Config map[string]string + Events []string + type EditIssueCommentOption struct + Body string + func (opt EditIssueCommentOption) Validate() error + type EditIssueOption struct + Assignees []string + Body *string + Deadline *time.Time + Milestone *int64 + Ref *string + RemoveDeadline *bool + State *StateType + Title string + func (opt EditIssueOption) Validate() error + type EditLabelOption struct + Color *string + Description *string + Name *string + func (opt EditLabelOption) Validate() error + type EditMilestoneOption struct + Deadline *time.Time + Description *string + State *StateType + Title string + func (opt EditMilestoneOption) Validate() error + type EditOrgOption struct + Description string + FullName string + Location string + Visibility VisibleType + Website string + func (opt EditOrgOption) Validate() error + type EditPullRequestOption struct + AllowMaintainerEdit *bool + Assignee string + Assignees []string + Base string + Body string + Deadline *time.Time + Labels []int64 + Milestone int64 + RemoveDeadline *bool + State *StateType + Title string + func (opt EditPullRequestOption) Validate(c *Client) error + type EditReleaseOption struct + IsDraft *bool + IsPrerelease *bool + Note string + TagName string + Target string + Title string + type EditRepoOption struct + AllowManualMerge *bool + AllowMerge *bool + AllowRebase *bool + AllowRebaseMerge *bool + AllowSquash *bool + Archived *bool + AutodetectManualMerge *bool + DefaultBranch *string + DefaultMergeStyle *MergeStyle + Description *string + ExternalTracker *ExternalTracker + ExternalWiki *ExternalWiki + HasActions *bool + HasIssues *bool + HasPackages *bool + HasProjects *bool + HasPullRequests *bool + HasReleases *bool + HasWiki *bool + IgnoreWhitespaceConflicts *bool + InternalTracker *InternalTracker + MirrorInterval *string + Name *string + Private *bool + Template *bool + Website *string + type EditTeamOption struct + CanCreateOrgRepo *bool + Description *string + IncludesAllRepositories *bool + Name string + Permission AccessMode + Units []RepoUnitType + func (opt *EditTeamOption) Validate() error + type EditUserOption struct + Active *bool + Admin *bool + AllowCreateOrganization *bool + AllowGitHook *bool + AllowImportLocal *bool + Description *string + Email *string + FullName *string + Location *string + LoginName string + MaxRepoCreation *int + MustChangePassword *bool + Password string + ProhibitLogin *bool + Restricted *bool + SourceID int64 + Visibility *VisibleType + Website *string + type Email struct + Email string + Primary bool + Verified bool + type ErrUnknownVersion struct + func (_ ErrUnknownVersion) Is(target error) bool + func (e ErrUnknownVersion) Error() string + type ExternalTracker struct + ExternalTrackerFormat string + ExternalTrackerStyle string + ExternalTrackerURL string + type ExternalWiki struct + ExternalWikiURL string + type FileCommitResponse struct + Author *CommitUser + Committer *CommitUser + HTMLURL string + Message string + Parents []*CommitMeta + Tree *CommitMeta + type FileDeleteResponse struct + Commit *FileCommitResponse + Content interface{} + Verification *PayloadCommitVerification + type FileLinksResponse struct + GitURL *string + HTMLURL *string + Self *string + type FileOptions struct + Author Identity + BranchName string + Committer Identity + Dates CommitDateOptions + Message string + NewBranchName string + Signoff bool + type FileResponse struct + Commit *FileCommitResponse + Content *ContentsResponse + Verification *PayloadCommitVerification + type GPGKey struct + CanCertify bool + CanEncryptComms bool + CanEncryptStorage bool + CanSign bool + Created time.Time + Emails []*GPGKeyEmail + Expires time.Time + ID int64 + KeyID string + PrimaryKeyID string + PublicKey string + SubsKey []*GPGKey + type GPGKeyEmail struct + Email string + Verified bool + type GitBlobResponse struct + Content string + Encoding string + SHA string + Size int64 + URL string + type GitEntry struct + Mode string + Path string + SHA string + Size int64 + Type string + URL string + type GitHook struct + Content string + IsActive bool + Name string + type GitObject struct + SHA string + Type string + URL string + type GitServiceType string + const GitServiceGitea + const GitServiceGithub + const GitServiceGitlab + const GitServiceGogs + const GitServicePlain + type GitTreeResponse struct + Entries []GitEntry + Page int + SHA string + TotalCount int + Truncated bool + URL string + type GlobalAPISettings struct + DefaultGitTreesPerPage int + DefaultMaxBlobSize int64 + DefaultPagingNum int + MaxResponseItems int + type GlobalAttachmentSettings struct + AllowedTypes string + Enabled bool + MaxFiles int + MaxSize int64 + type GlobalRepoSettings struct + HTTPGitDisabled bool + LFSDisabled bool + MigrationsDisabled bool + MirrorsDisabled bool + StarsDisabled bool + TimeTrackingDisabled bool + type GlobalUISettings struct + AllowedReactions []string + CustomEmojis []string + DefaultTheme string + type HTTPSign struct + func NewHTTPSignWithCert(principal, sshKey, passphrase string) (*HTTPSign, error) + func NewHTTPSignWithPubkey(fingerprint, sshKey, passphrase string) (*HTTPSign, error) + type HTTPSignConfig struct + type Hook struct + Active bool + Config map[string]string + Created time.Time + Events []string + ID int64 + Type string + URL string + Updated time.Time + type HookType string + const HookTypeDingtalk + const HookTypeDiscord + const HookTypeFeishu + const HookTypeGitea + const HookTypeGogs + const HookTypeMsteams + const HookTypeSlack + const HookTypeTelegram + type Identity struct + Email string + Name string + type InternalTracker struct + AllowOnlyContributorsToTrackTime bool + EnableIssueDependencies bool + EnableTimeTracker bool + type Issue struct + Assignees []*User + Body string + Closed *time.Time + Comments int + Created time.Time + Deadline *time.Time + HTMLURL string + ID int64 + Index int64 + IsLocked bool + Labels []*Label + Milestone *Milestone + OriginalAuthor string + OriginalAuthorID int64 + Poster *User + PullRequest *PullRequestMeta + Ref string + Repository *RepositoryMeta + State StateType + Title string + URL string + Updated time.Time + type IssueFormElement struct + Attributes IssueFormElementAttributes + ID string + Type IssueFormElementType + Validations IssueFormElementValidations + type IssueFormElementAttributes struct + Description string + Label string + Multiple bool + Options []string + Placeholder string + SyntaxHighlighting string + Value string + type IssueFormElementType string + const IssueFormElementCheckboxes + const IssueFormElementDropdown + const IssueFormElementInput + const IssueFormElementMarkdown + const IssueFormElementTextarea + type IssueFormElementValidations struct + IsNumber bool + Regex string + Required bool + type IssueLabelsOption struct + Labels []int64 + type IssueTemplate struct + About string + Filename string + Form []IssueFormElement + IssueLabels []string + IssueRef string + IssueTitle string + MarkdownContent string + Name string + func (t IssueTemplate) IsForm() bool + type IssueType string + const IssueTypeAll + const IssueTypeIssue + const IssueTypePull + type Label struct + Color string + Description string + ID int64 + Name string + URL string + type ListAccessTokensOptions struct + type ListBranchProtectionsOptions struct + type ListCollaboratorsOptions struct + type ListCommitOptions struct + Path string + SHA string + func (opt *ListCommitOptions) QueryEncode() string + type ListCronTaskOptions struct + type ListDeployKeysOptions struct + Fingerprint string + KeyID int64 + func (opt *ListDeployKeysOptions) QueryEncode() string + type ListEmailsOptions struct + type ListFollowersOptions struct + type ListFollowingOptions struct + type ListForksOptions struct + type ListGPGKeysOptions struct + type ListHooksOptions struct + type ListIssueCommentOptions struct + Before time.Time + Since time.Time + func (opt *ListIssueCommentOptions) QueryEncode() string + type ListIssueOption struct + AssignedBy string + Before time.Time + CreatedBy string + KeyWord string + Labels []string + MentionedBy string + Milestones []string + Owner string + Since time.Time + State StateType + Team string + Type IssueType + func (opt *ListIssueOption) QueryEncode() string + type ListLabelsOptions struct + type ListMilestoneOption struct + Name string + State StateType + func (opt *ListMilestoneOption) QueryEncode() string + type ListNotificationOptions struct + Before time.Time + Since time.Time + Status []NotifyStatus + SubjectTypes []NotifySubjectType + func (opt *ListNotificationOptions) QueryEncode() string + func (opt ListNotificationOptions) Validate(c *Client) error + type ListOauth2Option struct + type ListOptions struct + Page int + PageSize int + type ListOrgActionSecretOption struct + type ListOrgMembershipOption struct + type ListOrgReposOptions struct + type ListOrgsOptions struct + type ListPackagesOptions struct + type ListPublicKeysOptions struct + type ListPullRequestCommitsOptions struct + type ListPullRequestFilesOptions struct + type ListPullRequestsOptions struct + Milestone int64 + Sort string + State StateType + func (opt *ListPullRequestsOptions) QueryEncode() string + type ListPullReviewsOptions struct + type ListReleaseAttachmentsOptions struct + type ListReleasesOptions struct + IsDraft *bool + IsPreRelease *bool + func (opt *ListReleasesOptions) QueryEncode() string + type ListRepoBranchesOptions struct + type ListRepoGitHooksOptions struct + type ListRepoTagsOptions struct + type ListRepoTopicsOptions struct + type ListReposOptions struct + type ListStargazersOptions struct + type ListStatusesOption struct + type ListTeamMembersOptions struct + type ListTeamRepositoriesOptions struct + type ListTeamsOptions struct + type ListTrackedTimesOptions struct + Before time.Time + Since time.Time + User string + func (opt *ListTrackedTimesOptions) QueryEncode() string + type MarkNotificationOptions struct + LastReadAt time.Time + Status []NotifyStatus + ToStatus NotifyStatus + func (opt *MarkNotificationOptions) QueryEncode() string + func (opt MarkNotificationOptions) Validate(c *Client) error + type MergePullRequestOption struct + DeleteBranchAfterMerge bool + ForceMerge bool + HeadCommitId string + MergeCommitID string + MergeWhenChecksSucceed bool + Message string + Style MergeStyle + Title string + func (opt MergePullRequestOption) Validate(c *Client) error + type MergeStyle string + const MergeStyleMerge + const MergeStyleRebase + const MergeStyleRebaseMerge + const MergeStyleSquash + type MigrateRepoOption struct + AuthPassword string + AuthToken string + AuthUsername string + CloneAddr string + Description string + Issues bool + LFS bool + LFSEndpoint string + Labels bool + Milestones bool + Mirror bool + MirrorInterval string + Private bool + PullRequests bool + Releases bool + RepoName string + RepoOwner string + RepoOwnerID int64 + Service GitServiceType + Wiki bool + func (opt *MigrateRepoOption) Validate(c *Client) error + type Milestone struct + Closed *time.Time + ClosedIssues int + Created time.Time + Deadline *time.Time + Description string + ID int64 + OpenIssues int + State StateType + Title string + Updated *time.Time + type NotificationSubject struct + HTMLURL string + LatestCommentHTMLURL string + LatestCommentURL string + State NotifySubjectState + Title string + Type NotifySubjectType + URL string + type NotificationThread struct + ID int64 + Pinned bool + Repository *Repository + Subject *NotificationSubject + URL string + Unread bool + UpdatedAt time.Time + type NotifyStatus string + const NotifyStatusPinned + const NotifyStatusRead + const NotifyStatusUnread + type NotifySubjectState string + const NotifySubjectClosed + const NotifySubjectMerged + const NotifySubjectOpen + type NotifySubjectType string + const NotifySubjectCommit + const NotifySubjectIssue + const NotifySubjectPull + const NotifySubjectRepository + type Oauth2 struct + ClientID string + ClientSecret string + ConfidentialClient bool + Created time.Time + ID int64 + Name string + RedirectURIs []string + type OrgPermissions struct + CanCreateRepository bool + CanRead bool + CanWrite bool + IsAdmin bool + IsOwner bool + type Organization struct + AvatarURL string + Description string + FullName string + ID int64 + Location string + UserName string + Visibility string + Website string + type PRBranchInfo struct + Name string + Ref string + RepoID int64 + Repository *Repository + Sha string + type Package struct + CreatedAt time.Time + Creator User + ID int64 + Name string + Owner User + Repository *string + Type string + Version string + type PackageFile struct + ID int64 + MD5 string + Name string + SHA1 string + SHA256 string + SHA512 string + Size int64 + type PayloadCommit struct + Added []string + Author *PayloadUser + Committer *PayloadUser + ID string + Message string + Modified []string + Removed []string + Timestamp time.Time + URL string + Verification *PayloadCommitVerification + type PayloadCommitVerification struct + Payload string + Reason string + Signature string + Verified bool + type PayloadUser struct + Email string + Name string + UserName string + type Permission struct + Admin bool + Pull bool + Push bool + type PublicKey struct + Created time.Time + Fingerprint string + ID int64 + Key string + KeyType string + Owner *User + ReadOnly bool + Title string + URL string + type PullRequest struct + AllowMaintainerEdit bool + Assignee *User + Assignees []*User + Base *PRBranchInfo + Body string + Closed *time.Time + Comments int + Created *time.Time + Deadline *time.Time + DiffURL string + HTMLURL string + HasMerged bool + Head *PRBranchInfo + ID int64 + Index int64 + IsLocked bool + Labels []*Label + MergeBase string + Mergeable bool + Merged *time.Time + MergedBy *User + MergedCommitID *string + Milestone *Milestone + PatchURL string + Poster *User + State StateType + Title string + URL string + Updated *time.Time + type PullRequestDiffOptions struct + Binary bool + func (o PullRequestDiffOptions) QueryEncode() string + type PullRequestMeta struct + HasMerged bool + Merged *time.Time + type PullReview struct + Body string + CodeCommentsCount int + CommitID string + Dismissed bool + HTMLPullURL string + HTMLURL string + ID int64 + Official bool + Reviewer *User + ReviewerTeam *Team + Stale bool + State ReviewStateType + Submitted time.Time + type PullReviewComment struct + Body string + CommitID string + Created time.Time + DiffHunk string + HTMLPullURL string + HTMLURL string + ID int64 + LineNum uint64 + OldLineNum uint64 + OrigCommitID string + Path string + Resolver *User + ReviewID int64 + Reviewer *User + Updated time.Time + type PullReviewRequestOptions struct + Reviewers []string + TeamReviewers []string + type PushMirrorResponse struct + Created string + Interval string + LastError string + LastUpdate string + RemoteAddress string + RemoteName string + RepoName string + SyncONCommit bool + type Reaction struct + Created time.Time + Reaction string + User *User + type Reference struct + Object *GitObject + Ref string + URL string + type Release struct + Attachments []*Attachment + CreatedAt time.Time + HTMLURL string + ID int64 + IsDraft bool + IsPrerelease bool + Note string + PublishedAt time.Time + Publisher *User + TagName string + TarURL string + Target string + Title string + URL string + ZipURL string + type RepoCommit struct + Author *CommitUser + Committer *CommitUser + Message string + Tree *CommitMeta + URL string + Verification *PayloadCommitVerification + type RepoType string + const RepoTypeFork + const RepoTypeMirror + const RepoTypeNone + const RepoTypeSource + type RepoUnitType string + const RepoUnitActions + const RepoUnitCode + const RepoUnitExtIssues + const RepoUnitExtWiki + const RepoUnitIssues + const RepoUnitPackages + const RepoUnitProjects + const RepoUnitPulls + const RepoUnitReleases + const RepoUnitWiki + type Repository struct + AllowMerge bool + AllowRebase bool + AllowRebaseMerge bool + AllowSquash bool + Archived bool + AvatarURL string + CloneURL string + Created time.Time + DefaultBranch string + DefaultMergeStyle MergeStyle + Description string + Empty bool + ExternalTracker *ExternalTracker + ExternalWiki *ExternalWiki + Fork bool + Forks int + FullName string + HTMLURL string + HasActions bool + HasIssues bool + HasPackages bool + HasProjects bool + HasPullRequests bool + HasReleases bool + HasWiki bool + ID int64 + IgnoreWhitespaceConflicts bool + Internal bool + InternalTracker *InternalTracker + Mirror bool + MirrorInterval string + MirrorUpdated time.Time + Name string + OpenIssues int + OpenPulls int + OriginalURL string + Owner *User + Parent *Repository + Permissions *Permission + Private bool + Releases int + SSHURL string + Size int + Stars int + Template bool + Updated time.Time + Watchers int + Website string + type RepositoryMeta struct + FullName string + ID int64 + Name string + Owner string + type Response struct + FirstPage int + LastPage int + NextPage int + PrevPage int + type ReviewStateType string + const ReviewStateApproved + const ReviewStateComment + const ReviewStatePending + const ReviewStateRequestChanges + const ReviewStateRequestReview + const ReviewStateUnknown + type SearchRepoOptions struct + ExcludeTemplate bool + IsArchived *bool + IsPrivate *bool + Keyword string + KeywordInDescription bool + KeywordIsTopic bool + Order string + OwnerID int64 + PrioritizedByOwnerID int64 + RawQuery string + Sort string + StarredByUserID int64 + Type RepoType + func (opt *SearchRepoOptions) QueryEncode() string + type SearchTeamsOptions struct + IncludeDescription bool + Query string + type SearchUsersOption struct + KeyWord string + func (opt *SearchUsersOption) QueryEncode() string + type Secret struct + Created time.Time + Name string + type StateType string + const StateAll + const StateClosed + const StateOpen + type Status struct + Context string + Created time.Time + Creator *User + Description string + ID int64 + State StatusState + TargetURL string + URL string + Updated time.Time + type StatusState string + const StatusError + const StatusFailure + const StatusPending + const StatusSuccess + const StatusWarning + type StopWatch struct + Created time.Time + Duration string + IssueIndex int64 + IssueTitle string + RepoName string + RepoOwnerName string + Seconds int64 + type SubmitPullReviewOptions struct + Body string + State ReviewStateType + func (opt SubmitPullReviewOptions) Validate() error + type Tag struct + Commit *CommitMeta + ID string + Message string + Name string + TarballURL string + ZipballURL string + type Team struct + CanCreateOrgRepo bool + Description string + ID int64 + IncludesAllRepositories bool + Name string + Organization *Organization + Permission AccessMode + Units []RepoUnitType + type TeamSearchResults struct + Data []*Team + Error string + OK bool + type TrackedTime struct + Created time.Time + ID int64 + Issue *Issue + IssueID int64 + Time int64 + UserID int64 + UserName string + type TransferRepoOption struct + NewOwner string + TeamIDs *[]int64 + type TrustModel string + const TrustModelCollaborator + const TrustModelCollaboratorCommitter + const TrustModelCommitter + const TrustModelDefault + type UpdateFileOptions struct + Content string + FromPath string + SHA string + type User struct + AvatarURL string + Created time.Time + Description string + Email string + FollowerCount int + FollowingCount int + FullName string + ID int64 + IsActive bool + IsAdmin bool + Language string + LastLogin time.Time + Location string + ProhibitLogin bool + Restricted bool + StarredRepoCount int + UserName string + Visibility VisibleType + Website string + type UserSettings struct + Description string + DiffViewStyle string + FullName string + HideActivity bool + HideEmail bool + Language string + Location string + Theme string + Website string + type UserSettingsOptions struct + Description *string + DiffViewStyle *string + FullName *string + HideActivity *bool + HideEmail *bool + Language *string + Location *string + Theme *string + Website *string + type VisibleType string + const VisibleTypeLimited + const VisibleTypePrivate + const VisibleTypePublic + type WatchInfo struct + CreatedAt time.Time + Ignored bool + Reason interface{} + RepositoryURL string + Subscribed bool + URL string