Documentation
¶
Index ¶
- Constants
- type Config
- func (c *Config) MarshalJSON() ([]byte, error)
- func (c *Config) Merge(s *Config) error
- func (c *Config) PipelineRuns(ctx context.Context, meta *pipelineresolver.Metadata) ([]*v1pipeline.PipelineRun, error)
- func (c *Config) UnmarshalConfigMapYAML(cm *v1.ConfigMap) error
- func (c *Config) UnmarshalJSON(data []byte) error
- func (c *Config) UnmarshalYAML(data []byte) error
- type Trigger
- type TriggerFilter
- type TriggerSlice
Constants ¶
View Source
const ConfigKey = "pipeline-config"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Defaults pipelinerun.PipelineRun `json:"defaults,omitempty" yaml:"defaults,omitempty"` Triggers TriggerSlice `json:"triggers,omitempty" yaml:"triggers,omitempty"` }
func (*Config) MarshalJSON ¶
func (*Config) PipelineRuns ¶
func (c *Config) PipelineRuns(ctx context.Context, meta *pipelineresolver.Metadata) ([]*v1pipeline.PipelineRun, error)
func (*Config) UnmarshalConfigMapYAML ¶
func (*Config) UnmarshalJSON ¶
func (*Config) UnmarshalYAML ¶
type Trigger ¶
type Trigger struct { Name string `json:"name,omitempty"` Filter TriggerFilter `json:"filter,omitempty"` Defaults pipelinerun.PipelineRun `json:"defaults,omitempty"` Pipelines pipelinerun.PipelineSlice `json:"pipelines,omitempty"` }
type TriggerFilter ¶
type TriggerFilter string
func (TriggerFilter) Match ¶
func (f TriggerFilter) Match(ctx context.Context, meta *pipelineresolver.Metadata) (bool, error)
type TriggerSlice ¶
type TriggerSlice []Trigger
Click to show internal directories.
Click to hide internal directories.