v1_20

package
v1.26.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddActionTaskOutputTable

func AddActionTaskOutputTable(x db.EngineMigration) error

func AddArchivedUnixToRepository

func AddArchivedUnixToRepository(x db.EngineMigration) error

func AddIsInternalColumnToPackage

func AddIsInternalColumnToPackage(x db.EngineMigration) error

func AddNeedApprovalToActionRun

func AddNeedApprovalToActionRun(x db.EngineMigration) error

func AddNewColumnForProject

func AddNewColumnForProject(x db.EngineMigration) error

func AddPinOrderToIssue

func AddPinOrderToIssue(x db.EngineMigration) error

func AddVersionToActionRunner

func AddVersionToActionRunner(x db.EngineMigration) error

func ChangeContainerMetadataMultiArch

func ChangeContainerMetadataMultiArch(x db.EngineMigration) error

func ConvertScopedAccessTokens

func ConvertScopedAccessTokens(x db.EngineMigration) error

func CreateActionArtifactTable

func CreateActionArtifactTable(x db.EngineMigration) error

func FixExternalTrackerAndExternalWikiAccessModeInOwnerAndAdminTeam

func FixExternalTrackerAndExternalWikiAccessModeInOwnerAndAdminTeam(x db.EngineMigration) error

func FixIncorrectAdminTeamUnitAccessMode

func FixIncorrectAdminTeamUnitAccessMode(x db.EngineMigration) error

func FixIncorrectOwnerTeamUnitAccessMode

func FixIncorrectOwnerTeamUnitAccessMode(x db.EngineMigration) error

func FixIncorrectProjectType

func FixIncorrectProjectType(x db.EngineMigration) error

FixIncorrectProjectType: set individual project's type from 3(TypeOrganization) to 1(TypeIndividual)

func ImproveActionTableIndices

func ImproveActionTableIndices(x db.EngineMigration) error

func RenameWebhookOrgToOwner

func RenameWebhookOrgToOwner(x db.EngineMigration) error

Types

type AccessToken

type AccessToken struct {
	ID    int64 `xorm:"pk autoincr"`
	Scope string
}

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

func (a *Action) TableIndices() []*schemas.Index

TableIndices implements xorm's TableIndices interface

func (*Action) TableName

func (a *Action) TableName() string

TableName sets the name of this table

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL