internal

package
v0.0.0-...-7b41efc Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(path string) (string, error)

func WriteFile

func WriteFile(path, content string) error

Types

type FileGroup

type FileGroup struct {
	// contains filtered or unexported fields
}

func ListFiles

func ListFiles(dir string) ([]FileGroup, error)

type GroupVersion

type GroupVersion struct {
	Group     string     `json:"group"`
	Version   string     `json:"version"`
	Resources []Resource `json:"resources"`
}

func ParseGroups

func ParseGroups(groups []FileGroup) ([]GroupVersion, error)

type GroupVersionKind

type GroupVersionKind struct {
	Group   string `json:"group"`
	Version string `json:"version"`
	Name    string `json:"name"`
}

type Resource

type Resource struct {
	Name        string           `json:"name"`
	Introduced  string           `json:"introduced"`
	Deprecated  string           `json:"deprecated"`
	Removed     string           `json:"removed"`
	Replacement GroupVersionKind `json:"replacement"`
}

Jump to

Keyboard shortcuts

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