openapiclient

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 23 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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, dirPath string) openapi.Client

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

func NewLocalSchemaFiles

func NewLocalSchemaFiles(fs fs.FS, dirPath string) 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, dir string) 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