v1

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// Name of the app.
	Name string `json:"name"`
	// State of the app, can be created, running, exited, or unknown.
	State AppState `json:"state"`
	// Creation time of the container, nanoseconds since epoch.
	CreatedAt *int64 `json:"created_at,omitempty"`
	// Start time of the container, nanoseconds since epoch.
	StartedAt *int64 `json:"started_at,omitempty"`
	// Finish time of the container, nanoseconds since epoch.
	FinishedAt *int64 `json:"finished_at,omitempty"`
	// Exit code of the container.
	ExitCode *int32 `json:"exit_code,omitempty"`
	// Image ID of the container.
	ImageID string `json:"image_id"`
	// Mount points of the container.
	Mounts []*Mount `json:"mounts,omitempty"`
	// User annotations of the container.
	UserAnnotations map[string]string `json:"user_annotations,omitempty"`
	// User labels of the container.
	UserLabels map[string]string `json:"user_labels,omitempty"`
}

App defines the app object.

type AppState

type AppState string

AppState defines the state of the app.

const (
	AppStateUnknown AppState = "unknown"
	AppStateCreated AppState = "created"
	AppStateRunning AppState = "running"
	AppStateExited  AppState = "exited"
)

type ImageListEntry

type ImageListEntry struct {
	// ID is the Image ID for this image
	ID string `json:"id"`
	// Name is the name of this image, such as example.com/some/image
	Name string `json:"name"`
	// ImportTime indicates when this image was imported in nanoseconds
	// since the unix epoch
	ImportTime int64 `json:"import_time"`
	// LastUsedTime indicates when was last used in nanoseconds since the
	// unix epoch
	LastUsedTime int64 `json:"last_used_time"`
	// Size is the size of this image in bytes
	Size int64 `json:"size"`
}

type Mount

type Mount struct {
	// Name of the mount.
	Name string `json:"name"`
	// Container path of the mount.
	ContainerPath string `json:"container_path"`
	// Host path of the mount.
	HostPath string `json:"host_path"`
	// Whether the mount is read-only.
	ReadOnly bool `json:"read_only"`
}

Mount defines the mount point.

type Pod

type Pod struct {
	// UUID of the pod.
	UUID string `json:"name"`
	// State of the pod, all valid values are defined in pkg/pod/pods.go.
	State string `json:"state"`
	// Networks are the information of the networks.
	Networks []netinfo.NetInfo `json:"networks,omitempty"`
	// AppNames are the names of the apps.
	// Deprecated: use Apps instead.
	AppNames []string `json:"app_names,omitempty"`
	// Apps holds current information about each app.
	Apps []*App `json:"apps,omitempty"`
	// The creation time of the pod.
	CreatedAt *int64 `json:"created_at,omitempty"`
	// The start time of the pod.
	StartedAt *int64 `json:"started_at,omitempty"`
	// UserAnnotations are the pod user annotations.
	UserAnnotations map[string]string `json:"user_annotations,omitempty"`
	// UserLabels are the pod user labels.
	UserLabels map[string]string `json:"user_labels,omitempty"`
}

Pod defines the pod object.

Jump to

Keyboard shortcuts

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