metadata

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: 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 {
	Owners      []string     `yaml:"owner,omitempty"`
	Topics      []string     `yaml:"topics,omitempty"`
	Providers   []string     `yaml:"provider,omitempty"`
	Hidden      bool         `yaml:"hidden,omitempty"`
	Deprecation *Deprecation `yaml:"deprecation,omitempty"`
}

type Deprecation added in v0.7.1

type Deprecation struct {
	Info       string                 `yaml:"info,omitempty"`
	ReplacedBy *DeprecationReplacedBy `yaml:"replaced_by,omitempty"`
}

type DeprecationReplacedBy added in v0.7.1

type DeprecationReplacedBy struct {
	FullName  string `yaml:"full_name"`
	ShortName string `yaml:"short_name"`
}

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