config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigParseFailed = errors.New("failed to parse Karavel config")

Functions

This section is empty.

Types

type Component

type Component struct {
	Name          string                    `hcl:"name,label"`
	ComponentName string                    `hcl:"component,optional"`
	Namespace     string                    `hcl:"namespace,optional"`
	Version       string                    `hcl:"version,optional"`
	RawParams     map[string]*hcl.Attribute `hcl:",remain"`
	JsonParams    string
	Unstable      bool
}

type Config

type Config struct {
	Version             string      `hcl:"version"`
	Components          []Component `hcl:"component,block"`
	HelmStableRepoUrl   string      `hcl:"stable_repo,optional"`
	HelmUnstableRepoUrl string      `hcl:"unstable_repo,optional"`
}

func ReadFrom

func ReadFrom(logw io.Writer, filename string) (Config, error)

Jump to

Keyboard shortcuts

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