config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeConfig

type KubeConfig struct {
	KubeConfigPath string
	KubeCtx        string
	QPS            float64
	Burst          int
}

type Task

type Task struct {
	ID          string                 `yaml:"id"`
	Type        string                 `yaml:"type"`
	Description string                 `yaml:"description,omitempty"`
	Params      map[string]interface{} `yaml:"params,omitempty"`
}

type Workflow

type Workflow struct {
	Name        string  `yaml:"name"`
	Description string  `yaml:"description,omitempty"`
	Tasks       []*Task `yaml:"tasks"`
}

func New

func New(data []byte) (*Workflow, error)

New populates workflow config from raw data

func NewFromFile

func NewFromFile(path string) (*Workflow, error)

NewFromFile populates workflow config from YAML file

func NewFromPaths

func NewFromPaths(paths string) ([]*Workflow, error)

Jump to

Keyboard shortcuts

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