package data

import "github.com/dotcloud/docker/pkg/beam/data"

Index

Variables

var DecodeString = decodeString
var EncodeString = encodeString

Functions

func Decode

func Decode(msg string) (map[string][]string, error)

func Encode

func Encode(obj map[string][]string) string

Types

type Message

type Message string

func Empty

func Empty() Message

func Parse

func Parse(args []string) Message

func (Message) Add

func (m Message) Add(k, v string) Message

func (Message) Bytes

func (m Message) Bytes() []byte

func (Message) Del

func (m Message) Del(k string) Message

func (Message) Get

func (m Message) Get(k string) []string

func (Message) GetOne

func (m Message) GetOne(k string) string

GetOne returns the last value added at the key k, or an empty string if there is no value.

func (Message) Pretty

func (m Message) Pretty() string

func (Message) Set

func (m Message) Set(k string, v ...string) Message

func (Message) String

func (m Message) String() string

Source Files

data.go message.go

Version
v1.0.0
Published
Jun 8, 2014
Platform
linux/amd64
Imports
3 packages
Last checked
7 minutes ago

Tools for package owners.