v1

package
v3.7.0-0.dev+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package validator implements common field and structure validation that is used to validate the API structures supplied on the client interface, and is also used internally to validate the information stored in the backend datastore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(current interface{}) error

Validate is used to validate the supplied structure according to the registered field and structure validators.

func ValidateMetadataIDsAssigned

func ValidateMetadataIDsAssigned(rm unversioned.ResourceMetadata) error

ValidateMetadataIDsAssigned is used to validate the Resource Metadata to ensure that all necessary fields are present. This is split from the validator so it can be used conditionally depending on the command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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