Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec PipelineConfig `yaml:"spec"` }
type PipelineAction ¶
type PipelineAction struct {
HTTP *PipelineActionHTTP `yaml:"http,omitempty"`
}
func (PipelineAction) GetActionKey ¶
func (a PipelineAction) GetActionKey() *string
type PipelineActionHTTP ¶
type PipelineActionHTTP struct { Method string `yaml:"method"` URL string `yaml:"url"` Data map[string]any `yaml:"data"` }
@todo(sje): might be able to use something else
type PipelineConfig ¶
type PipelineConfig struct { Error *PipelineJob `yaml:"error,omitempty"` Jobs []PipelineJob `yaml:"jobs"` Port int `yaml:"port"` Stages []string `yaml:"stages"` Triggers []PipelineTrigger `yaml:"triggers"` }
type PipelineJob ¶
type PipelineJob struct { Name string `yaml:"name"` Stage string `yaml:"stage"` Action PipelineAction `yaml:"action"` Timeout *time.Duration `yaml:"timeout,omitempty"` }
type PipelineTrigger ¶
type PipelineTrigger struct {
Type PipelineTriggerType `yaml:"type"`
}
type PipelineTriggerType ¶
type PipelineTriggerType string
const (
PipelineTriggerTypeWebHook PipelineTriggerType = "webhook"
)
Click to show internal directories.
Click to hide internal directories.