config

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CouldNotParseConfigFileError = &microerror.Error{
	Kind: "CouldNotParseConfigFileError",
	Desc: "The configuration file could not be parsed.",
}
View Source
var CouldNotReadConfigFileError = &microerror.Error{
	Kind: "CouldNotReadConfigFileError",
	Desc: "The configuration file could not be read.",
}

Functions

func IsCouldNotParseConfigFile

func IsCouldNotParseConfigFile(e error) bool

IsCouldNotParseConfigFile asserts CouldNotParseConfigFileError

func IsCouldNotReadConfigFile

func IsCouldNotReadConfigFile(e error) bool

IsCouldNotReadConfigFile asserts CouldNotReadConfigFileError

Types

type FromFile

type FromFile struct {
	SourceRepositories []SourceRepository `yaml:"source_repositories"`
	TemplatePath       string             `yaml:"template_path"`
	OutputPath         string             `yaml:"output_path"`
}

FromFile represent a config file content.

func Read

func Read(path string) (*FromFile, error)

Read reads a config file and returns a struct.

type SourceRepository

type SourceRepository struct {
	URL             string `yaml:"url"`
	Organization    string `yaml:"organization"`
	Introduction    string `yaml:"introduction"`
	Name            string `yaml:"name"`
	CommitReference string `yaml:"commit_reference"`
}

SourceRepository has details about a source repository to find HelmCharts in.

Jump to

Keyboard shortcuts

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