lib

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// K8sVersion defines what is the Kubernetes version that the validation should target.
	// Should be on the Kubernetes semver format: v1.24.5
	K8sVersion string
	// ForceDownload defines if the download should happen even if the swagger file already exists
	ForceDownload bool
	// SwaggerDir defines where the swagger file should be saved. If empty, a temporary directory will be created and used.
	SwaggerDir string
	// ShowDescription defines if the description of the API should be copied to the output result
	ShowDescription bool
	Input           string
	ConfigFlags     *genericclioptions.ConfigFlags
}

Config configuration object for Kubepug configurations for kubernetes and for kubepug functionality

type Kubepug

type Kubepug struct {
	Config Config
}

Kubepug defines a kubepug instance to be used

func NewKubepug

func NewKubepug(config Config) *Kubepug

NewKubepug returns a new kubepug library

func (*Kubepug) GetDeprecated

func (k *Kubepug) GetDeprecated() (result *results.Result, err error)

GetDeprecated returns the list of deprecated APIs

Jump to

Keyboard shortcuts

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