meta

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package meta provides interfaces for encoding and decoding META values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value struct {
	Key   uint8
	Value string
}

Value represents a key/value pair for META.

func (*Value) Parse

func (v *Value) Parse(s string) error

Parse k=v expression.

func (Value) String

func (v Value) String() string

type Values

type Values []Value

Values is a collection of Value.

func DecodeValues

func DecodeValues(s string) (Values, error)

DecodeValues parses a string representation of Values for the environment variable.

See Encode for the details of the encoding.

func (Values) Encode

func (v Values) Encode(allowGzip bool) string

Encode returns a string representation of Values for the environment variable.

Each Value is encoded a k=v, split by ';' character. The result is base64 encoded.

Jump to

Keyboard shortcuts

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