template

package
v0.0.0-...-2e56a1b Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetadataSchemaURL

func GetMetadataSchemaURL(val string) (string, error)

GetMetadataSchemaURL returns URL of the metadata schema for given version string or url

func GetUIMetadataSchemaURL

func GetUIMetadataSchemaURL(val string) (string, error)

GetUIMetadataSchemaURL returns URL of the ui metadata schema for given version string or url

func LoadMetadataSchema

func LoadMetadataSchema(schemaURL string) (string, []byte, error)

LoadMetadataSchema loads metadata schema for given URL or version

func LoadUIMetadataSchema

func LoadUIMetadataSchema(schemaURL string) (string, []byte, error)

LoadUIMetadataSchema loads ui metadata schema for given URL or version

func ValidateMetadata

func ValidateMetadata(metadataBytes []byte) error

ValidateMetadata validates Template Metadata bytes and returns error if error is raised

func ValidateMetadataWithVersion

func ValidateMetadataWithVersion(metadataBytes []byte, versionString string) error

ValidateMetadataWithVersion validates Template Metadata bytes with specified version, and returns error if error is raised

func ValidateUIMetadata

func ValidateUIMetadata(uiMetadataBytes []byte) error

ValidateUIMetadata validates Template UI Metadata bytes and returns error if error is raised

func ValidateUIMetadataWithVersion

func ValidateUIMetadataWithVersion(uiMetadataBytes []byte, versionString string) error

ValidateUIMetadataWithVersion validates Template UI Metadata bytes with specified version, and returns error if error is raised

Types

This section is empty.

Jump to

Keyboard shortcuts

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