constants

package
v0.2.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 0 Imported by: 13

Documentation

Overview

Package constants provides the defined constant types for Vela.

Usage:

import "github.com/go-vela/types/constants"

Index

Constants

View Source
const (
	// DriverPostgres defines the driver type when integrating with a PostgreSQL database.
	DriverPostgres = "postgres"

	// DriverSqlite defines the driver type when integrating with a SQLite database.
	DriverSqlite = "sqlite3"
)

server database drivers

View Source
const (
	// DriverLinux defines the driver type when integrating with a linux distribution.
	DriverLinux = "linux"

	// DriverWindows defines the driver type when integrating with a windows distribution.
	DriverWindows = "windows"

	// DriverDarwin defines the driver type when integrating with a darwin distribution.
	DriverDarwin = "darwin"
)

agent executor drivers

View Source
const (

	// DriverKafka defines the driver type when integrating with a Kafka queue.
	DriverKafka = "kafka"

	// DriverRedis defines the driver type when integrating with a Redis queue.
	DriverRedis = "redis"
)

server and agent queue drivers

View Source
const (
	// DriverDocker defines the driver type when integrating with a Docker runtime.
	DriverDocker = "docker"

	// DriverKubernetes defines the driver type when integrating with a Kubernetes runtime.
	DriverKubernetes = "kubernetes"
)

agent runtime drivers

View Source
const (
	// DriverNative defines the driver type when integrating with a Vela secret service.
	DriverNative = "native"

	// DriverVault defines the driver type when integrating with a Vault secret service.
	DriverVault = "vault"
)

server and agent secret drivers

View Source
const (
	// DriverGitHub defines the driver type when integrating with a Github source code system.
	DriverGithub = "github"

	// DriverGitLab defines the driver type when integrating with a Gitlab source code system.
	DriverGitlab = "gitlab"
)

server source drivers

View Source
const (
	// EventPush defines the event type for build and repo push events.
	EventPush = "push"

	// EventPull defines the event type for build and repo pull_request events.
	EventPull = "pull_request"

	// EventTag defines the event type for build and repo tag events.
	EventTag = "tag"

	// EventDeploy defines the event type for build and repo deployment events.
	EventDeploy = "deployment"
)

build and repo events

View Source
const (
	// BuildTimeoutMin defines the minimum value in minutes for repo build timeout.
	BuildTimeoutMin = 30
	// BuildTimeoutMax defines the maximum value in minutes for repo build timeout.
	BuildTimeoutMax = 90
)

limits and constraints

View Source
const (
	// 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 defines the secret type for a secret shared across the installation.
	SecretShared = "shared"
)

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"

	// StatusPending defines the status type for build and step pending statuses.
	StatusPending = "pending"

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

build and step statuses

View Source
const (
	// TableBuild defines the table type for the database builds table.
	TableBuild = "builds"

	// TableHook defines the table type for the database hooks table.
	TableHook = "hooks"

	// TableLog defines the table type for the database logs table.
	TableLog = "logs"

	// TableRepo defines the table type for the database repos table.
	TableRepo = "repos"

	// TableSecret defines the table type for the database secrets table.
	TableSecret = "secrets"

	// TableService defines the table type for the database services table.
	TableService = "services"

	// TableStep defines the table type for the database steps table.
	TableStep = "steps"

	// TableUser defines the table type for the database users table.
	TableUser = "users"
)

database tables

View Source
const (
	// DefaultRoute defines the default route all workers listen on.
	DefaultRoute = "vela"
)

queue types

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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