validate

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudConfigJSONRawMessage

func CloudConfigJSONRawMessage(
	fieldPath *field.Path,
	in cloudinit.CloudConfig) field.ErrorList

CloudConfigJSONRawMessage returns any errors encountered when validating the json.RawMessage portions of a CloudConfig.

func CloudConfigYAML

func CloudConfigYAML(in string) error

CloudConfigYAML returns an error if the provided CloudConfig YAML is not valid according to the CloudConfig schema.

Please note the up-to-date schemas related to Cloud-Init may be found at https://github.com/canonical/cloud-init/tree/main/cloudinit/config/schemas.

Types

This section is empty.

Jump to

Keyboard shortcuts

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