convert

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunSucceeded int = 0
	RunFailed    int = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Convert

type Convert struct {
	// contains filtered or unexported fields
}

func NewConvertCommand

func NewConvertCommand() *Convert

func (*Convert) FlagSet

func (c *Convert) FlagSet() *flag.FlagSet

func (*Convert) Run

func (c *Convert) Run(flags *flag.FlagSet) int

func (*Convert) Usage

func (c *Convert) Usage() string

type Decoder

type Decoder func(io.Reader) (*virt.VM, error)

type Encoder

type Encoder func(*virt.VM, io.Writer) error

type Type

type Type string
const (
	UNSPECIFIED Type = ""
	XML         Type = "xml"
	YAML        Type = "yaml"
	JSON        Type = "json"
)

func GuessStreamType

func GuessStreamType(source io.Reader, size int) (io.Reader, Type)

Guess if the provided reader represents a XML or JSON stream. If neither is true, YAML is assumed.

Jump to

Keyboard shortcuts

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