docker_internal

package
v1.2.20 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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