command

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Magic   = packer.Magic{0x01, 0xec}
	Version = packer.Version(0x01)
)

Functions

This section is empty.

Types

type Body

type Body map[string]interface{}

type Command

type Command struct {
	Command string `cbor:"16,keyasint"`
	Body    Body   `cbor:"64,keyasint"`
	// contains filtered or unexported fields
}

func Decode

func Decode(conn streams.Connection, r io.Reader) (*Command, error)

func New

func New(command string, body Body) *Command

func (*Command) Connection

func (c *Command) Connection() (streams.Connection, error)

func (*Command) Delete

func (c *Command) Delete(key string)

func (*Command) Encode

func (c *Command) Encode(s io.Writer) error

func (*Command) Get

func (c *Command) Get(key string) (interface{}, bool)

func (*Command) Name

func (c *Command) Name() string

func (*Command) Raw

func (c *Command) Raw() map[string]interface{}

func (*Command) Set

func (c *Command) Set(key, value string)

func (*Command) SetName

func (c *Command) SetName(value interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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