Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compose ¶
type Compose struct {
Containers map[string]*Containers `json:"containers"`
}
type Containers ¶
type Containers struct { AppKey string `json:"appkey" yaml:"appkey"` Parent []string `json:"parent" yaml:"parent"` Child []string `json:"child" yaml:"child"` Name string `json:"name" yaml:"name"` Image string `json:"image" yaml:"image"` Cid string `json:"id" yaml:"id"` Guid string `json:"guid" yaml:"guid"` Status string `json:"status" yaml:"status"` Runtime string `json:"runtime" yaml:"runtime"` Workdir string `json:"workdir" yaml:"workdir"` PortMap map[string]string `json:"ports" yaml:"ports"` EnvsKey map[string]string `json:"envs" yaml:"envs"` Cmd []string `json:"cmd" yaml:"cmd"` Tags []spongeregister.Tag `json:"tags"` ImagePullPolicy string `json:"imagePullPolicy" yaml:"imagePullPolicy"` Lifecycle map[string]string `json:"lifecycle" yaml:"lifecycle"` LivenessProbe map[string]string `json:"livenessProbe" yaml:"livenessProbe"` ReadinessProbe map[string]string `json:"readinessProbe" yaml:"readinessProbe"` Reasources map[string]string `json:"reasources" yaml:"reasources"` SecurityContext map[string]string `json:"securityContext" yaml:"securityContext"` TerminationMessagePath []string `json:"terminationMessagePath" yaml:"terminationMessagePath"` TerminationMessagePolicy []string `json:"terminationMessagePolicy" yaml:"terminationMessagePolicy"` VolumeMounts map[string]string `json:"volumeMounts" yaml:"volumeMounts"` }
func FromCompose ¶
func FromCompose(yamlStr string) ([]*Containers, error)
func (*Containers) DeepCopy ¶
func (r *Containers) DeepCopy() *Containers
type RunningBaseInfo ¶
type RunningBaseInfo struct { Guid string CID string ContainerName string Host string Port []string }
func (*RunningBaseInfo) DeepCopy ¶
func (receiver *RunningBaseInfo) DeepCopy() *RunningBaseInfo
Click to show internal directories.
Click to hide internal directories.