annotations

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const CRD_DOCS_GENERATOR = "CRD_DOCS_GENERATOR"

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Documentation string
	Support       []AnnotationSupportRelease
}

type AnnotationSupportRelease

type AnnotationSupportRelease struct {
	Release    string
	APIVersion string
	CRD        string
}

type CRDAnnotationSupport

type CRDAnnotationSupport struct {
	Annotation    string
	CRDName       string
	CRDVersion    string
	Release       string
	Documentation string
}

CRDAnnotationSupport is a flattened combination of annotation details and the CRD they are applicable to.

func Collect

func Collect(startPath string) ([]CRDAnnotationSupport, error)

Collect finds all annotations in a folder and returns them.

func FilterForCRD

func FilterForCRD(annotations []CRDAnnotationSupport, crdName string, version string) []CRDAnnotationSupport

func Sort

func Sort(annotations []CRDAnnotationSupport) []CRDAnnotationSupport

Jump to

Keyboard shortcuts

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