types

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 5 Imported by: 0

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 client.ImageBuildOptions) (client.ImageBuildResult, error)
	ImagePull(ctx context.Context, ref string, options client.ImagePullOptions) (client.ImagePullResponse, error)
	ImagePush(ctx context.Context, image string, options client.ImagePushOptions) (client.ImagePushResponse, error)
	ImageRemove(ctx context.Context, imageID string, options client.ImageRemoveOptions) (client.ImageRemoveResult, error)
	ImageTag(ctx context.Context, options client.ImageTagOptions) (client.ImageTagResult, 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

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 {
	Print(io.ReadCloser) error
	Fwriteln(interface{})
}

Responser interface to write responses

Jump to

Keyboard shortcuts

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