outputs

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOutput

type BuildOutput struct {
	Stream string `json:"stream"`
	Error  string `json:"error"`
}

BuildOutput represents the line of a Docker build command output.

func (*BuildOutput) HasError

func (bo *BuildOutput) HasError() bool

HasError returns true if BuildOutput has an error.

func (*BuildOutput) LoadFromJSON

func (bo *BuildOutput) LoadFromJSON(j string) error

LoadFromJSON loads the BuildOutput from a JSON string.

func (*BuildOutput) String

func (bo *BuildOutput) String() string

type Output

type Output interface {
	String() string
	HasError() bool
	LoadFromJSON(string) error
}

Output represents the line of a Docker command output.

type PushOutput

type PushOutput struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

PushOutput represents the line of a Docker push command output.

func (*PushOutput) HasError

func (bp *PushOutput) HasError() bool

HasError returns true if PushOutput has an error.

func (*PushOutput) LoadFromJSON

func (bp *PushOutput) LoadFromJSON(j string) error

LoadFromJSON loads the PushOutput from a JSON string.

func (*PushOutput) String

func (bp *PushOutput) String() string

Jump to

Keyboard shortcuts

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