Documentation

Overview

Package schema provides a schema for all the "known" kore types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJSON

func DecodeJSON(data []byte) (runtime.Object, error)

DecodeJSON decodes the json into a runtime.Object

func DecodeYAML

func DecodeYAML(data []byte) (runtime.Object, error)

DecodeYAML decodes the yaml resource into a runtime.Object

func GetCodecFactory

func GetCodecFactory() serializer.CodecFactory

func GetGroupKindVersion

func GetGroupKindVersion(object runtime.Object) (kschema.GroupVersionKind, bool, error)

GetGroupKindVersion returns a schema for any registered type

func GetScheme

func GetScheme() *runtime.Scheme

GetScheme returns a copy of the scheme

func IsVersioned

func IsVersioned(object runtime.Object) bool

IsVersioned checks if the type is versioned in the scheme

Types

This section is empty.