types

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseBodyStreamAuxMessage

type ResponseBodyStreamAuxMessage struct {
	// ID is response body stream aux's id
	ID string `json:"ID"`
}

BuildResponseBodyStreamAuxMessage contains the ImageBuild's aux data from buildResponse

func (*ResponseBodyStreamAuxMessage) String

String return BuildResponseBodyStreamAuxMessage object as string

type ResponseBodyStreamErrorDetailMessage

type ResponseBodyStreamErrorDetailMessage struct {
	// ID is response body stream aux's id
	Message string `json:"message"`
}

BuildResponseBodyStreamAuxMessage contains the ImageBuild's aux data from buildResponse

func (*ResponseBodyStreamErrorDetailMessage) String

String return BuildResponseBodyStreamAuxMessage object as string

type ResponseBodyStreamMessage

type ResponseBodyStreamMessage struct {
	// Aux represents the aux value on response body stream message
	Aux *ResponseBodyStreamAuxMessage `json:"aux"`
	// ErrorDetail
	ErrorDetail *ResponseBodyStreamErrorDetailMessage `json:"errorDetail"`
	// ID identify layer
	ID string `json:"id"`
	// Progress contains the progress bar
	Progress string `json:"progress"`
	// Status represents the status value on response body stream message
	Status string `json:"status"`
	// Stream represents the stream value on response body stream message
	Stream string `json:"stream"`
}

ResponseBodyStreamMessage contains the ImageBuild's body data from buildResponse

func (*ResponseBodyStreamMessage) ProgressString added in v0.3.3

func (m *ResponseBodyStreamMessage) ProgressString() string

ProgressString returns progress bar

func (*ResponseBodyStreamMessage) String

func (m *ResponseBodyStreamMessage) String() string

String return ResponseBodyStreamMessage object as string

type Responser

type Responser interface {
	Write(io.Writer, io.ReadCloser) error
}

Jump to

Keyboard shortcuts

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