metadata

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CouldNotParseFileError = &microerror.Error{
	Kind: "CouldNotParseFileError",
	Desc: "The metadata file could not be parsed.",
}
View Source
var CouldNotReadFileError = &microerror.Error{
	Kind: "CouldNotReadFileError",
	Desc: "The metadata file could not be read.",
}

Functions

func IsCouldNotParseFile

func IsCouldNotParseFile(e error) bool

IsCouldNotParseFile asserts CouldNotParseFileError

func IsCouldNotReadFile

func IsCouldNotReadFile(e error) bool

IsCouldNotReadFile asserts CouldNotReadFileError

Types

type CRDItem

type CRDItem struct {
	Owner     []string `yaml:"owner,omitempty"`
	Topics    []string `yaml:"topics,omitempty"`
	Providers []string `yaml:"provider,omitempty"`
	Hidden    bool     `yaml:"hidden,omitempty"`
}

type Root

type Root struct {
	CRDs map[string]CRDItem
}

func Read

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

Jump to

Keyboard shortcuts

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