clireq

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListAll   = "true"
	DeleteAll = "true"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientRequest

type ClientRequest struct {
	DeleteAll     string               `json:"deleteAll"`
	ResourceType  string               `json:"version"`
	ListAll       string               `json:"list_all"`
	Guid          string               `json:"guid"`
	ContainerId   string               `json:"ContainerId"`
	ImageTag      string               `json:"imageTag"`
	ContainerName string               `json:"containerName"`
	Runtime       string               `json:"runtime"`
	Workdir       string               `json:"workdir"`
	Envs          map[string]string    `json:"envs"`
	Ports         map[string]string    `json:"ports"`
	Cmds          []string             `json:"cmds"`
	Tags          []spongeregister.Tag `json:"tags"`

	//新增 SERVE gitlab-runner字段
	ImagePullPolicy          string            `json:"imagePullPolicy"`
	Lifecycle                map[string]string `json:"lifecycle"`
	LivenessProbe            map[string]string `json:"livenessProbe"`
	ReadinessProbe           map[string]string `json:"readinessProbe"`
	Reasources               map[string]string `json:"reasources"`
	SecurityContext          map[string]string `json:"securityContext"`
	TerminationMessagePath   []string          `json:"terminationMessagePath"`
	TerminationMessagePolicy []string          `json:"terminationMessagePolicy"`
	VolumeMounts             map[string]string `json:"volumeMounts"`
}

type ClientResponse

type ClientResponse struct {
	Message       string   `json:"message"`
	Guid          string   `json:"guid"`
	ImageTag      string   `json:"imageTag"`
	ContainerName string   `json:"containerName"`
	ContainerId   string   `json:"ContainerId"`
	ContainerHost string   `json:"ContainerIp"`
	ContainerPort []string `json:"ContainerPorts"`
}

Jump to

Keyboard shortcuts

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