pipeline

package
v0.56.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassifyRuleConfig

type ClassifyRuleConfig struct {
	Name     string `yaml:"name"`
	Selector string `yaml:"selector"` // mandatory
	Tags     string `yaml:"tags"`     // mandatory
	Match    []struct {
		Tags string `yaml:"tags"` // mandatory
		Expr string `yaml:"expr"` // mandatory
	} `yaml:"match"` // mandatory, at least 1
}

type ComposeRuleConfig

type ComposeRuleConfig struct {
	Name     string `yaml:"name"`     // optional
	Selector string `yaml:"selector"` // mandatory
	Config   []struct {
		Selector string `yaml:"selector"` // mandatory
		Template string `yaml:"template"` // mandatory
	} `yaml:"config"` // mandatory, at least 1
}

type Config

type Config struct {
	Name      string               `yaml:"name"`
	Discovery DiscoveryConfig      `yaml:"discovery"`
	Classify  []ClassifyRuleConfig `yaml:"classify"`
	Compose   []ComposeRuleConfig  `yaml:"compose"` // TODO: "jobs"?
}

type DiscoveryConfig

type DiscoveryConfig struct {
	K8s []K8sConfig `yaml:"k8s"`
}

type K8sConfig

type K8sConfig struct {
	Tags              string `yaml:"tags"`
	kubernetes.Config `yaml:",inline"`
}

type Pipeline

type Pipeline struct {
	*logger.Logger
	// contains filtered or unexported fields
}

func New

func New(cfg Config) (*Pipeline, error)

func (*Pipeline) Discover

func (p *Pipeline) Discover(ctx context.Context, in chan<- []*confgroup.Group)

Jump to

Keyboard shortcuts

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