v1_20

package
v1.20.6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddActionTaskOutputTable

func AddActionTaskOutputTable(x *xorm.Engine) error

func AddArchivedUnixToRepository

func AddArchivedUnixToRepository(x *xorm.Engine) error

func AddIsInternalColumnToPackage

func AddIsInternalColumnToPackage(x *xorm.Engine) error

func AddNeedApprovalToActionRun

func AddNeedApprovalToActionRun(x *xorm.Engine) error

func AddNewColumnForProject

func AddNewColumnForProject(x *xorm.Engine) error

func AddPinOrderToIssue

func AddPinOrderToIssue(x *xorm.Engine) error

func AddVersionToActionRunner

func AddVersionToActionRunner(x *xorm.Engine) error

func ChangeContainerMetadataMultiArch

func ChangeContainerMetadataMultiArch(x *xorm.Engine) error

func ConvertScopedAccessTokens

func ConvertScopedAccessTokens(x *xorm.Engine) error

func CreateActionArtifactTable

func CreateActionArtifactTable(x *xorm.Engine) error

func FixExternalTrackerAndExternalWikiAccessModeInOwnerAndAdminTeam

func FixExternalTrackerAndExternalWikiAccessModeInOwnerAndAdminTeam(x *xorm.Engine) error

func FixIncorrectAdminTeamUnitAccessMode

func FixIncorrectAdminTeamUnitAccessMode(x *xorm.Engine) error

func FixIncorrectOwnerTeamUnitAccessMode

func FixIncorrectOwnerTeamUnitAccessMode(x *xorm.Engine) error

func FixIncorrectProjectType

func FixIncorrectProjectType(x *xorm.Engine) error

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

func ImproveActionTableIndices

func ImproveActionTableIndices(x *xorm.Engine) error

func RenameWebhookOrgToOwner

func RenameWebhookOrgToOwner(x *xorm.Engine) 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