flavor

package
v0.0.1-0...-c0e0c3d Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package flavor enables the configuration and registration of flavors and their associated Argo workflows.

Package flavor is augmented with available argo.WorkflowTemplates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckWorkflowEquivalence

func CheckWorkflowEquivalence(flavor v1.Flavor, workflow v1alpha1.Workflow) error

CheckWorkflowEquivalence verifies that the given flavor parameters and workflow parameters are equivalent sets.

- All parameter names must be unique.

- All parameters from one set must be in the other.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry represents the set of all configured flavors.

func NewFromConfig

func NewFromConfig(filename string) (*Registry, error)

NewFromConfig parses the given flavor config file, along with all referenced Argo workflows, and returns a registry containing all flavors.

func (*Registry) Default

func (r *Registry) Default() string

Default returns the default flavor

func (*Registry) Flavors

func (r *Registry) Flavors() []v1.Flavor

Flavors returns a sorted list of all registered flavors.

func (*Registry) Get

func (r *Registry) Get(id string) (v1.Flavor, v1alpha1.Workflow, bool)

Get returns the named flavor if it exists along with a paired workflow.

Jump to

Keyboard shortcuts

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