{"modulePath":"github.com/runcom/engine-api","version":"v0.2.2","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## 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)\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\"`\n\tEmail         string `json:\"email\"`\n\tServerAddress string `json:\"serveraddress,omitempty\"`\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```\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 CloseWriter interface {\n\tCloseWrite() error\n}\n```\nCloseWriter is an interface that implement 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\tStatus     string\n\tHostConfig struct {\n\t\tNetworkMode string `json:\",omitempty\"`\n\t}\n\tNetworkSettings *SummaryNetworkSettings\n}\n```\nContainer contains response of Remote API: GET  \"/containers/json\"\n\n```go\ntype ContainerAttachOptions struct {\n\tContainerID string\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\tContainerID    string\n\tRepositoryName string\n\tTag            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\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\tContainerID string\n\tShowStdout  bool\n\tShowStderr  bool\n\tSince       string\n\tTimestamps  bool\n\tFollow      bool\n\tTail        string\n}\n```\nContainerLogsOptions holds parameters to filter logs with.\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\tContainerID   string\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 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}\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\tContainerID               string\n\tPath                      string\n\tContent                   io.Reader\n\tAllowOverwriteDirWithFile bool\n}\n```\nCopyToContainerOptions holds information about files to copy into a container\n\n```go\ntype DefaultNetworkSettings struct {\n\tEndpointID          string\n\tGateway             string\n\tGlobalIPv6Address   string\n\tGlobalIPv6PrefixLen int\n\tIPAddress           string\n\tIPPrefixLen         int\n\tIPv6Gateway         string\n\tMacAddress          string\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 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\tContainer    string   // Name of the container (to execute in)\n\tAttachStdin  bool     // Attach the standard input, makes possible user interaction\n\tAttachStderr bool     // Attach the standard output\n\tAttachStdout bool     // Attach the standard error\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 hold 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 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\tIsolationLevel container.IsolationLevel\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}\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\tParent       string // Parent is the name of the image to pull\n\tTag          string // Tag is the name to tag this image with\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\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\tRepositoryName string    // RepositoryName is the name of the repository to import this image into\n\tMessage        string    // Message is the message to tag the image with\n\tTag            string    // Tag is the name to tag this 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 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}\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\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\tImageID      string // ImageID is the name of the image to pull\n\tTag          string // Tag is the name of the tag to be pulled\n\tRegistryAuth string // RegistryAuth is the base64 encoded credentials for the registry\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\tImageID       string\n\tForce         bool\n\tPruneChildren bool\n}\n```\nImageRemoveOptions holds parameters to remove images.\n\n```go\ntype ImageSearchOptions struct {\n\tTerm         string\n\tRegistryAuth string\n}\n```\nImageSearchOptions holds parameters to search images with.\n\n```go\ntype ImageTagOptions struct {\n\tImageID        string\n\tRepositoryName string\n\tTag            string\n\tForce          bool\n}\n```\nImageTagOptions holds parameters to tag an image\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\tPlugins            PluginsInfo\n\tMemoryLimit        bool\n\tSwapLimit          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\tNEventsListener    int\n\tKernelVersion      string\n\tOperatingSystem    string\n\tOSType             string\n\tArchitecture       string\n\tIndexServerAddress string\n\tRegistryConfig     *registry.ServiceConfig\n\tInitSha1           string\n\tInitPath           string\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}\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\tName           string\n\tCheckDuplicate bool\n\tDriver         string\n\tIPAM           network.IPAM\n\tInternal       bool\n\tOptions        map[string]string\n}\n```\nNetworkCreate is the expected body of the \"create network\" http request message\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\n\tID         string `json:\"Id\"`\n\tScope      string\n\tDriver     string\n\tIPAM       network.IPAM\n\tContainers map[string]EndpointResource\n\tOptions    map[string]string\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\n\tSandboxID              string\n\tHairpinMode            bool\n\tLinkLocalIPv6Address   string\n\tLinkLocalIPv6PrefixLen int\n\tPorts                  nat.PortMap\n\tSandboxKey             string\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 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}\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 temp struct holds Plugins name registered with docker daemon. It 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 ResizeOptions struct {\n\tID     string\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 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 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 ThrottlingData struct {\n\t// Number of periods with throttling active\n\tPeriods uint64 `json:\"periods\"`\n\t// Number of periods when the container hit 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 return 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}\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}\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/runcom/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}
