schemas

package
v0.0.103 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 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 added in v0.0.71

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

ObjectFromAnnotationString converts the string to a schema object

func ObjectFromObjectMeta added in v0.0.91

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

ObjectFromObjectMeta returns the schema object for the given object metadata

func ToAnnotationString added in v0.0.71

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