github.com/google/cadvisor@v0.49.1/info/v1/docker.go (about)

     1  // Copyright 2016 Google Inc. All Rights Reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Types used for docker containers.
    16  package v1
    17  
    18  type DockerStatus struct {
    19  	Version       string            `json:"version"`
    20  	APIVersion    string            `json:"api_version"`
    21  	KernelVersion string            `json:"kernel_version"`
    22  	OS            string            `json:"os"`
    23  	Hostname      string            `json:"hostname"`
    24  	RootDir       string            `json:"root_dir"`
    25  	Driver        string            `json:"driver"`
    26  	DriverStatus  map[string]string `json:"driver_status"`
    27  	ExecDriver    string            `json:"exec_driver"`
    28  	NumImages     int               `json:"num_images"`
    29  	NumContainers int               `json:"num_containers"`
    30  }
    31  
    32  type DockerImage struct {
    33  	ID          string   `json:"id"`
    34  	RepoTags    []string `json:"repo_tags"` // repository name and tags.
    35  	Created     int64    `json:"created"`   // unix time since creation.
    36  	VirtualSize int64    `json:"virtual_size"`
    37  	Size        int64    `json:"size"`
    38  }