kompat

package
v0.0.0-...-f73ccfa Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultFileName     = "k8s-compatibility.yaml"
	DefaultGithubBranch = "main"
)

Functions

func IsCompatible

func IsCompatible(filePath string, appVersion string, k8sVersion string) error

Types

type Compatibility

type Compatibility struct {
	AppVersion    string `yaml:"appVersion" json:"appVersion"`
	MinK8sVersion string `yaml:"minK8sVersion" json:"minK8sVersion"`
	MaxK8sVersion string `yaml:"maxK8sVersion" json:"maxK8sVersion"`
}

type Kompat

type Kompat struct {
	Name          string          `yaml:"name" json:"name"`
	Compatibility []Compatibility `yaml:"compatibility" json:"compatibility"`
}

func (Kompat) JSON

func (k Kompat) JSON() string

func (Kompat) Markdown

func (k Kompat) Markdown(_ ...Options) string

func (Kompat) Validate

func (k Kompat) Validate() error

func (Kompat) YAML

func (k Kompat) YAML() string

type List

type List []Kompat

func Parse

func Parse(filePaths ...string) (List, error)

func (List) JSON

func (k List) JSON() string

func (List) Markdown

func (k List) Markdown(opts ...Options) string

func (List) YAML

func (k List) YAML() string

type Options

type Options struct {
	LastN   int
	Version string
}

Jump to

Keyboard shortcuts

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