openapi

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ObjectMetaGVK = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "ObjectMeta"}

Functions

func SchemaToSpec added in v0.5.0

func SchemaToSpec(key string, crschema map[string]interface{}) map[string]interface{}

Types

type Foundry

type Foundry interface {
	GetTypeByGVK(gvk schema.GroupVersionKind) (tftypes.Type, error)
}

Foundry is a mechanism to construct tftypes out of OpenAPI specifications

func NewFoundryFromSpecV2

func NewFoundryFromSpecV2(spec []byte) (Foundry, error)

NewFoundryFromSpecV2 creates a new tftypes.Type foundry from an OpenAPI v2 spec document * spec argument should be a valid OpenAPI v2 JSON document

func NewFoundryFromSpecV3 added in v0.5.0

func NewFoundryFromSpecV3(spec []byte) (Foundry, error)

Jump to

Keyboard shortcuts

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