Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct { Cpus float64 `json:"cpus,omitempty"` Memory float64 `json:"memory,omitempty"` ContainerCount int `json:"container_count,omitempty"` EngineCount int `json:"engine_count,omitempty"` ImageCount int `json:"image_count,omitempty"` ReservedCpus float64 `json:"reserved_cpus,omitempty"` ReservedMemory float64 `json:"reserved_memory,omitempty"` Version string `json:"version,omitempty"` }
type ConsoleSession ¶
type Event ¶
type Event struct { Type string `json:"type,omitempty"` ContainerInfo *dockerclient.ContainerInfo `json:"container_info,omitempty"` Time time.Time `json:"time,omitempty"` Message string `json:"message,omitempty"` Username string `json:"username,omitempty"` Tags []string `json:"tags,omitempty"` }
type Node ¶
type Node struct { ID string `json:"id,omitempty" gorethink:"id,omitempty"` Name string `json:"name,omitempty" gorethink:"name,omitempty"` Addr string `json:"addr,omitempty" gorethink:"addr,omitempty"` Containers string `json:"containers,omitempty"` ReservedCPUs string `json:"reserved_cpus,omitempty"` ReservedMemory string `json:"reserved_memory,omitempty"` Labels []string `json:"labels,omitempty"` ResponseTime float64 `json:"response_time" gorethink:"response_time,omitempty"` }
type Registry ¶
type Registry struct { ID string `json:"id,omitempty" gorethink:"id,omitempty"` Name string `json:"name,omitempty" gorethink:"name,omitempty"` Addr string `json:"addr,omitempty", gorethink:"addr,omitempty"` // contains filtered or unexported fields }
func NewRegistry ¶
func (*Registry) DeleteRepository ¶
func (*Registry) Repositories ¶
func (r *Registry) Repositories() ([]*registry.Repository, error)
func (*Registry) Repository ¶
func (r *Registry) Repository(name string) (*registry.Repository, error)
type Usage ¶
type Usage struct { ID string `json:"id,omitempty"` Version string `json:"version,omitempty"` NumOfEngines int `json:"num_of_engines,omitempty"` NumOfImages int `json:"num_of_images,omitempty"` NumOfContainers int `json:"num_of_containers,omitempty"` TotalCpus float64 `json:"total_cpus,omitempty"` TotalMemory float64 `json:"total_memory,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.