Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventReaction ¶
type EventReaction struct {
Condition condition.Condition
Reaction func(ev event.Event, state state.State) []task.Task
}
EventReaction is a binding of an event to a function that builds tasks
type KubernetesOptions ¶
type KubernetesOptions struct {
Path string
Context string
Namespace string
InCluster bool
Host string
B64Crt string
Token string
LogsVolumeClaimName string
LogsVolumeName string
}
KubernetesOptions when running in/with kubernetes cluster
type Options ¶
type Options struct {
Pipeline Pipeline
// LogsDirectory path where to store logs
LogsDirectory string
Kubeconfig *KubernetesOptions
Logger logger.Logger
// contains filtered or unexported fields
}
Options to create new engine
type Pipeline ¶
type Pipeline struct {
Metadata PipelineMetadata
Spec PipelineSpec
}
Pipeline is the pipeline representation
type PipelineMetadata ¶
PipelineMetadata holds all the metadata of a pipeline
type PipelineSpec ¶
type PipelineSpec struct {
Reactions []EventReaction
Services []Service
}
PipelineSpec is the spec of a pipeline
type Service ¶
type Service struct {
// Name is official service which is part of the service catalog
Name string
// Version of the service, empty string will use the latest version from catalog
Version string
// Path a location of the local fs the service can be found, Path cannot be set with Name together
Path string
// As alias name to refer the service as part of the task implementation
As string
}
Service is a Service a pipeline should execute
Click to show internal directories.
Click to hide internal directories.