openapi

package
v0.14.1-dev Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatchForResourceUpdate

func PatchForResourceUpdate(
	client discovery.OpenAPISchemaInterface,
	lastSubmitted, currentSubmitted, liveOldObj *unstructured.Unstructured,
) ([]byte, types.PatchType, error)

PatchForResourceUpdate introspects on the OpenAPI spec exposed by some client, and attempts to generate a strategic merge patch for use in a resource update. If there is no specification of how to generate a strategic merge patch, we fall back to JSON merge patch.

func ValidateAgainstSchema

func ValidateAgainstSchema(
	client discovery.OpenAPISchemaInterface, obj *unstructured.Unstructured,
) error

ValidateAgainstSchema validates a document against the schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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