Documentation ¶
Index ¶
- func AddActionTaskOutputTable(x *xorm.Engine) error
- func AddArchivedUnixToRepository(x *xorm.Engine) error
- func AddIsInternalColumnToPackage(x *xorm.Engine) error
- func AddNeedApprovalToActionRun(x *xorm.Engine) error
- func AddNewColumnForProject(x *xorm.Engine) error
- func AddPinOrderToIssue(x *xorm.Engine) error
- func AddVersionToActionRunner(x *xorm.Engine) error
- func ChangeContainerMetadataMultiArch(x *xorm.Engine) error
- func ConvertScopedAccessTokens(x *xorm.Engine) error
- func CreateActionArtifactTable(x *xorm.Engine) error
- func FixExternalTrackerAndExternalWikiAccessModeInOwnerAndAdminTeam(x *xorm.Engine) error
- func FixIncorrectAdminTeamUnitAccessMode(x *xorm.Engine) error
- func FixIncorrectOwnerTeamUnitAccessMode(x *xorm.Engine) error
- func FixIncorrectProjectType(x *xorm.Engine) error
- func ImproveActionTableIndices(x *xorm.Engine) error
- func RenameWebhookOrgToOwner(x *xorm.Engine) error
- type AccessToken
- type AccessTokenScope
- type Action
- type OldAccessTokenScope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewColumnForProject ¶
func AddPinOrderToIssue ¶
func FixIncorrectProjectType ¶
FixIncorrectProjectType: set individual project's type from 3(TypeOrganization) to 1(TypeIndividual)
func RenameWebhookOrgToOwner ¶
Types ¶
type AccessToken ¶
type AccessTokenScope ¶
type AccessTokenScope string
AccessTokenScope represents the scope for an access token.
const ( AccessTokenScopeAll AccessTokenScope = "all" AccessTokenScopePublicOnly AccessTokenScope = "public-only" // limited to public orgs/repos AccessTokenScopeReadActivityPub AccessTokenScope = "read:activitypub" AccessTokenScopeWriteActivityPub AccessTokenScope = "write:activitypub" AccessTokenScopeReadAdmin AccessTokenScope = "read:admin" AccessTokenScopeWriteAdmin AccessTokenScope = "write:admin" AccessTokenScopeReadMisc AccessTokenScope = "read:misc" AccessTokenScopeWriteMisc AccessTokenScope = "write:misc" AccessTokenScopeReadNotification AccessTokenScope = "read:notification" AccessTokenScopeWriteNotification AccessTokenScope = "write:notification" AccessTokenScopeReadOrganization AccessTokenScope = "read:organization" AccessTokenScopeWriteOrganization AccessTokenScope = "write:organization" AccessTokenScopeReadPackage AccessTokenScope = "read:package" AccessTokenScopeWritePackage AccessTokenScope = "write:package" AccessTokenScopeReadIssue AccessTokenScope = "read:issue" AccessTokenScopeWriteIssue AccessTokenScope = "write:issue" AccessTokenScopeReadRepository AccessTokenScope = "read:repository" AccessTokenScopeWriteRepository AccessTokenScope = "write:repository" AccessTokenScopeReadUser AccessTokenScope = "read:user" AccessTokenScopeWriteUser AccessTokenScope = "write:user" )
for all categories, write implies read
func (AccessTokenScope) NormalizePreservingUnknown ¶
func (s AccessTokenScope) NormalizePreservingUnknown() AccessTokenScope
NormalizePreservingUnknown returns a normalized scope string without any duplicates. Unknown scopes are included.
type Action ¶
type Action struct { UserID int64 // Receiver user id. ActUserID int64 // Action user id. RepoID int64 IsDeleted bool `xorm:"NOT NULL DEFAULT false"` IsPrivate bool `xorm:"NOT NULL DEFAULT false"` CreatedUnix timeutil.TimeStamp `xorm:"created"` }
func (*Action) TableIndices ¶
TableIndices implements xorm's TableIndices interface
type OldAccessTokenScope ¶
type OldAccessTokenScope string
OldAccessTokenScope represents the scope for an access token.
const ( OldAccessTokenScopeAll OldAccessTokenScope = "all" OldAccessTokenScopeRepo OldAccessTokenScope = "repo" OldAccessTokenScopeRepoStatus OldAccessTokenScope = "repo:status" OldAccessTokenScopePublicRepo OldAccessTokenScope = "public_repo" OldAccessTokenScopeAdminOrg OldAccessTokenScope = "admin:org" OldAccessTokenScopeWriteOrg OldAccessTokenScope = "write:org" OldAccessTokenScopeReadOrg OldAccessTokenScope = "read:org" OldAccessTokenScopeAdminPublicKey OldAccessTokenScope = "admin:public_key" OldAccessTokenScopeWritePublicKey OldAccessTokenScope = "write:public_key" OldAccessTokenScopeReadPublicKey OldAccessTokenScope = "read:public_key" OldAccessTokenScopeAdminRepoHook OldAccessTokenScope = "admin:repo_hook" OldAccessTokenScopeWriteRepoHook OldAccessTokenScope = "write:repo_hook" OldAccessTokenScopeReadRepoHook OldAccessTokenScope = "read:repo_hook" OldAccessTokenScopeAdminOrgHook OldAccessTokenScope = "admin:org_hook" OldAccessTokenScopeNotification OldAccessTokenScope = "notification" OldAccessTokenScopeUser OldAccessTokenScope = "user" OldAccessTokenScopeReadUser OldAccessTokenScope = "read:user" OldAccessTokenScopeUserEmail OldAccessTokenScope = "user:email" OldAccessTokenScopeUserFollow OldAccessTokenScope = "user:follow" OldAccessTokenScopeDeleteRepo OldAccessTokenScope = "delete_repo" OldAccessTokenScopePackage OldAccessTokenScope = "package" OldAccessTokenScopeWritePackage OldAccessTokenScope = "write:package" OldAccessTokenScopeReadPackage OldAccessTokenScope = "read:package" OldAccessTokenScopeDeletePackage OldAccessTokenScope = "delete:package" OldAccessTokenScopeAdminGPGKey OldAccessTokenScope = "admin:gpg_key" OldAccessTokenScopeWriteGPGKey OldAccessTokenScope = "write:gpg_key" OldAccessTokenScopeReadGPGKey OldAccessTokenScope = "read:gpg_key" OldAccessTokenScopeAdminApplication OldAccessTokenScope = "admin:application" OldAccessTokenScopeWriteApplication OldAccessTokenScope = "write:application" OldAccessTokenScopeReadApplication OldAccessTokenScope = "read:application" OldAccessTokenScopeSudo OldAccessTokenScope = "sudo" )
Click to show internal directories.
Click to hide internal directories.