config

package
v2.26.0-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Unversioned = "*"

Unversioned is the key in the VersionReference.Versions for all reference types that only produce a single version, instead of depending on the user-cluster version.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Products []SoftwareProduct `yaml:"products" json:"products"`
}

func Load

func Load(filename string) (*Config, error)

func (*Config) Sort

func (c *Config) Sort()

type GoConstantReference

type GoConstantReference struct {
	Package  string `yaml:"package" json:"package"`
	Constant string `yaml:"constant" json:"constant"`
}

func (GoConstantReference) String

func (r GoConstantReference) String() string

func (GoConstantReference) TypeName

func (r GoConstantReference) TypeName() string

type GoFunctionReference

type GoFunctionReference struct {
	Function string `yaml:"function" json:"function"`
}

func (GoFunctionReference) String

func (r GoFunctionReference) String() string

func (GoFunctionReference) TypeName

func (r GoFunctionReference) TypeName() string

type HelmChartReference

type HelmChartReference struct {
	Directory string `yaml:"directory" json:"directory"`
	ValuePath string `yaml:"valuePath,omitempty" json:"valuePath,omitempty"`
}

func (HelmChartReference) String

func (r HelmChartReference) String() string

func (HelmChartReference) TypeName

func (r HelmChartReference) TypeName() string

type SoftwareProduct

type SoftwareProduct struct {
	Name        string             `yaml:"name" json:"name"`
	SourceURL   string             `yaml:"source" json:"source"`
	Occurrences []VersionReference `yaml:"occurrences" json:"occurrences"`
}

type VersionReference

type VersionReference struct {
	GoConstant *GoConstantReference `yaml:"goConstant,omitempty" json:"goConstant,omitempty"`
	GoFunction *GoFunctionReference `yaml:"goFunction,omitempty" json:"goFunction,omitempty"`
	HelmChart  *HelmChartReference  `yaml:"helmChart,omitempty" json:"helmChart,omitempty"`
	YAMLFile   *YAMLFileReference   `yaml:"yamlFile,omitempty" json:"yamlFile,omitempty"`

	// Versions is filled during runtime (JSON tag exists for output purposes)
	Versions map[string]string `json:"versions"`
}

func (VersionReference) String

func (r VersionReference) String() string

func (VersionReference) TypeName

func (r VersionReference) TypeName() string

type YAMLFileReference

type YAMLFileReference struct {
	File      string `yaml:"file" json:"file"`
	ValuePath string `yaml:"valuePath" json:"valuePath"`
}

func (YAMLFileReference) String

func (r YAMLFileReference) String() string

func (YAMLFileReference) TypeName

func (r YAMLFileReference) TypeName() string

Jump to

Keyboard shortcuts

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