Documentation
¶
Index ¶
- Constants
- type APIError
- type AccessToken
- type ActionTask
- type ActionTaskResponse
- type ActionVariable
- type Activity
- type ActivityPub
- type AddCollaboratorOption
- type AddTimeOption
- type AnnotatedTag
- type AnnotatedTagObject
- type Attachment
- type Badge
- type Branch
- type BranchProtection
- type ChangeFileOperation
- type ChangeFilesOptions
- type ChangedFile
- type CombinedStatus
- type Comment
- type Commit
- type CommitAffectedFiles
- type CommitDateOptions
- type CommitMeta
- type CommitStats
- type CommitStatus
- type CommitStatusState
- type CommitUser
- type Compare
- type ContentsResponse
- type CreateAccessTokenOption
- func (m *CreateAccessTokenOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateAccessTokenOption) MarshalBinary() ([]byte, error)
- func (m *CreateAccessTokenOption) UnmarshalBinary(b []byte) error
- func (m *CreateAccessTokenOption) Validate(formats strfmt.Registry) error
- type CreateBranchProtectionOption
- func (m *CreateBranchProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateBranchProtectionOption) MarshalBinary() ([]byte, error)
- func (m *CreateBranchProtectionOption) UnmarshalBinary(b []byte) error
- func (m *CreateBranchProtectionOption) Validate(formats strfmt.Registry) error
- type CreateBranchRepoOption
- func (m *CreateBranchRepoOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateBranchRepoOption) MarshalBinary() ([]byte, error)
- func (m *CreateBranchRepoOption) UnmarshalBinary(b []byte) error
- func (m *CreateBranchRepoOption) Validate(formats strfmt.Registry) error
- type CreateEmailOption
- type CreateFileOptions
- type CreateForkOption
- type CreateGPGKeyOption
- type CreateHookOption
- type CreateHookOptionConfig
- type CreateIssueCommentOption
- func (m *CreateIssueCommentOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateIssueCommentOption) MarshalBinary() ([]byte, error)
- func (m *CreateIssueCommentOption) UnmarshalBinary(b []byte) error
- func (m *CreateIssueCommentOption) Validate(formats strfmt.Registry) error
- type CreateIssueOption
- type CreateKeyOption
- type CreateLabelOption
- type CreateMilestoneOption
- type CreateOAuth2ApplicationOptions
- func (m *CreateOAuth2ApplicationOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateOAuth2ApplicationOptions) MarshalBinary() ([]byte, error)
- func (m *CreateOAuth2ApplicationOptions) UnmarshalBinary(b []byte) error
- func (m *CreateOAuth2ApplicationOptions) Validate(formats strfmt.Registry) error
- type CreateOrUpdateSecretOption
- func (m *CreateOrUpdateSecretOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateOrUpdateSecretOption) MarshalBinary() ([]byte, error)
- func (m *CreateOrUpdateSecretOption) UnmarshalBinary(b []byte) error
- func (m *CreateOrUpdateSecretOption) Validate(formats strfmt.Registry) error
- type CreateOrgOption
- type CreatePullRequestOption
- func (m *CreatePullRequestOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreatePullRequestOption) MarshalBinary() ([]byte, error)
- func (m *CreatePullRequestOption) UnmarshalBinary(b []byte) error
- func (m *CreatePullRequestOption) Validate(formats strfmt.Registry) error
- type CreatePullReviewComment
- func (m *CreatePullReviewComment) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreatePullReviewComment) MarshalBinary() ([]byte, error)
- func (m *CreatePullReviewComment) UnmarshalBinary(b []byte) error
- func (m *CreatePullReviewComment) Validate(formats strfmt.Registry) error
- type CreatePullReviewOptions
- func (m *CreatePullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreatePullReviewOptions) MarshalBinary() ([]byte, error)
- func (m *CreatePullReviewOptions) UnmarshalBinary(b []byte) error
- func (m *CreatePullReviewOptions) Validate(formats strfmt.Registry) error
- type CreatePushMirrorOption
- func (m *CreatePushMirrorOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreatePushMirrorOption) MarshalBinary() ([]byte, error)
- func (m *CreatePushMirrorOption) UnmarshalBinary(b []byte) error
- func (m *CreatePushMirrorOption) Validate(formats strfmt.Registry) error
- type CreateReleaseOption
- type CreateRepoOption
- type CreateStatusOption
- type CreateTagOption
- type CreateTagProtectionOption
- func (m *CreateTagProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateTagProtectionOption) MarshalBinary() ([]byte, error)
- func (m *CreateTagProtectionOption) UnmarshalBinary(b []byte) error
- func (m *CreateTagProtectionOption) Validate(formats strfmt.Registry) error
- type CreateTeamOption
- type CreateUserOption
- type CreateVariableOption
- type CreateWikiPageOptions
- type Cron
- type DeleteEmailOption
- type DeleteFileOptions
- type DeployKey
- type DismissPullReviewOptions
- func (m *DismissPullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DismissPullReviewOptions) MarshalBinary() ([]byte, error)
- func (m *DismissPullReviewOptions) UnmarshalBinary(b []byte) error
- func (m *DismissPullReviewOptions) Validate(formats strfmt.Registry) error
- type EditAttachmentOptions
- type EditBranchProtectionOption
- func (m *EditBranchProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EditBranchProtectionOption) MarshalBinary() ([]byte, error)
- func (m *EditBranchProtectionOption) UnmarshalBinary(b []byte) error
- func (m *EditBranchProtectionOption) Validate(formats strfmt.Registry) error
- type EditDeadlineOption
- type EditGitHookOption
- type EditHookOption
- type EditIssueCommentOption
- func (m *EditIssueCommentOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EditIssueCommentOption) MarshalBinary() ([]byte, error)
- func (m *EditIssueCommentOption) UnmarshalBinary(b []byte) error
- func (m *EditIssueCommentOption) Validate(formats strfmt.Registry) error
- type EditIssueOption
- type EditLabelOption
- type EditMilestoneOption
- type EditOrgOption
- type EditPullRequestOption
- type EditReactionOption
- type EditReleaseOption
- type EditRepoOption
- type EditTagProtectionOption
- func (m *EditTagProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EditTagProtectionOption) MarshalBinary() ([]byte, error)
- func (m *EditTagProtectionOption) UnmarshalBinary(b []byte) error
- func (m *EditTagProtectionOption) Validate(formats strfmt.Registry) error
- type EditTeamOption
- type EditUserOption
- type Email
- type ExternalTracker
- type ExternalWiki
- type FileCommitResponse
- type FileDeleteResponse
- type FileLinksResponse
- type FileResponse
- type FilesResponse
- type GPGKey
- type GPGKeyEmail
- type GeneralAPISettings
- type GeneralAttachmentSettings
- func (m *GeneralAttachmentSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GeneralAttachmentSettings) MarshalBinary() ([]byte, error)
- func (m *GeneralAttachmentSettings) UnmarshalBinary(b []byte) error
- func (m *GeneralAttachmentSettings) Validate(formats strfmt.Registry) error
- type GeneralRepoSettings
- type GeneralUISettings
- type GenerateRepoOption
- type GitBlobResponse
- type GitEntry
- type GitHook
- type GitObject
- type GitTreeResponse
- type GitignoreTemplateInfo
- type Hook
- type Identity
- type InternalTracker
- type Issue
- type IssueConfig
- type IssueConfigContactLink
- func (m *IssueConfigContactLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *IssueConfigContactLink) MarshalBinary() ([]byte, error)
- func (m *IssueConfigContactLink) UnmarshalBinary(b []byte) error
- func (m *IssueConfigContactLink) Validate(formats strfmt.Registry) error
- type IssueConfigValidation
- type IssueDeadline
- type IssueFormField
- type IssueFormFieldType
- type IssueFormFieldVisible
- type IssueLabelsOption
- type IssueMeta
- type IssueTemplate
- type IssueTemplateLabels
- type Label
- type LabelTemplate
- type LicenseTemplateInfo
- type LicensesTemplateListEntry
- func (m *LicensesTemplateListEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *LicensesTemplateListEntry) MarshalBinary() ([]byte, error)
- func (m *LicensesTemplateListEntry) UnmarshalBinary(b []byte) error
- func (m *LicensesTemplateListEntry) Validate(formats strfmt.Registry) error
- type MarkdownOption
- type MarkupOption
- type MergePullRequestForm
- type MigrateRepoOptions
- type Milestone
- type NewIssuePinsAllowed
- type NodeInfo
- type NodeInfoServices
- type NodeInfoSoftware
- type NodeInfoUsage
- type NodeInfoUsageUsers
- type Note
- type NotificationCount
- type NotificationSubject
- type NotificationThread
- type NotifySubjectType
- type OAuth2Application
- type Organization
- type OrganizationPermissions
- func (m *OrganizationPermissions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *OrganizationPermissions) MarshalBinary() ([]byte, error)
- func (m *OrganizationPermissions) UnmarshalBinary(b []byte) error
- func (m *OrganizationPermissions) Validate(formats strfmt.Registry) error
- type PRBranchInfo
- type Package
- type PackageFile
- type PayloadCommit
- type PayloadCommitVerification
- func (m *PayloadCommitVerification) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PayloadCommitVerification) MarshalBinary() ([]byte, error)
- func (m *PayloadCommitVerification) UnmarshalBinary(b []byte) error
- func (m *PayloadCommitVerification) Validate(formats strfmt.Registry) error
- type PayloadUser
- type Permission
- type PublicKey
- type PullRequest
- type PullRequestMeta
- type PullReview
- type PullReviewComment
- type PullReviewRequestOptions
- func (m *PullReviewRequestOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PullReviewRequestOptions) MarshalBinary() ([]byte, error)
- func (m *PullReviewRequestOptions) UnmarshalBinary(b []byte) error
- func (m *PullReviewRequestOptions) Validate(formats strfmt.Registry) error
- type PushMirror
- type Reaction
- type Reference
- type Release
- type RenameUserOption
- type RepoCollaboratorPermission
- func (m *RepoCollaboratorPermission) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RepoCollaboratorPermission) MarshalBinary() ([]byte, error)
- func (m *RepoCollaboratorPermission) UnmarshalBinary(b []byte) error
- func (m *RepoCollaboratorPermission) Validate(formats strfmt.Registry) error
- type RepoCommit
- type RepoTopicOptions
- type RepoTransfer
- type Repository
- type RepositoryMeta
- type ReviewStateType
- type SearchResults
- type Secret
- type ServerVersion
- type StateType
- type StopWatch
- type SubmitPullReviewOptions
- func (m *SubmitPullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SubmitPullReviewOptions) MarshalBinary() ([]byte, error)
- func (m *SubmitPullReviewOptions) UnmarshalBinary(b []byte) error
- func (m *SubmitPullReviewOptions) Validate(formats strfmt.Registry) error
- type Tag
- type TagProtection
- type Team
- type TimeStamp
- type TimelineComment
- type TopicName
- type TopicResponse
- type TrackedTime
- type TransferRepoOption
- type UpdateFileOptions
- type UpdateRepoAvatarOption
- func (m *UpdateRepoAvatarOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UpdateRepoAvatarOption) MarshalBinary() ([]byte, error)
- func (m *UpdateRepoAvatarOption) UnmarshalBinary(b []byte) error
- func (m *UpdateRepoAvatarOption) Validate(formats strfmt.Registry) error
- type UpdateUserAvatarOption
- func (m *UpdateUserAvatarOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UpdateUserAvatarOption) MarshalBinary() ([]byte, error)
- func (m *UpdateUserAvatarOption) UnmarshalBinary(b []byte) error
- func (m *UpdateUserAvatarOption) Validate(formats strfmt.Registry) error
- type UpdateVariableOption
- type User
- type UserBadgeOption
- type UserHeatmapData
- type UserSettings
- type UserSettingsOptions
- type WatchInfo
- type WikiCommit
- type WikiCommitList
- type WikiPage
- type WikiPageMetaData
Constants ¶
const ( // ActivityOpTypeCreateRepo captures enum value "create_repo" ActivityOpTypeCreateRepo string = "create_repo" // ActivityOpTypeRenameRepo captures enum value "rename_repo" ActivityOpTypeRenameRepo string = "rename_repo" // ActivityOpTypeStarRepo captures enum value "star_repo" ActivityOpTypeStarRepo string = "star_repo" // ActivityOpTypeWatchRepo captures enum value "watch_repo" ActivityOpTypeWatchRepo string = "watch_repo" // ActivityOpTypeCommitRepo captures enum value "commit_repo" ActivityOpTypeCommitRepo string = "commit_repo" // ActivityOpTypeCreateIssue captures enum value "create_issue" ActivityOpTypeCreateIssue string = "create_issue" // ActivityOpTypeCreatePullRequest captures enum value "create_pull_request" ActivityOpTypeCreatePullRequest string = "create_pull_request" // ActivityOpTypeTransferRepo captures enum value "transfer_repo" ActivityOpTypeTransferRepo string = "transfer_repo" // ActivityOpTypePushTag captures enum value "push_tag" ActivityOpTypePushTag string = "push_tag" // ActivityOpTypeCommentIssue captures enum value "comment_issue" ActivityOpTypeCommentIssue string = "comment_issue" // ActivityOpTypeMergePullRequest captures enum value "merge_pull_request" ActivityOpTypeMergePullRequest string = "merge_pull_request" // ActivityOpTypeCloseIssue captures enum value "close_issue" ActivityOpTypeCloseIssue string = "close_issue" // ActivityOpTypeReopenIssue captures enum value "reopen_issue" ActivityOpTypeReopenIssue string = "reopen_issue" // ActivityOpTypeClosePullRequest captures enum value "close_pull_request" ActivityOpTypeClosePullRequest string = "close_pull_request" // ActivityOpTypeReopenPullRequest captures enum value "reopen_pull_request" ActivityOpTypeReopenPullRequest string = "reopen_pull_request" // ActivityOpTypeDeleteTag captures enum value "delete_tag" ActivityOpTypeDeleteTag string = "delete_tag" // ActivityOpTypeDeleteBranch captures enum value "delete_branch" ActivityOpTypeDeleteBranch string = "delete_branch" // ActivityOpTypeMirrorSyncPush captures enum value "mirror_sync_push" ActivityOpTypeMirrorSyncPush string = "mirror_sync_push" // ActivityOpTypeMirrorSyncCreate captures enum value "mirror_sync_create" ActivityOpTypeMirrorSyncCreate string = "mirror_sync_create" // ActivityOpTypeMirrorSyncDelete captures enum value "mirror_sync_delete" ActivityOpTypeMirrorSyncDelete string = "mirror_sync_delete" // ActivityOpTypeApprovePullRequest captures enum value "approve_pull_request" ActivityOpTypeApprovePullRequest string = "approve_pull_request" // ActivityOpTypeRejectPullRequest captures enum value "reject_pull_request" ActivityOpTypeRejectPullRequest string = "reject_pull_request" // ActivityOpTypeCommentPull captures enum value "comment_pull" ActivityOpTypeCommentPull string = "comment_pull" // ActivityOpTypePublishRelease captures enum value "publish_release" ActivityOpTypePublishRelease string = "publish_release" // ActivityOpTypePullReviewDismissed captures enum value "pull_review_dismissed" ActivityOpTypePullReviewDismissed string = "pull_review_dismissed" // ActivityOpTypePullRequestReadyForReview captures enum value "pull_request_ready_for_review" ActivityOpTypePullRequestReadyForReview string = "pull_request_ready_for_review" // ActivityOpTypeAutoMergePullRequest captures enum value "auto_merge_pull_request" ActivityOpTypeAutoMergePullRequest string = "auto_merge_pull_request" )
const ( // ChangeFileOperationOperationCreate captures enum value "create" ChangeFileOperationOperationCreate string = "create" // ChangeFileOperationOperationUpdate captures enum value "update" ChangeFileOperationOperationUpdate string = "update" // ChangeFileOperationOperationDelete captures enum value "delete" ChangeFileOperationOperationDelete string = "delete" )
const ( // CreateHookOptionTypeDingtalk captures enum value "dingtalk" CreateHookOptionTypeDingtalk string = "dingtalk" // CreateHookOptionTypeDiscord captures enum value "discord" CreateHookOptionTypeDiscord string = "discord" // CreateHookOptionTypeGitea captures enum value "gitea" CreateHookOptionTypeGitea string = "gitea" // CreateHookOptionTypeGogs captures enum value "gogs" CreateHookOptionTypeGogs string = "gogs" // CreateHookOptionTypeMsteams captures enum value "msteams" CreateHookOptionTypeMsteams string = "msteams" // CreateHookOptionTypeSlack captures enum value "slack" CreateHookOptionTypeSlack string = "slack" // CreateHookOptionTypeTelegram captures enum value "telegram" CreateHookOptionTypeTelegram string = "telegram" // CreateHookOptionTypeFeishu captures enum value "feishu" CreateHookOptionTypeFeishu string = "feishu" // CreateHookOptionTypeWechatwork captures enum value "wechatwork" CreateHookOptionTypeWechatwork string = "wechatwork" // CreateHookOptionTypePackagist captures enum value "packagist" CreateHookOptionTypePackagist string = "packagist" )
const ( // CreateMilestoneOptionStateOpen captures enum value "open" CreateMilestoneOptionStateOpen string = "open" // CreateMilestoneOptionStateClosed captures enum value "closed" CreateMilestoneOptionStateClosed string = "closed" )
const ( // CreateOrgOptionVisibilityPublic captures enum value "public" CreateOrgOptionVisibilityPublic string = "public" // CreateOrgOptionVisibilityLimited captures enum value "limited" CreateOrgOptionVisibilityLimited string = "limited" // CreateOrgOptionVisibilityPrivate captures enum value "private" CreateOrgOptionVisibilityPrivate string = "private" )
const ( // CreateRepoOptionObjectFormatNameSha1 captures enum value "sha1" CreateRepoOptionObjectFormatNameSha1 string = "sha1" // CreateRepoOptionObjectFormatNameSha256 captures enum value "sha256" CreateRepoOptionObjectFormatNameSha256 string = "sha256" )
const ( // CreateRepoOptionTrustModelDefault captures enum value "default" CreateRepoOptionTrustModelDefault string = "default" // CreateRepoOptionTrustModelCollaborator captures enum value "collaborator" CreateRepoOptionTrustModelCollaborator string = "collaborator" // CreateRepoOptionTrustModelCommitter captures enum value "committer" CreateRepoOptionTrustModelCommitter string = "committer" // CreateRepoOptionTrustModelCollaboratorcommitter captures enum value "collaboratorcommitter" CreateRepoOptionTrustModelCollaboratorcommitter string = "collaboratorcommitter" )
const ( // CreateTeamOptionPermissionRead captures enum value "read" CreateTeamOptionPermissionRead string = "read" // CreateTeamOptionPermissionWrite captures enum value "write" CreateTeamOptionPermissionWrite string = "write" // CreateTeamOptionPermissionAdmin captures enum value "admin" CreateTeamOptionPermissionAdmin string = "admin" )
const ( // EditOrgOptionVisibilityPublic captures enum value "public" EditOrgOptionVisibilityPublic string = "public" // EditOrgOptionVisibilityLimited captures enum value "limited" EditOrgOptionVisibilityLimited string = "limited" // EditOrgOptionVisibilityPrivate captures enum value "private" EditOrgOptionVisibilityPrivate string = "private" )
const ( // EditTeamOptionPermissionRead captures enum value "read" EditTeamOptionPermissionRead string = "read" // EditTeamOptionPermissionWrite captures enum value "write" EditTeamOptionPermissionWrite string = "write" // EditTeamOptionPermissionAdmin captures enum value "admin" EditTeamOptionPermissionAdmin string = "admin" )
const ( // MergePullRequestFormDoMerge captures enum value "merge" MergePullRequestFormDoMerge string = "merge" // MergePullRequestFormDoRebase captures enum value "rebase" MergePullRequestFormDoRebase string = "rebase" // MergePullRequestFormDoRebaseDashMerge captures enum value "rebase-merge" MergePullRequestFormDoRebaseDashMerge string = "rebase-merge" // MergePullRequestFormDoSquash captures enum value "squash" MergePullRequestFormDoSquash string = "squash" // MergePullRequestFormDoFastDashForwardDashOnly captures enum value "fast-forward-only" MergePullRequestFormDoFastDashForwardDashOnly string = "fast-forward-only" // MergePullRequestFormDoManuallyDashMerged captures enum value "manually-merged" MergePullRequestFormDoManuallyDashMerged string = "manually-merged" )
const ( // MigrateRepoOptionsServiceGit captures enum value "git" MigrateRepoOptionsServiceGit string = "git" // MigrateRepoOptionsServiceGithub captures enum value "github" MigrateRepoOptionsServiceGithub string = "github" // MigrateRepoOptionsServiceGitea captures enum value "gitea" MigrateRepoOptionsServiceGitea string = "gitea" // MigrateRepoOptionsServiceGitlab captures enum value "gitlab" MigrateRepoOptionsServiceGitlab string = "gitlab" // MigrateRepoOptionsServiceGogs captures enum value "gogs" MigrateRepoOptionsServiceGogs string = "gogs" // MigrateRepoOptionsServiceOnedev captures enum value "onedev" MigrateRepoOptionsServiceOnedev string = "onedev" // MigrateRepoOptionsServiceGitbucket captures enum value "gitbucket" MigrateRepoOptionsServiceGitbucket string = "gitbucket" // MigrateRepoOptionsServiceCodebase captures enum value "codebase" MigrateRepoOptionsServiceCodebase string = "codebase" )
const ( // RepositoryObjectFormatNameSha1 captures enum value "sha1" RepositoryObjectFormatNameSha1 string = "sha1" // RepositoryObjectFormatNameSha256 captures enum value "sha256" RepositoryObjectFormatNameSha256 string = "sha256" )
const ( // TeamPermissionNone captures enum value "none" TeamPermissionNone string = "none" // TeamPermissionRead captures enum value "read" TeamPermissionRead string = "read" // TeamPermissionWrite captures enum value "write" TeamPermissionWrite string = "write" // TeamPermissionAdmin captures enum value "admin" TeamPermissionAdmin string = "admin" // TeamPermissionOwner captures enum value "owner" TeamPermissionOwner string = "owner" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
// message
Message string `json:"message,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
APIError APIError is an api error with a message
swagger:model APIError
func (*APIError) ContextValidate ¶
ContextValidate validates this API error based on context it is used
func (*APIError) MarshalBinary ¶
MarshalBinary interface implementation
func (*APIError) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AccessToken ¶
type AccessToken struct {
// ID
ID int64 `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// scopes
Scopes []string `json:"scopes"`
// token
Token string `json:"sha1,omitempty"`
// token last eight
TokenLastEight string `json:"token_last_eight,omitempty"`
}
AccessToken AccessToken represents an API access token.
swagger:model AccessToken
func (*AccessToken) ContextValidate ¶
ContextValidate validates this access token based on context it is used
func (*AccessToken) MarshalBinary ¶
func (m *AccessToken) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AccessToken) UnmarshalBinary ¶
func (m *AccessToken) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ActionTask ¶
type ActionTask struct {
// created at
// Format: date-time
CreatedAt strfmt.DateTime `json:"created_at,omitempty"`
// display title
DisplayTitle string `json:"display_title,omitempty"`
// event
Event string `json:"event,omitempty"`
// head branch
HeadBranch string `json:"head_branch,omitempty"`
// head s h a
HeadSHA string `json:"head_sha,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// run number
RunNumber int64 `json:"run_number,omitempty"`
// run started at
// Format: date-time
RunStartedAt strfmt.DateTime `json:"run_started_at,omitempty"`
// status
Status string `json:"status,omitempty"`
// URL
URL string `json:"url,omitempty"`
// updated at
// Format: date-time
UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
// workflow ID
WorkflowID string `json:"workflow_id,omitempty"`
}
ActionTask ActionTask represents a ActionTask
swagger:model ActionTask
func (*ActionTask) ContextValidate ¶
ContextValidate validates this action task based on context it is used
func (*ActionTask) MarshalBinary ¶
func (m *ActionTask) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ActionTask) UnmarshalBinary ¶
func (m *ActionTask) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ActionTaskResponse ¶
type ActionTaskResponse struct {
// entries
Entries []*ActionTask `json:"workflow_runs"`
// total count
TotalCount int64 `json:"total_count,omitempty"`
}
ActionTaskResponse ActionTaskResponse returns a ActionTask
swagger:model ActionTaskResponse
func (*ActionTaskResponse) ContextValidate ¶
ContextValidate validate this action task response based on the context it is used
func (*ActionTaskResponse) MarshalBinary ¶
func (m *ActionTaskResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ActionTaskResponse) UnmarshalBinary ¶
func (m *ActionTaskResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ActionVariable ¶
type ActionVariable struct {
// the value of the variable
Data string `json:"data,omitempty"`
// the name of the variable
Name string `json:"name,omitempty"`
// the owner to which the variable belongs
OwnerID int64 `json:"owner_id,omitempty"`
// the repository to which the variable belongs
RepoID int64 `json:"repo_id,omitempty"`
}
ActionVariable ActionVariable return value of the query API
swagger:model ActionVariable
func (*ActionVariable) ContextValidate ¶
ContextValidate validates this action variable based on context it is used
func (*ActionVariable) MarshalBinary ¶
func (m *ActionVariable) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ActionVariable) UnmarshalBinary ¶
func (m *ActionVariable) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Activity ¶
type Activity struct {
// act user ID
ActUserID int64 `json:"act_user_id,omitempty"`
// comment ID
CommentID int64 `json:"comment_id,omitempty"`
// content
Content string `json:"content,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// is private
IsPrivate bool `json:"is_private,omitempty"`
// the type of action
// Enum: ["create_repo","rename_repo","star_repo","watch_repo","commit_repo","create_issue","create_pull_request","transfer_repo","push_tag","comment_issue","merge_pull_request","close_issue","reopen_issue","close_pull_request","reopen_pull_request","delete_tag","delete_branch","mirror_sync_push","mirror_sync_create","mirror_sync_delete","approve_pull_request","reject_pull_request","comment_pull","publish_release","pull_review_dismissed","pull_request_ready_for_review","auto_merge_pull_request"]
OpType string `json:"op_type,omitempty"`
// ref name
RefName string `json:"ref_name,omitempty"`
// repo ID
RepoID int64 `json:"repo_id,omitempty"`
// user ID
UserID int64 `json:"user_id,omitempty"`
// act user
ActUser *User `json:"act_user,omitempty"`
// comment
Comment *Comment `json:"comment,omitempty"`
// repo
Repo *Repository `json:"repo,omitempty"`
}
Activity activity
swagger:model Activity
func (*Activity) ContextValidate ¶
ContextValidate validate this activity based on the context it is used
func (*Activity) MarshalBinary ¶
MarshalBinary interface implementation
func (*Activity) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ActivityPub ¶
type ActivityPub struct {
// context
Context string `json:"@context,omitempty"`
}
ActivityPub ActivityPub type
swagger:model ActivityPub
func (*ActivityPub) ContextValidate ¶
ContextValidate validates this activity pub based on context it is used
func (*ActivityPub) MarshalBinary ¶
func (m *ActivityPub) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ActivityPub) UnmarshalBinary ¶
func (m *ActivityPub) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddCollaboratorOption ¶
type AddCollaboratorOption struct {
// permission
Permission string `json:"permission,omitempty"`
}
AddCollaboratorOption AddCollaboratorOption options when adding a user as a collaborator of a repository
swagger:model AddCollaboratorOption
func (*AddCollaboratorOption) ContextValidate ¶
ContextValidate validates this add collaborator option based on context it is used
func (*AddCollaboratorOption) MarshalBinary ¶
func (m *AddCollaboratorOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddCollaboratorOption) UnmarshalBinary ¶
func (m *AddCollaboratorOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddTimeOption ¶
type AddTimeOption struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// time in seconds
// Required: true
Time *int64 `json:"time"`
// User who spent the time (optional)
User string `json:"user_name,omitempty"`
}
AddTimeOption AddTimeOption options for adding time to an issue
swagger:model AddTimeOption
func (*AddTimeOption) ContextValidate ¶
ContextValidate validates this add time option based on context it is used
func (*AddTimeOption) MarshalBinary ¶
func (m *AddTimeOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddTimeOption) UnmarshalBinary ¶
func (m *AddTimeOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AnnotatedTag ¶
type AnnotatedTag struct {
// message
Message string `json:"message,omitempty"`
// s h a
SHA string `json:"sha,omitempty"`
// tag
Tag string `json:"tag,omitempty"`
// URL
URL string `json:"url,omitempty"`
// object
Object *AnnotatedTagObject `json:"object,omitempty"`
// tagger
Tagger *CommitUser `json:"tagger,omitempty"`
// verification
Verification *PayloadCommitVerification `json:"verification,omitempty"`
}
AnnotatedTag AnnotatedTag represents an annotated tag
swagger:model AnnotatedTag
func (*AnnotatedTag) ContextValidate ¶
ContextValidate validate this annotated tag based on the context it is used
func (*AnnotatedTag) MarshalBinary ¶
func (m *AnnotatedTag) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AnnotatedTag) UnmarshalBinary ¶
func (m *AnnotatedTag) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AnnotatedTagObject ¶
type AnnotatedTagObject struct {
// s h a
SHA string `json:"sha,omitempty"`
// type
Type string `json:"type,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
AnnotatedTagObject AnnotatedTagObject contains meta information of the tag object
swagger:model AnnotatedTagObject
func (*AnnotatedTagObject) ContextValidate ¶
ContextValidate validates this annotated tag object based on context it is used
func (*AnnotatedTagObject) MarshalBinary ¶
func (m *AnnotatedTagObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AnnotatedTagObject) UnmarshalBinary ¶
func (m *AnnotatedTagObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Attachment ¶
type Attachment struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// download count
DownloadCount int64 `json:"download_count,omitempty"`
// download URL
DownloadURL string `json:"browser_download_url,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// size
Size int64 `json:"size,omitempty"`
// UUID
UUID string `json:"uuid,omitempty"`
}
Attachment Attachment a generic attachment
swagger:model Attachment
func (*Attachment) ContextValidate ¶
ContextValidate validates this attachment based on context it is used
func (*Attachment) MarshalBinary ¶
func (m *Attachment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Attachment) UnmarshalBinary ¶
func (m *Attachment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Badge ¶
type Badge struct {
// description
Description string `json:"description,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// image URL
ImageURL string `json:"image_url,omitempty"`
// slug
Slug string `json:"slug,omitempty"`
}
Badge Badge represents a user badge
swagger:model Badge
func (*Badge) ContextValidate ¶
ContextValidate validates this badge based on context it is used
func (*Badge) MarshalBinary ¶
MarshalBinary interface implementation
func (*Badge) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Branch ¶
type Branch struct {
// effective branch protection name
EffectiveBranchProtectionName string `json:"effective_branch_protection_name,omitempty"`
// enable status check
EnableStatusCheck bool `json:"enable_status_check,omitempty"`
// name
Name string `json:"name,omitempty"`
// protected
Protected bool `json:"protected,omitempty"`
// required approvals
RequiredApprovals int64 `json:"required_approvals,omitempty"`
// status check contexts
StatusCheckContexts []string `json:"status_check_contexts"`
// user can merge
UserCanMerge bool `json:"user_can_merge,omitempty"`
// user can push
UserCanPush bool `json:"user_can_push,omitempty"`
// commit
Commit *PayloadCommit `json:"commit,omitempty"`
}
Branch Branch represents a repository branch
swagger:model Branch
func (*Branch) ContextValidate ¶
ContextValidate validate this branch based on the context it is used
func (*Branch) MarshalBinary ¶
MarshalBinary interface implementation
func (*Branch) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type BranchProtection ¶
type BranchProtection struct {
// approvals whitelist teams
ApprovalsWhitelistTeams []string `json:"approvals_whitelist_teams"`
// approvals whitelist usernames
ApprovalsWhitelistUsernames []string `json:"approvals_whitelist_username"`
// block on official review requests
BlockOnOfficialReviewRequests bool `json:"block_on_official_review_requests,omitempty"`
// block on outdated branch
BlockOnOutdatedBranch bool `json:"block_on_outdated_branch,omitempty"`
// block on rejected reviews
BlockOnRejectedReviews bool `json:"block_on_rejected_reviews,omitempty"`
// Deprecated: true
BranchName string `json:"branch_name,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// dismiss stale approvals
DismissStaleApprovals bool `json:"dismiss_stale_approvals,omitempty"`
// enable approvals whitelist
EnableApprovalsWhitelist bool `json:"enable_approvals_whitelist,omitempty"`
// enable force push
EnableForcePush bool `json:"enable_force_push,omitempty"`
// enable force push allowlist
EnableForcePushAllowlist bool `json:"enable_force_push_allowlist,omitempty"`
// enable merge whitelist
EnableMergeWhitelist bool `json:"enable_merge_whitelist,omitempty"`
// enable push
EnablePush bool `json:"enable_push,omitempty"`
// enable push whitelist
EnablePushWhitelist bool `json:"enable_push_whitelist,omitempty"`
// enable status check
EnableStatusCheck bool `json:"enable_status_check,omitempty"`
// force push allowlist deploy keys
ForcePushAllowlistDeployKeys bool `json:"force_push_allowlist_deploy_keys,omitempty"`
// force push allowlist teams
ForcePushAllowlistTeams []string `json:"force_push_allowlist_teams"`
// force push allowlist usernames
ForcePushAllowlistUsernames []string `json:"force_push_allowlist_usernames"`
// ignore stale approvals
IgnoreStaleApprovals bool `json:"ignore_stale_approvals,omitempty"`
// merge whitelist teams
MergeWhitelistTeams []string `json:"merge_whitelist_teams"`
// merge whitelist usernames
MergeWhitelistUsernames []string `json:"merge_whitelist_usernames"`
// protected file patterns
ProtectedFilePatterns string `json:"protected_file_patterns,omitempty"`
// push whitelist deploy keys
PushWhitelistDeployKeys bool `json:"push_whitelist_deploy_keys,omitempty"`
// push whitelist teams
PushWhitelistTeams []string `json:"push_whitelist_teams"`
// push whitelist usernames
PushWhitelistUsernames []string `json:"push_whitelist_usernames"`
// require signed commits
RequireSignedCommits bool `json:"require_signed_commits,omitempty"`
// required approvals
RequiredApprovals int64 `json:"required_approvals,omitempty"`
// rule name
RuleName string `json:"rule_name,omitempty"`
// status check contexts
StatusCheckContexts []string `json:"status_check_contexts"`
// unprotected file patterns
UnprotectedFilePatterns string `json:"unprotected_file_patterns,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
}
BranchProtection BranchProtection represents a branch protection for a repository
swagger:model BranchProtection
func (*BranchProtection) ContextValidate ¶
ContextValidate validates this branch protection based on context it is used
func (*BranchProtection) MarshalBinary ¶
func (m *BranchProtection) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BranchProtection) UnmarshalBinary ¶
func (m *BranchProtection) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeFileOperation ¶
type ChangeFileOperation struct {
// new or updated file content, must be base64 encoded
ContentBase64 string `json:"content,omitempty"`
// old path of the file to move
FromPath string `json:"from_path,omitempty"`
// indicates what to do with the file
// Required: true
// Enum: ["create","update","delete"]
Operation *string `json:"operation"`
// path to the existing or new file
// Required: true
Path *string `json:"path"`
// sha is the SHA for the file that already exists, required for update or delete
SHA string `json:"sha,omitempty"`
}
ChangeFileOperation ChangeFileOperation for creating, updating or deleting a file
swagger:model ChangeFileOperation
func (*ChangeFileOperation) ContextValidate ¶
ContextValidate validates this change file operation based on context it is used
func (*ChangeFileOperation) MarshalBinary ¶
func (m *ChangeFileOperation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeFileOperation) UnmarshalBinary ¶
func (m *ChangeFileOperation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeFilesOptions ¶
type ChangeFilesOptions struct {
// branch (optional) to base this file from. if not given, the default branch is used
BranchName string `json:"branch,omitempty"`
// list of file operations
// Required: true
Files []*ChangeFileOperation `json:"files"`
// message (optional) for the commit of this file. if not supplied, a default message will be used
Message string `json:"message,omitempty"`
// new_branch (optional) will make a new branch from `branch` before creating the file
NewBranchName string `json:"new_branch,omitempty"`
// Add a Signed-off-by trailer by the committer at the end of the commit log message.
Signoff bool `json:"signoff,omitempty"`
// author
Author *Identity `json:"author,omitempty"`
// committer
Committer *Identity `json:"committer,omitempty"`
// dates
Dates *CommitDateOptions `json:"dates,omitempty"`
}
ChangeFilesOptions ChangeFilesOptions options for creating, updating or deleting multiple files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
swagger:model ChangeFilesOptions
func (*ChangeFilesOptions) ContextValidate ¶
ContextValidate validate this change files options based on the context it is used
func (*ChangeFilesOptions) MarshalBinary ¶
func (m *ChangeFilesOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeFilesOptions) UnmarshalBinary ¶
func (m *ChangeFilesOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangedFile ¶
type ChangedFile struct {
// additions
Additions int64 `json:"additions,omitempty"`
// changes
Changes int64 `json:"changes,omitempty"`
// contents URL
ContentsURL string `json:"contents_url,omitempty"`
// deletions
Deletions int64 `json:"deletions,omitempty"`
// filename
Filename string `json:"filename,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// previous filename
PreviousFilename string `json:"previous_filename,omitempty"`
// raw URL
RawURL string `json:"raw_url,omitempty"`
// status
Status string `json:"status,omitempty"`
}
ChangedFile ChangedFile store information about files affected by the pull request
swagger:model ChangedFile
func (*ChangedFile) ContextValidate ¶
ContextValidate validates this changed file based on context it is used
func (*ChangedFile) MarshalBinary ¶
func (m *ChangedFile) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangedFile) UnmarshalBinary ¶
func (m *ChangedFile) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CombinedStatus ¶
type CombinedStatus struct {
// commit URL
CommitURL string `json:"commit_url,omitempty"`
// s h a
SHA string `json:"sha,omitempty"`
// statuses
Statuses []*CommitStatus `json:"statuses"`
// total count
TotalCount int64 `json:"total_count,omitempty"`
// URL
URL string `json:"url,omitempty"`
// repository
Repository *Repository `json:"repository,omitempty"`
// state
State CommitStatusState `json:"state,omitempty"`
}
CombinedStatus CombinedStatus holds the combined state of several statuses for a single commit
swagger:model CombinedStatus
func (*CombinedStatus) ContextValidate ¶
ContextValidate validate this combined status based on the context it is used
func (*CombinedStatus) MarshalBinary ¶
func (m *CombinedStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CombinedStatus) UnmarshalBinary ¶
func (m *CombinedStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Comment ¶
type Comment struct {
// attachments
Attachments []*Attachment `json:"assets"`
// body
Body string `json:"body,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// issue URL
IssueURL string `json:"issue_url,omitempty"`
// original author
OriginalAuthor string `json:"original_author,omitempty"`
// original author ID
OriginalAuthorID int64 `json:"original_author_id,omitempty"`
// p r URL
PRURL string `json:"pull_request_url,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// user
User *User `json:"user,omitempty"`
}
Comment Comment represents a comment on a commit or issue
swagger:model Comment
func (*Comment) ContextValidate ¶
ContextValidate validate this comment based on the context it is used
func (*Comment) MarshalBinary ¶
MarshalBinary interface implementation
func (*Comment) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Commit ¶
type Commit struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// files
Files []*CommitAffectedFiles `json:"files"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// parents
Parents []*CommitMeta `json:"parents"`
// s h a
SHA string `json:"sha,omitempty"`
// URL
URL string `json:"url,omitempty"`
// author
Author *User `json:"author,omitempty"`
// commit
Commit *RepoCommit `json:"commit,omitempty"`
// committer
Committer *User `json:"committer,omitempty"`
// stats
Stats *CommitStats `json:"stats,omitempty"`
}
Commit Commit contains information generated from a Git commit.
swagger:model Commit
func (*Commit) ContextValidate ¶
ContextValidate validate this commit based on the context it is used
func (*Commit) MarshalBinary ¶
MarshalBinary interface implementation
func (*Commit) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CommitAffectedFiles ¶
type CommitAffectedFiles struct {
// filename
Filename string `json:"filename,omitempty"`
// status
Status string `json:"status,omitempty"`
}
CommitAffectedFiles CommitAffectedFiles store information about files affected by the commit
swagger:model CommitAffectedFiles
func (*CommitAffectedFiles) ContextValidate ¶
ContextValidate validates this commit affected files based on context it is used
func (*CommitAffectedFiles) MarshalBinary ¶
func (m *CommitAffectedFiles) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommitAffectedFiles) UnmarshalBinary ¶
func (m *CommitAffectedFiles) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommitDateOptions ¶
type CommitDateOptions struct {
// author
// Format: date-time
Author strfmt.DateTime `json:"author,omitempty"`
// committer
// Format: date-time
Committer strfmt.DateTime `json:"committer,omitempty"`
}
CommitDateOptions CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE
swagger:model CommitDateOptions
func (*CommitDateOptions) ContextValidate ¶
ContextValidate validates this commit date options based on context it is used
func (*CommitDateOptions) MarshalBinary ¶
func (m *CommitDateOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommitDateOptions) UnmarshalBinary ¶
func (m *CommitDateOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommitMeta ¶
type CommitMeta struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// s h a
SHA string `json:"sha,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
CommitMeta CommitMeta contains meta information of a commit in terms of API.
swagger:model CommitMeta
func (*CommitMeta) ContextValidate ¶
ContextValidate validates this commit meta based on context it is used
func (*CommitMeta) MarshalBinary ¶
func (m *CommitMeta) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommitMeta) UnmarshalBinary ¶
func (m *CommitMeta) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommitStats ¶
type CommitStats struct {
// additions
Additions int64 `json:"additions,omitempty"`
// deletions
Deletions int64 `json:"deletions,omitempty"`
// total
Total int64 `json:"total,omitempty"`
}
CommitStats CommitStats is statistics for a RepoCommit
swagger:model CommitStats
func (*CommitStats) ContextValidate ¶
ContextValidate validates this commit stats based on context it is used
func (*CommitStats) MarshalBinary ¶
func (m *CommitStats) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommitStats) UnmarshalBinary ¶
func (m *CommitStats) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommitStatus ¶
type CommitStatus struct {
// context
Context string `json:"context,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// description
Description string `json:"description,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// target URL
TargetURL string `json:"target_url,omitempty"`
// URL
URL string `json:"url,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// creator
Creator *User `json:"creator,omitempty"`
// status
Status CommitStatusState `json:"status,omitempty"`
}
CommitStatus CommitStatus holds a single status of a single Commit
swagger:model CommitStatus
func (*CommitStatus) ContextValidate ¶
ContextValidate validate this commit status based on the context it is used
func (*CommitStatus) MarshalBinary ¶
func (m *CommitStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommitStatus) UnmarshalBinary ¶
func (m *CommitStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommitStatusState ¶
type CommitStatusState string
CommitStatusState CommitStatusState holds the state of a CommitStatus It can be "pending", "success", "error" and "failure"
swagger:model CommitStatusState
func (CommitStatusState) ContextValidate ¶
ContextValidate validates this commit status state based on context it is used
type CommitUser ¶
type CommitUser struct {
// date
Date string `json:"date,omitempty"`
// email
// Format: email
Email strfmt.Email `json:"email,omitempty"`
// name
Name string `json:"name,omitempty"`
}
CommitUser CommitUser contains information of a user in the context of a commit.
swagger:model CommitUser
func (*CommitUser) ContextValidate ¶
ContextValidate validates this commit user based on context it is used
func (*CommitUser) MarshalBinary ¶
func (m *CommitUser) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommitUser) UnmarshalBinary ¶
func (m *CommitUser) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Compare ¶
type Compare struct {
// commits
Commits []*Commit `json:"commits"`
// total commits
TotalCommits int64 `json:"total_commits,omitempty"`
}
Compare Compare represents a comparison between two commits.
swagger:model Compare
func (*Compare) ContextValidate ¶
ContextValidate validate this compare based on the context it is used
func (*Compare) MarshalBinary ¶
MarshalBinary interface implementation
func (*Compare) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ContentsResponse ¶
type ContentsResponse struct {
// `content` is populated when `type` is `file`, otherwise null
Content string `json:"content,omitempty"`
// download URL
DownloadURL string `json:"download_url,omitempty"`
// `encoding` is populated when `type` is `file`, otherwise null
Encoding string `json:"encoding,omitempty"`
// git URL
GitURL string `json:"git_url,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// last commit s h a
LastCommitSHA string `json:"last_commit_sha,omitempty"`
// name
Name string `json:"name,omitempty"`
// path
Path string `json:"path,omitempty"`
// s h a
SHA string `json:"sha,omitempty"`
// size
Size int64 `json:"size,omitempty"`
// `submodule_git_url` is populated when `type` is `submodule`, otherwise null
SubmoduleGitURL string `json:"submodule_git_url,omitempty"`
// `target` is populated when `type` is `symlink`, otherwise null
Target string `json:"target,omitempty"`
// `type` will be `file`, `dir`, `symlink`, or `submodule`
Type string `json:"type,omitempty"`
// URL
URL string `json:"url,omitempty"`
// links
Links *FileLinksResponse `json:"_links,omitempty"`
}
ContentsResponse ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content
swagger:model ContentsResponse
func (*ContentsResponse) ContextValidate ¶
ContextValidate validate this contents response based on the context it is used
func (*ContentsResponse) MarshalBinary ¶
func (m *ContentsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContentsResponse) UnmarshalBinary ¶
func (m *ContentsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateAccessTokenOption ¶
type CreateAccessTokenOption struct {
// name
// Required: true
Name *string `json:"name"`
// scopes
Scopes []string `json:"scopes"`
}
CreateAccessTokenOption CreateAccessTokenOption options when create access token
swagger:model CreateAccessTokenOption
func (*CreateAccessTokenOption) ContextValidate ¶
func (m *CreateAccessTokenOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create access token option based on context it is used
func (*CreateAccessTokenOption) MarshalBinary ¶
func (m *CreateAccessTokenOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateAccessTokenOption) UnmarshalBinary ¶
func (m *CreateAccessTokenOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBranchProtectionOption ¶
type CreateBranchProtectionOption struct {
// approvals whitelist teams
ApprovalsWhitelistTeams []string `json:"approvals_whitelist_teams"`
// approvals whitelist usernames
ApprovalsWhitelistUsernames []string `json:"approvals_whitelist_username"`
// block on official review requests
BlockOnOfficialReviewRequests bool `json:"block_on_official_review_requests,omitempty"`
// block on outdated branch
BlockOnOutdatedBranch bool `json:"block_on_outdated_branch,omitempty"`
// block on rejected reviews
BlockOnRejectedReviews bool `json:"block_on_rejected_reviews,omitempty"`
// Deprecated: true
BranchName string `json:"branch_name,omitempty"`
// dismiss stale approvals
DismissStaleApprovals bool `json:"dismiss_stale_approvals,omitempty"`
// enable approvals whitelist
EnableApprovalsWhitelist bool `json:"enable_approvals_whitelist,omitempty"`
// enable force push
EnableForcePush bool `json:"enable_force_push,omitempty"`
// enable force push allowlist
EnableForcePushAllowlist bool `json:"enable_force_push_allowlist,omitempty"`
// enable merge whitelist
EnableMergeWhitelist bool `json:"enable_merge_whitelist,omitempty"`
// enable push
EnablePush bool `json:"enable_push,omitempty"`
// enable push whitelist
EnablePushWhitelist bool `json:"enable_push_whitelist,omitempty"`
// enable status check
EnableStatusCheck bool `json:"enable_status_check,omitempty"`
// force push allowlist deploy keys
ForcePushAllowlistDeployKeys bool `json:"force_push_allowlist_deploy_keys,omitempty"`
// force push allowlist teams
ForcePushAllowlistTeams []string `json:"force_push_allowlist_teams"`
// force push allowlist usernames
ForcePushAllowlistUsernames []string `json:"force_push_allowlist_usernames"`
// ignore stale approvals
IgnoreStaleApprovals bool `json:"ignore_stale_approvals,omitempty"`
// merge whitelist teams
MergeWhitelistTeams []string `json:"merge_whitelist_teams"`
// merge whitelist usernames
MergeWhitelistUsernames []string `json:"merge_whitelist_usernames"`
// protected file patterns
ProtectedFilePatterns string `json:"protected_file_patterns,omitempty"`
// push whitelist deploy keys
PushWhitelistDeployKeys bool `json:"push_whitelist_deploy_keys,omitempty"`
// push whitelist teams
PushWhitelistTeams []string `json:"push_whitelist_teams"`
// push whitelist usernames
PushWhitelistUsernames []string `json:"push_whitelist_usernames"`
// require signed commits
RequireSignedCommits bool `json:"require_signed_commits,omitempty"`
// required approvals
RequiredApprovals int64 `json:"required_approvals,omitempty"`
// rule name
RuleName string `json:"rule_name,omitempty"`
// status check contexts
StatusCheckContexts []string `json:"status_check_contexts"`
// unprotected file patterns
UnprotectedFilePatterns string `json:"unprotected_file_patterns,omitempty"`
}
CreateBranchProtectionOption CreateBranchProtectionOption options for creating a branch protection
swagger:model CreateBranchProtectionOption
func (*CreateBranchProtectionOption) ContextValidate ¶
func (m *CreateBranchProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create branch protection option based on context it is used
func (*CreateBranchProtectionOption) MarshalBinary ¶
func (m *CreateBranchProtectionOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBranchProtectionOption) UnmarshalBinary ¶
func (m *CreateBranchProtectionOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBranchRepoOption ¶
type CreateBranchRepoOption struct {
// Name of the branch to create
// Required: true
BranchName *string `json:"new_branch_name"`
// Deprecated: true
// Name of the old branch to create from
OldBranchName string `json:"old_branch_name,omitempty"`
// Name of the old branch/tag/commit to create from
OldRefName string `json:"old_ref_name,omitempty"`
}
CreateBranchRepoOption CreateBranchRepoOption options when creating a branch in a repository
swagger:model CreateBranchRepoOption
func (*CreateBranchRepoOption) ContextValidate ¶
func (m *CreateBranchRepoOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create branch repo option based on context it is used
func (*CreateBranchRepoOption) MarshalBinary ¶
func (m *CreateBranchRepoOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBranchRepoOption) UnmarshalBinary ¶
func (m *CreateBranchRepoOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateEmailOption ¶
type CreateEmailOption struct {
// email addresses to add
Emails []string `json:"emails"`
}
CreateEmailOption CreateEmailOption options when creating email addresses
swagger:model CreateEmailOption
func (*CreateEmailOption) ContextValidate ¶
ContextValidate validates this create email option based on context it is used
func (*CreateEmailOption) MarshalBinary ¶
func (m *CreateEmailOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateEmailOption) UnmarshalBinary ¶
func (m *CreateEmailOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateFileOptions ¶
type CreateFileOptions struct {
// branch (optional) to base this file from. if not given, the default branch is used
BranchName string `json:"branch,omitempty"`
// content must be base64 encoded
// Required: true
ContentBase64 *string `json:"content"`
// message (optional) for the commit of this file. if not supplied, a default message will be used
Message string `json:"message,omitempty"`
// new_branch (optional) will make a new branch from `branch` before creating the file
NewBranchName string `json:"new_branch,omitempty"`
// Add a Signed-off-by trailer by the committer at the end of the commit log message.
Signoff bool `json:"signoff,omitempty"`
// author
Author *Identity `json:"author,omitempty"`
// committer
Committer *Identity `json:"committer,omitempty"`
// dates
Dates *CommitDateOptions `json:"dates,omitempty"`
}
CreateFileOptions CreateFileOptions options for creating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
swagger:model CreateFileOptions
func (*CreateFileOptions) ContextValidate ¶
ContextValidate validate this create file options based on the context it is used
func (*CreateFileOptions) MarshalBinary ¶
func (m *CreateFileOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateFileOptions) UnmarshalBinary ¶
func (m *CreateFileOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateForkOption ¶
type CreateForkOption struct {
// name of the forked repository
Name string `json:"name,omitempty"`
// organization name, if forking into an organization
Organization string `json:"organization,omitempty"`
}
CreateForkOption CreateForkOption options for creating a fork
swagger:model CreateForkOption
func (*CreateForkOption) ContextValidate ¶
ContextValidate validates this create fork option based on context it is used
func (*CreateForkOption) MarshalBinary ¶
func (m *CreateForkOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateForkOption) UnmarshalBinary ¶
func (m *CreateForkOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateGPGKeyOption ¶
type CreateGPGKeyOption struct {
// An armored GPG key to add
// Required: true
ArmoredKey *string `json:"armored_public_key"`
// signature
Signature string `json:"armored_signature,omitempty"`
}
CreateGPGKeyOption CreateGPGKeyOption options create user GPG key
swagger:model CreateGPGKeyOption
func (*CreateGPGKeyOption) ContextValidate ¶
ContextValidate validates this create g p g key option based on context it is used
func (*CreateGPGKeyOption) MarshalBinary ¶
func (m *CreateGPGKeyOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateGPGKeyOption) UnmarshalBinary ¶
func (m *CreateGPGKeyOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateHookOption ¶
type CreateHookOption struct {
// active
Active *bool `json:"active,omitempty"`
// authorization header
AuthorizationHeader string `json:"authorization_header,omitempty"`
// branch filter
BranchFilter string `json:"branch_filter,omitempty"`
// events
Events []string `json:"events"`
// type
// Required: true
// Enum: ["dingtalk","discord","gitea","gogs","msteams","slack","telegram","feishu","wechatwork","packagist"]
Type *string `json:"type"`
// config
// Required: true
Config CreateHookOptionConfig `json:"config"`
}
CreateHookOption CreateHookOption options when create a hook
swagger:model CreateHookOption
func (*CreateHookOption) ContextValidate ¶
ContextValidate validate this create hook option based on the context it is used
func (*CreateHookOption) MarshalBinary ¶
func (m *CreateHookOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateHookOption) UnmarshalBinary ¶
func (m *CreateHookOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateHookOptionConfig ¶
CreateHookOptionConfig CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required
swagger:model CreateHookOptionConfig
func (CreateHookOptionConfig) ContextValidate ¶
ContextValidate validates this create hook option config based on context it is used
type CreateIssueCommentOption ¶
type CreateIssueCommentOption struct {
// body
// Required: true
Body *string `json:"body"`
}
CreateIssueCommentOption CreateIssueCommentOption options for creating a comment on an issue
swagger:model CreateIssueCommentOption
func (*CreateIssueCommentOption) ContextValidate ¶
func (m *CreateIssueCommentOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create issue comment option based on context it is used
func (*CreateIssueCommentOption) MarshalBinary ¶
func (m *CreateIssueCommentOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateIssueCommentOption) UnmarshalBinary ¶
func (m *CreateIssueCommentOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateIssueOption ¶
type CreateIssueOption struct {
// deprecated
Assignee string `json:"assignee,omitempty"`
// assignees
Assignees []string `json:"assignees"`
// body
Body string `json:"body,omitempty"`
// closed
Closed bool `json:"closed,omitempty"`
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_date,omitempty"`
// list of label ids
Labels []int64 `json:"labels"`
// milestone id
Milestone int64 `json:"milestone,omitempty"`
// ref
Ref string `json:"ref,omitempty"`
// title
// Required: true
Title *string `json:"title"`
}
CreateIssueOption CreateIssueOption options to create one issue
swagger:model CreateIssueOption
func (*CreateIssueOption) ContextValidate ¶
ContextValidate validates this create issue option based on context it is used
func (*CreateIssueOption) MarshalBinary ¶
func (m *CreateIssueOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateIssueOption) UnmarshalBinary ¶
func (m *CreateIssueOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateKeyOption ¶
type CreateKeyOption struct {
// An armored SSH key to add
// Required: true
Key *string `json:"key"`
// Describe if the key has only read access or read/write
ReadOnly bool `json:"read_only,omitempty"`
// Title of the key to add
// Required: true
Title *string `json:"title"`
}
CreateKeyOption CreateKeyOption options when creating a key
swagger:model CreateKeyOption
func (*CreateKeyOption) ContextValidate ¶
ContextValidate validates this create key option based on context it is used
func (*CreateKeyOption) MarshalBinary ¶
func (m *CreateKeyOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateKeyOption) UnmarshalBinary ¶
func (m *CreateKeyOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateLabelOption ¶
type CreateLabelOption struct {
// color
// Example: #00aabb
// Required: true
Color *string `json:"color"`
// description
Description string `json:"description,omitempty"`
// exclusive
// Example: false
Exclusive bool `json:"exclusive,omitempty"`
// is archived
// Example: false
IsArchived bool `json:"is_archived,omitempty"`
// name
// Required: true
Name *string `json:"name"`
}
CreateLabelOption CreateLabelOption options for creating a label
swagger:model CreateLabelOption
func (*CreateLabelOption) ContextValidate ¶
ContextValidate validates this create label option based on context it is used
func (*CreateLabelOption) MarshalBinary ¶
func (m *CreateLabelOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateLabelOption) UnmarshalBinary ¶
func (m *CreateLabelOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateMilestoneOption ¶
type CreateMilestoneOption struct {
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_on,omitempty"`
// description
Description string `json:"description,omitempty"`
// state
// Enum: ["open","closed"]
State string `json:"state,omitempty"`
// title
Title string `json:"title,omitempty"`
}
CreateMilestoneOption CreateMilestoneOption options for creating a milestone
swagger:model CreateMilestoneOption
func (*CreateMilestoneOption) ContextValidate ¶
ContextValidate validates this create milestone option based on context it is used
func (*CreateMilestoneOption) MarshalBinary ¶
func (m *CreateMilestoneOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateMilestoneOption) UnmarshalBinary ¶
func (m *CreateMilestoneOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateOAuth2ApplicationOptions ¶
type CreateOAuth2ApplicationOptions struct {
// confidential client
ConfidentialClient bool `json:"confidential_client,omitempty"`
// name
Name string `json:"name,omitempty"`
// redirect u r is
RedirectURIs []string `json:"redirect_uris"`
// skip secondary authorization
SkipSecondaryAuthorization bool `json:"skip_secondary_authorization,omitempty"`
}
CreateOAuth2ApplicationOptions CreateOAuth2ApplicationOptions holds options to create an oauth2 application
swagger:model CreateOAuth2ApplicationOptions
func (*CreateOAuth2ApplicationOptions) ContextValidate ¶
func (m *CreateOAuth2ApplicationOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create o auth2 application options based on context it is used
func (*CreateOAuth2ApplicationOptions) MarshalBinary ¶
func (m *CreateOAuth2ApplicationOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateOAuth2ApplicationOptions) UnmarshalBinary ¶
func (m *CreateOAuth2ApplicationOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateOrUpdateSecretOption ¶
type CreateOrUpdateSecretOption struct {
// Data of the secret to update
// Required: true
Data *string `json:"data"`
}
CreateOrUpdateSecretOption CreateOrUpdateSecretOption options when creating or updating secret
swagger:model CreateOrUpdateSecretOption
func (*CreateOrUpdateSecretOption) ContextValidate ¶
func (m *CreateOrUpdateSecretOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create or update secret option based on context it is used
func (*CreateOrUpdateSecretOption) MarshalBinary ¶
func (m *CreateOrUpdateSecretOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateOrUpdateSecretOption) UnmarshalBinary ¶
func (m *CreateOrUpdateSecretOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateOrgOption ¶
type CreateOrgOption struct {
// description
Description string `json:"description,omitempty"`
// email
Email string `json:"email,omitempty"`
// full name
FullName string `json:"full_name,omitempty"`
// location
Location string `json:"location,omitempty"`
// repo admin change team access
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access,omitempty"`
// user name
// Required: true
UserName *string `json:"username"`
// possible values are `public` (default), `limited` or `private`
// Enum: ["public","limited","private"]
Visibility string `json:"visibility,omitempty"`
// website
Website string `json:"website,omitempty"`
}
CreateOrgOption CreateOrgOption options for creating an organization
swagger:model CreateOrgOption
func (*CreateOrgOption) ContextValidate ¶
ContextValidate validates this create org option based on context it is used
func (*CreateOrgOption) MarshalBinary ¶
func (m *CreateOrgOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateOrgOption) UnmarshalBinary ¶
func (m *CreateOrgOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreatePullRequestOption ¶
type CreatePullRequestOption struct {
// assignee
Assignee string `json:"assignee,omitempty"`
// assignees
Assignees []string `json:"assignees"`
// base
Base string `json:"base,omitempty"`
// body
Body string `json:"body,omitempty"`
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_date,omitempty"`
// head
Head string `json:"head,omitempty"`
// labels
Labels []int64 `json:"labels"`
// milestone
Milestone int64 `json:"milestone,omitempty"`
// title
Title string `json:"title,omitempty"`
}
CreatePullRequestOption CreatePullRequestOption options when creating a pull request
swagger:model CreatePullRequestOption
func (*CreatePullRequestOption) ContextValidate ¶
func (m *CreatePullRequestOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create pull request option based on context it is used
func (*CreatePullRequestOption) MarshalBinary ¶
func (m *CreatePullRequestOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreatePullRequestOption) UnmarshalBinary ¶
func (m *CreatePullRequestOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreatePullReviewComment ¶
type CreatePullReviewComment struct {
// body
Body string `json:"body,omitempty"`
// if comment to new file line or 0
NewLineNum int64 `json:"new_position,omitempty"`
// if comment to old file line or 0
OldLineNum int64 `json:"old_position,omitempty"`
// the tree path
Path string `json:"path,omitempty"`
}
CreatePullReviewComment CreatePullReviewComment represent a review comment for creation api
swagger:model CreatePullReviewComment
func (*CreatePullReviewComment) ContextValidate ¶
func (m *CreatePullReviewComment) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create pull review comment based on context it is used
func (*CreatePullReviewComment) MarshalBinary ¶
func (m *CreatePullReviewComment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreatePullReviewComment) UnmarshalBinary ¶
func (m *CreatePullReviewComment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreatePullReviewOptions ¶
type CreatePullReviewOptions struct {
// body
Body string `json:"body,omitempty"`
// comments
Comments []*CreatePullReviewComment `json:"comments"`
// commit ID
CommitID string `json:"commit_id,omitempty"`
// event
Event ReviewStateType `json:"event,omitempty"`
}
CreatePullReviewOptions CreatePullReviewOptions are options to create a pull review
swagger:model CreatePullReviewOptions
func (*CreatePullReviewOptions) ContextValidate ¶
func (m *CreatePullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create pull review options based on the context it is used
func (*CreatePullReviewOptions) MarshalBinary ¶
func (m *CreatePullReviewOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreatePullReviewOptions) UnmarshalBinary ¶
func (m *CreatePullReviewOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreatePushMirrorOption ¶
type CreatePushMirrorOption struct {
// interval
Interval string `json:"interval,omitempty"`
// remote address
RemoteAddress string `json:"remote_address,omitempty"`
// remote password
RemotePassword string `json:"remote_password,omitempty"`
// remote username
RemoteUsername string `json:"remote_username,omitempty"`
// sync on commit
SyncOnCommit bool `json:"sync_on_commit,omitempty"`
}
CreatePushMirrorOption CreatePushMirrorOption represents need information to create a push mirror of a repository.
swagger:model CreatePushMirrorOption
func (*CreatePushMirrorOption) ContextValidate ¶
func (m *CreatePushMirrorOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create push mirror option based on context it is used
func (*CreatePushMirrorOption) MarshalBinary ¶
func (m *CreatePushMirrorOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreatePushMirrorOption) UnmarshalBinary ¶
func (m *CreatePushMirrorOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateReleaseOption ¶
type CreateReleaseOption struct {
// is draft
IsDraft bool `json:"draft,omitempty"`
// is prerelease
IsPrerelease bool `json:"prerelease,omitempty"`
// note
Note string `json:"body,omitempty"`
// tag name
// Required: true
TagName *string `json:"tag_name"`
// target
Target string `json:"target_commitish,omitempty"`
// title
Title string `json:"name,omitempty"`
}
CreateReleaseOption CreateReleaseOption options when creating a release
swagger:model CreateReleaseOption
func (*CreateReleaseOption) ContextValidate ¶
ContextValidate validates this create release option based on context it is used
func (*CreateReleaseOption) MarshalBinary ¶
func (m *CreateReleaseOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateReleaseOption) UnmarshalBinary ¶
func (m *CreateReleaseOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateRepoOption ¶
type CreateRepoOption struct {
// Whether the repository should be auto-initialized?
AutoInit bool `json:"auto_init,omitempty"`
// DefaultBranch of the repository (used when initializes and in template)
DefaultBranch string `json:"default_branch,omitempty"`
// Description of the repository to create
Description string `json:"description,omitempty"`
// Gitignores to use
Gitignores string `json:"gitignores,omitempty"`
// Label-Set to use
IssueLabels string `json:"issue_labels,omitempty"`
// License to use
License string `json:"license,omitempty"`
// Name of the repository to create
// Required: true
Name *string `json:"name"`
// ObjectFormatName of the underlying git repository
// Enum: ["sha1","sha256"]
ObjectFormatName string `json:"object_format_name,omitempty"`
// Whether the repository is private
Private bool `json:"private,omitempty"`
// Readme of the repository to create
Readme string `json:"readme,omitempty"`
// Whether the repository is template
Template bool `json:"template,omitempty"`
// TrustModel of the repository
// Enum: ["default","collaborator","committer","collaboratorcommitter"]
TrustModel string `json:"trust_model,omitempty"`
}
CreateRepoOption CreateRepoOption options when creating repository
swagger:model CreateRepoOption
func (*CreateRepoOption) ContextValidate ¶
ContextValidate validates this create repo option based on context it is used
func (*CreateRepoOption) MarshalBinary ¶
func (m *CreateRepoOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRepoOption) UnmarshalBinary ¶
func (m *CreateRepoOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateStatusOption ¶
type CreateStatusOption struct {
// context
Context string `json:"context,omitempty"`
// description
Description string `json:"description,omitempty"`
// target URL
TargetURL string `json:"target_url,omitempty"`
// state
State CommitStatusState `json:"state,omitempty"`
}
CreateStatusOption CreateStatusOption holds the information needed to create a new CommitStatus for a Commit
swagger:model CreateStatusOption
func (*CreateStatusOption) ContextValidate ¶
ContextValidate validate this create status option based on the context it is used
func (*CreateStatusOption) MarshalBinary ¶
func (m *CreateStatusOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateStatusOption) UnmarshalBinary ¶
func (m *CreateStatusOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateTagOption ¶
type CreateTagOption struct {
// message
Message string `json:"message,omitempty"`
// tag name
// Required: true
TagName *string `json:"tag_name"`
// target
Target string `json:"target,omitempty"`
}
CreateTagOption CreateTagOption options when creating a tag
swagger:model CreateTagOption
func (*CreateTagOption) ContextValidate ¶
ContextValidate validates this create tag option based on context it is used
func (*CreateTagOption) MarshalBinary ¶
func (m *CreateTagOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateTagOption) UnmarshalBinary ¶
func (m *CreateTagOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateTagProtectionOption ¶
type CreateTagProtectionOption struct {
// name pattern
NamePattern string `json:"name_pattern,omitempty"`
// whitelist teams
WhitelistTeams []string `json:"whitelist_teams"`
// whitelist usernames
WhitelistUsernames []string `json:"whitelist_usernames"`
}
CreateTagProtectionOption CreateTagProtectionOption options for creating a tag protection
swagger:model CreateTagProtectionOption
func (*CreateTagProtectionOption) ContextValidate ¶
func (m *CreateTagProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create tag protection option based on context it is used
func (*CreateTagProtectionOption) MarshalBinary ¶
func (m *CreateTagProtectionOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateTagProtectionOption) UnmarshalBinary ¶
func (m *CreateTagProtectionOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateTeamOption ¶
type CreateTeamOption struct {
// can create org repo
CanCreateOrgRepo bool `json:"can_create_org_repo,omitempty"`
// description
Description string `json:"description,omitempty"`
// includes all repositories
IncludesAllRepositories bool `json:"includes_all_repositories,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// permission
// Enum: ["read","write","admin"]
Permission string `json:"permission,omitempty"`
// units
// Example: ["repo.actions","repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.ext_wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
Units []string `json:"units"`
// units map
// Example: {\"repo.actions\",\"repo.packages\",\"repo.code\":\"read\",\"repo.issues\":\"write\",\"repo.ext_issues\":\"none\",\"repo.wiki\":\"admin\",\"repo.pulls\":\"owner\",\"repo.releases\":\"none\",\"repo.projects\":\"none\",\"repo.ext_wiki\":\"none\"}
UnitsMap map[string]string `json:"units_map,omitempty"`
}
CreateTeamOption CreateTeamOption options for creating a team
swagger:model CreateTeamOption
func (*CreateTeamOption) ContextValidate ¶
ContextValidate validates this create team option based on context it is used
func (*CreateTeamOption) MarshalBinary ¶
func (m *CreateTeamOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateTeamOption) UnmarshalBinary ¶
func (m *CreateTeamOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateUserOption ¶
type CreateUserOption struct {
// For explicitly setting the user creation timestamp. Useful when users are
// migrated from other systems. When omitted, the user's creation timestamp
// will be set to "now".
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// email
// Required: true
// Format: email
Email *strfmt.Email `json:"email"`
// full name
FullName string `json:"full_name,omitempty"`
// login name
LoginName string `json:"login_name,omitempty"`
// must change password
MustChangePassword bool `json:"must_change_password,omitempty"`
// password
Password string `json:"password,omitempty"`
// restricted
Restricted bool `json:"restricted,omitempty"`
// send notify
SendNotify bool `json:"send_notify,omitempty"`
// source ID
SourceID int64 `json:"source_id,omitempty"`
// username
// Required: true
Username *string `json:"username"`
// visibility
Visibility string `json:"visibility,omitempty"`
}
CreateUserOption CreateUserOption create user options
swagger:model CreateUserOption
func (*CreateUserOption) ContextValidate ¶
ContextValidate validates this create user option based on context it is used
func (*CreateUserOption) MarshalBinary ¶
func (m *CreateUserOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateUserOption) UnmarshalBinary ¶
func (m *CreateUserOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateVariableOption ¶
type CreateVariableOption struct {
// Value of the variable to create
// Required: true
Value *string `json:"value"`
}
CreateVariableOption CreateVariableOption the option when creating variable
swagger:model CreateVariableOption
func (*CreateVariableOption) ContextValidate ¶
ContextValidate validates this create variable option based on context it is used
func (*CreateVariableOption) MarshalBinary ¶
func (m *CreateVariableOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateVariableOption) UnmarshalBinary ¶
func (m *CreateVariableOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateWikiPageOptions ¶
type CreateWikiPageOptions struct {
// content must be base64 encoded
ContentBase64 string `json:"content_base64,omitempty"`
// optional commit message summarizing the change
Message string `json:"message,omitempty"`
// page title. leave empty to keep unchanged
Title string `json:"title,omitempty"`
}
CreateWikiPageOptions CreateWikiPageOptions form for creating wiki
swagger:model CreateWikiPageOptions
func (*CreateWikiPageOptions) ContextValidate ¶
ContextValidate validates this create wiki page options based on context it is used
func (*CreateWikiPageOptions) MarshalBinary ¶
func (m *CreateWikiPageOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateWikiPageOptions) UnmarshalBinary ¶
func (m *CreateWikiPageOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Cron ¶
type Cron struct {
// exec times
ExecTimes int64 `json:"exec_times,omitempty"`
// name
Name string `json:"name,omitempty"`
// next
// Format: date-time
Next strfmt.DateTime `json:"next,omitempty"`
// prev
// Format: date-time
Prev strfmt.DateTime `json:"prev,omitempty"`
// schedule
Schedule string `json:"schedule,omitempty"`
}
Cron Cron represents a Cron task
swagger:model Cron
func (*Cron) ContextValidate ¶
ContextValidate validates this cron based on context it is used
func (*Cron) MarshalBinary ¶
MarshalBinary interface implementation
func (*Cron) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DeleteEmailOption ¶
type DeleteEmailOption struct {
// email addresses to delete
Emails []string `json:"emails"`
}
DeleteEmailOption DeleteEmailOption options when deleting email addresses
swagger:model DeleteEmailOption
func (*DeleteEmailOption) ContextValidate ¶
ContextValidate validates this delete email option based on context it is used
func (*DeleteEmailOption) MarshalBinary ¶
func (m *DeleteEmailOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteEmailOption) UnmarshalBinary ¶
func (m *DeleteEmailOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteFileOptions ¶
type DeleteFileOptions struct {
// branch (optional) to base this file from. if not given, the default branch is used
BranchName string `json:"branch,omitempty"`
// message (optional) for the commit of this file. if not supplied, a default message will be used
Message string `json:"message,omitempty"`
// new_branch (optional) will make a new branch from `branch` before creating the file
NewBranchName string `json:"new_branch,omitempty"`
// sha is the SHA for the file that already exists
// Required: true
SHA *string `json:"sha"`
// Add a Signed-off-by trailer by the committer at the end of the commit log message.
Signoff bool `json:"signoff,omitempty"`
// author
Author *Identity `json:"author,omitempty"`
// committer
Committer *Identity `json:"committer,omitempty"`
// dates
Dates *CommitDateOptions `json:"dates,omitempty"`
}
DeleteFileOptions DeleteFileOptions options for deleting files (used for other File structs below) Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
swagger:model DeleteFileOptions
func (*DeleteFileOptions) ContextValidate ¶
ContextValidate validate this delete file options based on the context it is used
func (*DeleteFileOptions) MarshalBinary ¶
func (m *DeleteFileOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteFileOptions) UnmarshalBinary ¶
func (m *DeleteFileOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeployKey ¶
type DeployKey struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// fingerprint
Fingerprint string `json:"fingerprint,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// key
Key string `json:"key,omitempty"`
// key ID
KeyID int64 `json:"key_id,omitempty"`
// read only
ReadOnly bool `json:"read_only,omitempty"`
// title
Title string `json:"title,omitempty"`
// URL
URL string `json:"url,omitempty"`
// repository
Repository *Repository `json:"repository,omitempty"`
}
DeployKey DeployKey a deploy key
swagger:model DeployKey
func (*DeployKey) ContextValidate ¶
ContextValidate validate this deploy key based on the context it is used
func (*DeployKey) MarshalBinary ¶
MarshalBinary interface implementation
func (*DeployKey) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DismissPullReviewOptions ¶
type DismissPullReviewOptions struct {
// message
Message string `json:"message,omitempty"`
// priors
Priors bool `json:"priors,omitempty"`
}
DismissPullReviewOptions DismissPullReviewOptions are options to dismiss a pull review
swagger:model DismissPullReviewOptions
func (*DismissPullReviewOptions) ContextValidate ¶
func (m *DismissPullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this dismiss pull review options based on context it is used
func (*DismissPullReviewOptions) MarshalBinary ¶
func (m *DismissPullReviewOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DismissPullReviewOptions) UnmarshalBinary ¶
func (m *DismissPullReviewOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditAttachmentOptions ¶
type EditAttachmentOptions struct {
// name
Name string `json:"name,omitempty"`
}
EditAttachmentOptions EditAttachmentOptions options for editing attachments
swagger:model EditAttachmentOptions
func (*EditAttachmentOptions) ContextValidate ¶
ContextValidate validates this edit attachment options based on context it is used
func (*EditAttachmentOptions) MarshalBinary ¶
func (m *EditAttachmentOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditAttachmentOptions) UnmarshalBinary ¶
func (m *EditAttachmentOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditBranchProtectionOption ¶
type EditBranchProtectionOption struct {
// approvals whitelist teams
ApprovalsWhitelistTeams []string `json:"approvals_whitelist_teams"`
// approvals whitelist usernames
ApprovalsWhitelistUsernames []string `json:"approvals_whitelist_username"`
// block on official review requests
BlockOnOfficialReviewRequests bool `json:"block_on_official_review_requests,omitempty"`
// block on outdated branch
BlockOnOutdatedBranch bool `json:"block_on_outdated_branch,omitempty"`
// block on rejected reviews
BlockOnRejectedReviews bool `json:"block_on_rejected_reviews,omitempty"`
// dismiss stale approvals
DismissStaleApprovals bool `json:"dismiss_stale_approvals,omitempty"`
// enable approvals whitelist
EnableApprovalsWhitelist bool `json:"enable_approvals_whitelist,omitempty"`
// enable force push
EnableForcePush bool `json:"enable_force_push,omitempty"`
// enable force push allowlist
EnableForcePushAllowlist bool `json:"enable_force_push_allowlist,omitempty"`
// enable merge whitelist
EnableMergeWhitelist bool `json:"enable_merge_whitelist,omitempty"`
// enable push
EnablePush bool `json:"enable_push,omitempty"`
// enable push whitelist
EnablePushWhitelist bool `json:"enable_push_whitelist,omitempty"`
// enable status check
EnableStatusCheck bool `json:"enable_status_check,omitempty"`
// force push allowlist deploy keys
ForcePushAllowlistDeployKeys bool `json:"force_push_allowlist_deploy_keys,omitempty"`
// force push allowlist teams
ForcePushAllowlistTeams []string `json:"force_push_allowlist_teams"`
// force push allowlist usernames
ForcePushAllowlistUsernames []string `json:"force_push_allowlist_usernames"`
// ignore stale approvals
IgnoreStaleApprovals bool `json:"ignore_stale_approvals,omitempty"`
// merge whitelist teams
MergeWhitelistTeams []string `json:"merge_whitelist_teams"`
// merge whitelist usernames
MergeWhitelistUsernames []string `json:"merge_whitelist_usernames"`
// protected file patterns
ProtectedFilePatterns string `json:"protected_file_patterns,omitempty"`
// push whitelist deploy keys
PushWhitelistDeployKeys bool `json:"push_whitelist_deploy_keys,omitempty"`
// push whitelist teams
PushWhitelistTeams []string `json:"push_whitelist_teams"`
// push whitelist usernames
PushWhitelistUsernames []string `json:"push_whitelist_usernames"`
// require signed commits
RequireSignedCommits bool `json:"require_signed_commits,omitempty"`
// required approvals
RequiredApprovals int64 `json:"required_approvals,omitempty"`
// status check contexts
StatusCheckContexts []string `json:"status_check_contexts"`
// unprotected file patterns
UnprotectedFilePatterns string `json:"unprotected_file_patterns,omitempty"`
}
EditBranchProtectionOption EditBranchProtectionOption options for editing a branch protection
swagger:model EditBranchProtectionOption
func (*EditBranchProtectionOption) ContextValidate ¶
func (m *EditBranchProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this edit branch protection option based on context it is used
func (*EditBranchProtectionOption) MarshalBinary ¶
func (m *EditBranchProtectionOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditBranchProtectionOption) UnmarshalBinary ¶
func (m *EditBranchProtectionOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditDeadlineOption ¶
type EditDeadlineOption struct {
// deadline
// Required: true
// Format: date-time
Deadline *strfmt.DateTime `json:"due_date"`
}
EditDeadlineOption EditDeadlineOption options for creating a deadline
swagger:model EditDeadlineOption
func (*EditDeadlineOption) ContextValidate ¶
ContextValidate validates this edit deadline option based on context it is used
func (*EditDeadlineOption) MarshalBinary ¶
func (m *EditDeadlineOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditDeadlineOption) UnmarshalBinary ¶
func (m *EditDeadlineOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditGitHookOption ¶
type EditGitHookOption struct {
// content
Content string `json:"content,omitempty"`
}
EditGitHookOption EditGitHookOption options when modifying one Git hook
swagger:model EditGitHookOption
func (*EditGitHookOption) ContextValidate ¶
ContextValidate validates this edit git hook option based on context it is used
func (*EditGitHookOption) MarshalBinary ¶
func (m *EditGitHookOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditGitHookOption) UnmarshalBinary ¶
func (m *EditGitHookOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditHookOption ¶
type EditHookOption struct {
// active
Active bool `json:"active,omitempty"`
// authorization header
AuthorizationHeader string `json:"authorization_header,omitempty"`
// branch filter
BranchFilter string `json:"branch_filter,omitempty"`
// config
Config map[string]string `json:"config,omitempty"`
// events
Events []string `json:"events"`
}
EditHookOption EditHookOption options when modify one hook
swagger:model EditHookOption
func (*EditHookOption) ContextValidate ¶
ContextValidate validates this edit hook option based on context it is used
func (*EditHookOption) MarshalBinary ¶
func (m *EditHookOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditHookOption) UnmarshalBinary ¶
func (m *EditHookOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditIssueCommentOption ¶
type EditIssueCommentOption struct {
// body
// Required: true
Body *string `json:"body"`
}
EditIssueCommentOption EditIssueCommentOption options for editing a comment
swagger:model EditIssueCommentOption
func (*EditIssueCommentOption) ContextValidate ¶
func (m *EditIssueCommentOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this edit issue comment option based on context it is used
func (*EditIssueCommentOption) MarshalBinary ¶
func (m *EditIssueCommentOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditIssueCommentOption) UnmarshalBinary ¶
func (m *EditIssueCommentOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditIssueOption ¶
type EditIssueOption struct {
// deprecated
Assignee string `json:"assignee,omitempty"`
// assignees
Assignees []string `json:"assignees"`
// body
Body string `json:"body,omitempty"`
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_date,omitempty"`
// milestone
Milestone int64 `json:"milestone,omitempty"`
// ref
Ref string `json:"ref,omitempty"`
// remove deadline
RemoveDeadline bool `json:"unset_due_date,omitempty"`
// state
State string `json:"state,omitempty"`
// title
Title string `json:"title,omitempty"`
}
EditIssueOption EditIssueOption options for editing an issue
swagger:model EditIssueOption
func (*EditIssueOption) ContextValidate ¶
ContextValidate validates this edit issue option based on context it is used
func (*EditIssueOption) MarshalBinary ¶
func (m *EditIssueOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditIssueOption) UnmarshalBinary ¶
func (m *EditIssueOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditLabelOption ¶
type EditLabelOption struct {
// color
// Example: #00aabb
Color string `json:"color,omitempty"`
// description
Description string `json:"description,omitempty"`
// exclusive
// Example: false
Exclusive bool `json:"exclusive,omitempty"`
// is archived
// Example: false
IsArchived bool `json:"is_archived,omitempty"`
// name
Name string `json:"name,omitempty"`
}
EditLabelOption EditLabelOption options for editing a label
swagger:model EditLabelOption
func (*EditLabelOption) ContextValidate ¶
ContextValidate validates this edit label option based on context it is used
func (*EditLabelOption) MarshalBinary ¶
func (m *EditLabelOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditLabelOption) UnmarshalBinary ¶
func (m *EditLabelOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditMilestoneOption ¶
type EditMilestoneOption struct {
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_on,omitempty"`
// description
Description string `json:"description,omitempty"`
// state
State string `json:"state,omitempty"`
// title
Title string `json:"title,omitempty"`
}
EditMilestoneOption EditMilestoneOption options for editing a milestone
swagger:model EditMilestoneOption
func (*EditMilestoneOption) ContextValidate ¶
ContextValidate validates this edit milestone option based on context it is used
func (*EditMilestoneOption) MarshalBinary ¶
func (m *EditMilestoneOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditMilestoneOption) UnmarshalBinary ¶
func (m *EditMilestoneOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditOrgOption ¶
type EditOrgOption struct {
// description
Description string `json:"description,omitempty"`
// email
Email string `json:"email,omitempty"`
// full name
FullName string `json:"full_name,omitempty"`
// location
Location string `json:"location,omitempty"`
// repo admin change team access
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access,omitempty"`
// possible values are `public`, `limited` or `private`
// Enum: ["public","limited","private"]
Visibility string `json:"visibility,omitempty"`
// website
Website string `json:"website,omitempty"`
}
EditOrgOption EditOrgOption options for editing an organization
swagger:model EditOrgOption
func (*EditOrgOption) ContextValidate ¶
ContextValidate validates this edit org option based on context it is used
func (*EditOrgOption) MarshalBinary ¶
func (m *EditOrgOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditOrgOption) UnmarshalBinary ¶
func (m *EditOrgOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditPullRequestOption ¶
type EditPullRequestOption struct {
// allow maintainer edit
AllowMaintainerEdit bool `json:"allow_maintainer_edit,omitempty"`
// assignee
Assignee string `json:"assignee,omitempty"`
// assignees
Assignees []string `json:"assignees"`
// base
Base string `json:"base,omitempty"`
// body
Body string `json:"body,omitempty"`
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_date,omitempty"`
// labels
Labels []int64 `json:"labels"`
// milestone
Milestone int64 `json:"milestone,omitempty"`
// remove deadline
RemoveDeadline bool `json:"unset_due_date,omitempty"`
// state
State string `json:"state,omitempty"`
// title
Title string `json:"title,omitempty"`
}
EditPullRequestOption EditPullRequestOption options when modify pull request
swagger:model EditPullRequestOption
func (*EditPullRequestOption) ContextValidate ¶
ContextValidate validates this edit pull request option based on context it is used
func (*EditPullRequestOption) MarshalBinary ¶
func (m *EditPullRequestOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditPullRequestOption) UnmarshalBinary ¶
func (m *EditPullRequestOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditReactionOption ¶
type EditReactionOption struct {
// reaction
Reaction string `json:"content,omitempty"`
}
EditReactionOption EditReactionOption contain the reaction type
swagger:model EditReactionOption
func (*EditReactionOption) ContextValidate ¶
ContextValidate validates this edit reaction option based on context it is used
func (*EditReactionOption) MarshalBinary ¶
func (m *EditReactionOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditReactionOption) UnmarshalBinary ¶
func (m *EditReactionOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditReleaseOption ¶
type EditReleaseOption struct {
// is draft
IsDraft bool `json:"draft,omitempty"`
// is prerelease
IsPrerelease bool `json:"prerelease,omitempty"`
// note
Note string `json:"body,omitempty"`
// tag name
TagName string `json:"tag_name,omitempty"`
// target
Target string `json:"target_commitish,omitempty"`
// title
Title string `json:"name,omitempty"`
}
EditReleaseOption EditReleaseOption options when editing a release
swagger:model EditReleaseOption
func (*EditReleaseOption) ContextValidate ¶
ContextValidate validates this edit release option based on context it is used
func (*EditReleaseOption) MarshalBinary ¶
func (m *EditReleaseOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditReleaseOption) UnmarshalBinary ¶
func (m *EditReleaseOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditRepoOption ¶
type EditRepoOption struct {
// either `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging.
AllowFastForwardOnly bool `json:"allow_fast_forward_only_merge,omitempty"`
// either `true` to allow mark pr as merged manually, or `false` to prevent it.
AllowManualMerge bool `json:"allow_manual_merge,omitempty"`
// either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.
AllowMerge bool `json:"allow_merge_commits,omitempty"`
// either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.
AllowRebase bool `json:"allow_rebase,omitempty"`
// either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits.
AllowRebaseMerge bool `json:"allow_rebase_explicit,omitempty"`
// either `true` to allow updating pull request branch by rebase, or `false` to prevent it.
AllowRebaseUpdate bool `json:"allow_rebase_update,omitempty"`
// either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.
AllowSquash bool `json:"allow_squash_merge,omitempty"`
// set to `true` to archive this repository.
Archived bool `json:"archived,omitempty"`
// either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur.
AutodetectManualMerge bool `json:"autodetect_manual_merge,omitempty"`
// set to `true` to allow edits from maintainers by default
DefaultAllowMaintainerEdit bool `json:"default_allow_maintainer_edit,omitempty"`
// sets the default branch for this repository.
DefaultBranch string `json:"default_branch,omitempty"`
// set to `true` to delete pr branch after merge by default
DefaultDeleteBranchAfterMerge bool `json:"default_delete_branch_after_merge,omitempty"`
// set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", or "fast-forward-only".
DefaultMergeStyle string `json:"default_merge_style,omitempty"`
// a short description of the repository.
Description string `json:"description,omitempty"`
// enable prune - remove obsolete remote-tracking references when mirroring
EnablePrune bool `json:"enable_prune,omitempty"`
// either `true` to enable actions unit, or `false` to disable them.
HasActions bool `json:"has_actions,omitempty"`
// either `true` to enable issues for this repository or `false` to disable them.
HasIssues bool `json:"has_issues,omitempty"`
// either `true` to enable packages unit, or `false` to disable them.
HasPackages bool `json:"has_packages,omitempty"`
// either `true` to enable project unit, or `false` to disable them.
HasProjects bool `json:"has_projects,omitempty"`
// either `true` to allow pull requests, or `false` to prevent pull request.
HasPullRequests bool `json:"has_pull_requests,omitempty"`
// either `true` to enable releases unit, or `false` to disable them.
HasReleases bool `json:"has_releases,omitempty"`
// either `true` to enable the wiki for this repository or `false` to disable it.
HasWiki bool `json:"has_wiki,omitempty"`
// either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace.
IgnoreWhitespaceConflicts bool `json:"ignore_whitespace_conflicts,omitempty"`
// set to a string like `8h30m0s` to set the mirror interval time
MirrorInterval string `json:"mirror_interval,omitempty"`
// name of the repository
Name string `json:"name,omitempty"`
// either `true` to make the repository private or `false` to make it public.
// Note: you will get a 422 error if the organization restricts changing repository visibility to organization
// owners and a non-owner tries to change the value of private.
Private bool `json:"private,omitempty"`
// `repo` to only allow repo-level projects, `owner` to only allow owner projects, `all` to allow both.
ProjectsMode string `json:"projects_mode,omitempty"`
// either `true` to make this repository a template or `false` to make it a normal repository
Template bool `json:"template,omitempty"`
// a URL with more information about the repository.
Website string `json:"website,omitempty"`
// external tracker
ExternalTracker *ExternalTracker `json:"external_tracker,omitempty"`
// external wiki
ExternalWiki *ExternalWiki `json:"external_wiki,omitempty"`
// internal tracker
InternalTracker *InternalTracker `json:"internal_tracker,omitempty"`
}
EditRepoOption EditRepoOption options when editing a repository's properties
swagger:model EditRepoOption
func (*EditRepoOption) ContextValidate ¶
ContextValidate validate this edit repo option based on the context it is used
func (*EditRepoOption) MarshalBinary ¶
func (m *EditRepoOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditRepoOption) UnmarshalBinary ¶
func (m *EditRepoOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditTagProtectionOption ¶
type EditTagProtectionOption struct {
// name pattern
NamePattern string `json:"name_pattern,omitempty"`
// whitelist teams
WhitelistTeams []string `json:"whitelist_teams"`
// whitelist usernames
WhitelistUsernames []string `json:"whitelist_usernames"`
}
EditTagProtectionOption EditTagProtectionOption options for editing a tag protection
swagger:model EditTagProtectionOption
func (*EditTagProtectionOption) ContextValidate ¶
func (m *EditTagProtectionOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this edit tag protection option based on context it is used
func (*EditTagProtectionOption) MarshalBinary ¶
func (m *EditTagProtectionOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditTagProtectionOption) UnmarshalBinary ¶
func (m *EditTagProtectionOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditTeamOption ¶
type EditTeamOption struct {
// can create org repo
CanCreateOrgRepo bool `json:"can_create_org_repo,omitempty"`
// description
Description string `json:"description,omitempty"`
// includes all repositories
IncludesAllRepositories bool `json:"includes_all_repositories,omitempty"`
// name
// Required: true
Name *string `json:"name"`
// permission
// Enum: ["read","write","admin"]
Permission string `json:"permission,omitempty"`
// units
// Example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
Units []string `json:"units"`
// units map
// Example: {"repo.code":"read","repo.ext_issues":"none","repo.ext_wiki":"none","repo.issues":"write","repo.projects":"none","repo.pulls":"owner","repo.releases":"none","repo.wiki":"admin"}
UnitsMap map[string]string `json:"units_map,omitempty"`
}
EditTeamOption EditTeamOption options for editing a team
swagger:model EditTeamOption
func (*EditTeamOption) ContextValidate ¶
ContextValidate validates this edit team option based on context it is used
func (*EditTeamOption) MarshalBinary ¶
func (m *EditTeamOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditTeamOption) UnmarshalBinary ¶
func (m *EditTeamOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EditUserOption ¶
type EditUserOption struct {
// active
Active bool `json:"active,omitempty"`
// admin
Admin bool `json:"admin,omitempty"`
// allow create organization
AllowCreateOrganization bool `json:"allow_create_organization,omitempty"`
// allow git hook
AllowGitHook bool `json:"allow_git_hook,omitempty"`
// allow import local
AllowImportLocal bool `json:"allow_import_local,omitempty"`
// description
Description string `json:"description,omitempty"`
// email
// Format: email
Email strfmt.Email `json:"email,omitempty"`
// full name
FullName string `json:"full_name,omitempty"`
// location
Location string `json:"location,omitempty"`
// login name
// Required: true
LoginName *string `json:"login_name"`
// max repo creation
MaxRepoCreation int64 `json:"max_repo_creation,omitempty"`
// must change password
MustChangePassword bool `json:"must_change_password,omitempty"`
// password
Password string `json:"password,omitempty"`
// prohibit login
ProhibitLogin bool `json:"prohibit_login,omitempty"`
// restricted
Restricted bool `json:"restricted,omitempty"`
// source ID
// Required: true
SourceID *int64 `json:"source_id"`
// visibility
Visibility string `json:"visibility,omitempty"`
// website
Website string `json:"website,omitempty"`
}
EditUserOption EditUserOption edit user options
swagger:model EditUserOption
func (*EditUserOption) ContextValidate ¶
ContextValidate validates this edit user option based on context it is used
func (*EditUserOption) MarshalBinary ¶
func (m *EditUserOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EditUserOption) UnmarshalBinary ¶
func (m *EditUserOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Email ¶
type Email struct {
// email
// Format: email
Email strfmt.Email `json:"email,omitempty"`
// primary
Primary bool `json:"primary,omitempty"`
// user ID
UserID int64 `json:"user_id,omitempty"`
// user name
UserName string `json:"username,omitempty"`
// verified
Verified bool `json:"verified,omitempty"`
}
Email Email an email address belonging to a user
swagger:model Email
func (*Email) ContextValidate ¶
ContextValidate validates this email based on context it is used
func (*Email) MarshalBinary ¶
MarshalBinary interface implementation
func (*Email) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ExternalTracker ¶
type ExternalTracker struct {
// External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index.
ExternalTrackerFormat string `json:"external_tracker_format,omitempty"`
// External Issue Tracker issue regular expression
ExternalTrackerRegexpPattern string `json:"external_tracker_regexp_pattern,omitempty"`
// External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp`
ExternalTrackerStyle string `json:"external_tracker_style,omitempty"`
// URL of external issue tracker.
ExternalTrackerURL string `json:"external_tracker_url,omitempty"`
}
ExternalTracker ExternalTracker represents settings for external tracker
swagger:model ExternalTracker
func (*ExternalTracker) ContextValidate ¶
ContextValidate validates this external tracker based on context it is used
func (*ExternalTracker) MarshalBinary ¶
func (m *ExternalTracker) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExternalTracker) UnmarshalBinary ¶
func (m *ExternalTracker) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ExternalWiki ¶
type ExternalWiki struct {
// URL of external wiki.
ExternalWikiURL string `json:"external_wiki_url,omitempty"`
}
ExternalWiki ExternalWiki represents setting for external wiki
swagger:model ExternalWiki
func (*ExternalWiki) ContextValidate ¶
ContextValidate validates this external wiki based on context it is used
func (*ExternalWiki) MarshalBinary ¶
func (m *ExternalWiki) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExternalWiki) UnmarshalBinary ¶
func (m *ExternalWiki) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FileCommitResponse ¶
type FileCommitResponse struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// message
Message string `json:"message,omitempty"`
// parents
Parents []*CommitMeta `json:"parents"`
// s h a
SHA string `json:"sha,omitempty"`
// URL
URL string `json:"url,omitempty"`
// author
Author *CommitUser `json:"author,omitempty"`
// committer
Committer *CommitUser `json:"committer,omitempty"`
// tree
Tree *CommitMeta `json:"tree,omitempty"`
}
FileCommitResponse FileCommitResponse contains information generated from a Git commit for a repo's file.
swagger:model FileCommitResponse
func (*FileCommitResponse) ContextValidate ¶
ContextValidate validate this file commit response based on the context it is used
func (*FileCommitResponse) MarshalBinary ¶
func (m *FileCommitResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FileCommitResponse) UnmarshalBinary ¶
func (m *FileCommitResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FileDeleteResponse ¶
type FileDeleteResponse struct {
// content
Content interface{} `json:"content,omitempty"`
// commit
Commit *FileCommitResponse `json:"commit,omitempty"`
// verification
Verification *PayloadCommitVerification `json:"verification,omitempty"`
}
FileDeleteResponse FileDeleteResponse contains information about a repo's file that was deleted
swagger:model FileDeleteResponse
func (*FileDeleteResponse) ContextValidate ¶
ContextValidate validate this file delete response based on the context it is used
func (*FileDeleteResponse) MarshalBinary ¶
func (m *FileDeleteResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FileDeleteResponse) UnmarshalBinary ¶
func (m *FileDeleteResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FileLinksResponse ¶
type FileLinksResponse struct {
// git URL
GitURL string `json:"git,omitempty"`
// HTML URL
HTMLURL string `json:"html,omitempty"`
// self
Self string `json:"self,omitempty"`
}
FileLinksResponse FileLinksResponse contains the links for a repo's file
swagger:model FileLinksResponse
func (*FileLinksResponse) ContextValidate ¶
ContextValidate validates this file links response based on context it is used
func (*FileLinksResponse) MarshalBinary ¶
func (m *FileLinksResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FileLinksResponse) UnmarshalBinary ¶
func (m *FileLinksResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FileResponse ¶
type FileResponse struct {
// commit
Commit *FileCommitResponse `json:"commit,omitempty"`
// content
Content *ContentsResponse `json:"content,omitempty"`
// verification
Verification *PayloadCommitVerification `json:"verification,omitempty"`
}
FileResponse FileResponse contains information about a repo's file
swagger:model FileResponse
func (*FileResponse) ContextValidate ¶
ContextValidate validate this file response based on the context it is used
func (*FileResponse) MarshalBinary ¶
func (m *FileResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FileResponse) UnmarshalBinary ¶
func (m *FileResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FilesResponse ¶
type FilesResponse struct {
// files
Files []*ContentsResponse `json:"files"`
// commit
Commit *FileCommitResponse `json:"commit,omitempty"`
// verification
Verification *PayloadCommitVerification `json:"verification,omitempty"`
}
FilesResponse FilesResponse contains information about multiple files from a repo
swagger:model FilesResponse
func (*FilesResponse) ContextValidate ¶
ContextValidate validate this files response based on the context it is used
func (*FilesResponse) MarshalBinary ¶
func (m *FilesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FilesResponse) UnmarshalBinary ¶
func (m *FilesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GPGKey ¶
type GPGKey struct {
// can certify
CanCertify bool `json:"can_certify,omitempty"`
// can encrypt comms
CanEncryptComms bool `json:"can_encrypt_comms,omitempty"`
// can encrypt storage
CanEncryptStorage bool `json:"can_encrypt_storage,omitempty"`
// can sign
CanSign bool `json:"can_sign,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// emails
Emails []*GPGKeyEmail `json:"emails"`
// expires
// Format: date-time
Expires strfmt.DateTime `json:"expires_at,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// key ID
KeyID string `json:"key_id,omitempty"`
// primary key ID
PrimaryKeyID string `json:"primary_key_id,omitempty"`
// public key
PublicKey string `json:"public_key,omitempty"`
// subs key
SubsKey []*GPGKey `json:"subkeys"`
// verified
Verified bool `json:"verified,omitempty"`
}
GPGKey GPGKey a user GPG key to sign commit and tag in repository
swagger:model GPGKey
func (*GPGKey) ContextValidate ¶
ContextValidate validate this g p g key based on the context it is used
func (*GPGKey) MarshalBinary ¶
MarshalBinary interface implementation
func (*GPGKey) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GPGKeyEmail ¶
type GPGKeyEmail struct {
// email
Email string `json:"email,omitempty"`
// verified
Verified bool `json:"verified,omitempty"`
}
GPGKeyEmail GPGKeyEmail an email attached to a GPGKey
swagger:model GPGKeyEmail
func (*GPGKeyEmail) ContextValidate ¶
ContextValidate validates this g p g key email based on context it is used
func (*GPGKeyEmail) MarshalBinary ¶
func (m *GPGKeyEmail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GPGKeyEmail) UnmarshalBinary ¶
func (m *GPGKeyEmail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GeneralAPISettings ¶
type GeneralAPISettings struct {
// default git trees per page
DefaultGitTreesPerPage int64 `json:"default_git_trees_per_page,omitempty"`
// default max blob size
DefaultMaxBlobSize int64 `json:"default_max_blob_size,omitempty"`
// default paging num
DefaultPagingNum int64 `json:"default_paging_num,omitempty"`
// max response items
MaxResponseItems int64 `json:"max_response_items,omitempty"`
}
GeneralAPISettings GeneralAPISettings contains global api settings exposed by it
swagger:model GeneralAPISettings
func (*GeneralAPISettings) ContextValidate ¶
ContextValidate validates this general API settings based on context it is used
func (*GeneralAPISettings) MarshalBinary ¶
func (m *GeneralAPISettings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GeneralAPISettings) UnmarshalBinary ¶
func (m *GeneralAPISettings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GeneralAttachmentSettings ¶
type GeneralAttachmentSettings struct {
// allowed types
AllowedTypes string `json:"allowed_types,omitempty"`
// enabled
Enabled bool `json:"enabled,omitempty"`
// max files
MaxFiles int64 `json:"max_files,omitempty"`
// max size
MaxSize int64 `json:"max_size,omitempty"`
}
GeneralAttachmentSettings GeneralAttachmentSettings contains global Attachment settings exposed by API
swagger:model GeneralAttachmentSettings
func (*GeneralAttachmentSettings) ContextValidate ¶
func (m *GeneralAttachmentSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this general attachment settings based on context it is used
func (*GeneralAttachmentSettings) MarshalBinary ¶
func (m *GeneralAttachmentSettings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GeneralAttachmentSettings) UnmarshalBinary ¶
func (m *GeneralAttachmentSettings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GeneralRepoSettings ¶
type GeneralRepoSettings struct {
// HTTP git disabled
HTTPGitDisabled bool `json:"http_git_disabled,omitempty"`
// l f s disabled
LFSDisabled bool `json:"lfs_disabled,omitempty"`
// migrations disabled
MigrationsDisabled bool `json:"migrations_disabled,omitempty"`
// mirrors disabled
MirrorsDisabled bool `json:"mirrors_disabled,omitempty"`
// stars disabled
StarsDisabled bool `json:"stars_disabled,omitempty"`
// time tracking disabled
TimeTrackingDisabled bool `json:"time_tracking_disabled,omitempty"`
}
GeneralRepoSettings GeneralRepoSettings contains global repository settings exposed by API
swagger:model GeneralRepoSettings
func (*GeneralRepoSettings) ContextValidate ¶
ContextValidate validates this general repo settings based on context it is used
func (*GeneralRepoSettings) MarshalBinary ¶
func (m *GeneralRepoSettings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GeneralRepoSettings) UnmarshalBinary ¶
func (m *GeneralRepoSettings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GeneralUISettings ¶
type GeneralUISettings struct {
// allowed reactions
AllowedReactions []string `json:"allowed_reactions"`
// custom emojis
CustomEmojis []string `json:"custom_emojis"`
// default theme
DefaultTheme string `json:"default_theme,omitempty"`
}
GeneralUISettings GeneralUISettings contains global ui settings exposed by API
swagger:model GeneralUISettings
func (*GeneralUISettings) ContextValidate ¶
ContextValidate validates this general UI settings based on context it is used
func (*GeneralUISettings) MarshalBinary ¶
func (m *GeneralUISettings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GeneralUISettings) UnmarshalBinary ¶
func (m *GeneralUISettings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GenerateRepoOption ¶
type GenerateRepoOption struct {
// include avatar of the template repo
Avatar bool `json:"avatar,omitempty"`
// Default branch of the new repository
DefaultBranch string `json:"default_branch,omitempty"`
// Description of the repository to create
Description string `json:"description,omitempty"`
// include git content of default branch in template repo
GitContent bool `json:"git_content,omitempty"`
// include git hooks in template repo
GitHooks bool `json:"git_hooks,omitempty"`
// include labels in template repo
Labels bool `json:"labels,omitempty"`
// Name of the repository to create
// Required: true
Name *string `json:"name"`
// The organization or person who will own the new repository
// Required: true
Owner *string `json:"owner"`
// Whether the repository is private
Private bool `json:"private,omitempty"`
// include protected branches in template repo
ProtectedBranch bool `json:"protected_branch,omitempty"`
// include topics in template repo
Topics bool `json:"topics,omitempty"`
// include webhooks in template repo
Webhooks bool `json:"webhooks,omitempty"`
}
GenerateRepoOption GenerateRepoOption options when creating repository using a template
swagger:model GenerateRepoOption
func (*GenerateRepoOption) ContextValidate ¶
ContextValidate validates this generate repo option based on context it is used
func (*GenerateRepoOption) MarshalBinary ¶
func (m *GenerateRepoOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GenerateRepoOption) UnmarshalBinary ¶
func (m *GenerateRepoOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GitBlobResponse ¶
type GitBlobResponse struct {
// content
Content string `json:"content,omitempty"`
// encoding
Encoding string `json:"encoding,omitempty"`
// s h a
SHA string `json:"sha,omitempty"`
// size
Size int64 `json:"size,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
GitBlobResponse GitBlobResponse represents a git blob
swagger:model GitBlobResponse
func (*GitBlobResponse) ContextValidate ¶
ContextValidate validates this git blob response based on context it is used
func (*GitBlobResponse) MarshalBinary ¶
func (m *GitBlobResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GitBlobResponse) UnmarshalBinary ¶
func (m *GitBlobResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GitEntry ¶
type GitEntry struct {
// mode
Mode string `json:"mode,omitempty"`
// path
Path string `json:"path,omitempty"`
// s h a
SHA string `json:"sha,omitempty"`
// size
Size int64 `json:"size,omitempty"`
// type
Type string `json:"type,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
GitEntry GitEntry represents a git tree
swagger:model GitEntry
func (*GitEntry) ContextValidate ¶
ContextValidate validates this git entry based on context it is used
func (*GitEntry) MarshalBinary ¶
MarshalBinary interface implementation
func (*GitEntry) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GitHook ¶
type GitHook struct {
// content
Content string `json:"content,omitempty"`
// is active
IsActive bool `json:"is_active,omitempty"`
// name
Name string `json:"name,omitempty"`
}
GitHook GitHook represents a Git repository hook
swagger:model GitHook
func (*GitHook) ContextValidate ¶
ContextValidate validates this git hook based on context it is used
func (*GitHook) MarshalBinary ¶
MarshalBinary interface implementation
func (*GitHook) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GitObject ¶
type GitObject struct {
// s h a
SHA string `json:"sha,omitempty"`
// type
Type string `json:"type,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
GitObject GitObject represents a Git object.
swagger:model GitObject
func (*GitObject) ContextValidate ¶
ContextValidate validates this git object based on context it is used
func (*GitObject) MarshalBinary ¶
MarshalBinary interface implementation
func (*GitObject) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GitTreeResponse ¶
type GitTreeResponse struct {
// entries
Entries []*GitEntry `json:"tree"`
// page
Page int64 `json:"page,omitempty"`
// s h a
SHA string `json:"sha,omitempty"`
// total count
TotalCount int64 `json:"total_count,omitempty"`
// truncated
Truncated bool `json:"truncated,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
GitTreeResponse GitTreeResponse returns a git tree
swagger:model GitTreeResponse
func (*GitTreeResponse) ContextValidate ¶
ContextValidate validate this git tree response based on the context it is used
func (*GitTreeResponse) MarshalBinary ¶
func (m *GitTreeResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GitTreeResponse) UnmarshalBinary ¶
func (m *GitTreeResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GitignoreTemplateInfo ¶
type GitignoreTemplateInfo struct {
// name
Name string `json:"name,omitempty"`
// source
Source string `json:"source,omitempty"`
}
GitignoreTemplateInfo GitignoreTemplateInfo name and text of a gitignore template
swagger:model GitignoreTemplateInfo
func (*GitignoreTemplateInfo) ContextValidate ¶
ContextValidate validates this gitignore template info based on context it is used
func (*GitignoreTemplateInfo) MarshalBinary ¶
func (m *GitignoreTemplateInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GitignoreTemplateInfo) UnmarshalBinary ¶
func (m *GitignoreTemplateInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Hook ¶
type Hook struct {
// active
Active bool `json:"active,omitempty"`
// authorization header
AuthorizationHeader string `json:"authorization_header,omitempty"`
// branch filter
BranchFilter string `json:"branch_filter,omitempty"`
// config
Config map[string]string `json:"config,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// events
Events []string `json:"events"`
// ID
ID int64 `json:"id,omitempty"`
// type
Type string `json:"type,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
}
Hook Hook a hook is a web hook when one repository changed
swagger:model Hook
func (*Hook) ContextValidate ¶
ContextValidate validates this hook based on context it is used
func (*Hook) MarshalBinary ¶
MarshalBinary interface implementation
func (*Hook) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Identity ¶
type Identity struct {
// email
// Format: email
Email strfmt.Email `json:"email,omitempty"`
// name
Name string `json:"name,omitempty"`
}
Identity Identity for a person's identity like an author or committer
swagger:model Identity
func (*Identity) ContextValidate ¶
ContextValidate validates this identity based on context it is used
func (*Identity) MarshalBinary ¶
MarshalBinary interface implementation
func (*Identity) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type InternalTracker ¶
type InternalTracker struct {
// Let only contributors track time (Built-in issue tracker)
AllowOnlyContributorsToTrackTime bool `json:"allow_only_contributors_to_track_time,omitempty"`
// Enable dependencies for issues and pull requests (Built-in issue tracker)
EnableIssueDependencies bool `json:"enable_issue_dependencies,omitempty"`
// Enable time tracking (Built-in issue tracker)
EnableTimeTracker bool `json:"enable_time_tracker,omitempty"`
}
InternalTracker InternalTracker represents settings for internal tracker
swagger:model InternalTracker
func (*InternalTracker) ContextValidate ¶
ContextValidate validates this internal tracker based on context it is used
func (*InternalTracker) MarshalBinary ¶
func (m *InternalTracker) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InternalTracker) UnmarshalBinary ¶
func (m *InternalTracker) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Issue ¶
type Issue struct {
// assignees
Assignees []*User `json:"assignees"`
// attachments
Attachments []*Attachment `json:"assets"`
// body
Body string `json:"body,omitempty"`
// closed
// Format: date-time
Closed strfmt.DateTime `json:"closed_at,omitempty"`
// comments
Comments int64 `json:"comments,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_date,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// index
Index int64 `json:"number,omitempty"`
// is locked
IsLocked bool `json:"is_locked,omitempty"`
// labels
Labels []*Label `json:"labels"`
// original author
OriginalAuthor string `json:"original_author,omitempty"`
// original author ID
OriginalAuthorID int64 `json:"original_author_id,omitempty"`
// pin order
PinOrder int64 `json:"pin_order,omitempty"`
// ref
Ref string `json:"ref,omitempty"`
// title
Title string `json:"title,omitempty"`
// URL
URL string `json:"url,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// assignee
Assignee *User `json:"assignee,omitempty"`
// milestone
Milestone *Milestone `json:"milestone,omitempty"`
// pull request
PullRequest *PullRequestMeta `json:"pull_request,omitempty"`
// repository
Repository *RepositoryMeta `json:"repository,omitempty"`
// state
State StateType `json:"state,omitempty"`
// user
User *User `json:"user,omitempty"`
}
Issue Issue represents an issue in a repository
swagger:model Issue
func (*Issue) ContextValidate ¶
ContextValidate validate this issue based on the context it is used
func (*Issue) MarshalBinary ¶
MarshalBinary interface implementation
func (*Issue) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type IssueConfig ¶
type IssueConfig struct {
// blank issues enabled
BlankIssuesEnabled bool `json:"blank_issues_enabled,omitempty"`
// contact links
ContactLinks []*IssueConfigContactLink `json:"contact_links"`
}
IssueConfig issue config
swagger:model IssueConfig
func (*IssueConfig) ContextValidate ¶
ContextValidate validate this issue config based on the context it is used
func (*IssueConfig) MarshalBinary ¶
func (m *IssueConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IssueConfig) UnmarshalBinary ¶
func (m *IssueConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IssueConfigContactLink ¶
type IssueConfigContactLink struct {
// about
About string `json:"about,omitempty"`
// name
Name string `json:"name,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
IssueConfigContactLink issue config contact link
swagger:model IssueConfigContactLink
func (*IssueConfigContactLink) ContextValidate ¶
func (m *IssueConfigContactLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this issue config contact link based on context it is used
func (*IssueConfigContactLink) MarshalBinary ¶
func (m *IssueConfigContactLink) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IssueConfigContactLink) UnmarshalBinary ¶
func (m *IssueConfigContactLink) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IssueConfigValidation ¶
type IssueConfigValidation struct {
// message
Message string `json:"message,omitempty"`
// valid
Valid bool `json:"valid,omitempty"`
}
IssueConfigValidation issue config validation
swagger:model IssueConfigValidation
func (*IssueConfigValidation) ContextValidate ¶
ContextValidate validates this issue config validation based on context it is used
func (*IssueConfigValidation) MarshalBinary ¶
func (m *IssueConfigValidation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IssueConfigValidation) UnmarshalBinary ¶
func (m *IssueConfigValidation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IssueDeadline ¶
type IssueDeadline struct {
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_date,omitempty"`
}
IssueDeadline IssueDeadline represents an issue deadline
swagger:model IssueDeadline
func (*IssueDeadline) ContextValidate ¶
ContextValidate validates this issue deadline based on context it is used
func (*IssueDeadline) MarshalBinary ¶
func (m *IssueDeadline) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IssueDeadline) UnmarshalBinary ¶
func (m *IssueDeadline) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IssueFormField ¶
type IssueFormField struct {
// attributes
Attributes map[string]interface{} `json:"attributes,omitempty"`
// ID
ID string `json:"id,omitempty"`
// validations
Validations map[string]interface{} `json:"validations,omitempty"`
// visible
Visible []IssueFormFieldVisible `json:"visible"`
// type
Type IssueFormFieldType `json:"type,omitempty"`
}
IssueFormField IssueFormField represents a form field
swagger:model IssueFormField
func (*IssueFormField) ContextValidate ¶
ContextValidate validate this issue form field based on the context it is used
func (*IssueFormField) MarshalBinary ¶
func (m *IssueFormField) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IssueFormField) UnmarshalBinary ¶
func (m *IssueFormField) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IssueFormFieldType ¶
type IssueFormFieldType string
IssueFormFieldType IssueFormFieldType defines issue form field type, can be "markdown", "textarea", "input", "dropdown" or "checkboxes"
swagger:model IssueFormFieldType
func (IssueFormFieldType) ContextValidate ¶
ContextValidate validates this issue form field type based on context it is used
type IssueFormFieldVisible ¶
type IssueFormFieldVisible string
IssueFormFieldVisible IssueFormFieldVisible defines issue form field visible
swagger:model IssueFormFieldVisible
func (IssueFormFieldVisible) ContextValidate ¶
ContextValidate validates this issue form field visible based on context it is used
type IssueLabelsOption ¶
type IssueLabelsOption struct {
// Labels can be a list of integers representing label IDs
// or a list of strings representing label names
Labels []interface{} `json:"labels"`
}
IssueLabelsOption IssueLabelsOption a collection of labels
swagger:model IssueLabelsOption
func (*IssueLabelsOption) ContextValidate ¶
ContextValidate validates this issue labels option based on context it is used
func (*IssueLabelsOption) MarshalBinary ¶
func (m *IssueLabelsOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IssueLabelsOption) UnmarshalBinary ¶
func (m *IssueLabelsOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IssueMeta ¶
type IssueMeta struct {
// index
Index int64 `json:"index,omitempty"`
// name
Name string `json:"repo,omitempty"`
// owner
Owner string `json:"owner,omitempty"`
}
IssueMeta IssueMeta basic issue information
swagger:model IssueMeta
func (*IssueMeta) ContextValidate ¶
ContextValidate validates this issue meta based on context it is used
func (*IssueMeta) MarshalBinary ¶
MarshalBinary interface implementation
func (*IssueMeta) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type IssueTemplate ¶
type IssueTemplate struct {
// about
About string `json:"about,omitempty"`
// content
Content string `json:"content,omitempty"`
// fields
Fields []*IssueFormField `json:"body"`
// file name
FileName string `json:"file_name,omitempty"`
// name
Name string `json:"name,omitempty"`
// ref
Ref string `json:"ref,omitempty"`
// title
Title string `json:"title,omitempty"`
// labels
Labels IssueTemplateLabels `json:"labels,omitempty"`
}
IssueTemplate IssueTemplate represents an issue template for a repository
swagger:model IssueTemplate
func (*IssueTemplate) ContextValidate ¶
ContextValidate validate this issue template based on the context it is used
func (*IssueTemplate) MarshalBinary ¶
func (m *IssueTemplate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IssueTemplate) UnmarshalBinary ¶
func (m *IssueTemplate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IssueTemplateLabels ¶
type IssueTemplateLabels []string
IssueTemplateLabels issue template labels
swagger:model IssueTemplateLabels
func (IssueTemplateLabels) ContextValidate ¶
ContextValidate validates this issue template labels based on context it is used
type Label ¶
type Label struct {
// color
// Example: 00aabb
Color string `json:"color,omitempty"`
// description
Description string `json:"description,omitempty"`
// exclusive
// Example: false
Exclusive bool `json:"exclusive,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// is archived
// Example: false
IsArchived bool `json:"is_archived,omitempty"`
// name
Name string `json:"name,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
Label Label a label to an issue or a pr
swagger:model Label
func (*Label) ContextValidate ¶
ContextValidate validates this label based on context it is used
func (*Label) MarshalBinary ¶
MarshalBinary interface implementation
func (*Label) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LabelTemplate ¶
type LabelTemplate struct {
// color
// Example: 00aabb
Color string `json:"color,omitempty"`
// description
Description string `json:"description,omitempty"`
// exclusive
// Example: false
Exclusive bool `json:"exclusive,omitempty"`
// name
Name string `json:"name,omitempty"`
}
LabelTemplate LabelTemplate info of a Label template
swagger:model LabelTemplate
func (*LabelTemplate) ContextValidate ¶
ContextValidate validates this label template based on context it is used
func (*LabelTemplate) MarshalBinary ¶
func (m *LabelTemplate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LabelTemplate) UnmarshalBinary ¶
func (m *LabelTemplate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LicenseTemplateInfo ¶
type LicenseTemplateInfo struct {
// body
Body string `json:"body,omitempty"`
// implementation
Implementation string `json:"implementation,omitempty"`
// key
Key string `json:"key,omitempty"`
// name
Name string `json:"name,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
LicenseTemplateInfo LicensesInfo contains information about a License
swagger:model LicenseTemplateInfo
func (*LicenseTemplateInfo) ContextValidate ¶
ContextValidate validates this license template info based on context it is used
func (*LicenseTemplateInfo) MarshalBinary ¶
func (m *LicenseTemplateInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LicenseTemplateInfo) UnmarshalBinary ¶
func (m *LicenseTemplateInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LicensesTemplateListEntry ¶
type LicensesTemplateListEntry struct {
// key
Key string `json:"key,omitempty"`
// name
Name string `json:"name,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
LicensesTemplateListEntry LicensesListEntry is used for the API
swagger:model LicensesTemplateListEntry
func (*LicensesTemplateListEntry) ContextValidate ¶
func (m *LicensesTemplateListEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this licenses template list entry based on context it is used
func (*LicensesTemplateListEntry) MarshalBinary ¶
func (m *LicensesTemplateListEntry) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LicensesTemplateListEntry) UnmarshalBinary ¶
func (m *LicensesTemplateListEntry) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MarkdownOption ¶
type MarkdownOption struct {
// URL path for rendering issue, media and file links
// Expected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}
//
// in: body
Context string `json:"Context,omitempty"`
// Mode to render (comment, gfm, markdown)
//
// in: body
Mode string `json:"Mode,omitempty"`
// Text markdown to render
//
// in: body
Text string `json:"Text,omitempty"`
// Is it a wiki page ?
//
// in: body
Wiki bool `json:"Wiki,omitempty"`
}
MarkdownOption MarkdownOption markdown options
swagger:model MarkdownOption
func (*MarkdownOption) ContextValidate ¶
ContextValidate validates this markdown option based on context it is used
func (*MarkdownOption) MarshalBinary ¶
func (m *MarkdownOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MarkdownOption) UnmarshalBinary ¶
func (m *MarkdownOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MarkupOption ¶
type MarkupOption struct {
// URL path for rendering issue, media and file links
// Expected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}
//
// in: body
Context string `json:"Context,omitempty"`
// File path for detecting extension in file mode
//
// in: body
FilePath string `json:"FilePath,omitempty"`
// Mode to render (comment, gfm, markdown, file)
//
// in: body
Mode string `json:"Mode,omitempty"`
// Text markup to render
//
// in: body
Text string `json:"Text,omitempty"`
// Is it a wiki page ?
//
// in: body
Wiki bool `json:"Wiki,omitempty"`
}
MarkupOption MarkupOption markup options
swagger:model MarkupOption
func (*MarkupOption) ContextValidate ¶
ContextValidate validates this markup option based on context it is used
func (*MarkupOption) MarshalBinary ¶
func (m *MarkupOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MarkupOption) UnmarshalBinary ¶
func (m *MarkupOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MergePullRequestForm ¶
type MergePullRequestForm struct {
// delete branch after merge
DeleteBranchAfterMerge bool `json:"delete_branch_after_merge,omitempty"`
// do
// Required: true
// Enum: ["merge","rebase","rebase-merge","squash","fast-forward-only","manually-merged"]
Do *string `json:"Do"`
// force merge
ForceMerge bool `json:"force_merge,omitempty"`
// head commit ID
HeadCommitID string `json:"head_commit_id,omitempty"`
// merge commit ID
MergeCommitID string `json:"MergeCommitID,omitempty"`
// merge message field
MergeMessageField string `json:"MergeMessageField,omitempty"`
// merge title field
MergeTitleField string `json:"MergeTitleField,omitempty"`
// merge when checks succeed
MergeWhenChecksSucceed bool `json:"merge_when_checks_succeed,omitempty"`
}
MergePullRequestForm MergePullRequestForm form for merging Pull Request
swagger:model MergePullRequestForm
func (*MergePullRequestForm) ContextValidate ¶
ContextValidate validates this merge pull request form based on context it is used
func (*MergePullRequestForm) MarshalBinary ¶
func (m *MergePullRequestForm) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MergePullRequestForm) UnmarshalBinary ¶
func (m *MergePullRequestForm) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MigrateRepoOptions ¶
type MigrateRepoOptions struct {
// auth password
AuthPassword string `json:"auth_password,omitempty"`
// auth token
AuthToken string `json:"auth_token,omitempty"`
// auth username
AuthUsername string `json:"auth_username,omitempty"`
// clone addr
// Required: true
CloneAddr *string `json:"clone_addr"`
// description
Description string `json:"description,omitempty"`
// issues
Issues bool `json:"issues,omitempty"`
// l f s
LFS bool `json:"lfs,omitempty"`
// l f s endpoint
LFSEndpoint string `json:"lfs_endpoint,omitempty"`
// labels
Labels bool `json:"labels,omitempty"`
// milestones
Milestones bool `json:"milestones,omitempty"`
// mirror
Mirror bool `json:"mirror,omitempty"`
// mirror interval
MirrorInterval string `json:"mirror_interval,omitempty"`
// private
Private bool `json:"private,omitempty"`
// pull requests
PullRequests bool `json:"pull_requests,omitempty"`
// releases
Releases bool `json:"releases,omitempty"`
// repo name
// Required: true
RepoName *string `json:"repo_name"`
// Name of User or Organisation who will own Repo after migration
RepoOwner string `json:"repo_owner,omitempty"`
// deprecated (only for backwards compatibility)
RepoOwnerID int64 `json:"uid,omitempty"`
// service
// Enum: ["git","github","gitea","gitlab","gogs","onedev","gitbucket","codebase"]
Service string `json:"service,omitempty"`
// wiki
Wiki bool `json:"wiki,omitempty"`
}
MigrateRepoOptions MigrateRepoOptions options for migrating repository's this is used to interact with api v1
swagger:model MigrateRepoOptions
func (*MigrateRepoOptions) ContextValidate ¶
ContextValidate validates this migrate repo options based on context it is used
func (*MigrateRepoOptions) MarshalBinary ¶
func (m *MigrateRepoOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MigrateRepoOptions) UnmarshalBinary ¶
func (m *MigrateRepoOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Milestone ¶
type Milestone struct {
// closed
// Format: date-time
Closed strfmt.DateTime `json:"closed_at,omitempty"`
// closed issues
ClosedIssues int64 `json:"closed_issues,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_on,omitempty"`
// description
Description string `json:"description,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// open issues
OpenIssues int64 `json:"open_issues,omitempty"`
// title
Title string `json:"title,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// state
State StateType `json:"state,omitempty"`
}
Milestone Milestone milestone is a collection of issues on one repository
swagger:model Milestone
func (*Milestone) ContextValidate ¶
ContextValidate validate this milestone based on the context it is used
func (*Milestone) MarshalBinary ¶
MarshalBinary interface implementation
func (*Milestone) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type NewIssuePinsAllowed ¶
type NewIssuePinsAllowed struct {
// issues
Issues bool `json:"issues,omitempty"`
// pull requests
PullRequests bool `json:"pull_requests,omitempty"`
}
NewIssuePinsAllowed NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed
swagger:model NewIssuePinsAllowed
func (*NewIssuePinsAllowed) ContextValidate ¶
ContextValidate validates this new issue pins allowed based on context it is used
func (*NewIssuePinsAllowed) MarshalBinary ¶
func (m *NewIssuePinsAllowed) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NewIssuePinsAllowed) UnmarshalBinary ¶
func (m *NewIssuePinsAllowed) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodeInfo ¶
type NodeInfo struct {
// metadata
Metadata interface{} `json:"metadata,omitempty"`
// open registrations
OpenRegistrations bool `json:"openRegistrations,omitempty"`
// protocols
Protocols []string `json:"protocols"`
// version
Version string `json:"version,omitempty"`
// services
Services *NodeInfoServices `json:"services,omitempty"`
// software
Software *NodeInfoSoftware `json:"software,omitempty"`
// usage
Usage *NodeInfoUsage `json:"usage,omitempty"`
}
NodeInfo NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks
swagger:model NodeInfo
func (*NodeInfo) ContextValidate ¶
ContextValidate validate this node info based on the context it is used
func (*NodeInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*NodeInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type NodeInfoServices ¶
type NodeInfoServices struct {
// inbound
Inbound []string `json:"inbound"`
// outbound
Outbound []string `json:"outbound"`
}
NodeInfoServices NodeInfoServices contains the third party sites this server can connect to via their application API
swagger:model NodeInfoServices
func (*NodeInfoServices) ContextValidate ¶
ContextValidate validates this node info services based on context it is used
func (*NodeInfoServices) MarshalBinary ¶
func (m *NodeInfoServices) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodeInfoServices) UnmarshalBinary ¶
func (m *NodeInfoServices) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodeInfoSoftware ¶
type NodeInfoSoftware struct {
// homepage
Homepage string `json:"homepage,omitempty"`
// name
Name string `json:"name,omitempty"`
// repository
Repository string `json:"repository,omitempty"`
// version
Version string `json:"version,omitempty"`
}
NodeInfoSoftware NodeInfoSoftware contains Metadata about server software in use
swagger:model NodeInfoSoftware
func (*NodeInfoSoftware) ContextValidate ¶
ContextValidate validates this node info software based on context it is used
func (*NodeInfoSoftware) MarshalBinary ¶
func (m *NodeInfoSoftware) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodeInfoSoftware) UnmarshalBinary ¶
func (m *NodeInfoSoftware) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodeInfoUsage ¶
type NodeInfoUsage struct {
// local comments
LocalComments int64 `json:"localComments,omitempty"`
// local posts
LocalPosts int64 `json:"localPosts,omitempty"`
// users
Users *NodeInfoUsageUsers `json:"users,omitempty"`
}
NodeInfoUsage NodeInfoUsage contains usage statistics for this server
swagger:model NodeInfoUsage
func (*NodeInfoUsage) ContextValidate ¶
ContextValidate validate this node info usage based on the context it is used
func (*NodeInfoUsage) MarshalBinary ¶
func (m *NodeInfoUsage) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodeInfoUsage) UnmarshalBinary ¶
func (m *NodeInfoUsage) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodeInfoUsageUsers ¶
type NodeInfoUsageUsers struct {
// active halfyear
ActiveHalfyear int64 `json:"activeHalfyear,omitempty"`
// active month
ActiveMonth int64 `json:"activeMonth,omitempty"`
// total
Total int64 `json:"total,omitempty"`
}
NodeInfoUsageUsers NodeInfoUsageUsers contains statistics about the users of this server
swagger:model NodeInfoUsageUsers
func (*NodeInfoUsageUsers) ContextValidate ¶
ContextValidate validates this node info usage users based on context it is used
func (*NodeInfoUsageUsers) MarshalBinary ¶
func (m *NodeInfoUsageUsers) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodeInfoUsageUsers) UnmarshalBinary ¶
func (m *NodeInfoUsageUsers) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Note ¶
type Note struct {
// message
Message string `json:"message,omitempty"`
// commit
Commit *Commit `json:"commit,omitempty"`
}
Note Note contains information related to a git note
swagger:model Note
func (*Note) ContextValidate ¶
ContextValidate validate this note based on the context it is used
func (*Note) MarshalBinary ¶
MarshalBinary interface implementation
func (*Note) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type NotificationCount ¶
type NotificationCount struct {
// new
New int64 `json:"new,omitempty"`
}
NotificationCount NotificationCount number of unread notifications
swagger:model NotificationCount
func (*NotificationCount) ContextValidate ¶
ContextValidate validates this notification count based on context it is used
func (*NotificationCount) MarshalBinary ¶
func (m *NotificationCount) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NotificationCount) UnmarshalBinary ¶
func (m *NotificationCount) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NotificationSubject ¶
type NotificationSubject struct {
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// latest comment HTML URL
LatestCommentHTMLURL string `json:"latest_comment_html_url,omitempty"`
// latest comment URL
LatestCommentURL string `json:"latest_comment_url,omitempty"`
// title
Title string `json:"title,omitempty"`
// URL
URL string `json:"url,omitempty"`
// state
State StateType `json:"state,omitempty"`
// type
Type NotifySubjectType `json:"type,omitempty"`
}
NotificationSubject NotificationSubject contains the notification subject (Issue/Pull/Commit)
swagger:model NotificationSubject
func (*NotificationSubject) ContextValidate ¶
ContextValidate validate this notification subject based on the context it is used
func (*NotificationSubject) MarshalBinary ¶
func (m *NotificationSubject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NotificationSubject) UnmarshalBinary ¶
func (m *NotificationSubject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NotificationThread ¶
type NotificationThread struct {
// ID
ID int64 `json:"id,omitempty"`
// pinned
Pinned bool `json:"pinned,omitempty"`
// URL
URL string `json:"url,omitempty"`
// unread
Unread bool `json:"unread,omitempty"`
// updated at
// Format: date-time
UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
// repository
Repository *Repository `json:"repository,omitempty"`
// subject
Subject *NotificationSubject `json:"subject,omitempty"`
}
NotificationThread NotificationThread expose Notification on API
swagger:model NotificationThread
func (*NotificationThread) ContextValidate ¶
ContextValidate validate this notification thread based on the context it is used
func (*NotificationThread) MarshalBinary ¶
func (m *NotificationThread) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NotificationThread) UnmarshalBinary ¶
func (m *NotificationThread) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NotifySubjectType ¶
type NotifySubjectType string
NotifySubjectType NotifySubjectType represent type of notification subject
swagger:model NotifySubjectType
func (NotifySubjectType) ContextValidate ¶
ContextValidate validates this notify subject type based on context it is used
type OAuth2Application ¶
type OAuth2Application struct {
// client ID
ClientID string `json:"client_id,omitempty"`
// client secret
ClientSecret string `json:"client_secret,omitempty"`
// confidential client
ConfidentialClient bool `json:"confidential_client,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// redirect u r is
RedirectURIs []string `json:"redirect_uris"`
// skip secondary authorization
SkipSecondaryAuthorization bool `json:"skip_secondary_authorization,omitempty"`
}
OAuth2Application OAuth2Application represents an OAuth2 application.
swagger:model OAuth2Application
func (*OAuth2Application) ContextValidate ¶
ContextValidate validates this o auth2 application based on context it is used
func (*OAuth2Application) MarshalBinary ¶
func (m *OAuth2Application) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OAuth2Application) UnmarshalBinary ¶
func (m *OAuth2Application) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Organization ¶
type Organization struct {
// avatar URL
AvatarURL string `json:"avatar_url,omitempty"`
// description
Description string `json:"description,omitempty"`
// email
Email string `json:"email,omitempty"`
// full name
FullName string `json:"full_name,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// location
Location string `json:"location,omitempty"`
// name
Name string `json:"name,omitempty"`
// repo admin change team access
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access,omitempty"`
// deprecated
UserName string `json:"username,omitempty"`
// visibility
Visibility string `json:"visibility,omitempty"`
// website
Website string `json:"website,omitempty"`
}
Organization Organization represents an organization
swagger:model Organization
func (*Organization) ContextValidate ¶
ContextValidate validates this organization based on context it is used
func (*Organization) MarshalBinary ¶
func (m *Organization) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Organization) UnmarshalBinary ¶
func (m *Organization) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OrganizationPermissions ¶
type OrganizationPermissions struct {
// can create repository
CanCreateRepository bool `json:"can_create_repository,omitempty"`
// can read
CanRead bool `json:"can_read,omitempty"`
// can write
CanWrite bool `json:"can_write,omitempty"`
// is admin
IsAdmin bool `json:"is_admin,omitempty"`
// is owner
IsOwner bool `json:"is_owner,omitempty"`
}
OrganizationPermissions OrganizationPermissions list different users permissions on an organization
swagger:model OrganizationPermissions
func (*OrganizationPermissions) ContextValidate ¶
func (m *OrganizationPermissions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this organization permissions based on context it is used
func (*OrganizationPermissions) MarshalBinary ¶
func (m *OrganizationPermissions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OrganizationPermissions) UnmarshalBinary ¶
func (m *OrganizationPermissions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PRBranchInfo ¶
type PRBranchInfo struct {
// name
Name string `json:"label,omitempty"`
// ref
Ref string `json:"ref,omitempty"`
// repo ID
RepoID int64 `json:"repo_id,omitempty"`
// sha
Sha string `json:"sha,omitempty"`
// repo
Repo *Repository `json:"repo,omitempty"`
}
PRBranchInfo PRBranchInfo information about a branch
swagger:model PRBranchInfo
func (*PRBranchInfo) ContextValidate ¶
ContextValidate validate this p r branch info based on the context it is used
func (*PRBranchInfo) MarshalBinary ¶
func (m *PRBranchInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PRBranchInfo) UnmarshalBinary ¶
func (m *PRBranchInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Package ¶
type Package struct {
// created at
// Format: date-time
CreatedAt strfmt.DateTime `json:"created_at,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// type
Type string `json:"type,omitempty"`
// version
Version string `json:"version,omitempty"`
// creator
Creator *User `json:"creator,omitempty"`
// owner
Owner *User `json:"owner,omitempty"`
// repository
Repository *Repository `json:"repository,omitempty"`
}
Package Package represents a package
swagger:model Package
func (*Package) ContextValidate ¶
ContextValidate validate this package based on the context it is used
func (*Package) MarshalBinary ¶
MarshalBinary interface implementation
func (*Package) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PackageFile ¶
type PackageFile struct {
// hash m d5
HashMD5 string `json:"md5,omitempty"`
// hash s h a1
HashSHA1 string `json:"sha1,omitempty"`
// hash s h a256
HashSHA256 string `json:"sha256,omitempty"`
// hash s h a512
HashSHA512 string `json:"sha512,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// size
Size int64 `json:"Size,omitempty"`
}
PackageFile PackageFile represents a package file
swagger:model PackageFile
func (*PackageFile) ContextValidate ¶
ContextValidate validates this package file based on context it is used
func (*PackageFile) MarshalBinary ¶
func (m *PackageFile) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PackageFile) UnmarshalBinary ¶
func (m *PackageFile) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PayloadCommit ¶
type PayloadCommit struct {
// added
Added []string `json:"added"`
// sha1 hash of the commit
ID string `json:"id,omitempty"`
// message
Message string `json:"message,omitempty"`
// modified
Modified []string `json:"modified"`
// removed
Removed []string `json:"removed"`
// timestamp
// Format: date-time
Timestamp strfmt.DateTime `json:"timestamp,omitempty"`
// URL
URL string `json:"url,omitempty"`
// author
Author *PayloadUser `json:"author,omitempty"`
// committer
Committer *PayloadUser `json:"committer,omitempty"`
// verification
Verification *PayloadCommitVerification `json:"verification,omitempty"`
}
PayloadCommit PayloadCommit represents a commit
swagger:model PayloadCommit
func (*PayloadCommit) ContextValidate ¶
ContextValidate validate this payload commit based on the context it is used
func (*PayloadCommit) MarshalBinary ¶
func (m *PayloadCommit) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PayloadCommit) UnmarshalBinary ¶
func (m *PayloadCommit) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PayloadCommitVerification ¶
type PayloadCommitVerification struct {
// payload
Payload string `json:"payload,omitempty"`
// reason
Reason string `json:"reason,omitempty"`
// signature
Signature string `json:"signature,omitempty"`
// verified
Verified bool `json:"verified,omitempty"`
// signer
Signer *PayloadUser `json:"signer,omitempty"`
}
PayloadCommitVerification PayloadCommitVerification represents the GPG verification of a commit
swagger:model PayloadCommitVerification
func (*PayloadCommitVerification) ContextValidate ¶
func (m *PayloadCommitVerification) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this payload commit verification based on the context it is used
func (*PayloadCommitVerification) MarshalBinary ¶
func (m *PayloadCommitVerification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PayloadCommitVerification) UnmarshalBinary ¶
func (m *PayloadCommitVerification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PayloadUser ¶
type PayloadUser struct {
// email
// Format: email
Email strfmt.Email `json:"email,omitempty"`
// Full name of the commit author
Name string `json:"name,omitempty"`
// user name
UserName string `json:"username,omitempty"`
}
PayloadUser PayloadUser represents the author or committer of a commit
swagger:model PayloadUser
func (*PayloadUser) ContextValidate ¶
ContextValidate validates this payload user based on context it is used
func (*PayloadUser) MarshalBinary ¶
func (m *PayloadUser) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PayloadUser) UnmarshalBinary ¶
func (m *PayloadUser) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Permission ¶
type Permission struct {
// admin
Admin bool `json:"admin,omitempty"`
// pull
Pull bool `json:"pull,omitempty"`
// push
Push bool `json:"push,omitempty"`
}
Permission Permission represents a set of permissions
swagger:model Permission
func (*Permission) ContextValidate ¶
ContextValidate validates this permission based on context it is used
func (*Permission) MarshalBinary ¶
func (m *Permission) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Permission) UnmarshalBinary ¶
func (m *Permission) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicKey ¶
type PublicKey struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// fingerprint
Fingerprint string `json:"fingerprint,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// key
Key string `json:"key,omitempty"`
// key type
KeyType string `json:"key_type,omitempty"`
// read only
ReadOnly bool `json:"read_only,omitempty"`
// title
Title string `json:"title,omitempty"`
// URL
URL string `json:"url,omitempty"`
// user
User *User `json:"user,omitempty"`
}
PublicKey PublicKey publickey is a user key to push code to repository
swagger:model PublicKey
func (*PublicKey) ContextValidate ¶
ContextValidate validate this public key based on the context it is used
func (*PublicKey) MarshalBinary ¶
MarshalBinary interface implementation
func (*PublicKey) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PullRequest ¶
type PullRequest struct {
// additions
Additions int64 `json:"additions,omitempty"`
// allow maintainer edit
AllowMaintainerEdit bool `json:"allow_maintainer_edit,omitempty"`
// assignees
Assignees []*User `json:"assignees"`
// body
Body string `json:"body,omitempty"`
// changed files
ChangedFiles int64 `json:"changed_files,omitempty"`
// closed
// Format: date-time
Closed strfmt.DateTime `json:"closed_at,omitempty"`
// comments
Comments int64 `json:"comments,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// deadline
// Format: date-time
Deadline strfmt.DateTime `json:"due_date,omitempty"`
// deletions
Deletions int64 `json:"deletions,omitempty"`
// diff URL
DiffURL string `json:"diff_url,omitempty"`
// draft
Draft bool `json:"draft,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// has merged
HasMerged bool `json:"merged,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// index
Index int64 `json:"number,omitempty"`
// is locked
IsLocked bool `json:"is_locked,omitempty"`
// labels
Labels []*Label `json:"labels"`
// merge base
MergeBase string `json:"merge_base,omitempty"`
// mergeable
Mergeable bool `json:"mergeable,omitempty"`
// merged
// Format: date-time
Merged strfmt.DateTime `json:"merged_at,omitempty"`
// merged commit ID
MergedCommitID string `json:"merge_commit_sha,omitempty"`
// patch URL
PatchURL string `json:"patch_url,omitempty"`
// pin order
PinOrder int64 `json:"pin_order,omitempty"`
// requested reviewers
RequestedReviewers []*User `json:"requested_reviewers"`
// number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)
ReviewComments int64 `json:"review_comments,omitempty"`
// title
Title string `json:"title,omitempty"`
// URL
URL string `json:"url,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// assignee
Assignee *User `json:"assignee,omitempty"`
// base
Base *PRBranchInfo `json:"base,omitempty"`
// head
Head *PRBranchInfo `json:"head,omitempty"`
// merged by
MergedBy *User `json:"merged_by,omitempty"`
// milestone
Milestone *Milestone `json:"milestone,omitempty"`
// state
State StateType `json:"state,omitempty"`
// user
User *User `json:"user,omitempty"`
}
PullRequest PullRequest represents a pull request
swagger:model PullRequest
func (*PullRequest) ContextValidate ¶
ContextValidate validate this pull request based on the context it is used
func (*PullRequest) MarshalBinary ¶
func (m *PullRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PullRequest) UnmarshalBinary ¶
func (m *PullRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PullRequestMeta ¶
type PullRequestMeta struct {
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// has merged
HasMerged bool `json:"merged,omitempty"`
// is work in progress
IsWorkInProgress bool `json:"draft,omitempty"`
// merged
// Format: date-time
Merged strfmt.DateTime `json:"merged_at,omitempty"`
}
PullRequestMeta PullRequestMeta PR info if an issue is a PR
swagger:model PullRequestMeta
func (*PullRequestMeta) ContextValidate ¶
ContextValidate validates this pull request meta based on context it is used
func (*PullRequestMeta) MarshalBinary ¶
func (m *PullRequestMeta) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PullRequestMeta) UnmarshalBinary ¶
func (m *PullRequestMeta) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PullReview ¶
type PullReview struct {
// body
Body string `json:"body,omitempty"`
// code comments count
CodeCommentsCount int64 `json:"comments_count,omitempty"`
// commit ID
CommitID string `json:"commit_id,omitempty"`
// dismissed
Dismissed bool `json:"dismissed,omitempty"`
// HTML pull URL
HTMLPullURL string `json:"pull_request_url,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// official
Official bool `json:"official,omitempty"`
// stale
Stale bool `json:"stale,omitempty"`
// submitted
// Format: date-time
Submitted strfmt.DateTime `json:"submitted_at,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// state
State ReviewStateType `json:"state,omitempty"`
// team
Team *Team `json:"team,omitempty"`
// user
User *User `json:"user,omitempty"`
}
PullReview PullReview represents a pull request review
swagger:model PullReview
func (*PullReview) ContextValidate ¶
ContextValidate validate this pull review based on the context it is used
func (*PullReview) MarshalBinary ¶
func (m *PullReview) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PullReview) UnmarshalBinary ¶
func (m *PullReview) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PullReviewComment ¶
type PullReviewComment struct {
// body
Body string `json:"body,omitempty"`
// commit ID
CommitID string `json:"commit_id,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// diff hunk
DiffHunk string `json:"diff_hunk,omitempty"`
// HTML pull URL
HTMLPullURL string `json:"pull_request_url,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// line num
LineNum uint64 `json:"position,omitempty"`
// old line num
OldLineNum uint64 `json:"original_position,omitempty"`
// orig commit ID
OrigCommitID string `json:"original_commit_id,omitempty"`
// path
Path string `json:"path,omitempty"`
// review ID
ReviewID int64 `json:"pull_request_review_id,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// resolver
Resolver *User `json:"resolver,omitempty"`
// user
User *User `json:"user,omitempty"`
}
PullReviewComment PullReviewComment represents a comment on a pull request review
swagger:model PullReviewComment
func (*PullReviewComment) ContextValidate ¶
ContextValidate validate this pull review comment based on the context it is used
func (*PullReviewComment) MarshalBinary ¶
func (m *PullReviewComment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PullReviewComment) UnmarshalBinary ¶
func (m *PullReviewComment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PullReviewRequestOptions ¶
type PullReviewRequestOptions struct {
// reviewers
Reviewers []string `json:"reviewers"`
// team reviewers
TeamReviewers []string `json:"team_reviewers"`
}
PullReviewRequestOptions PullReviewRequestOptions are options to add or remove pull review requests
swagger:model PullReviewRequestOptions
func (*PullReviewRequestOptions) ContextValidate ¶
func (m *PullReviewRequestOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this pull review request options based on context it is used
func (*PullReviewRequestOptions) MarshalBinary ¶
func (m *PullReviewRequestOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PullReviewRequestOptions) UnmarshalBinary ¶
func (m *PullReviewRequestOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PushMirror ¶
type PushMirror struct {
// created unix
// Format: date-time
CreatedUnix strfmt.DateTime `json:"created,omitempty"`
// interval
Interval string `json:"interval,omitempty"`
// last error
LastError string `json:"last_error,omitempty"`
// last update unix
// Format: date-time
LastUpdateUnix strfmt.DateTime `json:"last_update,omitempty"`
// remote address
RemoteAddress string `json:"remote_address,omitempty"`
// remote name
RemoteName string `json:"remote_name,omitempty"`
// repo name
RepoName string `json:"repo_name,omitempty"`
// sync on commit
SyncOnCommit bool `json:"sync_on_commit,omitempty"`
}
PushMirror PushMirror represents information of a push mirror
swagger:model PushMirror
func (*PushMirror) ContextValidate ¶
ContextValidate validates this push mirror based on context it is used
func (*PushMirror) MarshalBinary ¶
func (m *PushMirror) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PushMirror) UnmarshalBinary ¶
func (m *PushMirror) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Reaction ¶
type Reaction struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// reaction
Reaction string `json:"content,omitempty"`
// user
User *User `json:"user,omitempty"`
}
Reaction Reaction contain one reaction
swagger:model Reaction
func (*Reaction) ContextValidate ¶
ContextValidate validate this reaction based on the context it is used
func (*Reaction) MarshalBinary ¶
MarshalBinary interface implementation
func (*Reaction) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Reference ¶
type Reference struct {
// ref
Ref string `json:"ref,omitempty"`
// URL
URL string `json:"url,omitempty"`
// object
Object *GitObject `json:"object,omitempty"`
}
Reference Reference represents a Git reference.
swagger:model Reference
func (*Reference) ContextValidate ¶
ContextValidate validate this reference based on the context it is used
func (*Reference) MarshalBinary ¶
MarshalBinary interface implementation
func (*Reference) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Release ¶
type Release struct {
// attachments
Attachments []*Attachment `json:"assets"`
// created at
// Format: date-time
CreatedAt strfmt.DateTime `json:"created_at,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// is draft
IsDraft bool `json:"draft,omitempty"`
// is prerelease
IsPrerelease bool `json:"prerelease,omitempty"`
// note
Note string `json:"body,omitempty"`
// published at
// Format: date-time
PublishedAt strfmt.DateTime `json:"published_at,omitempty"`
// tag name
TagName string `json:"tag_name,omitempty"`
// tar URL
TarURL string `json:"tarball_url,omitempty"`
// target
Target string `json:"target_commitish,omitempty"`
// title
Title string `json:"name,omitempty"`
// URL
URL string `json:"url,omitempty"`
// upload URL
UploadURL string `json:"upload_url,omitempty"`
// zip URL
ZipURL string `json:"zipball_url,omitempty"`
// author
Author *User `json:"author,omitempty"`
}
Release Release represents a repository release
swagger:model Release
func (*Release) ContextValidate ¶
ContextValidate validate this release based on the context it is used
func (*Release) MarshalBinary ¶
MarshalBinary interface implementation
func (*Release) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RenameUserOption ¶
type RenameUserOption struct {
// New username for this user. This name cannot be in use yet by any other user.
// Required: true
NewName *string `json:"new_username"`
}
RenameUserOption RenameUserOption options when renaming a user
swagger:model RenameUserOption
func (*RenameUserOption) ContextValidate ¶
ContextValidate validates this rename user option based on context it is used
func (*RenameUserOption) MarshalBinary ¶
func (m *RenameUserOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RenameUserOption) UnmarshalBinary ¶
func (m *RenameUserOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RepoCollaboratorPermission ¶
type RepoCollaboratorPermission struct {
// permission
Permission string `json:"permission,omitempty"`
// role name
RoleName string `json:"role_name,omitempty"`
// user
User *User `json:"user,omitempty"`
}
RepoCollaboratorPermission RepoCollaboratorPermission to get repository permission for a collaborator
swagger:model RepoCollaboratorPermission
func (*RepoCollaboratorPermission) ContextValidate ¶
func (m *RepoCollaboratorPermission) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this repo collaborator permission based on the context it is used
func (*RepoCollaboratorPermission) MarshalBinary ¶
func (m *RepoCollaboratorPermission) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RepoCollaboratorPermission) UnmarshalBinary ¶
func (m *RepoCollaboratorPermission) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RepoCommit ¶
type RepoCommit struct {
// message
Message string `json:"message,omitempty"`
// URL
URL string `json:"url,omitempty"`
// author
Author *CommitUser `json:"author,omitempty"`
// committer
Committer *CommitUser `json:"committer,omitempty"`
// tree
Tree *CommitMeta `json:"tree,omitempty"`
// verification
Verification *PayloadCommitVerification `json:"verification,omitempty"`
}
RepoCommit RepoCommit contains information of a commit in the context of a repository.
swagger:model RepoCommit
func (*RepoCommit) ContextValidate ¶
ContextValidate validate this repo commit based on the context it is used
func (*RepoCommit) MarshalBinary ¶
func (m *RepoCommit) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RepoCommit) UnmarshalBinary ¶
func (m *RepoCommit) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RepoTopicOptions ¶
type RepoTopicOptions struct {
// list of topic names
Topics []string `json:"topics"`
}
RepoTopicOptions RepoTopicOptions a collection of repo topic names
swagger:model RepoTopicOptions
func (*RepoTopicOptions) ContextValidate ¶
ContextValidate validates this repo topic options based on context it is used
func (*RepoTopicOptions) MarshalBinary ¶
func (m *RepoTopicOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RepoTopicOptions) UnmarshalBinary ¶
func (m *RepoTopicOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RepoTransfer ¶
type RepoTransfer struct {
// teams
Teams []*Team `json:"teams"`
// doer
Doer *User `json:"doer,omitempty"`
// recipient
Recipient *User `json:"recipient,omitempty"`
}
RepoTransfer RepoTransfer represents a pending repo transfer
swagger:model RepoTransfer
func (*RepoTransfer) ContextValidate ¶
ContextValidate validate this repo transfer based on the context it is used
func (*RepoTransfer) MarshalBinary ¶
func (m *RepoTransfer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RepoTransfer) UnmarshalBinary ¶
func (m *RepoTransfer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Repository ¶
type Repository struct {
// allow fast forward only
AllowFastForwardOnly bool `json:"allow_fast_forward_only_merge,omitempty"`
// allow merge
AllowMerge bool `json:"allow_merge_commits,omitempty"`
// allow rebase
AllowRebase bool `json:"allow_rebase,omitempty"`
// allow rebase merge
AllowRebaseMerge bool `json:"allow_rebase_explicit,omitempty"`
// allow rebase update
AllowRebaseUpdate bool `json:"allow_rebase_update,omitempty"`
// allow squash
AllowSquash bool `json:"allow_squash_merge,omitempty"`
// archived
Archived bool `json:"archived,omitempty"`
// archived at
// Format: date-time
ArchivedAt strfmt.DateTime `json:"archived_at,omitempty"`
// avatar URL
AvatarURL string `json:"avatar_url,omitempty"`
// clone URL
CloneURL string `json:"clone_url,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// default allow maintainer edit
DefaultAllowMaintainerEdit bool `json:"default_allow_maintainer_edit,omitempty"`
// default branch
DefaultBranch string `json:"default_branch,omitempty"`
// default delete branch after merge
DefaultDeleteBranchAfterMerge bool `json:"default_delete_branch_after_merge,omitempty"`
// default merge style
DefaultMergeStyle string `json:"default_merge_style,omitempty"`
// description
Description string `json:"description,omitempty"`
// empty
Empty bool `json:"empty,omitempty"`
// fork
Fork bool `json:"fork,omitempty"`
// forks
Forks int64 `json:"forks_count,omitempty"`
// full name
FullName string `json:"full_name,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// has actions
HasActions bool `json:"has_actions,omitempty"`
// has issues
HasIssues bool `json:"has_issues,omitempty"`
// has packages
HasPackages bool `json:"has_packages,omitempty"`
// has projects
HasProjects bool `json:"has_projects,omitempty"`
// has pull requests
HasPullRequests bool `json:"has_pull_requests,omitempty"`
// has releases
HasReleases bool `json:"has_releases,omitempty"`
// has wiki
HasWiki bool `json:"has_wiki,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// ignore whitespace conflicts
IgnoreWhitespaceConflicts bool `json:"ignore_whitespace_conflicts,omitempty"`
// internal
Internal bool `json:"internal,omitempty"`
// language
Language string `json:"language,omitempty"`
// languages URL
LanguagesURL string `json:"languages_url,omitempty"`
// link
Link string `json:"link,omitempty"`
// mirror
Mirror bool `json:"mirror,omitempty"`
// mirror interval
MirrorInterval string `json:"mirror_interval,omitempty"`
// mirror updated
// Format: date-time
MirrorUpdated strfmt.DateTime `json:"mirror_updated,omitempty"`
// name
Name string `json:"name,omitempty"`
// ObjectFormatName of the underlying git repository
// Enum: ["sha1","sha256"]
ObjectFormatName string `json:"object_format_name,omitempty"`
// open issues
OpenIssues int64 `json:"open_issues_count,omitempty"`
// open pulls
OpenPulls int64 `json:"open_pr_counter,omitempty"`
// original URL
OriginalURL string `json:"original_url,omitempty"`
// private
Private bool `json:"private,omitempty"`
// projects mode
ProjectsMode string `json:"projects_mode,omitempty"`
// releases
Releases int64 `json:"release_counter,omitempty"`
// SSH URL
SSHURL string `json:"ssh_url,omitempty"`
// size
Size int64 `json:"size,omitempty"`
// stars
Stars int64 `json:"stars_count,omitempty"`
// template
Template bool `json:"template,omitempty"`
// topics
Topics []string `json:"topics"`
// URL
URL string `json:"url,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// watchers
Watchers int64 `json:"watchers_count,omitempty"`
// website
Website string `json:"website,omitempty"`
// external tracker
ExternalTracker *ExternalTracker `json:"external_tracker,omitempty"`
// external wiki
ExternalWiki *ExternalWiki `json:"external_wiki,omitempty"`
// internal tracker
InternalTracker *InternalTracker `json:"internal_tracker,omitempty"`
// owner
Owner *User `json:"owner,omitempty"`
// parent
Parent *Repository `json:"parent,omitempty"`
// permissions
Permissions *Permission `json:"permissions,omitempty"`
// repo transfer
RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"`
}
Repository Repository represents a repository
swagger:model Repository
func (*Repository) ContextValidate ¶
ContextValidate validate this repository based on the context it is used
func (*Repository) MarshalBinary ¶
func (m *Repository) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Repository) UnmarshalBinary ¶
func (m *Repository) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RepositoryMeta ¶
type RepositoryMeta struct {
// full name
FullName string `json:"full_name,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// owner
Owner string `json:"owner,omitempty"`
}
RepositoryMeta RepositoryMeta basic repository information
swagger:model RepositoryMeta
func (*RepositoryMeta) ContextValidate ¶
ContextValidate validates this repository meta based on context it is used
func (*RepositoryMeta) MarshalBinary ¶
func (m *RepositoryMeta) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RepositoryMeta) UnmarshalBinary ¶
func (m *RepositoryMeta) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReviewStateType ¶
type ReviewStateType string
ReviewStateType ReviewStateType review state type
swagger:model ReviewStateType
func (ReviewStateType) ContextValidate ¶
ContextValidate validates this review state type based on context it is used
type SearchResults ¶
type SearchResults struct {
// data
Data []*Repository `json:"data"`
// o k
OK bool `json:"ok,omitempty"`
}
SearchResults SearchResults results of a successful search
swagger:model SearchResults
func (*SearchResults) ContextValidate ¶
ContextValidate validate this search results based on the context it is used
func (*SearchResults) MarshalBinary ¶
func (m *SearchResults) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SearchResults) UnmarshalBinary ¶
func (m *SearchResults) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Secret ¶
type Secret struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// the secret's name
Name string `json:"name,omitempty"`
}
Secret Secret represents a secret
swagger:model Secret
func (*Secret) ContextValidate ¶
ContextValidate validates this secret based on context it is used
func (*Secret) MarshalBinary ¶
MarshalBinary interface implementation
func (*Secret) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServerVersion ¶
type ServerVersion struct {
// version
Version string `json:"version,omitempty"`
}
ServerVersion ServerVersion wraps the version of the server
swagger:model ServerVersion
func (*ServerVersion) ContextValidate ¶
ContextValidate validates this server version based on context it is used
func (*ServerVersion) MarshalBinary ¶
func (m *ServerVersion) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerVersion) UnmarshalBinary ¶
func (m *ServerVersion) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StateType ¶
type StateType string
StateType StateType issue state type
swagger:model StateType
func (StateType) ContextValidate ¶
ContextValidate validates this state type based on context it is used
type StopWatch ¶
type StopWatch struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// duration
Duration string `json:"duration,omitempty"`
// issue index
IssueIndex int64 `json:"issue_index,omitempty"`
// issue title
IssueTitle string `json:"issue_title,omitempty"`
// repo name
RepoName string `json:"repo_name,omitempty"`
// repo owner name
RepoOwnerName string `json:"repo_owner_name,omitempty"`
// seconds
Seconds int64 `json:"seconds,omitempty"`
}
StopWatch StopWatch represent a running stopwatch
swagger:model StopWatch
func (*StopWatch) ContextValidate ¶
ContextValidate validates this stop watch based on context it is used
func (*StopWatch) MarshalBinary ¶
MarshalBinary interface implementation
func (*StopWatch) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SubmitPullReviewOptions ¶
type SubmitPullReviewOptions struct {
// body
Body string `json:"body,omitempty"`
// event
Event ReviewStateType `json:"event,omitempty"`
}
SubmitPullReviewOptions SubmitPullReviewOptions are options to submit a pending pull review
swagger:model SubmitPullReviewOptions
func (*SubmitPullReviewOptions) ContextValidate ¶
func (m *SubmitPullReviewOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this submit pull review options based on the context it is used
func (*SubmitPullReviewOptions) MarshalBinary ¶
func (m *SubmitPullReviewOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SubmitPullReviewOptions) UnmarshalBinary ¶
func (m *SubmitPullReviewOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Tag ¶
type Tag struct {
// ID
ID string `json:"id,omitempty"`
// message
Message string `json:"message,omitempty"`
// name
Name string `json:"name,omitempty"`
// tarball URL
TarballURL string `json:"tarball_url,omitempty"`
// zipball URL
ZipballURL string `json:"zipball_url,omitempty"`
// commit
Commit *CommitMeta `json:"commit,omitempty"`
}
Tag Tag represents a repository tag
swagger:model Tag
func (*Tag) ContextValidate ¶
ContextValidate validate this tag based on the context it is used
func (*Tag) MarshalBinary ¶
MarshalBinary interface implementation
func (*Tag) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TagProtection ¶
type TagProtection struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// name pattern
NamePattern string `json:"name_pattern,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// whitelist teams
WhitelistTeams []string `json:"whitelist_teams"`
// whitelist usernames
WhitelistUsernames []string `json:"whitelist_usernames"`
}
TagProtection TagProtection represents a tag protection
swagger:model TagProtection
func (*TagProtection) ContextValidate ¶
ContextValidate validates this tag protection based on context it is used
func (*TagProtection) MarshalBinary ¶
func (m *TagProtection) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TagProtection) UnmarshalBinary ¶
func (m *TagProtection) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Team ¶
type Team struct {
// can create org repo
CanCreateOrgRepo bool `json:"can_create_org_repo,omitempty"`
// description
Description string `json:"description,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// includes all repositories
IncludesAllRepositories bool `json:"includes_all_repositories,omitempty"`
// name
Name string `json:"name,omitempty"`
// permission
// Enum: ["none","read","write","admin","owner"]
Permission string `json:"permission,omitempty"`
// units
// Example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
Units []string `json:"units"`
// units map
// Example: {"repo.code":"read","repo.ext_issues":"none","repo.ext_wiki":"none","repo.issues":"write","repo.projects":"none","repo.pulls":"owner","repo.releases":"none","repo.wiki":"admin"}
UnitsMap map[string]string `json:"units_map,omitempty"`
// organization
Organization *Organization `json:"organization,omitempty"`
}
Team Team represents a team in an organization
swagger:model Team
func (*Team) ContextValidate ¶
ContextValidate validate this team based on the context it is used
func (*Team) MarshalBinary ¶
MarshalBinary interface implementation
func (*Team) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TimeStamp ¶
type TimeStamp int64
TimeStamp TimeStamp defines a timestamp
swagger:model TimeStamp
func (TimeStamp) ContextValidate ¶
ContextValidate validates this time stamp based on context it is used
type TimelineComment ¶
type TimelineComment struct {
// body
Body string `json:"body,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created_at,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// issue URL
IssueURL string `json:"issue_url,omitempty"`
// new ref
NewRef string `json:"new_ref,omitempty"`
// new title
NewTitle string `json:"new_title,omitempty"`
// old project ID
OldProjectID int64 `json:"old_project_id,omitempty"`
// old ref
OldRef string `json:"old_ref,omitempty"`
// old title
OldTitle string `json:"old_title,omitempty"`
// p r URL
PRURL string `json:"pull_request_url,omitempty"`
// project ID
ProjectID int64 `json:"project_id,omitempty"`
// ref action
RefAction string `json:"ref_action,omitempty"`
// commit SHA where issue/PR was referenced
RefCommitSHA string `json:"ref_commit_sha,omitempty"`
// whether the assignees were removed or added
RemovedAssignee bool `json:"removed_assignee,omitempty"`
// review ID
ReviewID int64 `json:"review_id,omitempty"`
// type
Type string `json:"type,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated_at,omitempty"`
// assignee
Assignee *User `json:"assignee,omitempty"`
// assignee team
AssigneeTeam *Team `json:"assignee_team,omitempty"`
// dependent issue
DependentIssue *Issue `json:"dependent_issue,omitempty"`
// label
Label *Label `json:"label,omitempty"`
// milestone
Milestone *Milestone `json:"milestone,omitempty"`
// old milestone
OldMilestone *Milestone `json:"old_milestone,omitempty"`
// ref comment
RefComment *Comment `json:"ref_comment,omitempty"`
// ref issue
RefIssue *Issue `json:"ref_issue,omitempty"`
// resolve doer
ResolveDoer *User `json:"resolve_doer,omitempty"`
// tracked time
TrackedTime *TrackedTime `json:"tracked_time,omitempty"`
// user
User *User `json:"user,omitempty"`
}
TimelineComment TimelineComment represents a timeline comment (comment of any type) on a commit or issue
swagger:model TimelineComment
func (*TimelineComment) ContextValidate ¶
ContextValidate validate this timeline comment based on the context it is used
func (*TimelineComment) MarshalBinary ¶
func (m *TimelineComment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TimelineComment) UnmarshalBinary ¶
func (m *TimelineComment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TopicName ¶
type TopicName struct {
// topic names
TopicNames []string `json:"topics"`
}
TopicName TopicName a list of repo topic names
swagger:model TopicName
func (*TopicName) ContextValidate ¶
ContextValidate validates this topic name based on context it is used
func (*TopicName) MarshalBinary ¶
MarshalBinary interface implementation
func (*TopicName) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TopicResponse ¶
type TopicResponse struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// name
Name string `json:"topic_name,omitempty"`
// repo count
RepoCount int64 `json:"repo_count,omitempty"`
// updated
// Format: date-time
Updated strfmt.DateTime `json:"updated,omitempty"`
}
TopicResponse TopicResponse for returning topics
swagger:model TopicResponse
func (*TopicResponse) ContextValidate ¶
ContextValidate validates this topic response based on context it is used
func (*TopicResponse) MarshalBinary ¶
func (m *TopicResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TopicResponse) UnmarshalBinary ¶
func (m *TopicResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TrackedTime ¶
type TrackedTime struct {
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// deprecated (only for backwards compatibility)
IssueID int64 `json:"issue_id,omitempty"`
// Time in seconds
Time int64 `json:"time,omitempty"`
// deprecated (only for backwards compatibility)
UserID int64 `json:"user_id,omitempty"`
// user name
UserName string `json:"user_name,omitempty"`
// issue
Issue *Issue `json:"issue,omitempty"`
}
TrackedTime TrackedTime worked time for an issue / pr
swagger:model TrackedTime
func (*TrackedTime) ContextValidate ¶
ContextValidate validate this tracked time based on the context it is used
func (*TrackedTime) MarshalBinary ¶
func (m *TrackedTime) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TrackedTime) UnmarshalBinary ¶
func (m *TrackedTime) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransferRepoOption ¶
type TransferRepoOption struct {
// new owner
// Required: true
NewOwner *string `json:"new_owner"`
// ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.
TeamIDs []int64 `json:"team_ids"`
}
TransferRepoOption TransferRepoOption options when transfer a repository's ownership
swagger:model TransferRepoOption
func (*TransferRepoOption) ContextValidate ¶
ContextValidate validates this transfer repo option based on context it is used
func (*TransferRepoOption) MarshalBinary ¶
func (m *TransferRepoOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TransferRepoOption) UnmarshalBinary ¶
func (m *TransferRepoOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateFileOptions ¶
type UpdateFileOptions struct {
// branch (optional) to base this file from. if not given, the default branch is used
BranchName string `json:"branch,omitempty"`
// content must be base64 encoded
// Required: true
ContentBase64 *string `json:"content"`
// from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL
FromPath string `json:"from_path,omitempty"`
// message (optional) for the commit of this file. if not supplied, a default message will be used
Message string `json:"message,omitempty"`
// new_branch (optional) will make a new branch from `branch` before creating the file
NewBranchName string `json:"new_branch,omitempty"`
// sha is the SHA for the file that already exists
// Required: true
SHA *string `json:"sha"`
// Add a Signed-off-by trailer by the committer at the end of the commit log message.
Signoff bool `json:"signoff,omitempty"`
// author
Author *Identity `json:"author,omitempty"`
// committer
Committer *Identity `json:"committer,omitempty"`
// dates
Dates *CommitDateOptions `json:"dates,omitempty"`
}
UpdateFileOptions UpdateFileOptions options for updating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
swagger:model UpdateFileOptions
func (*UpdateFileOptions) ContextValidate ¶
ContextValidate validate this update file options based on the context it is used
func (*UpdateFileOptions) MarshalBinary ¶
func (m *UpdateFileOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateFileOptions) UnmarshalBinary ¶
func (m *UpdateFileOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateRepoAvatarOption ¶
type UpdateRepoAvatarOption struct {
// image must be base64 encoded
Image string `json:"image,omitempty"`
}
UpdateRepoAvatarOption UpdateRepoAvatarUserOption options when updating the repo avatar
swagger:model UpdateRepoAvatarOption
func (*UpdateRepoAvatarOption) ContextValidate ¶
func (m *UpdateRepoAvatarOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this update repo avatar option based on context it is used
func (*UpdateRepoAvatarOption) MarshalBinary ¶
func (m *UpdateRepoAvatarOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateRepoAvatarOption) UnmarshalBinary ¶
func (m *UpdateRepoAvatarOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserAvatarOption ¶
type UpdateUserAvatarOption struct {
// image must be base64 encoded
Image string `json:"image,omitempty"`
}
UpdateUserAvatarOption UpdateUserAvatarUserOption options when updating the user avatar
swagger:model UpdateUserAvatarOption
func (*UpdateUserAvatarOption) ContextValidate ¶
func (m *UpdateUserAvatarOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this update user avatar option based on context it is used
func (*UpdateUserAvatarOption) MarshalBinary ¶
func (m *UpdateUserAvatarOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserAvatarOption) UnmarshalBinary ¶
func (m *UpdateUserAvatarOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateVariableOption ¶
type UpdateVariableOption struct {
// New name for the variable. If the field is empty, the variable name won't be updated.
Name string `json:"name,omitempty"`
// Value of the variable to update
// Required: true
Value *string `json:"value"`
}
UpdateVariableOption UpdateVariableOption the option when updating variable
swagger:model UpdateVariableOption
func (*UpdateVariableOption) ContextValidate ¶
ContextValidate validates this update variable option based on context it is used
func (*UpdateVariableOption) MarshalBinary ¶
func (m *UpdateVariableOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateVariableOption) UnmarshalBinary ¶
func (m *UpdateVariableOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type User ¶
type User struct {
// URL to the user's avatar
AvatarURL string `json:"avatar_url,omitempty"`
// created
// Format: date-time
Created strfmt.DateTime `json:"created,omitempty"`
// the user's description
Description string `json:"description,omitempty"`
// email
// Format: email
Email strfmt.Email `json:"email,omitempty"`
// user counts
Followers int64 `json:"followers_count,omitempty"`
// following
Following int64 `json:"following_count,omitempty"`
// the user's full name
FullName string `json:"full_name,omitempty"`
// URL to the user's gitea page
HTMLURL string `json:"html_url,omitempty"`
// the user's id
ID int64 `json:"id,omitempty"`
// Is user active
IsActive bool `json:"active,omitempty"`
// Is the user an administrator
IsAdmin bool `json:"is_admin,omitempty"`
// User locale
Language string `json:"language,omitempty"`
// last login
// Format: date-time
LastLogin strfmt.DateTime `json:"last_login,omitempty"`
// the user's location
Location string `json:"location,omitempty"`
// the user's authentication sign-in name.
LoginName *string `json:"login_name,omitempty"`
// Is user login prohibited
ProhibitLogin bool `json:"prohibit_login,omitempty"`
// Is user restricted
Restricted bool `json:"restricted,omitempty"`
// The ID of the user's Authentication Source
SourceID int64 `json:"source_id,omitempty"`
// starred repos
StarredRepos int64 `json:"starred_repos_count,omitempty"`
// the user's username
UserName string `json:"login,omitempty"`
// User visibility level option: public, limited, private
Visibility string `json:"visibility,omitempty"`
// the user's website
Website string `json:"website,omitempty"`
}
User User represents a user
swagger:model User
func (*User) ContextValidate ¶
ContextValidate validates this user based on context it is used
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserBadgeOption ¶
type UserBadgeOption struct {
// badge slugs
// Example: ["badge1","badge2"]
BadgeSlugs []string `json:"badge_slugs"`
}
UserBadgeOption UserBadgeOption options for link between users and badges
swagger:model UserBadgeOption
func (*UserBadgeOption) ContextValidate ¶
ContextValidate validates this user badge option based on context it is used
func (*UserBadgeOption) MarshalBinary ¶
func (m *UserBadgeOption) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserBadgeOption) UnmarshalBinary ¶
func (m *UserBadgeOption) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserHeatmapData ¶
type UserHeatmapData struct {
// contributions
Contributions int64 `json:"contributions,omitempty"`
// timestamp
Timestamp TimeStamp `json:"timestamp,omitempty"`
}
UserHeatmapData UserHeatmapData represents the data needed to create a heatmap
swagger:model UserHeatmapData
func (*UserHeatmapData) ContextValidate ¶
ContextValidate validate this user heatmap data based on the context it is used
func (*UserHeatmapData) MarshalBinary ¶
func (m *UserHeatmapData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserHeatmapData) UnmarshalBinary ¶
func (m *UserHeatmapData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserSettings ¶
type UserSettings struct {
// description
Description string `json:"description,omitempty"`
// diff view style
DiffViewStyle string `json:"diff_view_style,omitempty"`
// full name
FullName string `json:"full_name,omitempty"`
// hide activity
HideActivity bool `json:"hide_activity,omitempty"`
// Privacy
HideEmail bool `json:"hide_email,omitempty"`
// language
Language string `json:"language,omitempty"`
// location
Location string `json:"location,omitempty"`
// theme
Theme string `json:"theme,omitempty"`
// website
Website string `json:"website,omitempty"`
}
UserSettings UserSettings represents user settings
swagger:model UserSettings
func (*UserSettings) ContextValidate ¶
ContextValidate validates this user settings based on context it is used
func (*UserSettings) MarshalBinary ¶
func (m *UserSettings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserSettings) UnmarshalBinary ¶
func (m *UserSettings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserSettingsOptions ¶
type UserSettingsOptions struct {
// description
Description string `json:"description,omitempty"`
// diff view style
DiffViewStyle string `json:"diff_view_style,omitempty"`
// full name
FullName string `json:"full_name,omitempty"`
// hide activity
HideActivity bool `json:"hide_activity,omitempty"`
// Privacy
HideEmail bool `json:"hide_email,omitempty"`
// language
Language string `json:"language,omitempty"`
// location
Location string `json:"location,omitempty"`
// theme
Theme string `json:"theme,omitempty"`
// website
Website string `json:"website,omitempty"`
}
UserSettingsOptions UserSettingsOptions represents options to change user settings
swagger:model UserSettingsOptions
func (*UserSettingsOptions) ContextValidate ¶
ContextValidate validates this user settings options based on context it is used
func (*UserSettingsOptions) MarshalBinary ¶
func (m *UserSettingsOptions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserSettingsOptions) UnmarshalBinary ¶
func (m *UserSettingsOptions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WatchInfo ¶
type WatchInfo struct {
// created at
// Format: date-time
CreatedAt strfmt.DateTime `json:"created_at,omitempty"`
// ignored
Ignored bool `json:"ignored,omitempty"`
// reason
Reason interface{} `json:"reason,omitempty"`
// repository URL
RepositoryURL string `json:"repository_url,omitempty"`
// subscribed
Subscribed bool `json:"subscribed,omitempty"`
// URL
URL string `json:"url,omitempty"`
}
WatchInfo WatchInfo represents an API watch status of one repository
swagger:model WatchInfo
func (*WatchInfo) ContextValidate ¶
ContextValidate validates this watch info based on context it is used
func (*WatchInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*WatchInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type WikiCommit ¶
type WikiCommit struct {
// ID
ID string `json:"sha,omitempty"`
// message
Message string `json:"message,omitempty"`
// author
Author *CommitUser `json:"author,omitempty"`
// commiter
Commiter *CommitUser `json:"commiter,omitempty"`
}
WikiCommit WikiCommit page commit/revision
swagger:model WikiCommit
func (*WikiCommit) ContextValidate ¶
ContextValidate validate this wiki commit based on the context it is used
func (*WikiCommit) MarshalBinary ¶
func (m *WikiCommit) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WikiCommit) UnmarshalBinary ¶
func (m *WikiCommit) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WikiCommitList ¶
type WikiCommitList struct {
// count
Count int64 `json:"count,omitempty"`
// wiki commits
WikiCommits []*WikiCommit `json:"commits"`
}
WikiCommitList WikiCommitList commit/revision list
swagger:model WikiCommitList
func (*WikiCommitList) ContextValidate ¶
ContextValidate validate this wiki commit list based on the context it is used
func (*WikiCommitList) MarshalBinary ¶
func (m *WikiCommitList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WikiCommitList) UnmarshalBinary ¶
func (m *WikiCommitList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WikiPage ¶
type WikiPage struct {
// commit count
CommitCount int64 `json:"commit_count,omitempty"`
// Page content, base64 encoded
ContentBase64 string `json:"content_base64,omitempty"`
Footer string `json:"footer,omitempty"`
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// sidebar
Sidebar string `json:"sidebar,omitempty"`
// sub URL
SubURL string `json:"sub_url,omitempty"`
// title
Title string `json:"title,omitempty"`
// last commit
LastCommit *WikiCommit `json:"last_commit,omitempty"`
}
WikiPage WikiPage a wiki page
swagger:model WikiPage
func (*WikiPage) ContextValidate ¶
ContextValidate validate this wiki page based on the context it is used
func (*WikiPage) MarshalBinary ¶
MarshalBinary interface implementation
func (*WikiPage) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type WikiPageMetaData ¶
type WikiPageMetaData struct {
// HTML URL
HTMLURL string `json:"html_url,omitempty"`
// sub URL
SubURL string `json:"sub_url,omitempty"`
// title
Title string `json:"title,omitempty"`
// last commit
LastCommit *WikiCommit `json:"last_commit,omitempty"`
}
WikiPageMetaData WikiPageMetaData wiki page meta information
swagger:model WikiPageMetaData
func (*WikiPageMetaData) ContextValidate ¶
ContextValidate validate this wiki page meta data based on the context it is used
func (*WikiPageMetaData) MarshalBinary ¶
func (m *WikiPageMetaData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WikiPageMetaData) UnmarshalBinary ¶
func (m *WikiPageMetaData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- access_token.go
- action_task.go
- action_task_response.go
- action_variable.go
- activity.go
- activity_pub.go
- add_collaborator_option.go
- add_time_option.go
- annotated_tag.go
- annotated_tag_object.go
- api_error.go
- attachment.go
- badge.go
- branch.go
- branch_protection.go
- change_file_operation.go
- change_files_options.go
- changed_file.go
- combined_status.go
- comment.go
- commit.go
- commit_affected_files.go
- commit_date_options.go
- commit_meta.go
- commit_stats.go
- commit_status.go
- commit_status_state.go
- commit_user.go
- compare.go
- contents_response.go
- create_access_token_option.go
- create_branch_protection_option.go
- create_branch_repo_option.go
- create_email_option.go
- create_file_options.go
- create_fork_option.go
- create_g_p_g_key_option.go
- create_hook_option.go
- create_hook_option_config.go
- create_issue_comment_option.go
- create_issue_option.go
- create_key_option.go
- create_label_option.go
- create_milestone_option.go
- create_o_auth2_application_options.go
- create_or_update_secret_option.go
- create_org_option.go
- create_pull_request_option.go
- create_pull_review_comment.go
- create_pull_review_options.go
- create_push_mirror_option.go
- create_release_option.go
- create_repo_option.go
- create_status_option.go
- create_tag_option.go
- create_tag_protection_option.go
- create_team_option.go
- create_user_option.go
- create_variable_option.go
- create_wiki_page_options.go
- cron.go
- delete_email_option.go
- delete_file_options.go
- deploy_key.go
- dismiss_pull_review_options.go
- edit_attachment_options.go
- edit_branch_protection_option.go
- edit_deadline_option.go
- edit_git_hook_option.go
- edit_hook_option.go
- edit_issue_comment_option.go
- edit_issue_option.go
- edit_label_option.go
- edit_milestone_option.go
- edit_org_option.go
- edit_pull_request_option.go
- edit_reaction_option.go
- edit_release_option.go
- edit_repo_option.go
- edit_tag_protection_option.go
- edit_team_option.go
- edit_user_option.go
- email.go
- external_tracker.go
- external_wiki.go
- file_commit_response.go
- file_delete_response.go
- file_links_response.go
- file_response.go
- files_response.go
- g_p_g_key.go
- g_p_g_key_email.go
- general_api_settings.go
- general_attachment_settings.go
- general_repo_settings.go
- general_ui_settings.go
- generate_repo_option.go
- git_blob_response.go
- git_entry.go
- git_hook.go
- git_object.go
- git_tree_response.go
- gitignore_template_info.go
- hook.go
- identity.go
- internal_tracker.go
- issue.go
- issue_config.go
- issue_config_contact_link.go
- issue_config_validation.go
- issue_deadline.go
- issue_form_field.go
- issue_form_field_type.go
- issue_form_field_visible.go
- issue_labels_option.go
- issue_meta.go
- issue_template.go
- issue_template_labels.go
- label.go
- label_template.go
- license_template_info.go
- licenses_template_list_entry.go
- markdown_option.go
- markup_option.go
- merge_pull_request_form.go
- migrate_repo_options.go
- milestone.go
- new_issue_pins_allowed.go
- node_info.go
- node_info_services.go
- node_info_software.go
- node_info_usage.go
- node_info_usage_users.go
- note.go
- notification_count.go
- notification_subject.go
- notification_thread.go
- notify_subject_type.go
- o_auth2_application.go
- organization.go
- organization_permissions.go
- p_r_branch_info.go
- package.go
- package_file.go
- payload_commit.go
- payload_commit_verification.go
- payload_user.go
- permission.go
- public_key.go
- pull_request.go
- pull_request_meta.go
- pull_review.go
- pull_review_comment.go
- pull_review_request_options.go
- push_mirror.go
- reaction.go
- reference.go
- release.go
- rename_user_option.go
- repo_collaborator_permission.go
- repo_commit.go
- repo_topic_options.go
- repo_transfer.go
- repository.go
- repository_meta.go
- review_state_type.go
- search_results.go
- secret.go
- server_version.go
- state_type.go
- stop_watch.go
- submit_pull_review_options.go
- tag.go
- tag_protection.go
- team.go
- time_stamp.go
- timeline_comment.go
- topic_name.go
- topic_response.go
- tracked_time.go
- transfer_repo_option.go
- update_file_options.go
- update_repo_avatar_option.go
- update_user_avatar_option.go
- update_variable_option.go
- user.go
- user_badge_option.go
- user_heatmap_data.go
- user_settings.go
- user_settings_options.go
- watch_info.go
- wiki_commit.go
- wiki_commit_list.go
- wiki_page.go
- wiki_page_meta_data.go