command

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: BSD-3-Clause Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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