docker_internal

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FilterDangling
	// +desc
	// image that without label
	// +usage
	// dangling=true|false
	FilterDangling = "dangling"

	// FilterLabel
	// +usage
	// label=com.example.version=1.0
	FilterLabel = "label"

	// FilterBefore
	// +usage
	// before=IMAGE_ID|IMAGE_NAME
	FilterBefore = "before"

	// FilterSince
	// +usage
	// before=IMAGE_ID|IMAGE_NAME
	FilterSince = "since"

	// FilterReference
	// reference=IMAGE_NAME:IMAGE_TAG
	FilterReference = "reference"
)

filter args in image +referred from: https://docs.docker.com/reference/cli/docker/image/ls/#filter cli: docker image --filter "foo=bar" --filter "bif=baz"

View Source
const (
	FilterID   = "id"
	FilterName = "name"

	// FilterExited
	// +usage
	// exited=created|restarting|running|removing|paused|exited|dead
	FilterExited   = "exited"
	FilterStatus   = "status"
	FilterAncestor = "ancestor"

	FilterVolume  = "volume"
	FilterNetwork = "network"

	// FilterPublish
	// FilterExpose
	// +usage
	// publish=PORT/[PROTO] | STARTPORT-ENDPORT/[PROTO]
	FilterPublish = "publish"
	FilterExpose  = "expose"

	// FilterHealth
	// +usage
	// health=starting|healthy|unhealthy|none
	FilterHealth = "health"

	// FilterIsolation
	// +usage
	// isolation=default|process|hyperv
	FilterIsolation = "isolation"

	// FilterIsTask
	// +usage
	// is-task=true|false
	FilterIsTask = "is-task"
)

filter args in container +referred from: https://docs.docker.com/reference/cli/docker/container/ls/#filter cli: docker ps --filter "foo=bar" --filter "bif=baz"

View Source
const (
	// referred from: github.com/docker/docker/client/image_list_test.go/TestImageListConnectionError
	ReferenceNone = "no-such-image.invalid:no-such-tag.invalid"
	ReferenceAll  = "*"
)

filter constant +self define

Variables

This section is empty.

Functions

func GetImageIDFromImageLoadResp

func GetImageIDFromImageLoadResp(ioReader io.Reader) string

GetImageIDFromImageLoadResp get image ID or full reference from body.body.src.buf JSON +example {"stream":"Loaded image ID: sha256:d2c94e258dcb3c5ac2798d32e1249e42ef01cba4841c2234249495f87264ac5a\n"}

func GetStatusFromImagePushResp

func GetStatusFromImagePushResp(ioReader io.Reader) string

func ParseMultipleJSONFromPushResp added in v1.2.31

func ParseMultipleJSONFromPushResp(ioReader io.Reader) (jsonMessage jsonmessage.JSONMessage)
{
    "status": "The push refers to repository [10.112.121.243:8111/library/hello]"
}
{
    "status": "Preparing",
    "progressDetail": {},
    "id": "ac28800ec8bb"
}
{
    "status": "Layer already exists",
    "progressDetail": {},
    "id": "ac28800ec8bb"
}
{
    "status": "v3.0: digest: sha256:d37ada95d47ad12224c205a938129df7a3e52345828b4fa27b03a98825d1e2e7 size: 524"
}
{
    "progressDetail": {},
    "aux": {
        "Tag": "v3.0",
        "Digest": "sha256:d37ada95d47ad12224c205a938129df7a3e52345828b4fa27b03a98825d1e2e7",
        "Size": 524
    }
}

Types

type ErrParser added in v1.2.35

type ErrParser struct{}

func GetErrParser added in v1.2.35

func GetErrParser() ErrParser

func (ErrParser) ArtifactNotFound added in v1.2.35

func (ErrParser) ArtifactNotFound(err error) bool

+example: "Error response from daemon: unknown: artifact library/hello:v1.0 not found"

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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