pipeline

package
v0.58.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 18 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        []kubernetes.Config `yaml:"k8s"`
	HostSocket HostSocketConfig    `yaml:"hostsocket"`
}

type HostSocketConfig added in v0.57.0

type HostSocketConfig struct {
	Net *hostsocket.NetworkSocketConfig `yaml:"net"`
}

type Pipeline

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

func New

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

func (*Pipeline) Run added in v0.57.0

func (p *Pipeline) Run(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