openapi

package
v0.39.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaSourceBuiltin = "builtin"
	SchemaSourceFile    = "file"
	SchemaSourceCluster = "cluster"
)

Variables

This section is empty.

Functions

func ConfigureOpenAPI

func ConfigureOpenAPI(factory util.Factory, k8sSchemaSource, k8sSchemaPath string) error

ConfigureOpenAPI sets the openAPI schema in kyaml. It can either fetch the schema from a cluster, read it from file, or just the schema built into kyaml.

func ConfigureOpenAPISchema

func ConfigureOpenAPISchema(openAPISchema []byte) error

func FetchOpenAPISchemaFromCluster

func FetchOpenAPISchemaFromCluster(f util.Factory) ([]byte, error)

func ReadOpenAPISchemaFromDisk

func ReadOpenAPISchemaFromDisk(path string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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