meta

package
v1.5.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 5 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() 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