mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-05-23 18:58:14 +00:00
3b0263442a
Co-authored-by: laszlocph <laszlo@laszlo.cloud> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Rynoxx <rynoxx@grid-servers.net>
18 lines
670 B
Go
18 lines
670 B
Go
package types
|
|
|
|
// Config defines the runtime configuration of a pipeline.
|
|
type Config struct {
|
|
Stages []*Stage `json:"pipeline"` // pipeline stages
|
|
Networks []*Network `json:"networks"` // network definitions
|
|
Volumes []*Volume `json:"volumes"` // volume definitions
|
|
Secrets []*Secret `json:"secrets"` // secret definitions
|
|
}
|
|
|
|
// CliContext is the context key to pass cli context to backends if needed
|
|
var CliContext ContextKey
|
|
|
|
// ContextKey is just an empty struct. It exists so CliContext can be
|
|
// an immutable public variable with a unique type. It's immutable
|
|
// because nobody else can create a ContextKey, being unexported.
|
|
type ContextKey struct{}
|