config

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

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 {
	SourceRepository *FromFileSourceRepository `yaml:"source_repository"`
	TemplatePath     string                    `yaml:"template_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 FromFileSourceRepository

type FromFileSourceRepository struct {
	URL          string `yaml:"url"`
	Organization string `yaml:"organization"`
	ShortName    string `yaml:"short_name"`
	MetadataPath string `yaml:"metadata_path"`
}

FromFileSourceRepository has details about the source repository to use for CRDs.

Jump to

Keyboard shortcuts

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