Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoCRD failure when the YAML is not a CRD ErrNoCRD = errors.New("not a CRD") )
Functions ¶
func DecodeCRD ¶
func DecodeCRD(content []byte) (*apiextensionsv1.CustomResourceDefinition, error)
func EmbeddedCRD ¶
func EmbeddedCRD(kind string) (*apiextensionsv1.CustomResourceDefinition, error)
EmbeddedCRD tried to load the given kind from a set of embedded CRDs
func ParseCRD ¶
func ParseCRD(scanner *bufio.Scanner) (*apiextensionsv1.CustomResourceDefinition, error)
ParseCRD scans a YAML stream and returns the next CRD found. If more than one CRD is present in the stream, calling again on the same stream will return the next CRD found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.