xdocker

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeImagePull

func DecodeImagePull(r io.Reader) error

DecodeImagePull detects Error of an image pulling process by decoding reply from Docker Although Docker should reply with JSON Encoded items one per line, in different versions it could vary. This decoders can detect error even in mixed replies: {"Status": "OK"}\n{"Status": "OK"} {"Status": "OK"}{"Error": "error"}

Types

type Reference added in v0.4.11

type Reference struct {
	reference.Reference
}

func NewReference added in v0.4.11

func NewReference(source string) (Reference, error)

func (*Reference) Digest added in v0.4.11

func (m *Reference) Digest() digest.Digest

func (*Reference) HasDigest added in v0.4.11

func (m *Reference) HasDigest() bool

func (*Reference) HasName added in v0.4.11

func (m *Reference) HasName() bool

func (Reference) MarshalText added in v0.4.11

func (m Reference) MarshalText() ([]byte, error)

func (*Reference) Name added in v0.4.11

func (m *Reference) Name() string

func (*Reference) Named added in v0.4.11

func (m *Reference) Named() reference.Named

func (*Reference) Parse added in v0.4.11

func (m *Reference) Parse(source string) error

func (*Reference) UnmarshalText added in v0.4.11

func (m *Reference) UnmarshalText(source []byte) error

func (*Reference) WithDigest added in v0.4.11

func (m *Reference) WithDigest(digest digest.Digest) (Reference, error)

func (*Reference) WithTag added in v0.4.11

func (m *Reference) WithTag(tag string) (Reference, error)

Jump to

Keyboard shortcuts

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