schemas

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 9 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 MergeSchemas

func MergeSchemas(source, dest *v1alpha1.Schema, path string, failOnDuplicate bool) error

MergeSchemas merges values from the source into the destination

func ObjectFromAnnotationString added in v0.0.71

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

ObjectFromAnnotationString converts the string to a schema object

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