Documentation ¶
Index ¶
Constants ¶
View Source
const (
LayerMessagePrefix string = "\u2023"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerClienter ¶ added in v0.4.0
type DockerClienter interface { ImageBuild(ctx context.Context, buildContext io.Reader, options dockertypes.ImageBuildOptions) (dockertypes.ImageBuildResponse, error) ImagePull(ctx context.Context, ref string, options dockertypes.ImagePullOptions) (io.ReadCloser, error) ImagePush(ctx context.Context, image string, options dockertypes.ImagePushOptions) (io.ReadCloser, error) ImageRemove(ctx context.Context, imageID string, options dockertypes.ImageRemoveOptions) ([]dockertypes.ImageDeleteResponseItem, error) ImageTag(ctx context.Context, imageID, ref string) error }
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 ¶
func (m *ResponseBodyStreamAuxMessage) String() 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 ¶
func (m *ResponseBodyStreamErrorDetailMessage) String() 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 { Print(io.ReadCloser) error Fwriteln(interface{}) }
Responser interface to write responses
Click to show internal directories.
Click to hide internal directories.