Documentation
¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const ( // BuildLimitMin defines the minimum value for repo concurrent build limit. BuildLimitMin = 1 // BuildLimitMax defines the maximum value for repo concurrent build limit. BuildLimitMax = 30 // BuildLimitDefault defines the default value for repo concurrent build limit. BuildLimitDefault = 10 // BuildTimeoutMin defines the minimum value in minutes for repo build timeout. BuildTimeoutMin = 1 // BuildTimeoutMax defines the maximum value in minutes for repo build timeout. BuildTimeoutMax = 90 // BuildTimeoutDefault defines the default value in minutes for repo build timeout. BuildTimeoutDefault = 30 // FavoritesMaxSize defines the maximum size in characters for user favorites. FavoritesMaxSize = 5000 // RunningBuildIDsMaxSize defines the maximum size in characters for worker RunningBuildIDs. RunningBuildIDsMaxSize = 500 // TopicsMaxSize defines the maximum size in characters for repo topics. Ex: GitHub has a 20-topic, 50-char limit. TopicsMaxSize = 1020 // DeployBuildsMaxSize defines the maximum size in characters for deployment builds. DeployBuildsMaxSize = 500 // ReportStepStatusLimit defines the maximum number of steps in a pipeline that may report their status to the SCM. ReportStepStatusLimit = 10 // DashboardRepoLimit defines the maximum number of repos that can be assigned to a dashboard. DashboardRepoLimit = 10 // UserDashboardLimit defines the maximum number of dashboards that can be assigned to a user. UserDashboardLimit = 10 // DashboardAdminMaxSize defines the maximum size in characters for dashboard admins. DashboardAdminMaxSize = 5000 )
Limits and constraints.
View Source
const ( // SecretPullBuild defines the pull policy type for a secret. SecretPullBuild = "build_start" // SecretPullStep defines the pull policy type for a secret. SecretPullStep = "step_start" // SecretOrg defines the secret type for a secret scoped to a specific org. SecretOrg = "org" // SecretRepo defines the secret type for a secret scoped to a specific repo. SecretRepo = "repo" SecretShared = "shared" // SecretMask defines the secret mask to be used in place of secret values returned to users. SecretMask = "[secure]" // SecretLogMask defines the secret mask to be used when distributing logs that contain secrets. SecretLogMask = "***" // SecretRestrictedCharacters defines the set of characters that a secret name cannot contain. // This matches the following characters: // Equal Sign = // Null Character \x00 SecretRestrictedCharacters = "=\x00" )
Secret types.
View Source
const ( // StatusError defines the status type for build and step error statuses. StatusError = "error" // StatusFailure defines the status type for build and step failure statuses. StatusFailure = "failure" // StatusKilled defines the status type for build and step killed statuses. StatusKilled = "killed" // StatusCanceled defines the status type for build and step canceled statuses. StatusCanceled = "canceled" // StatusPending defines the status type for build and step pending statuses. StatusPending = "pending" // StatusPendingApproval defines the status type for a build waiting to be approved to run. StatusPendingApproval = "pending approval" // StatusRunning defines the status type for build and step running statuses. StatusRunning = "running" // StatusSuccess defines the status type for build and step success statuses. StatusSuccess = "success" // StatusSkipped defines the status type for build and step skipped statuses. StatusSkipped = "skipped" )
Build and step statuses.
View Source
const ( // TableDashboard defines the table type for the database dashboards table. TableDashboard = "dashboards" // TableJWK defines the table type for the database jwks table. TableJWK = "jwks" )
Database tables.
View Source
const ( // RefreshTokenName is the name associated with the refresh token. RefreshTokenName = "vela_refresh_token" // UserAccessTokenType is the name associated with the user access token type. UserAccessTokenType = "UserAccess" // UserRefreshTokenType is the name associated with the user refresh token type. UserRefreshTokenType = "UserRefresh" // WorkerAuthTokenType is the name associated with the worker authentication token type. WorkerAuthTokenType = "WorkerAuth" // WorkerRegisterTokenType is the name associated with the worker registration token type. WorkerRegisterTokenType = "WorkerRegister" // WorkerBuildTokenType is the name associated with the worker build token type. WorkerBuildTokenType = "WorkerBuild" // ServerWorkerTokenType is the name associated with the server-worker symmetric token. ServerWorkerTokenType = "ServerWorker" // IDRequestTokenType is the name associated with the id request token type. IDRequestTokenType = "IDRequest" // IDTokenType is the name associated with the id token type. IDTokenType = "ID" )
Constants for tokens.
View Source
const ( // VisibilityPublic defines the visibility type for allowing any // users in Vela to access their repo regardless of the access // defined in the source control system. VisibilityPublic = "public" // VisibilityPrivate defines the visibility type for only allowing // users in Vela with pre-defined access in the source control // system to access their repo. VisibilityPrivate = "private" )
Repo visibility types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.