openapiclient

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 24 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HardcodedBuiltinVersions []string = func() []string {
	versions, err := hardcodedBuiltins.ReadDir("builtins")
	if err != nil {
		panic(err)
	}

	res := make([]string, 0, len(versions))
	for _, v := range versions {
		res = append(res, v.Name())
	}

	return res
}()

Functions

func HardcodedPatchLoader

func HardcodedPatchLoader(version string) groupversion.PatchLoaderFn

func NewComposite

func NewComposite(clients ...openapi.Client) openapi.Client

client which tries multiple clients in a priority order for an openapi spec

func NewFallback

func NewFallback(clients ...openapi.Client) openapi.Client

Creates an OpenAPI client which forwards calls to the first argument which does not return an error

func NewGitHubBuiltins

func NewGitHubBuiltins(k8sVersion string) openapi.Client

func NewHardcodedBuiltins

func NewHardcodedBuiltins(version string) openapi.Client

func NewKubeConfig

func NewKubeConfig(overrides clientcmd.ConfigOverrides) openapi.Client

func NewLocalCRDFiles

func NewLocalCRDFiles(fs ...fs.FS) openapi.Client

Dir should have openapi files following directory layout: myCRD.yaml (groupversions read from file)

func NewLocalSchemaFiles

func NewLocalSchemaFiles(fs fs.FS) openapi.Client

Dir should have openapi files following directory layout: /<apis>/<group>/<version>.json /api/<version>.json

func NewOverlay

func NewOverlay(patchLoader groupversion.PatchLoaderFn, delegate openapi.Client) openapi.Client

func PatchLoaderFromDirectory

func PatchLoaderFromDirectory(filesystem fs.FS) groupversion.PatchLoaderFn

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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