{"modulePath":"github.com/docker/engine-api","version":"v0.4.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package types\n\nPackage types is used for API stability in the types and response to the consumers of the API stats endpoint.\n\n## Constants\n\n```go\nconst (\n\tStarting  = \"starting\"  // Starting indicates that the container is not yet ready\n\tHealthy   = \"healthy\"   // Healthy indicates that the container is running correctly\n\tUnhealthy = \"unhealthy\" // Unhealthy indicates that the container has a problem\n)\n```\nHealth states\n\n## Types\n\n```go\ntype Action string\n```\nAction taken upon Seccomp rule match\n\n```go\nconst (\n\tActKill  Action = \"SCMP_ACT_KILL\"\n\tActTrap  Action = \"SCMP_ACT_TRAP\"\n\tActErrno Action = \"SCMP_ACT_ERRNO\"\n\tActTrace Action = \"SCMP_ACT_TRACE\"\n\tActAllow Action = \"SCMP_ACT_ALLOW\"\n)\n```\nDefine actions for Seccomp rules\n\n```go\ntype Arch string\n```\nArch used for additional architectures\n\n```go\nconst (\n\tArchX86         Arch = \"SCMP_ARCH_X86\"\n\tArchX86_64      Arch = \"SCMP_ARCH_X86_64\"\n\tArchX32         Arch = \"SCMP_ARCH_X32\"\n\tArchARM         Arch = \"SCMP_ARCH_ARM\"\n\tArchAARCH64     Arch = \"SCMP_ARCH_AARCH64\"\n\tArchMIPS        Arch = \"SCMP_ARCH_MIPS\"\n\tArchMIPS64      Arch = \"SCMP_ARCH_MIPS64\"\n\tArchMIPS64N32   Arch = \"SCMP_ARCH_MIPS64N32\"\n\tArchMIPSEL      Arch = \"SCMP_ARCH_MIPSEL\"\n\tArchMIPSEL64    Arch = \"SCMP_ARCH_MIPSEL64\"\n\tArchMIPSEL64N32 Arch = \"SCMP_ARCH_MIPSEL64N32\"\n\tArchPPC         Arch = \"SCMP_ARCH_PPC\"\n\tArchPPC64       Arch = \"SCMP_ARCH_PPC64\"\n\tArchPPC64LE     Arch = \"SCMP_ARCH_PPC64LE\"\n\tArchS390        Arch = \"SCMP_ARCH_S390\"\n\tArchS390X       Arch = \"SCMP_ARCH_S390X\"\n)\n```\nAdditional architectures permitted to be used for system calls By default only the native architecture of the kernel is permitted\n\n```go\ntype Arg struct {\n\tIndex    uint     `json:\"index\"`\n\tValue    uint64   `json:\"value\"`\n\tValueTwo uint64   `json:\"valueTwo\"`\n\tOp       Operator `json:\"op\"`\n}\n```\nArg used for matching specific syscall arguments in Seccomp\n\n```go\ntype AuthConfig struct {\n\tUsername string `json:\"username,omitempty\"`\n\tPassword string `json:\"password,omitempty\"`\n\tAuth     string `json:\"auth,omitempty\"`\n\n\t// Email is an optional value associated with the username.\n\t// This field is deprecated and will be removed in a later\n\t// version of docker.\n\tEmail string `json:\"email,omitempty\"`\n\n\tServerAddress string `json:\"serveraddress,omitempty\"`\n\n\t// IdentityToken is used to authenticate the user and get\n\t// an access token for the registry.\n\tIdentityToken string `json:\"identitytoken,omitempty\"`\n\n\t// RegistryToken is a bearer token to be sent to a registry\n\tRegistryToken string `json:\"registrytoken,omitempty\"`\n}\n```\nAuthConfig contains authorization information for connecting to a Registry\n\n```go\ntype AuthResponse struct {\n\t// Status is the authentication status\n\tStatus string `json:\"Status\"`\n\n\t// IdentityToken is an opaque token used for authenticating\n\t// a user after a successful login.\n\tIdentityToken string `json:\"IdentityToken,omitempty\"`\n}\n```\nAuthResponse contains response of Remote API: POST \"/auth\"\n\n```go\ntype BlkioStatEntry struct {\n\tMajor uint64 `json:\"major\"`\n\tMinor uint64 `json:\"minor\"`\n\tOp    string `json:\"op\"`\n\tValue uint64 `json:\"value\"`\n}\n```\nBlkioStatEntry is one small entity to store a piece of Blkio stats TODO Windows: This can be factored out\n\n```go\ntype BlkioStats struct {\n\t// number of bytes transferred to and from the block device\n\tIoServiceBytesRecursive []BlkioStatEntry `json:\"io_service_bytes_recursive\"`\n\tIoServicedRecursive     []BlkioStatEntry `json:\"io_serviced_recursive\"`\n\tIoQueuedRecursive       []BlkioStatEntry `json:\"io_queue_recursive\"`\n\tIoServiceTimeRecursive  []BlkioStatEntry `json:\"io_service_time_recursive\"`\n\tIoWaitTimeRecursive     []BlkioStatEntry `json:\"io_wait_time_recursive\"`\n\tIoMergedRecursive       []BlkioStatEntry `json:\"io_merged_recursive\"`\n\tIoTimeRecursive         []BlkioStatEntry `json:\"io_time_recursive\"`\n\tSectorsRecursive        []BlkioStatEntry `json:\"sectors_recursive\"`\n}\n```\nBlkioStats stores All IO service stats for data read and write TODO Windows: This can be factored out\n\n```go\ntype CPUStats struct {\n\tCPUUsage       CPUUsage       `json:\"cpu_usage\"`\n\tSystemUsage    uint64         `json:\"system_cpu_usage\"`\n\tThrottlingData ThrottlingData `json:\"throttling_data,omitempty\"`\n}\n```\nCPUStats aggregates and wraps all CPU related info of container\n\n```go\ntype CPUUsage struct {\n\t// Total CPU time consumed.\n\t// Units: nanoseconds.\n\tTotalUsage uint64 `json:\"total_usage\"`\n\t// Total CPU time consumed per core.\n\t// Units: nanoseconds.\n\tPercpuUsage []uint64 `json:\"percpu_usage\"`\n\t// Time spent by tasks of the cgroup in kernel mode.\n\t// Units: nanoseconds.\n\tUsageInKernelmode uint64 `json:\"usage_in_kernelmode\"`\n\t// Time spent by tasks of the cgroup in user mode.\n\t// Units: nanoseconds.\n\tUsageInUsermode uint64 `json:\"usage_in_usermode\"`\n}\n```\nCPUUsage stores All CPU stats aggregated since container inception.\n\n```go\ntype Checkpoint struct {\n\tName string // Name is the name of the checkpoint\n}\n```\nCheckpoint represents the details of a checkpoint\n\n```go\ntype CheckpointCreateOptions struct {\n\tCheckpointID string\n\tExit         bool\n}\n```\nCheckpointCreateOptions holds parameters to create a checkpoint from a container\n\n```go\ntype CloseWriter interface {\n\tCloseWrite() error\n}\n```\nCloseWriter is an interface that implements structs that close input streams to prevent from writing.\n\n```go\ntype Container struct {\n\tID         string `json:\"Id\"`\n\tNames      []string\n\tImage      string\n\tImageID    string\n\tCommand    string\n\tCreated    int64\n\tPorts      []Port\n\tSizeRw     int64 `json:\",omitempty\"`\n\tSizeRootFs int64 `json:\",omitempty\"`\n\tLabels     map[string]string\n\tState      string\n\tStatus     string\n\tHostConfig struct {\n\t\tNetworkMode string `json:\",omitempty\"`\n\t}\n\tNetworkSettings *SummaryNetworkSettings\n\tMounts          []MountPoint\n}\n```\nContainer contains response of Remote API: GET \"/containers/json\"\n\n```go\ntype ContainerAttachOptions struct {\n\tStream     bool\n\tStdin      bool\n\tStdout     bool\n\tStderr     bool\n\tDetachKeys string\n}\n```\nContainerAttachOptions holds parameters to attach to a container.\n\n```go\ntype ContainerChange struct {\n\tKind int\n\tPath string\n}\n```\nContainerChange contains response of Remote API: GET \"/containers/{name:.\\*}/changes\"\n\n```go\ntype ContainerCommitConfig struct {\n\tPause   bool\n\tRepo    string\n\tTag     string\n\tAuthor  string\n\tComment string\n\t// merge container config into commit config before commit\n\tMergeConfigs bool\n\tConfig       *container.Config\n}\n```\nContainerCommitConfig contains build configs for commit operation, and is used when making a commit with the current state of the container.\n\n```go\ntype ContainerCommitOptions struct {\n\tReference string\n\tComment   string\n\tAuthor    string\n\tChanges   []string\n\tPause     bool\n\tConfig    *container.Config\n}\n```\nContainerCommitOptions holds parameters to commit changes into a container.\n\n```go\ntype ContainerCommitResponse struct {\n\tID string `json:\"Id\"`\n}\n```\nContainerCommitResponse contains response of Remote API: POST \"/commit?container=\"+containerID\n\n```go\ntype ContainerCreateConfig struct {\n\tName             string\n\tConfig           *container.Config\n\tHostConfig       *container.HostConfig\n\tNetworkingConfig *network.NetworkingConfig\n\tAdjustCPUShares  bool\n}\n```\nContainerCreateConfig is the parameter set to ContainerCreate()\n\n```go\ntype ContainerCreateResponse struct {\n\t// ID is the ID of the created container.\n\tID string `json:\"Id\"`\n\n\t// Warnings are any warnings encountered during the creation of the container.\n\tWarnings []string `json:\"Warnings\"`\n}\n```\nContainerCreateResponse contains the information returned to a client on the creation of a new container.\n\n```go\ntype ContainerExecCreateResponse struct {\n\t// ID is the exec ID.\n\tID string `json:\"Id\"`\n}\n```\nContainerExecCreateResponse contains response of Remote API: POST \"/containers/{name:.\\*}/exec\"\n\n```go\ntype ContainerExecInspect struct {\n\tExecID      string\n\tContainerID string\n\tRunning     bool\n\tExitCode    int\n}\n```\nContainerExecInspect holds information returned by exec inspect.\n\n```go\ntype ContainerJSON struct {\n\t*ContainerJSONBase\n\tMounts          []MountPoint\n\tConfig          *container.Config\n\tNetworkSettings *NetworkSettings\n}\n```\nContainerJSON is newly used struct along with MountPoint\n\n```go\ntype ContainerJSONBase struct {\n\tID              string `json:\"Id\"`\n\tCreated         string\n\tPath            string\n\tArgs            []string\n\tState           *ContainerState\n\tImage           string\n\tResolvConfPath  string\n\tHostnamePath    string\n\tHostsPath       string\n\tLogPath         string\n\tNode            *ContainerNode `json:\",omitempty\"`\n\tName            string\n\tRestartCount    int\n\tDriver          string\n\tMountLabel      string\n\tProcessLabel    string\n\tAppArmorProfile string\n\tExecIDs         []string\n\tHostConfig      *container.HostConfig\n\tGraphDriver     GraphDriverData\n\tSizeRw          *int64 `json:\",omitempty\"`\n\tSizeRootFs      *int64 `json:\",omitempty\"`\n}\n```\nContainerJSONBase contains response of Remote API: GET \"/containers/{name:.\\*}/json\"\n\n```go\ntype ContainerListOptions struct {\n\tQuiet  bool\n\tSize   bool\n\tAll    bool\n\tLatest bool\n\tSince  string\n\tBefore string\n\tLimit  int\n\tFilter filters.Args\n}\n```\nContainerListOptions holds parameters to list containers with.\n\n```go\ntype ContainerLogsOptions struct {\n\tShowStdout bool\n\tShowStderr bool\n\tSince      string\n\tTimestamps bool\n\tFollow     bool\n\tTail       string\n\tDetails    bool\n}\n```\nContainerLogsOptions holds parameters to filter logs with.\n\n```go\ntype ContainerNode struct {\n\tID        string\n\tIPAddress string `json:\"IP\"`\n\tAddr      string\n\tName      string\n\tCpus      int\n\tMemory    int64\n\tLabels    map[string]string\n}\n```\nContainerNode stores information about the node that a container is running on.  It's only available in Docker Swarm\n\n```go\ntype ContainerPathStat struct {\n\tName       string      `json:\"name\"`\n\tSize       int64       `json:\"size\"`\n\tMode       os.FileMode `json:\"mode\"`\n\tMtime      time.Time   `json:\"mtime\"`\n\tLinkTarget string      `json:\"linkTarget\"`\n}\n```\nContainerPathStat is used to encode the header from GET \"/containers/{name:.\\*}/archive\" \"Name\" is the file or directory name.\n\n```go\ntype ContainerProcessList struct {\n\tProcesses [][]string\n\tTitles    []string\n}\n```\nContainerProcessList contains response of Remote API: GET \"/containers/{name:.\\*}/top\"\n\n```go\ntype ContainerRemoveOptions struct {\n\tRemoveVolumes bool\n\tRemoveLinks   bool\n\tForce         bool\n}\n```\nContainerRemoveOptions holds parameters to remove containers.\n\n```go\ntype ContainerRmConfig struct {\n\tForceRemove, RemoveVolume, RemoveLink bool\n}\n```\nContainerRmConfig holds arguments for the container remove operation. This struct is used to tell the backend what operations to perform.\n\n```go\ntype ContainerStartOptions struct {\n\tCheckpointID string\n}\n```\nContainerStartOptions holds parameters to start containers.\n\n```go\ntype ContainerState struct {\n\tStatus     string\n\tRunning    bool\n\tPaused     bool\n\tRestarting bool\n\tOOMKilled  bool\n\tDead       bool\n\tPid        int\n\tExitCode   int\n\tError      string\n\tStartedAt  string\n\tFinishedAt string\n\tHealth     *Health `json:\",omitempty\"`\n}\n```\nContainerState stores container's running state it's part of ContainerJSONBase and will return by \"inspect\" command\n\n```go\ntype ContainerUpdateResponse struct {\n\t// Warnings are any warnings encountered during the updating of the container.\n\tWarnings []string `json:\"Warnings\"`\n}\n```\nContainerUpdateResponse contains response of Remote API: POST \"/containers/{name:.\\*}/update\"\n\n```go\ntype ContainerWaitResponse struct {\n\t// StatusCode is the status code of the wait job\n\tStatusCode int `json:\"StatusCode\"`\n}\n```\nContainerWaitResponse contains response of Remote API: POST \"/containers/\"+containerID+\"/wait\"\n\n```go\ntype CopyConfig struct {\n\tResource string\n}\n```\nCopyConfig contains request body of Remote API: POST \"/containers/\"+containerID+\"/copy\"\n\n```go\ntype CopyToContainerOptions struct {\n\tAllowOverwriteDirWithFile bool\n}\n```\nCopyToContainerOptions holds information about files to copy into a container\n\n```go\ntype DefaultNetworkSettings struct {\n\tEndpointID          string // EndpointID uniquely represents a service endpoint in a Sandbox\n\tGateway             string // Gateway holds the gateway address for the network\n\tGlobalIPv6Address   string // GlobalIPv6Address holds network's global IPv6 address\n\tGlobalIPv6PrefixLen int    // GlobalIPv6PrefixLen represents mask length of network's global IPv6 address\n\tIPAddress           string // IPAddress holds the IPv4 address for the network\n\tIPPrefixLen         int    // IPPrefixLen represents mask length of network's IPv4 address\n\tIPv6Gateway         string // IPv6Gateway holds gateway address specific for IPv6\n\tMacAddress          string // MacAddress holds the MAC address for the network\n}\n```\nDefaultNetworkSettings holds network information during the 2 release deprecation period. It will be removed in Docker 1.11.\n\n```go\ntype EndpointResource struct {\n\tName        string\n\tEndpointID  string\n\tMacAddress  string\n\tIPv4Address string\n\tIPv6Address string\n}\n```\nEndpointResource contains network resources allocated and used for a container in a network\n\n```go\ntype ErrorResponse struct {\n\tMessage string `json:\"message\"`\n}\n```\nErrorResponse is the response body of API errors.\n\n```go\ntype EventsOptions struct {\n\tSince   string\n\tUntil   string\n\tFilters filters.Args\n}\n```\nEventsOptions hold parameters to filter events with.\n\n```go\ntype ExecConfig struct {\n\tUser         string   // User that will run the command\n\tPrivileged   bool     // Is the container in privileged mode\n\tTty          bool     // Attach standard streams to a tty.\n\tAttachStdin  bool     // Attach the standard input, makes possible user interaction\n\tAttachStderr bool     // Attach the standard error\n\tAttachStdout bool     // Attach the standard output\n\tDetach       bool     // Execute in detach mode\n\tDetachKeys   string   // Escape keys for detach\n\tCmd          []string // Execution commands and args\n}\n```\nExecConfig is a small subset of the Config struct that holds the configuration for the exec feature of docker.\n\n```go\ntype ExecStartCheck struct {\n\t// ExecStart will first check if it's detached\n\tDetach bool\n\t// Check if there's a tty\n\tTty bool\n}\n```\nExecStartCheck is a temp struct used by execStart Config fields is part of ExecConfig in runconfig package\n\n```go\ntype GraphDriverData struct {\n\tName string\n\tData map[string]string\n}\n```\nGraphDriverData returns Image's graph driver config info when calling inspect command\n\n```go\ntype Health struct {\n\tStatus        string               // Status is one of Starting, Healthy or Unhealthy\n\tFailingStreak int                  // FailingStreak is the number of consecutive failures\n\tLog           []*HealthcheckResult // Log contains the last few results (oldest first)\n}\n```\nHealth stores information about the container's healthcheck results\n\n```go\ntype HealthcheckResult struct {\n\tStart    time.Time // Start is the time this check started\n\tEnd      time.Time // End is the time this check ended\n\tExitCode int       // ExitCode meanings: 0=healthy, 1=unhealthy, 2=reserved (considered unhealthy), else=error running probe\n\tOutput   string    // Output from last check\n}\n```\nHealthcheckResult stores information about a single run of a healthcheck probe\n\n```go\ntype HijackedResponse struct {\n\tConn   net.Conn\n\tReader *bufio.Reader\n}\n```\nHijackedResponse holds connection information for a hijacked request.\n\n```go\nfunc (h *HijackedResponse) Close()\n```\nClose closes the hijacked connection and reader.\n\n```go\nfunc (h *HijackedResponse) CloseWrite() error\n```\nCloseWrite closes a readWriter for writing.\n\n```go\ntype Image struct {\n\tID          string `json:\"Id\"`\n\tParentID    string `json:\"ParentId\"`\n\tRepoTags    []string\n\tRepoDigests []string\n\tCreated     int64\n\tSize        int64\n\tVirtualSize int64\n\tLabels      map[string]string\n}\n```\nImage contains response of Remote API: GET \"/images/json\"\n\n```go\ntype ImageBuildOptions struct {\n\tTags           []string\n\tSuppressOutput bool\n\tRemoteContext  string\n\tNoCache        bool\n\tRemove         bool\n\tForceRemove    bool\n\tPullParent     bool\n\tIsolation      container.Isolation\n\tCPUSetCPUs     string\n\tCPUSetMems     string\n\tCPUShares      int64\n\tCPUQuota       int64\n\tCPUPeriod      int64\n\tMemory         int64\n\tMemorySwap     int64\n\tCgroupParent   string\n\tShmSize        int64\n\tDockerfile     string\n\tUlimits        []*units.Ulimit\n\tBuildArgs      map[string]string\n\tAuthConfigs    map[string]AuthConfig\n\tContext        io.Reader\n\tLabels         map[string]string\n}\n```\nImageBuildOptions holds the information necessary to build images.\n\n```go\ntype ImageBuildResponse struct {\n\tBody   io.ReadCloser\n\tOSType string\n}\n```\nImageBuildResponse holds information returned by a server after building an image.\n\n```go\ntype ImageCreateOptions struct {\n\tRegistryAuth string // RegistryAuth is the base64 encoded credentials for the registry\n}\n```\nImageCreateOptions holds information to create images.\n\n```go\ntype ImageDelete struct {\n\tUntagged string `json:\",omitempty\"`\n\tDeleted  string `json:\",omitempty\"`\n}\n```\nImageDelete contains response of Remote API: DELETE \"/images/{name:.\\*}\"\n\n```go\ntype ImageHistory struct {\n\tID        string `json:\"Id\"`\n\tCreated   int64\n\tCreatedBy string\n\tTags      []string\n\tSize      int64\n\tComment   string\n}\n```\nImageHistory contains response of Remote API: GET \"/images/{name:.\\*}/history\"\n\n```go\ntype ImageImportOptions struct {\n\tTag     string   // Tag is the name to tag this image with. This attribute is deprecated.\n\tMessage string   // Message is the message to tag the image with\n\tChanges []string // Changes are the raw changes to apply to this image\n}\n```\nImageImportOptions holds information to import images from the client host.\n\n```go\ntype ImageImportSource struct {\n\tSource     io.Reader // Source is the data to send to the server to create this image from (mutually exclusive with SourceName)\n\tSourceName string    // SourceName is the name of the image to pull (mutually exclusive with Source)\n}\n```\nImageImportSource holds source information for ImageImport\n\n```go\ntype ImageInspect struct {\n\tID              string `json:\"Id\"`\n\tRepoTags        []string\n\tRepoDigests     []string\n\tParent          string\n\tComment         string\n\tCreated         string\n\tContainer       string\n\tContainerConfig *container.Config\n\tDockerVersion   string\n\tAuthor          string\n\tConfig          *container.Config\n\tArchitecture    string\n\tOs              string\n\tSize            int64\n\tVirtualSize     int64\n\tGraphDriver     GraphDriverData\n\tRootFS          RootFS\n}\n```\nImageInspect contains response of Remote API: GET \"/images/{name:.\\*}/json\"\n\n```go\ntype ImageListOptions struct {\n\tMatchName string\n\tAll       bool\n\tFilters   filters.Args\n}\n```\nImageListOptions holds parameters to filter the list of images with.\n\n```go\ntype ImageLoadResponse struct {\n\t// Body must be closed to avoid a resource leak\n\tBody io.ReadCloser\n\tJSON bool\n}\n```\nImageLoadResponse returns information to the client about a load process.\n\n```go\ntype ImagePullOptions struct {\n\tAll           bool\n\tRegistryAuth  string // RegistryAuth is the base64 encoded credentials for the registry\n\tPrivilegeFunc RequestPrivilegeFunc\n}\n```\nImagePullOptions holds information to pull images.\n\n```go\ntype ImagePushOptions ImagePullOptions\n```\nImagePushOptions holds information to push images.\n\n```go\ntype ImageRemoveOptions struct {\n\tForce         bool\n\tPruneChildren bool\n}\n```\nImageRemoveOptions holds parameters to remove images.\n\n```go\ntype ImageSearchOptions struct {\n\tRegistryAuth  string\n\tPrivilegeFunc RequestPrivilegeFunc\n\tFilters       filters.Args\n\tLimit         int\n}\n```\nImageSearchOptions holds parameters to search images with.\n\n```go\ntype Info struct {\n\tID                 string\n\tContainers         int\n\tContainersRunning  int\n\tContainersPaused   int\n\tContainersStopped  int\n\tImages             int\n\tDriver             string\n\tDriverStatus       [][2]string\n\tSystemStatus       [][2]string\n\tPlugins            PluginsInfo\n\tMemoryLimit        bool\n\tSwapLimit          bool\n\tKernelMemory       bool\n\tCPUCfsPeriod       bool `json:\"CpuCfsPeriod\"`\n\tCPUCfsQuota        bool `json:\"CpuCfsQuota\"`\n\tCPUShares          bool\n\tCPUSet             bool\n\tIPv4Forwarding     bool\n\tBridgeNfIptables   bool\n\tBridgeNfIP6tables  bool `json:\"BridgeNfIp6tables\"`\n\tDebug              bool\n\tNFd                int\n\tOomKillDisable     bool\n\tNGoroutines        int\n\tSystemTime         string\n\tExecutionDriver    string\n\tLoggingDriver      string\n\tCgroupDriver       string\n\tNEventsListener    int\n\tKernelVersion      string\n\tOperatingSystem    string\n\tOSType             string\n\tArchitecture       string\n\tIndexServerAddress string\n\tRegistryConfig     *registry.ServiceConfig\n\tNCPU               int\n\tMemTotal           int64\n\tDockerRootDir      string\n\tHTTPProxy          string `json:\"HttpProxy\"`\n\tHTTPSProxy         string `json:\"HttpsProxy\"`\n\tNoProxy            string\n\tName               string\n\tLabels             []string\n\tExperimentalBuild  bool\n\tServerVersion      string\n\tClusterStore       string\n\tClusterAdvertise   string\n\tSecurityOptions    []string\n\tRuntimes           map[string]Runtime\n\tDefaultRuntime     string\n\tSwarm              swarm.Info\n\t// LiveRestoreEnabled determines whether containers should be kept\n\t// running when the daemon is shutdown or upon daemon start if\n\t// running containers are detected\n\tLiveRestoreEnabled bool\n}\n```\nInfo contains response of Remote API: GET \"/info\"\n\n```go\ntype MemoryStats struct {\n\t// current res_counter usage for memory\n\tUsage uint64 `json:\"usage\"`\n\t// maximum usage ever recorded.\n\tMaxUsage uint64 `json:\"max_usage\"`\n\t// TODO(vishh): Export these as stronger types.\n\t// all the stats exported via memory.stat.\n\tStats map[string]uint64 `json:\"stats\"`\n\t// number of times memory usage hits limits.\n\tFailcnt uint64 `json:\"failcnt\"`\n\tLimit   uint64 `json:\"limit\"`\n}\n```\nMemoryStats aggregates All memory stats since container inception\n\n```go\ntype MountPoint struct {\n\tName        string `json:\",omitempty\"`\n\tSource      string\n\tDestination string\n\tDriver      string `json:\",omitempty\"`\n\tMode        string\n\tRW          bool\n\tPropagation string\n}\n```\nMountPoint represents a mount point configuration inside the container.\n\n```go\ntype NetworkConnect struct {\n\tContainer      string\n\tEndpointConfig *network.EndpointSettings `json:\",omitempty\"`\n}\n```\nNetworkConnect represents the data to be used to connect a container to the network\n\n```go\ntype NetworkCreate struct {\n\tCheckDuplicate bool\n\tDriver         string\n\tEnableIPv6     bool\n\tIPAM           network.IPAM\n\tInternal       bool\n\tOptions        map[string]string\n\tLabels         map[string]string\n}\n```\nNetworkCreate is the expected body of the \"create network\" http request message\n\n```go\ntype NetworkCreateRequest struct {\n\tNetworkCreate\n\tName string\n}\n```\nNetworkCreateRequest is the request message sent to the server for network create call.\n\n```go\ntype NetworkCreateResponse struct {\n\tID      string `json:\"Id\"`\n\tWarning string\n}\n```\nNetworkCreateResponse is the response message sent by the server for network create call\n\n```go\ntype NetworkDisconnect struct {\n\tContainer string\n\tForce     bool\n}\n```\nNetworkDisconnect represents the data to be used to disconnect a container from the network\n\n```go\ntype NetworkListOptions struct {\n\tFilters filters.Args\n}\n```\nNetworkListOptions holds parameters to filter the list of networks with.\n\n```go\ntype NetworkResource struct {\n\tName       string                      // Name is the requested name of the network\n\tID         string                      `json:\"Id\"` // ID uniquely identifies a network on a single machine\n\tScope      string                      // Scope describes the level at which the network exists (e.g. `global` for cluster-wide or `local` for machine level)\n\tDriver     string                      // Driver is the Driver name used to create the network (e.g. `bridge`, `overlay`)\n\tEnableIPv6 bool                        // EnableIPv6 represents whether to enable IPv6\n\tIPAM       network.IPAM                // IPAM is the network's IP Address Management\n\tInternal   bool                        // Internal represents if the network is used internal only\n\tContainers map[string]EndpointResource // Containers contains endpoints belonging to the network\n\tOptions    map[string]string           // Options holds the network specific options to use for when creating the network\n\tLabels     map[string]string           // Labels holds metadata specific to the network being created\n}\n```\nNetworkResource is the body of the \"get network\" http response message\n\n```go\ntype NetworkSettings struct {\n\tNetworkSettingsBase\n\tDefaultNetworkSettings\n\tNetworks map[string]*network.EndpointSettings\n}\n```\nNetworkSettings exposes the network settings in the api\n\n```go\ntype NetworkSettingsBase struct {\n\tBridge                 string      // Bridge is the Bridge name the network uses(e.g. `docker0`)\n\tSandboxID              string      // SandboxID uniquely represents a container's network stack\n\tHairpinMode            bool        // HairpinMode specifies if hairpin NAT should be enabled on the virtual interface\n\tLinkLocalIPv6Address   string      // LinkLocalIPv6Address is an IPv6 unicast address using the link-local prefix\n\tLinkLocalIPv6PrefixLen int         // LinkLocalIPv6PrefixLen is the prefix length of an IPv6 unicast address\n\tPorts                  nat.PortMap // Ports is a collection of PortBinding indexed by Port\n\tSandboxKey             string      // SandboxKey identifies the sandbox\n\tSecondaryIPAddresses   []network.Address\n\tSecondaryIPv6Addresses []network.Address\n}\n```\nNetworkSettingsBase holds basic information about networks\n\n```go\ntype NetworkStats struct {\n\tRxBytes   uint64 `json:\"rx_bytes\"`\n\tRxPackets uint64 `json:\"rx_packets\"`\n\tRxErrors  uint64 `json:\"rx_errors\"`\n\tRxDropped uint64 `json:\"rx_dropped\"`\n\tTxBytes   uint64 `json:\"tx_bytes\"`\n\tTxPackets uint64 `json:\"tx_packets\"`\n\tTxErrors  uint64 `json:\"tx_errors\"`\n\tTxDropped uint64 `json:\"tx_dropped\"`\n}\n```\nNetworkStats aggregates All network stats of one container TODO Windows: This will require refactoring\n\n```go\ntype NodeListOptions struct {\n\tFilter filters.Args\n}\n```\nNodeListOptions holds parameters to list  nodes with.\n\n```go\ntype Operator string\n```\nOperator used to match syscall arguments in Seccomp\n\n```go\nconst (\n\tOpNotEqual     Operator = \"SCMP_CMP_NE\"\n\tOpLessThan     Operator = \"SCMP_CMP_LT\"\n\tOpLessEqual    Operator = \"SCMP_CMP_LE\"\n\tOpEqualTo      Operator = \"SCMP_CMP_EQ\"\n\tOpGreaterEqual Operator = \"SCMP_CMP_GE\"\n\tOpGreaterThan  Operator = \"SCMP_CMP_GT\"\n\tOpMaskedEqual  Operator = \"SCMP_CMP_MASKED_EQ\"\n)\n```\nDefine operators for syscall arguments in Seccomp\n\n```go\ntype PidsStats struct {\n\t// Current is the number of pids in the cgroup\n\tCurrent uint64 `json:\"current,omitempty\"`\n\t// Limit is the hard limit on the number of pids in the cgroup.\n\t// A \"Limit\" of 0 means that there is no limit.\n\tLimit uint64 `json:\"limit,omitempty\"`\n}\n```\nPidsStats contains the stats of a container's pids\n\n```go\ntype PluginsInfo struct {\n\t// List of Volume plugins registered\n\tVolume []string\n\t// List of Network plugins registered\n\tNetwork []string\n\t// List of Authorization plugins registered\n\tAuthorization []string\n}\n```\nPluginsInfo is a temp struct holding Plugins name registered with docker daemon. It is used by Info struct\n\n```go\ntype Port struct {\n\tIP          string `json:\",omitempty\"`\n\tPrivatePort int\n\tPublicPort  int `json:\",omitempty\"`\n\tType        string\n}\n```\nPort stores open ports info of container e.g. {\"PrivatePort\": 8080, \"PublicPort\": 80, \"Type\": \"tcp\"}\n\n```go\ntype RequestPrivilegeFunc func() (string, error)\n```\nRequestPrivilegeFunc is a function interface that clients can supply to retry operations after getting an authorization error. This function returns the registry authentication header value in base 64 format, or an error if the privilege request fails.\n\n```go\ntype ResizeOptions struct {\n\tHeight int\n\tWidth  int\n}\n```\nResizeOptions holds parameters to resize a tty. It can be used to resize container ttys and exec process ttys too.\n\n```go\ntype RootFS struct {\n\tType      string\n\tLayers    []string `json:\",omitempty\"`\n\tBaseLayer string   `json:\",omitempty\"`\n}\n```\nRootFS returns Image's RootFS description including the layer IDs.\n\n```go\ntype Runtime struct {\n\tPath string   `json:\"path\"`\n\tArgs []string `json:\"runtimeArgs,omitempty\"`\n}\n```\nRuntime describes an OCI runtime\n\n```go\ntype Seccomp struct {\n\tDefaultAction Action     `json:\"defaultAction\"`\n\tArchitectures []Arch     `json:\"architectures\"`\n\tSyscalls      []*Syscall `json:\"syscalls\"`\n}\n```\nSeccomp represents the config for a seccomp profile for syscall restriction.\n\n```go\ntype ServiceCreateOptions struct {\n\t// EncodedRegistryAuth is the encoded registry authorization credentials to\n\t// use when updating the service.\n\t//\n\t// This field follows the format of the X-Registry-Auth header.\n\tEncodedRegistryAuth string\n}\n```\nServiceCreateOptions contains the options to use when creating a service.\n\n```go\ntype ServiceCreateResponse struct {\n\t// ID is the ID of the created service.\n\tID string\n}\n```\nServiceCreateResponse contains the information returned to a client on the  creation of a new service.\n\n```go\ntype ServiceListOptions struct {\n\tFilter filters.Args\n}\n```\nServiceListOptions holds parameters to list  services with.\n\n```go\ntype ServiceUpdateOptions struct {\n\t// EncodedRegistryAuth is the encoded registry authorization credentials to\n\t// use when updating the service.\n\t//\n\t// This field follows the format of the X-Registry-Auth header.\n\tEncodedRegistryAuth string\n}\n```\nServiceUpdateOptions contains the options to be used for updating services.\n\n```go\ntype Stats struct {\n\tRead        time.Time   `json:\"read\"`\n\tPreCPUStats CPUStats    `json:\"precpu_stats,omitempty\"`\n\tCPUStats    CPUStats    `json:\"cpu_stats,omitempty\"`\n\tMemoryStats MemoryStats `json:\"memory_stats,omitempty\"`\n\tBlkioStats  BlkioStats  `json:\"blkio_stats,omitempty\"`\n\tPidsStats   PidsStats   `json:\"pids_stats,omitempty\"`\n}\n```\nStats is Ultimate struct aggregating all types of stats of one container\n\n```go\ntype StatsJSON struct {\n\tStats\n\n\t// Networks request version \u003e=1.21\n\tNetworks map[string]NetworkStats `json:\"networks,omitempty\"`\n}\n```\nStatsJSON is newly used Networks\n\n```go\ntype SummaryNetworkSettings struct {\n\tNetworks map[string]*network.EndpointSettings\n}\n```\nSummaryNetworkSettings provides a summary of container's networks in /containers/json\n\n```go\ntype Syscall struct {\n\tName   string `json:\"name\"`\n\tAction Action `json:\"action\"`\n\tArgs   []*Arg `json:\"args\"`\n}\n```\nSyscall is used to match a syscall in Seccomp\n\n```go\ntype TaskListOptions struct {\n\tFilter filters.Args\n}\n```\nTaskListOptions holds parameters to list  tasks with.\n\n```go\ntype ThrottlingData struct {\n\t// Number of periods with throttling active\n\tPeriods uint64 `json:\"periods\"`\n\t// Number of periods when the container hits its throttling limit.\n\tThrottledPeriods uint64 `json:\"throttled_periods\"`\n\t// Aggregate time the container was throttled for in nanoseconds.\n\tThrottledTime uint64 `json:\"throttled_time\"`\n}\n```\nThrottlingData stores CPU throttling stats of one running container\n\n```go\ntype Version struct {\n\tVersion       string\n\tAPIVersion    string `json:\"ApiVersion\"`\n\tGitCommit     string\n\tGoVersion     string\n\tOs            string\n\tArch          string\n\tKernelVersion string `json:\",omitempty\"`\n\tExperimental  bool   `json:\",omitempty\"`\n\tBuildTime     string `json:\",omitempty\"`\n}\n```\nVersion contains response of Remote API: GET \"/version\"\n\n```go\ntype VersionResponse struct {\n\tClient *Version\n\tServer *Version\n}\n```\nVersionResponse holds version information for the client and the server\n\n```go\nfunc (v VersionResponse) ServerOK() bool\n```\nServerOK returns true when the client could connect to the docker server and parse the information received. It returns false otherwise.\n\n```go\ntype Volume struct {\n\tName       string                 // Name is the name of the volume\n\tDriver     string                 // Driver is the Driver name used to create the volume\n\tMountpoint string                 // Mountpoint is the location on disk of the volume\n\tStatus     map[string]interface{} `json:\",omitempty\"` // Status provides low-level status information about the volume\n\tLabels     map[string]string      // Labels is metadata specific to the volume\n\tScope      string                 // Scope describes the level at which the volume exists (e.g. `global` for cluster-wide or `local` for machine level)\n}\n```\nVolume represents the configuration of a volume for the remote API\n\n```go\ntype VolumeCreateRequest struct {\n\tName       string            // Name is the requested name of the volume\n\tDriver     string            // Driver is the name of the driver that should be used to create the volume\n\tDriverOpts map[string]string // DriverOpts holds the driver specific options to use for when creating the volume.\n\tLabels     map[string]string // Labels holds metadata specific to the volume being created.\n}\n```\nVolumeCreateRequest contains the response for the remote API: POST \"/volumes/create\"\n\n```go\ntype VolumesListResponse struct {\n\tVolumes  []*Volume // Volumes is the list of volumes being returned\n\tWarnings []string  // Warnings is a list of warnings that occurred when getting the list from the volume drivers\n}\n```\nVolumesListResponse contains the response for the remote API: GET \"/volumes\"\n\n","path":"github.com/docker/engine-api/types","name":"types","synopsis":"Package types is used for API stability in the types and response to the consumers of the API stats endpoint.","isRedistributable":true}
