metadata

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MetadataArrayLengthMaximum = 100
View Source
const MetadataSizeMaximum = 4 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata map[string]interface{}

func NewMetadata

func NewMetadata() *Metadata

func ParseMetadata

func ParseMetadata(parser structure.ObjectParser) *Metadata

func (*Metadata) Delete

func (m *Metadata) Delete(key string)

func (*Metadata) Get

func (m *Metadata) Get(key string) interface{}

func (*Metadata) Parse

func (m *Metadata) Parse(parser structure.ObjectParser)

func (*Metadata) Set

func (m *Metadata) Set(key string, value interface{})

func (*Metadata) Validate

func (m *Metadata) Validate(validator structure.Validator)

type MetadataArray

type MetadataArray []*Metadata

func NewMetadataArray

func NewMetadataArray() *MetadataArray

func ParseMetadataArray

func ParseMetadataArray(parser structure.ArrayParser) *MetadataArray

func (*MetadataArray) Parse

func (m *MetadataArray) Parse(parser structure.ArrayParser)

func (*MetadataArray) Validate

func (m *MetadataArray) Validate(validator structure.Validator)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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