Help us shape the future of Go! Take the 2026 Go Developer Survey

response

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package response provides thin wrappers around the docker client response types. Inspect results that include daemon JSON expose it on Raw.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildCacheDiskUsage added in v0.5.0

type BuildCacheDiskUsage struct {
	ActiveCount int64
	TotalCount  int64
	Reclaimable int64
	TotalSize   int64
	Items       []build.CacheRecord
}

BuildCacheDiskUsage is build-cache disk usage.

type BuildCachePrune added in v0.5.0

type BuildCachePrune struct {
	build.CachePruneReport
}

BuildCachePrune is the result of pruning the build cache.

type ContainerCheckpointSummary

type ContainerCheckpointSummary struct {
	checkpoint.Summary
}

ContainerCheckpointSummary is a wrapper around the checkpoint.Summary type.

type ContainerCommitResponse

type ContainerCommitResponse struct {
	container.CommitResponse
}

ContainerCommitResponse is a wrapper around the container.CommitResponse type.

type ContainerCreate

type ContainerCreate struct {
	container.CreateResponse
}

ContainerCreate is a wrapper around the container.CreateResponse type.

type ContainerExecCreate

type ContainerExecCreate struct {
	container.ExecCreateResponse
}

ContainerExecCreate is a wrapper around the container.ExecCreateResponse type.

type ContainerExecInspect

type ContainerExecInspect struct {
	container.ExecInspectResponse
}

ContainerExecInspect is a wrapper around the container.ExecInspectResponse type.

type ContainerFilesystemChange

type ContainerFilesystemChange struct {
	container.FilesystemChange
}

ContainerFilesystemChange is a wrapper around the container.FilesystemChange type.

type ContainerHijackedResponse

type ContainerHijackedResponse struct {
	Conn   net.Conn
	Reader *bufio.Reader
}

ContainerHijackedResponse is a hijacked connection to a container or exec stream.

func (*ContainerHijackedResponse) Close added in v0.5.0

func (h *ContainerHijackedResponse) Close() error

Close closes the hijacked connection.

type ContainerInspect

type ContainerInspect struct {
	container.InspectResponse
}

ContainerInspect is a wrapper around the container.InspectResponse type.

type ContainerPathStat

type ContainerPathStat struct {
	container.PathStat
}

ContainerPathStat is a wrapper around the container.PathStat type.

type ContainerPruneReport

type ContainerPruneReport struct {
	container.PruneReport
}

ContainerPruneReport is a wrapper around the container.PruneReport type.

type ContainerStatsOneShot

type ContainerStatsOneShot struct {
	Body   io.ReadCloser
	OSType string
}

ContainerStatsOneShot is one stats sample from a container.

type ContainerStatsReader

type ContainerStatsReader struct {
	Body   io.ReadCloser
	OSType string
}

ContainerStatsReader is a single stats stream from the daemon.

type ContainerSummary

type ContainerSummary struct {
	container.Summary
}

ContainerSummary is a wrapper around the container.Summary type.

type ContainerTopResponse

type ContainerTopResponse struct {
	container.TopResponse
}

ContainerTopResponse is a wrapper around the container.TopResponse type.

type ContainerUpdateResponse

type ContainerUpdateResponse struct {
	container.UpdateResponse
}

ContainerUpdateResponse is a wrapper around the container.UpdateResponse type.

type ContainerWait

type ContainerWait struct {
	container.WaitResponse
}

ContainerWait is a wrapper around the container.WaitResponse type.

type ContainersDiskUsage added in v0.5.0

type ContainersDiskUsage struct {
	ActiveCount int64
	TotalCount  int64
	Reclaimable int64
	TotalSize   int64
	Items       []container.Summary
}

ContainersDiskUsage is container disk usage.

type DiskUsage added in v0.5.0

type DiskUsage struct {
	Containers ContainersDiskUsage
	Images     ImagesDiskUsage
	Volumes    VolumesDiskUsage
	BuildCache BuildCacheDiskUsage
}

DiskUsage is engine disk usage.

type DistributionInspect added in v0.5.0

type DistributionInspect struct {
	registry.DistributionInspect
}

DistributionInspect is a registry distribution inspect response.

type EngineEvent added in v0.5.0

type EngineEvent struct {
	events.Message
}

EngineEvent is one engine event.

type ImageAttestation added in v0.5.0

type ImageAttestation struct {
	image.AttestationStatement
}

ImageAttestation is one in-toto statement attached to an image.

type ImageBuild

type ImageBuild struct {
	Body io.ReadCloser
}

ImageBuild is the body of an image build response.

type ImageDelete

type ImageDelete struct {
	image.DeleteResponse
}

ImageDelete is a wrapper around the image.DeleteResponse type.

type ImageHistoryItem

type ImageHistoryItem struct {
	image.HistoryResponseItem
}

ImageHistoryItem is a wrapper around the image.HistoryResponseItem type.

type ImageInspect

type ImageInspect struct {
	image.InspectResponse
}

ImageInspect is a wrapper around the image.InspectResponse type.

type ImageLoad

type ImageLoad struct {
	Body io.ReadCloser
}

ImageLoad is the body of an image load response.

type ImageSearchResult

type ImageSearchResult struct {
	registry.SearchResult
}

ImageSearchResult is a wrapper around the image.SearchResponse type.

type ImageSummary

type ImageSummary struct {
	image.Summary
}

ImageSummary is a wrapper around the image.Summary type.

type ImagesDiskUsage added in v0.5.0

type ImagesDiskUsage struct {
	ActiveCount int64
	TotalCount  int64
	Reclaimable int64
	TotalSize   int64
	Items       []image.Summary
}

ImagesDiskUsage is image disk usage.

type Info added in v0.5.0

type Info struct {
	system.Info
}

Info is daemon information.

type NetworkCreate

type NetworkCreate struct {
	network.CreateResponse
}

NetworkCreate is a wrapper around the network.CreateResponse type.

type NetworkInspect

type NetworkInspect struct {
	network.Inspect
}

NetworkInspect is a wrapper around the network.InspectResponse type.

type NetworkPruneReport

type NetworkPruneReport struct {
	network.PruneReport
}

NetworkPruneReport is a wrapper around the network.PruneReport type.

type NetworkSummary

type NetworkSummary struct {
	network.Summary
}

NetworkSummary is a wrapper around the network.Summary type.

type Node added in v0.5.0

type Node struct {
	swarm.Node
	Raw []byte `json:"-"`
}

Node is a swarm node.

type Ping added in v0.5.0

type Ping struct {
	APIVersion     string
	OSType         string
	Experimental   bool
	BuilderVersion string
}

Ping is the result of a daemon ping.

type Plugin added in v0.5.0

type Plugin struct {
	plugin.Plugin
	Raw []byte `json:"-"`
}

Plugin is an engine plugin. Raw is the daemon JSON from inspect.

type PruneReport

type PruneReport struct {
	image.PruneReport
}

PruneReport is a wrapper around the image.PruneReport type.

type RegistryLogin added in v0.5.0

type RegistryLogin struct {
	registry.AuthResponse
}

RegistryLogin is a registry login response.

type Secret added in v0.5.0

type Secret struct {
	swarm.Secret
	Raw []byte `json:"-"`
}

Secret is a swarm secret.

type ServerVersion added in v0.5.0

type ServerVersion struct {
	Platform      string
	Version       string
	APIVersion    string
	MinAPIVersion string
	Os            string
	Arch          string
	Experimental  bool
}

ServerVersion is the daemon version.

type Service added in v0.5.0

type Service struct {
	swarm.Service
	Raw []byte `json:"-"`
}

Service is a swarm service.

type ServiceCreate added in v0.5.0

type ServiceCreate struct {
	ID       string
	Warnings []string
}

ServiceCreate is the result of creating a swarm service.

type ServiceUpdate added in v0.5.0

type ServiceUpdate struct {
	Warnings []string
}

ServiceUpdate is the result of updating a swarm service.

type Swarm

type Swarm struct {
	swarm.Swarm
}

Swarm is a wrapper around the swarm type.

type SwarmConfig added in v0.5.0

type SwarmConfig struct {
	swarm.Config
	Raw []byte `json:"-"`
}

SwarmConfig is a swarm config object.

type Task added in v0.5.0

type Task struct {
	swarm.Task
	Raw []byte `json:"-"`
}

Task is a swarm task.

type Volume

type Volume struct {
	volume.Volume
}

Volume is a wrapper around the volume.Volume type.

type VolumeList

type VolumeList struct {
	Volumes  []*Volume
	Warnings []string
}

VolumeList is a wrapper around the volume.ListResponse type.

type VolumePruneReport

type VolumePruneReport struct {
	volume.PruneReport
}

VolumePruneReport is a wrapper around the volume.PruneReport type.

type VolumesDiskUsage added in v0.5.0

type VolumesDiskUsage struct {
	ActiveCount int64
	TotalCount  int64
	Reclaimable int64
	TotalSize   int64
	Items       []volume.Volume
}

VolumesDiskUsage is volume disk usage.

Jump to

Keyboard shortcuts

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