dclschemaloader

package
v1.102.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndResolveRefs

func CheckAndResolveRefs(schema *openapi.Schema, doc *openapi.Document) (*openapi.Schema, error)

func GetDCLSchemaForGVK

func GetDCLSchemaForGVK(gvk k8sschema.GroupVersionKind, smLoader dclmetadata.ServiceMetadataLoader, schemaLoader DCLSchemaLoader) (*openapi.Schema, error)

func ResolveSchemaForRef

func ResolveSchemaForRef(schema *openapi.Schema, doc *openapi.Document) (*openapi.Schema, error)

Types

type DCLSchemaLoader

type DCLSchemaLoader interface {
	GetDCLSchema(stv dclunstruct.ServiceTypeVersion) (*openapi.Schema, error)
}

DCLSchemaLoader is the DCL schema loader interface.

type EmbedDCLSchemaLoader

type EmbedDCLSchemaLoader struct {
	// contains filtered or unexported fields
}

func New

func New() (*EmbedDCLSchemaLoader, error)

func (*EmbedDCLSchemaLoader) GetDCLSchema

func (l *EmbedDCLSchemaLoader) GetDCLSchema(stv dclunstruct.ServiceTypeVersion) (*openapi.Schema, error)

Jump to

Keyboard shortcuts

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