Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶ added in v0.5.0
type Container struct { Name string `json:"name"` ContainerID string `json:"containerID"` Image string `json:"image"` ImageID string `json:"imageID"` Commands []string `json:"commands"` Args []string `json:"args"` Workdir string `json:"workingDir"` Ports []ContainerPort `json:"ports"` Environment []EnvironmentVar `json:"env"` Volume []VolumeMount `json:"volumeMounts"` ImagePullPolicy string `json:"imagePullPolicy"` }
Pod JSON Data Structure
type ContainerInfo ¶ added in v0.5.0
type ContainerInfo struct { Name string `json:"name"` ContainerID string `json:"containerID"` PodID string `json:"podID"` Image string `json:"image"` ImageID string `json:"imageID"` Commands []string `json:"commands"` Args []string `json:"args"` Workdir string `json:"workingDir"` Ports []ContainerPort `json:"ports"` Environment []EnvironmentVar `json:"env"` Volume []VolumeMount `json:"volumeMounts"` ImagePullPolicy string `json:"imagePullPolicy"` Status ContainerStatus `json:"status"` }
type ContainerPort ¶ added in v0.5.0
type ContainerPort struct { Name string `json:"name"` HostPort int `json:"hostPort"` ContainerPort int `json:"containerPort"` Protocol string `json:"protocol"` HostIP string `json:"hostIP"` }
Container JSON Data Structure
type ContainerStatus ¶ added in v0.5.0
type ContainerStatus struct { Name string `json:"name"` ContainerID string `json:"containerID"` Phase string `json:"phase"` Waiting WaitingStatus `json:"waiting"` Running RunningStatus `json:"running"` Terminated TermStatus `json:"terminated"` }
type EnvironmentVar ¶ added in v0.5.0
type ImagePullConfig ¶ added in v0.5.0
type ImagePullConfig struct { MetaHeaders map[string][]string AuthConfig *cliconfig.AuthConfig }
type ImagePushConfig ¶ added in v0.5.0
type ImagePushConfig struct { MetaHeaders map[string][]string AuthConfig *cliconfig.AuthConfig Tag string }
type PodVolume ¶ added in v0.5.0
type PodVolume struct { Name string `json:"name"` HostPath string `json:"source"` Driver string `json:"driver"` Rbd RBDVolumeSource `json:"rbd"` }
type RBDVolumeSource ¶ added in v0.5.0
type RunningStatus ¶ added in v0.5.0
type RunningStatus struct {
StartedAt string `json:"startedAt"`
}
type TermStatus ¶ added in v0.5.0
type VolumeMount ¶ added in v0.5.0
type WaitingStatus ¶ added in v0.5.0
type WaitingStatus struct {
Reason string `json:"reason"`
}
Click to show internal directories.
Click to hide internal directories.