llb

package
v0.0.0-...-c272109 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFrom

func ReadFrom(r io.Reader) (out [][]byte, err error)

func WriteTo

func WriteTo(dt [][]byte, w io.Writer) error

Types

type ExecOp

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

func (*ExecOp) Marshal

func (eo *ExecOp) Marshal() ([][]byte, error)

func (*ExecOp) Run

func (eo *ExecOp) Run(meta Meta) *ExecOp

func (*ExecOp) Validate

func (eo *ExecOp) Validate() error

type Meta

type Meta struct {
	Args []string
	Env  []string
	Cwd  string
}

type Op

type Op interface {
	Validate() error
	Marshal() ([][]byte, error)
	Run(meta Meta) *ExecOp
}

type SourceOp

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

func Image

func Image(ref string) *SourceOp

func Source

func Source(id string) *SourceOp

func (*SourceOp) Marshal

func (so *SourceOp) Marshal() ([][]byte, error)

func (*SourceOp) Run

func (so *SourceOp) Run(m Meta) *ExecOp

func (*SourceOp) Validate

func (so *SourceOp) Validate() error

Jump to

Keyboard shortcuts

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