schemas

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindObjectProperty

func FindObjectProperty(s *v1alpha1.Schema, objectName, property string) (*v1alpha1.Object, *v1alpha1.Property)

FindObjectProperty finds the schema property for the given object

func LoadSchemaFile

func LoadSchemaFile(fileName string) (*v1alpha1.Schema, error)

LoadSchemaFile loads a specific secret mapping YAML file

func LoadSchemaObjectFromFiles

func LoadSchemaObjectFromFiles(name string, fileNames []string) (*v1alpha1.Object, error)

LoadSchemaObjectFromFiles loads a list of schema files and finds the schema object for the given name

func ObjectFromAnnotationString

func ObjectFromAnnotationString(text string) (*v1alpha1.Object, error)

ObjectFromAnnotationString converts the string to a schema object

func ObjectFromObjectMeta

func ObjectFromObjectMeta(m *metav1.ObjectMeta) (*v1alpha1.Object, error)

ObjectFromObjectMeta returns the schema object for the given object metadata

func ToAnnotationString

func ToAnnotationString(s interface{}) (string, error)

ToAnnotationString converts the schema object to YAML so we can store it as an annotation

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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