compose

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

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"`
}

func (*Compose) DeepCopy

func (receiver *Compose) DeepCopy() *Compose

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

Jump to

Keyboard shortcuts

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