container

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	//
	//cluster id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//集群名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
	//
	//集群地址
	Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host" form:"host"`
	//
	//环境类型
	Environment string `protobuf:"bytes,4,opt,name=environment,proto3" json:"environment" form:"environment"`
	//
	//授权模式
	AuthMode string `protobuf:"bytes,5,opt,name=authMode,proto3" json:"authMode" form:"authMode"`
	//
	//管理账号
	AuthInfo *Cluster_AuthInfo `protobuf:"bytes,6,opt,name=authInfo,proto3" json:"authInfo" form:"authInfo"`
	//
	//证书信息
	TlsConfig *Cluster_TlsConfig `protobuf:"bytes,7,opt,name=tlsConfig,proto3" json:"tlsConfig" form:"tlsConfig"`
	//
	//默认 StorageClass
	DefaultStorageClass string `protobuf:"bytes,8,opt,name=defaultStorageClass,proto3" json:"defaultStorageClass" form:"defaultStorageClass"`
	//
	//备注
	Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description" form:"description"`
	//
	//来源
	Provider string `protobuf:"bytes,10,opt,name=provider,proto3" json:"provider" form:"provider"`
	//
	//创建时间,服务端自动生成
	Ctime                string   `protobuf:"bytes,11,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

集群

func (*Cluster) Descriptor

func (*Cluster) Descriptor() ([]byte, []int)

func (*Cluster) GetAuthInfo

func (m *Cluster) GetAuthInfo() *Cluster_AuthInfo

func (*Cluster) GetAuthMode

func (m *Cluster) GetAuthMode() string

func (*Cluster) GetCtime

func (m *Cluster) GetCtime() string

func (*Cluster) GetDefaultStorageClass

func (m *Cluster) GetDefaultStorageClass() string

func (*Cluster) GetDescription

func (m *Cluster) GetDescription() string

func (*Cluster) GetEnvironment

func (m *Cluster) GetEnvironment() string

func (*Cluster) GetHost

func (m *Cluster) GetHost() string

func (*Cluster) GetInstanceId

func (m *Cluster) GetInstanceId() string

func (*Cluster) GetName

func (m *Cluster) GetName() string

func (*Cluster) GetProvider

func (m *Cluster) GetProvider() string

func (*Cluster) GetTlsConfig

func (m *Cluster) GetTlsConfig() *Cluster_TlsConfig

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) Reset

func (m *Cluster) Reset()

func (*Cluster) String

func (m *Cluster) String() string

func (*Cluster) Validate

func (this *Cluster) Validate() error

func (*Cluster) XXX_DiscardUnknown

func (m *Cluster) XXX_DiscardUnknown()

func (*Cluster) XXX_Marshal

func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cluster) XXX_Merge

func (m *Cluster) XXX_Merge(src proto.Message)

func (*Cluster) XXX_Size

func (m *Cluster) XXX_Size() int

func (*Cluster) XXX_Unmarshal

func (m *Cluster) XXX_Unmarshal(b []byte) error

type Cluster_AuthInfo

type Cluster_AuthInfo struct {
	//
	//用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username" form:"username"`
	//
	//密码
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password" form:"password"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Cluster_AuthInfo) Descriptor

func (*Cluster_AuthInfo) Descriptor() ([]byte, []int)

func (*Cluster_AuthInfo) GetPassword

func (m *Cluster_AuthInfo) GetPassword() string

func (*Cluster_AuthInfo) GetUsername

func (m *Cluster_AuthInfo) GetUsername() string

func (*Cluster_AuthInfo) ProtoMessage

func (*Cluster_AuthInfo) ProtoMessage()

func (*Cluster_AuthInfo) Reset

func (m *Cluster_AuthInfo) Reset()

func (*Cluster_AuthInfo) String

func (m *Cluster_AuthInfo) String() string

func (*Cluster_AuthInfo) Validate

func (this *Cluster_AuthInfo) Validate() error

func (*Cluster_AuthInfo) XXX_DiscardUnknown

func (m *Cluster_AuthInfo) XXX_DiscardUnknown()

func (*Cluster_AuthInfo) XXX_Marshal

func (m *Cluster_AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cluster_AuthInfo) XXX_Merge

func (m *Cluster_AuthInfo) XXX_Merge(src proto.Message)

func (*Cluster_AuthInfo) XXX_Size

func (m *Cluster_AuthInfo) XXX_Size() int

func (*Cluster_AuthInfo) XXX_Unmarshal

func (m *Cluster_AuthInfo) XXX_Unmarshal(b []byte) error

type Cluster_TlsConfig

type Cluster_TlsConfig struct {
	//
	//客户端证书
	ClientCertificate string `protobuf:"bytes,1,opt,name=clientCertificate,proto3" json:"clientCertificate" form:"clientCertificate"`
	//
	//客户端Key
	ClientKey string `protobuf:"bytes,2,opt,name=clientKey,proto3" json:"clientKey" form:"clientKey"`
	//
	//集群证书
	ClusterCA            string   `protobuf:"bytes,3,opt,name=clusterCA,proto3" json:"clusterCA" form:"clusterCA"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Cluster_TlsConfig) Descriptor

func (*Cluster_TlsConfig) Descriptor() ([]byte, []int)

func (*Cluster_TlsConfig) GetClientCertificate

func (m *Cluster_TlsConfig) GetClientCertificate() string

func (*Cluster_TlsConfig) GetClientKey

func (m *Cluster_TlsConfig) GetClientKey() string

func (*Cluster_TlsConfig) GetClusterCA

func (m *Cluster_TlsConfig) GetClusterCA() string

func (*Cluster_TlsConfig) ProtoMessage

func (*Cluster_TlsConfig) ProtoMessage()

func (*Cluster_TlsConfig) Reset

func (m *Cluster_TlsConfig) Reset()

func (*Cluster_TlsConfig) String

func (m *Cluster_TlsConfig) String() string

func (*Cluster_TlsConfig) Validate

func (this *Cluster_TlsConfig) Validate() error

func (*Cluster_TlsConfig) XXX_DiscardUnknown

func (m *Cluster_TlsConfig) XXX_DiscardUnknown()

func (*Cluster_TlsConfig) XXX_Marshal

func (m *Cluster_TlsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cluster_TlsConfig) XXX_Merge

func (m *Cluster_TlsConfig) XXX_Merge(src proto.Message)

func (*Cluster_TlsConfig) XXX_Size

func (m *Cluster_TlsConfig) XXX_Size() int

func (*Cluster_TlsConfig) XXX_Unmarshal

func (m *Cluster_TlsConfig) XXX_Unmarshal(b []byte) error

type ConfigMap

type ConfigMap struct {
	//
	//configmap id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//k8s 资源类型, ConfigMap
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//configmap 全称,命名规则 clusterId:namespace:kind:name, 创建之后不能修改
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//命名空间, 创建之后不能修改
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
	//
	//名称
	ResourceName string `protobuf:"bytes,5,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
	//
	//别名
	DisplayName string `protobuf:"bytes,6,opt,name=displayName,proto3" json:"displayName" form:"displayName"`
	//
	//configmap, each key must consist of alphanumeric characters, '-', '_' or '.'
	Data *types.Struct `protobuf:"bytes,7,opt,name=data,proto3" json:"data" form:"data"`
	//
	//service 定义
	ResourceSpec string `protobuf:"bytes,8,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	//
	//注解, 后台使用
	Annotations *types.Struct `protobuf:"bytes,9,opt,name=annotations,proto3" json:"annotations" form:"annotations"`
	//
	//创建者, 服务端自动生成
	Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//cmdb 创建时间
	Ctime                string   `protobuf:"bytes,11,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ConfigMap holds configuration data for pods to consume.

func (*ConfigMap) Descriptor

func (*ConfigMap) Descriptor() ([]byte, []int)

func (*ConfigMap) GetAnnotations

func (m *ConfigMap) GetAnnotations() *types.Struct

func (*ConfigMap) GetCreator

func (m *ConfigMap) GetCreator() string

func (*ConfigMap) GetCtime

func (m *ConfigMap) GetCtime() string

func (*ConfigMap) GetData

func (m *ConfigMap) GetData() *types.Struct

func (*ConfigMap) GetDisplayName

func (m *ConfigMap) GetDisplayName() string

func (*ConfigMap) GetInstanceId

func (m *ConfigMap) GetInstanceId() string

func (*ConfigMap) GetKind

func (m *ConfigMap) GetKind() string

func (*ConfigMap) GetName

func (m *ConfigMap) GetName() string

func (*ConfigMap) GetNamespace

func (m *ConfigMap) GetNamespace() string

func (*ConfigMap) GetResourceName

func (m *ConfigMap) GetResourceName() string

func (*ConfigMap) GetResourceSpec

func (m *ConfigMap) GetResourceSpec() string

func (*ConfigMap) ProtoMessage

func (*ConfigMap) ProtoMessage()

func (*ConfigMap) Reset

func (m *ConfigMap) Reset()

func (*ConfigMap) String

func (m *ConfigMap) String() string

func (*ConfigMap) Validate

func (this *ConfigMap) Validate() error

func (*ConfigMap) XXX_DiscardUnknown

func (m *ConfigMap) XXX_DiscardUnknown()

func (*ConfigMap) XXX_Marshal

func (m *ConfigMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigMap) XXX_Merge

func (m *ConfigMap) XXX_Merge(src proto.Message)

func (*ConfigMap) XXX_Size

func (m *ConfigMap) XXX_Size() int

func (*ConfigMap) XXX_Unmarshal

func (m *ConfigMap) XXX_Unmarshal(b []byte) error

type ContainerConfig

type ContainerConfig struct {
	//
	//容器名称, 需符合RFC 1035规范
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//镜像
	Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image" form:"image"`
	//
	//工作目录
	WorkingDir string `protobuf:"bytes,3,opt,name=workingDir,proto3" json:"workingDir" form:"workingDir"`
	//
	//镜像拉取策略,默认为 IfNotPresent
	ImagePullPolicy string `protobuf:"bytes,4,opt,name=imagePullPolicy,proto3" json:"imagePullPolicy" form:"imagePullPolicy"`
	//
	//容器启动命令
	Command []string `protobuf:"bytes,5,rep,name=command,proto3" json:"command" form:"command"`
	//
	//容器启动命令参数
	Args []string `protobuf:"bytes,6,rep,name=args,proto3" json:"args" form:"args"`
	//
	//容器端口设置
	Ports []*ContainerPort `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports" form:"ports"`
	//
	//挂载到容器内部的存储卷配置
	VolumeMounts []*VolumeMount `protobuf:"bytes,8,rep,name=volumeMounts,proto3" json:"volumeMounts" form:"volumeMounts"`
	//
	//容器运行前需设置的环境变量
	Env []*EnvVar `protobuf:"bytes,9,rep,name=env,proto3" json:"env" form:"env"`
	//
	//最大资源限制和初始资源请求
	Resources *ResourceRequirements `protobuf:"bytes,10,opt,name=resources,proto3" json:"resources" form:"resources"`
	//
	//判断容器是否启动完成(running状态)
	ReadinessProbe *Probe `protobuf:"bytes,11,opt,name=readinessProbe,proto3" json:"readinessProbe" form:"readinessProbe"`
	//
	//判断容器是否存活(running状态), 一般复用 readinessProbe
	LivenessProbe        *Probe   `protobuf:"bytes,12,opt,name=livenessProbe,proto3" json:"livenessProbe" form:"livenessProbe"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

容器配置

func (*ContainerConfig) Descriptor

func (*ContainerConfig) Descriptor() ([]byte, []int)

func (*ContainerConfig) GetArgs

func (m *ContainerConfig) GetArgs() []string

func (*ContainerConfig) GetCommand

func (m *ContainerConfig) GetCommand() []string

func (*ContainerConfig) GetEnv

func (m *ContainerConfig) GetEnv() []*EnvVar

func (*ContainerConfig) GetImage

func (m *ContainerConfig) GetImage() string

func (*ContainerConfig) GetImagePullPolicy

func (m *ContainerConfig) GetImagePullPolicy() string

func (*ContainerConfig) GetLivenessProbe

func (m *ContainerConfig) GetLivenessProbe() *Probe

func (*ContainerConfig) GetName

func (m *ContainerConfig) GetName() string

func (*ContainerConfig) GetPorts

func (m *ContainerConfig) GetPorts() []*ContainerPort

func (*ContainerConfig) GetReadinessProbe

func (m *ContainerConfig) GetReadinessProbe() *Probe

func (*ContainerConfig) GetResources

func (m *ContainerConfig) GetResources() *ResourceRequirements

func (*ContainerConfig) GetVolumeMounts

func (m *ContainerConfig) GetVolumeMounts() []*VolumeMount

func (*ContainerConfig) GetWorkingDir

func (m *ContainerConfig) GetWorkingDir() string

func (*ContainerConfig) ProtoMessage

func (*ContainerConfig) ProtoMessage()

func (*ContainerConfig) Reset

func (m *ContainerConfig) Reset()

func (*ContainerConfig) String

func (m *ContainerConfig) String() string

func (*ContainerConfig) Validate

func (this *ContainerConfig) Validate() error

func (*ContainerConfig) XXX_DiscardUnknown

func (m *ContainerConfig) XXX_DiscardUnknown()

func (*ContainerConfig) XXX_Marshal

func (m *ContainerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerConfig) XXX_Merge

func (m *ContainerConfig) XXX_Merge(src proto.Message)

func (*ContainerConfig) XXX_Size

func (m *ContainerConfig) XXX_Size() int

func (*ContainerConfig) XXX_Unmarshal

func (m *ContainerConfig) XXX_Unmarshal(b []byte) error

type ContainerPort

type ContainerPort struct {
	//
	//端口名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//容器所在主机要监听的端口,默认与Container相同
	HostPort int32 `protobuf:"varint,2,opt,name=hostPort,proto3" json:"hostPort" form:"hostPort"`
	//
	//容器监听端口
	ContainerPort int32 `protobuf:"varint,3,opt,name=containerPort,proto3" json:"containerPort" form:"containerPort"`
	//
	//传输协议, 默认为 TCP
	Protocol             string   `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol" form:"protocol"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

容器端口设置

func (*ContainerPort) Descriptor

func (*ContainerPort) Descriptor() ([]byte, []int)

func (*ContainerPort) GetContainerPort

func (m *ContainerPort) GetContainerPort() int32

func (*ContainerPort) GetHostPort

func (m *ContainerPort) GetHostPort() int32

func (*ContainerPort) GetName

func (m *ContainerPort) GetName() string

func (*ContainerPort) GetProtocol

func (m *ContainerPort) GetProtocol() string

func (*ContainerPort) ProtoMessage

func (*ContainerPort) ProtoMessage()

func (*ContainerPort) Reset

func (m *ContainerPort) Reset()

func (*ContainerPort) String

func (m *ContainerPort) String() string

func (*ContainerPort) Validate

func (this *ContainerPort) Validate() error

func (*ContainerPort) XXX_DiscardUnknown

func (m *ContainerPort) XXX_DiscardUnknown()

func (*ContainerPort) XXX_Marshal

func (m *ContainerPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerPort) XXX_Merge

func (m *ContainerPort) XXX_Merge(src proto.Message)

func (*ContainerPort) XXX_Size

func (m *ContainerPort) XXX_Size() int

func (*ContainerPort) XXX_Unmarshal

func (m *ContainerPort) XXX_Unmarshal(b []byte) error

type DeploymentStatus

type DeploymentStatus struct {
	//
	//状态消息
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message" form:"message"`
	//
	//状态
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status" form:"status"`
	//
	//readyReplicas
	ReadyReplicas int32 `protobuf:"varint,3,opt,name=readyReplicas,proto3" json:"readyReplicas" form:"readyReplicas"`
	//
	//availableReplicas
	AvailableReplicas int32 `protobuf:"varint,4,opt,name=availableReplicas,proto3" json:"availableReplicas" form:"availableReplicas"`
	//
	//updatedReplicas
	UpdatedReplicas int32 `protobuf:"varint,5,opt,name=updatedReplicas,proto3" json:"updatedReplicas" form:"updatedReplicas"`
	//
	//副本数
	Replicas int32 `protobuf:"varint,6,opt,name=replicas,proto3" json:"replicas" form:"replicas"`
	//
	//deployment controller 观察到的版本变化次数
	ObservedGeneration int32 `protobuf:"varint,7,opt,name=observedGeneration,proto3" json:"observedGeneration" form:"observedGeneration"`
	//
	//deployment hash 冲突次数
	CollisionCount int32 `protobuf:"varint,8,opt,name=collisionCount,proto3" json:"collisionCount" form:"collisionCount"`
	//
	//deployment 最近状态
	Conditions           []*DeploymentStatus_Conditions `protobuf:"bytes,9,rep,name=conditions,proto3" json:"conditions" form:"conditions"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

Deployment 状态

func (*DeploymentStatus) Descriptor

func (*DeploymentStatus) Descriptor() ([]byte, []int)

func (*DeploymentStatus) GetAvailableReplicas

func (m *DeploymentStatus) GetAvailableReplicas() int32

func (*DeploymentStatus) GetCollisionCount

func (m *DeploymentStatus) GetCollisionCount() int32

func (*DeploymentStatus) GetConditions

func (m *DeploymentStatus) GetConditions() []*DeploymentStatus_Conditions

func (*DeploymentStatus) GetMessage

func (m *DeploymentStatus) GetMessage() string

func (*DeploymentStatus) GetObservedGeneration

func (m *DeploymentStatus) GetObservedGeneration() int32

func (*DeploymentStatus) GetReadyReplicas

func (m *DeploymentStatus) GetReadyReplicas() int32

func (*DeploymentStatus) GetReplicas

func (m *DeploymentStatus) GetReplicas() int32

func (*DeploymentStatus) GetStatus

func (m *DeploymentStatus) GetStatus() string

func (*DeploymentStatus) GetUpdatedReplicas

func (m *DeploymentStatus) GetUpdatedReplicas() int32

func (*DeploymentStatus) ProtoMessage

func (*DeploymentStatus) ProtoMessage()

func (*DeploymentStatus) Reset

func (m *DeploymentStatus) Reset()

func (*DeploymentStatus) String

func (m *DeploymentStatus) String() string

func (*DeploymentStatus) Validate

func (this *DeploymentStatus) Validate() error

func (*DeploymentStatus) XXX_DiscardUnknown

func (m *DeploymentStatus) XXX_DiscardUnknown()

func (*DeploymentStatus) XXX_Marshal

func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeploymentStatus) XXX_Merge

func (m *DeploymentStatus) XXX_Merge(src proto.Message)

func (*DeploymentStatus) XXX_Size

func (m *DeploymentStatus) XXX_Size() int

func (*DeploymentStatus) XXX_Unmarshal

func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error

type DeploymentStatus_Conditions

type DeploymentStatus_Conditions struct {
	//
	//状态类型
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
	//
	//状态的值
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status" form:"status"`
	//
	//最后状态更新时间
	LastUpdateTime string `protobuf:"bytes,3,opt,name=lastUpdateTime,proto3" json:"lastUpdateTime" form:"lastUpdateTime"`
	//
	//最后状态转换时间
	LastTransitionTime string `protobuf:"bytes,4,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime" form:"lastTransitionTime"`
	//
	//状态原因
	Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason" form:"reason"`
	//
	//可读状态原因
	Message              string   `protobuf:"bytes,6,opt,name=message,proto3" json:"message" form:"message"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeploymentStatus_Conditions) Descriptor

func (*DeploymentStatus_Conditions) Descriptor() ([]byte, []int)

func (*DeploymentStatus_Conditions) GetLastTransitionTime

func (m *DeploymentStatus_Conditions) GetLastTransitionTime() string

func (*DeploymentStatus_Conditions) GetLastUpdateTime

func (m *DeploymentStatus_Conditions) GetLastUpdateTime() string

func (*DeploymentStatus_Conditions) GetMessage

func (m *DeploymentStatus_Conditions) GetMessage() string

func (*DeploymentStatus_Conditions) GetReason

func (m *DeploymentStatus_Conditions) GetReason() string

func (*DeploymentStatus_Conditions) GetStatus

func (m *DeploymentStatus_Conditions) GetStatus() string

func (*DeploymentStatus_Conditions) GetType

func (m *DeploymentStatus_Conditions) GetType() string

func (*DeploymentStatus_Conditions) ProtoMessage

func (*DeploymentStatus_Conditions) ProtoMessage()

func (*DeploymentStatus_Conditions) Reset

func (m *DeploymentStatus_Conditions) Reset()

func (*DeploymentStatus_Conditions) String

func (m *DeploymentStatus_Conditions) String() string

func (*DeploymentStatus_Conditions) Validate

func (this *DeploymentStatus_Conditions) Validate() error

func (*DeploymentStatus_Conditions) XXX_DiscardUnknown

func (m *DeploymentStatus_Conditions) XXX_DiscardUnknown()

func (*DeploymentStatus_Conditions) XXX_Marshal

func (m *DeploymentStatus_Conditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeploymentStatus_Conditions) XXX_Merge

func (m *DeploymentStatus_Conditions) XXX_Merge(src proto.Message)

func (*DeploymentStatus_Conditions) XXX_Size

func (m *DeploymentStatus_Conditions) XXX_Size() int

func (*DeploymentStatus_Conditions) XXX_Unmarshal

func (m *DeploymentStatus_Conditions) XXX_Unmarshal(b []byte) error

type DeploymentStrategy

type DeploymentStrategy struct {
	//
	//更新策略
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
	//
	//rollingUpdate 参数
	RollingUpdate        *DeploymentStrategy_RollingUpdate `protobuf:"bytes,2,opt,name=rollingUpdate,proto3" json:"rollingUpdate" form:"rollingUpdate"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

deployment 更新策略, 目前只支持deployment, 扩展其它的就使用如 statefulStrategy, jobStrategy

func (*DeploymentStrategy) Descriptor

func (*DeploymentStrategy) Descriptor() ([]byte, []int)

func (*DeploymentStrategy) GetRollingUpdate

func (*DeploymentStrategy) GetType

func (m *DeploymentStrategy) GetType() string

func (*DeploymentStrategy) ProtoMessage

func (*DeploymentStrategy) ProtoMessage()

func (*DeploymentStrategy) Reset

func (m *DeploymentStrategy) Reset()

func (*DeploymentStrategy) String

func (m *DeploymentStrategy) String() string

func (*DeploymentStrategy) Validate

func (this *DeploymentStrategy) Validate() error

func (*DeploymentStrategy) XXX_DiscardUnknown

func (m *DeploymentStrategy) XXX_DiscardUnknown()

func (*DeploymentStrategy) XXX_Marshal

func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeploymentStrategy) XXX_Merge

func (m *DeploymentStrategy) XXX_Merge(src proto.Message)

func (*DeploymentStrategy) XXX_Size

func (m *DeploymentStrategy) XXX_Size() int

func (*DeploymentStrategy) XXX_Unmarshal

func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error

type DeploymentStrategy_RollingUpdate

type DeploymentStrategy_RollingUpdate struct {
	//
	//更新过程中 Pod 总数超过 Pod 期望副本个数的最大值, 使用个数,不使用百分比
	MaxSurge *types.Value `protobuf:"bytes,1,opt,name=maxSurge,proto3" json:"maxSurge" form:"maxSurge"`
	//
	//更新过程中不可用状态 Pod 数量的上限, 使用个数,不使用百分比
	MaxUnavailable       *types.Value `protobuf:"bytes,2,opt,name=maxUnavailable,proto3" json:"maxUnavailable" form:"maxUnavailable"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*DeploymentStrategy_RollingUpdate) Descriptor

func (*DeploymentStrategy_RollingUpdate) Descriptor() ([]byte, []int)

func (*DeploymentStrategy_RollingUpdate) GetMaxSurge

func (m *DeploymentStrategy_RollingUpdate) GetMaxSurge() *types.Value

func (*DeploymentStrategy_RollingUpdate) GetMaxUnavailable

func (m *DeploymentStrategy_RollingUpdate) GetMaxUnavailable() *types.Value

func (*DeploymentStrategy_RollingUpdate) ProtoMessage

func (*DeploymentStrategy_RollingUpdate) ProtoMessage()

func (*DeploymentStrategy_RollingUpdate) Reset

func (*DeploymentStrategy_RollingUpdate) String

func (*DeploymentStrategy_RollingUpdate) Validate

func (this *DeploymentStrategy_RollingUpdate) Validate() error

func (*DeploymentStrategy_RollingUpdate) XXX_DiscardUnknown

func (m *DeploymentStrategy_RollingUpdate) XXX_DiscardUnknown()

func (*DeploymentStrategy_RollingUpdate) XXX_Marshal

func (m *DeploymentStrategy_RollingUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeploymentStrategy_RollingUpdate) XXX_Merge

func (*DeploymentStrategy_RollingUpdate) XXX_Size

func (m *DeploymentStrategy_RollingUpdate) XXX_Size() int

func (*DeploymentStrategy_RollingUpdate) XXX_Unmarshal

func (m *DeploymentStrategy_RollingUpdate) XXX_Unmarshal(b []byte) error

type EnvVar

type EnvVar struct {
	//
	//变量名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//变量值
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

环境变量

func (*EnvVar) Descriptor

func (*EnvVar) Descriptor() ([]byte, []int)

func (*EnvVar) GetName

func (m *EnvVar) GetName() string

func (*EnvVar) GetValue

func (m *EnvVar) GetValue() string

func (*EnvVar) ProtoMessage

func (*EnvVar) ProtoMessage()

func (*EnvVar) Reset

func (m *EnvVar) Reset()

func (*EnvVar) String

func (m *EnvVar) String() string

func (*EnvVar) Validate

func (this *EnvVar) Validate() error

func (*EnvVar) XXX_DiscardUnknown

func (m *EnvVar) XXX_DiscardUnknown()

func (*EnvVar) XXX_Marshal

func (m *EnvVar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvVar) XXX_Merge

func (m *EnvVar) XXX_Merge(src proto.Message)

func (*EnvVar) XXX_Size

func (m *EnvVar) XXX_Size() int

func (*EnvVar) XXX_Unmarshal

func (m *EnvVar) XXX_Unmarshal(b []byte) error

type Event

type Event struct {
	//
	//元数据
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata" form:"metadata"`
	//
	//关联对象
	InvolvedObject *Event_InvolvedObject `protobuf:"bytes,2,opt,name=involvedObject,proto3" json:"involvedObject" form:"involvedObject"`
	//
	//简要原因
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason" form:"reason"`
	//
	//描述
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message" form:"message"`
	//
	//事件来源
	Source *Event_Source `protobuf:"bytes,5,opt,name=source,proto3" json:"source" form:"source"`
	//
	//首次发生时间
	FirstTimestamp string `protobuf:"bytes,6,opt,name=firstTimestamp,proto3" json:"firstTimestamp" form:"firstTimestamp"`
	//
	//最后发生时间
	LastTimestamp string `protobuf:"bytes,7,opt,name=lastTimestamp,proto3" json:"lastTimestamp" form:"lastTimestamp"`
	//
	//发生次数
	Count int32 `protobuf:"varint,8,opt,name=count,proto3" json:"count" form:"count"`
	//
	//类型
	Type string `protobuf:"bytes,9,opt,name=type,proto3" json:"type" form:"type"`
	//
	//首次观察到时间
	EventTime string `protobuf:"bytes,10,opt,name=eventTime,proto3" json:"eventTime" form:"eventTime"`
	//
	//series
	Series *Event_Series `protobuf:"bytes,11,opt,name=series,proto3" json:"series" form:"series"`
	//
	//处理动作
	Action string `protobuf:"bytes,12,opt,name=action,proto3" json:"action" form:"action"`
	//
	//发出此事件的控制器,例如:kubernetes.io/kubelet
	ReportingComponent string `protobuf:"bytes,13,opt,name=reportingComponent,proto3" json:"reportingComponent" form:"reportingComponent"`
	//
	//发出此事件的实例Id,例如:kubelet-xyzf
	ReportingInstance    string   `protobuf:"bytes,14,opt,name=reportingInstance,proto3" json:"reportingInstance" form:"reportingInstance"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

event 实例

func (*Event) Descriptor

func (*Event) Descriptor() ([]byte, []int)

func (*Event) GetAction

func (m *Event) GetAction() string

func (*Event) GetCount

func (m *Event) GetCount() int32

func (*Event) GetEventTime

func (m *Event) GetEventTime() string

func (*Event) GetFirstTimestamp

func (m *Event) GetFirstTimestamp() string

func (*Event) GetInvolvedObject

func (m *Event) GetInvolvedObject() *Event_InvolvedObject

func (*Event) GetLastTimestamp

func (m *Event) GetLastTimestamp() string

func (*Event) GetMessage

func (m *Event) GetMessage() string

func (*Event) GetMetadata

func (m *Event) GetMetadata() *Metadata

func (*Event) GetReason

func (m *Event) GetReason() string

func (*Event) GetReportingComponent

func (m *Event) GetReportingComponent() string

func (*Event) GetReportingInstance

func (m *Event) GetReportingInstance() string

func (*Event) GetSeries

func (m *Event) GetSeries() *Event_Series

func (*Event) GetSource

func (m *Event) GetSource() *Event_Source

func (*Event) GetType

func (m *Event) GetType() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) Validate

func (this *Event) Validate() error

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

type Event_InvolvedObject

type Event_InvolvedObject struct {
	//
	//kind
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//namespace
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
	//
	//name
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//uid
	Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid" form:"uid"`
	//
	//apiVersion
	ApiVersion string `protobuf:"bytes,5,opt,name=apiVersion,proto3" json:"apiVersion" form:"apiVersion"`
	//
	//resourceVersion
	ResourceVersion string `protobuf:"bytes,6,opt,name=resourceVersion,proto3" json:"resourceVersion" form:"resourceVersion"`
	//
	//fieldPath
	FieldPath            string   `protobuf:"bytes,7,opt,name=fieldPath,proto3" json:"fieldPath" form:"fieldPath"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Event_InvolvedObject) Descriptor

func (*Event_InvolvedObject) Descriptor() ([]byte, []int)

func (*Event_InvolvedObject) GetApiVersion

func (m *Event_InvolvedObject) GetApiVersion() string

func (*Event_InvolvedObject) GetFieldPath

func (m *Event_InvolvedObject) GetFieldPath() string

func (*Event_InvolvedObject) GetKind

func (m *Event_InvolvedObject) GetKind() string

func (*Event_InvolvedObject) GetName

func (m *Event_InvolvedObject) GetName() string

func (*Event_InvolvedObject) GetNamespace

func (m *Event_InvolvedObject) GetNamespace() string

func (*Event_InvolvedObject) GetResourceVersion

func (m *Event_InvolvedObject) GetResourceVersion() string

func (*Event_InvolvedObject) GetUid

func (m *Event_InvolvedObject) GetUid() string

func (*Event_InvolvedObject) ProtoMessage

func (*Event_InvolvedObject) ProtoMessage()

func (*Event_InvolvedObject) Reset

func (m *Event_InvolvedObject) Reset()

func (*Event_InvolvedObject) String

func (m *Event_InvolvedObject) String() string

func (*Event_InvolvedObject) Validate

func (this *Event_InvolvedObject) Validate() error

func (*Event_InvolvedObject) XXX_DiscardUnknown

func (m *Event_InvolvedObject) XXX_DiscardUnknown()

func (*Event_InvolvedObject) XXX_Marshal

func (m *Event_InvolvedObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event_InvolvedObject) XXX_Merge

func (m *Event_InvolvedObject) XXX_Merge(src proto.Message)

func (*Event_InvolvedObject) XXX_Size

func (m *Event_InvolvedObject) XXX_Size() int

func (*Event_InvolvedObject) XXX_Unmarshal

func (m *Event_InvolvedObject) XXX_Unmarshal(b []byte) error

type Event_Series

type Event_Series struct {
	//
	//count
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count" form:"count"`
	//
	//上次观察到时间
	LastObservedTime     string   `protobuf:"bytes,2,opt,name=lastObservedTime,proto3" json:"lastObservedTime" form:"lastObservedTime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Event_Series) Descriptor

func (*Event_Series) Descriptor() ([]byte, []int)

func (*Event_Series) GetCount

func (m *Event_Series) GetCount() int32

func (*Event_Series) GetLastObservedTime

func (m *Event_Series) GetLastObservedTime() string

func (*Event_Series) ProtoMessage

func (*Event_Series) ProtoMessage()

func (*Event_Series) Reset

func (m *Event_Series) Reset()

func (*Event_Series) String

func (m *Event_Series) String() string

func (*Event_Series) Validate

func (this *Event_Series) Validate() error

func (*Event_Series) XXX_DiscardUnknown

func (m *Event_Series) XXX_DiscardUnknown()

func (*Event_Series) XXX_Marshal

func (m *Event_Series) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event_Series) XXX_Merge

func (m *Event_Series) XXX_Merge(src proto.Message)

func (*Event_Series) XXX_Size

func (m *Event_Series) XXX_Size() int

func (*Event_Series) XXX_Unmarshal

func (m *Event_Series) XXX_Unmarshal(b []byte) error

type Event_Source

type Event_Source struct {
	//
	//component
	Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component" form:"component"`
	//
	//host
	Host                 string   `protobuf:"bytes,2,opt,name=host,proto3" json:"host" form:"host"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Event_Source) Descriptor

func (*Event_Source) Descriptor() ([]byte, []int)

func (*Event_Source) GetComponent

func (m *Event_Source) GetComponent() string

func (*Event_Source) GetHost

func (m *Event_Source) GetHost() string

func (*Event_Source) ProtoMessage

func (*Event_Source) ProtoMessage()

func (*Event_Source) Reset

func (m *Event_Source) Reset()

func (*Event_Source) String

func (m *Event_Source) String() string

func (*Event_Source) Validate

func (this *Event_Source) Validate() error

func (*Event_Source) XXX_DiscardUnknown

func (m *Event_Source) XXX_DiscardUnknown()

func (*Event_Source) XXX_Marshal

func (m *Event_Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event_Source) XXX_Merge

func (m *Event_Source) XXX_Merge(src proto.Message)

func (*Event_Source) XXX_Size

func (m *Event_Source) XXX_Size() int

func (*Event_Source) XXX_Unmarshal

func (m *Event_Source) XXX_Unmarshal(b []byte) error

type KeyToPath

type KeyToPath struct {
	//
	//要映射的key名称
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key" form:"key"`
	//
	//映射到容器内的路径
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path" form:"path"`
	//
	//文件权限, 0 - 0777, 默认 0644
	Mode                 int32    `protobuf:"varint,3,opt,name=mode,proto3" json:"mode" form:"mode"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

映射字段到volume里面的指定路径

func (*KeyToPath) Descriptor

func (*KeyToPath) Descriptor() ([]byte, []int)

func (*KeyToPath) GetKey

func (m *KeyToPath) GetKey() string

func (*KeyToPath) GetMode

func (m *KeyToPath) GetMode() int32

func (*KeyToPath) GetPath

func (m *KeyToPath) GetPath() string

func (*KeyToPath) ProtoMessage

func (*KeyToPath) ProtoMessage()

func (*KeyToPath) Reset

func (m *KeyToPath) Reset()

func (*KeyToPath) String

func (m *KeyToPath) String() string

func (*KeyToPath) Validate

func (this *KeyToPath) Validate() error

func (*KeyToPath) XXX_DiscardUnknown

func (m *KeyToPath) XXX_DiscardUnknown()

func (*KeyToPath) XXX_Marshal

func (m *KeyToPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyToPath) XXX_Merge

func (m *KeyToPath) XXX_Merge(src proto.Message)

func (*KeyToPath) XXX_Size

func (m *KeyToPath) XXX_Size() int

func (*KeyToPath) XXX_Unmarshal

func (m *KeyToPath) XXX_Unmarshal(b []byte) error

type LabelSelector

type LabelSelector struct {
	//
	//匹配标签
	MatchLabels *types.Struct `protobuf:"bytes,1,opt,name=matchLabels,proto3" json:"matchLabels" form:"matchLabels"`
	//
	//匹配表达式
	MatchExpressions     []*LabelSelector_MatchExpressions `protobuf:"bytes,2,rep,name=matchExpressions,proto3" json:"matchExpressions" form:"matchExpressions"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

labels 筛选器

func (*LabelSelector) Descriptor

func (*LabelSelector) Descriptor() ([]byte, []int)

func (*LabelSelector) GetMatchExpressions

func (m *LabelSelector) GetMatchExpressions() []*LabelSelector_MatchExpressions

func (*LabelSelector) GetMatchLabels

func (m *LabelSelector) GetMatchLabels() *types.Struct

func (*LabelSelector) ProtoMessage

func (*LabelSelector) ProtoMessage()

func (*LabelSelector) Reset

func (m *LabelSelector) Reset()

func (*LabelSelector) String

func (m *LabelSelector) String() string

func (*LabelSelector) Validate

func (this *LabelSelector) Validate() error

func (*LabelSelector) XXX_DiscardUnknown

func (m *LabelSelector) XXX_DiscardUnknown()

func (*LabelSelector) XXX_Marshal

func (m *LabelSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LabelSelector) XXX_Merge

func (m *LabelSelector) XXX_Merge(src proto.Message)

func (*LabelSelector) XXX_Size

func (m *LabelSelector) XXX_Size() int

func (*LabelSelector) XXX_Unmarshal

func (m *LabelSelector) XXX_Unmarshal(b []byte) error

type LabelSelector_MatchExpressions

type LabelSelector_MatchExpressions struct {
	//
	//匹配对象
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key" form:"key"`
	//
	//操作符
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator" form:"operator"`
	//
	//要匹配的值
	Values               []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values" form:"values"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LabelSelector_MatchExpressions) Descriptor

func (*LabelSelector_MatchExpressions) Descriptor() ([]byte, []int)

func (*LabelSelector_MatchExpressions) GetKey

func (*LabelSelector_MatchExpressions) GetOperator

func (m *LabelSelector_MatchExpressions) GetOperator() string

func (*LabelSelector_MatchExpressions) GetValues

func (m *LabelSelector_MatchExpressions) GetValues() []string

func (*LabelSelector_MatchExpressions) ProtoMessage

func (*LabelSelector_MatchExpressions) ProtoMessage()

func (*LabelSelector_MatchExpressions) Reset

func (m *LabelSelector_MatchExpressions) Reset()

func (*LabelSelector_MatchExpressions) String

func (*LabelSelector_MatchExpressions) Validate

func (this *LabelSelector_MatchExpressions) Validate() error

func (*LabelSelector_MatchExpressions) XXX_DiscardUnknown

func (m *LabelSelector_MatchExpressions) XXX_DiscardUnknown()

func (*LabelSelector_MatchExpressions) XXX_Marshal

func (m *LabelSelector_MatchExpressions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LabelSelector_MatchExpressions) XXX_Merge

func (m *LabelSelector_MatchExpressions) XXX_Merge(src proto.Message)

func (*LabelSelector_MatchExpressions) XXX_Size

func (m *LabelSelector_MatchExpressions) XXX_Size() int

func (*LabelSelector_MatchExpressions) XXX_Unmarshal

func (m *LabelSelector_MatchExpressions) XXX_Unmarshal(b []byte) error

type LocalObjectReference

type LocalObjectReference struct {
	//
	//名称
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

LocalObjectReference

func (*LocalObjectReference) Descriptor

func (*LocalObjectReference) Descriptor() ([]byte, []int)

func (*LocalObjectReference) GetName

func (m *LocalObjectReference) GetName() string

func (*LocalObjectReference) ProtoMessage

func (*LocalObjectReference) ProtoMessage()

func (*LocalObjectReference) Reset

func (m *LocalObjectReference) Reset()

func (*LocalObjectReference) String

func (m *LocalObjectReference) String() string

func (*LocalObjectReference) Validate

func (this *LocalObjectReference) Validate() error

func (*LocalObjectReference) XXX_DiscardUnknown

func (m *LocalObjectReference) XXX_DiscardUnknown()

func (*LocalObjectReference) XXX_Marshal

func (m *LocalObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalObjectReference) XXX_Merge

func (m *LocalObjectReference) XXX_Merge(src proto.Message)

func (*LocalObjectReference) XXX_Size

func (m *LocalObjectReference) XXX_Size() int

func (*LocalObjectReference) XXX_Unmarshal

func (m *LocalObjectReference) XXX_Unmarshal(b []byte) error

type Metadata

type Metadata struct {
	//
	//名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//名称空间
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
	//
	//创建时间
	CreationTimestamp string `protobuf:"bytes,3,opt,name=creationTimestamp,proto3" json:"creationTimestamp" form:"creationTimestamp"`
	//
	//注解
	Annotations *types.Struct `protobuf:"bytes,4,opt,name=annotations,proto3" json:"annotations" form:"annotations"`
	//
	//标签
	Labels               *types.Struct `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels" form:"labels"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

metadata

func (*Metadata) Descriptor

func (*Metadata) Descriptor() ([]byte, []int)

func (*Metadata) GetAnnotations

func (m *Metadata) GetAnnotations() *types.Struct

func (*Metadata) GetCreationTimestamp

func (m *Metadata) GetCreationTimestamp() string

func (*Metadata) GetLabels

func (m *Metadata) GetLabels() *types.Struct

func (*Metadata) GetName

func (m *Metadata) GetName() string

func (*Metadata) GetNamespace

func (m *Metadata) GetNamespace() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) Validate

func (this *Metadata) Validate() error

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metadata) XXX_Merge

func (m *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

func (m *Metadata) XXX_Unmarshal(b []byte) error

type Namespace

type Namespace struct {
	//
	//namespace id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//namespace 类型, 只能是 Namespace
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//namespace 全称,命名规则 clusterId:kind:resourceName, 创建之后不能修改
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//名称
	ResourceName string `protobuf:"bytes,4,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
	//
	//存放 resourceQuota 资源定义
	ResourceSpec string `protobuf:"bytes,5,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	//
	//namespace 状态
	Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status" form:"status"`
	//
	//namespace 描述
	Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description" form:"description"`
	//
	//是否是系统命名空间
	System bool `protobuf:"varint,8,opt,name=system,proto3" json:"system" form:"system"`
	//
	//创建者, 服务端自动生成
	Creator              string   `protobuf:"bytes,9,opt,name=creator,proto3" json:"creator" form:"creator"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Namespace 资源定义

func (*Namespace) Descriptor

func (*Namespace) Descriptor() ([]byte, []int)

func (*Namespace) GetCreator

func (m *Namespace) GetCreator() string

func (*Namespace) GetDescription

func (m *Namespace) GetDescription() string

func (*Namespace) GetInstanceId

func (m *Namespace) GetInstanceId() string

func (*Namespace) GetKind

func (m *Namespace) GetKind() string

func (*Namespace) GetName

func (m *Namespace) GetName() string

func (*Namespace) GetResourceName

func (m *Namespace) GetResourceName() string

func (*Namespace) GetResourceSpec

func (m *Namespace) GetResourceSpec() string

func (*Namespace) GetStatus

func (m *Namespace) GetStatus() string

func (*Namespace) GetSystem

func (m *Namespace) GetSystem() bool

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) Reset

func (m *Namespace) Reset()

func (*Namespace) String

func (m *Namespace) String() string

func (*Namespace) Validate

func (this *Namespace) Validate() error

func (*Namespace) XXX_DiscardUnknown

func (m *Namespace) XXX_DiscardUnknown()

func (*Namespace) XXX_Marshal

func (m *Namespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Namespace) XXX_Merge

func (m *Namespace) XXX_Merge(src proto.Message)

func (*Namespace) XXX_Size

func (m *Namespace) XXX_Size() int

func (*Namespace) XXX_Unmarshal

func (m *Namespace) XXX_Unmarshal(b []byte) error

type NodeDetail

type NodeDetail struct {
	//
	//元数据
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata" form:"metadata"`
	//
	//规格
	Spec *NodeDetail_Spec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec" form:"spec"`
	//
	//节点状态
	Status *NodeDetail_Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status" form:"status"`
	//
	//是否为worker节点
	Worker               bool     `protobuf:"varint,4,opt,name=worker,proto3" json:"worker" form:"worker"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

node 实例

func (*NodeDetail) Descriptor

func (*NodeDetail) Descriptor() ([]byte, []int)

func (*NodeDetail) GetMetadata

func (m *NodeDetail) GetMetadata() *Metadata

func (*NodeDetail) GetSpec

func (m *NodeDetail) GetSpec() *NodeDetail_Spec

func (*NodeDetail) GetStatus

func (m *NodeDetail) GetStatus() *NodeDetail_Status

func (*NodeDetail) GetWorker

func (m *NodeDetail) GetWorker() bool

func (*NodeDetail) ProtoMessage

func (*NodeDetail) ProtoMessage()

func (*NodeDetail) Reset

func (m *NodeDetail) Reset()

func (*NodeDetail) String

func (m *NodeDetail) String() string

func (*NodeDetail) Validate

func (this *NodeDetail) Validate() error

func (*NodeDetail) XXX_DiscardUnknown

func (m *NodeDetail) XXX_DiscardUnknown()

func (*NodeDetail) XXX_Marshal

func (m *NodeDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDetail) XXX_Merge

func (m *NodeDetail) XXX_Merge(src proto.Message)

func (*NodeDetail) XXX_Size

func (m *NodeDetail) XXX_Size() int

func (*NodeDetail) XXX_Unmarshal

func (m *NodeDetail) XXX_Unmarshal(b []byte) error

type NodeDetail_Spec

type NodeDetail_Spec struct {
	//
	//pod ID
	PodCIDR string `protobuf:"bytes,1,opt,name=podCIDR,proto3" json:"podCIDR" form:"podCIDR"`
	//
	//provider ID
	ProviderID string `protobuf:"bytes,2,opt,name=providerID,proto3" json:"providerID" form:"providerID"`
	//
	//是否可调度
	Unschedulable        bool     `protobuf:"varint,3,opt,name=unschedulable,proto3" json:"unschedulable" form:"unschedulable"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NodeDetail_Spec) Descriptor

func (*NodeDetail_Spec) Descriptor() ([]byte, []int)

func (*NodeDetail_Spec) GetPodCIDR

func (m *NodeDetail_Spec) GetPodCIDR() string

func (*NodeDetail_Spec) GetProviderID

func (m *NodeDetail_Spec) GetProviderID() string

func (*NodeDetail_Spec) GetUnschedulable

func (m *NodeDetail_Spec) GetUnschedulable() bool

func (*NodeDetail_Spec) ProtoMessage

func (*NodeDetail_Spec) ProtoMessage()

func (*NodeDetail_Spec) Reset

func (m *NodeDetail_Spec) Reset()

func (*NodeDetail_Spec) String

func (m *NodeDetail_Spec) String() string

func (*NodeDetail_Spec) Validate

func (this *NodeDetail_Spec) Validate() error

func (*NodeDetail_Spec) XXX_DiscardUnknown

func (m *NodeDetail_Spec) XXX_DiscardUnknown()

func (*NodeDetail_Spec) XXX_Marshal

func (m *NodeDetail_Spec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDetail_Spec) XXX_Merge

func (m *NodeDetail_Spec) XXX_Merge(src proto.Message)

func (*NodeDetail_Spec) XXX_Size

func (m *NodeDetail_Spec) XXX_Size() int

func (*NodeDetail_Spec) XXX_Unmarshal

func (m *NodeDetail_Spec) XXX_Unmarshal(b []byte) error

type NodeDetail_Status

type NodeDetail_Status struct {
	//
	//容量
	Capacity *NodeDetail_Status_Capacity `protobuf:"bytes,1,opt,name=capacity,proto3" json:"capacity" form:"capacity"`
	//
	//可分配容量
	Allocatable *NodeDetail_Status_Allocatable `protobuf:"bytes,2,opt,name=allocatable,proto3" json:"allocatable" form:"allocatable"`
	//
	//阶段
	Phase string `protobuf:"bytes,3,opt,name=phase,proto3" json:"phase" form:"phase"`
	//
	//节点信息
	NodeInfo             *NodeDetail_Status_NodeInfo `protobuf:"bytes,4,opt,name=nodeInfo,proto3" json:"nodeInfo" form:"nodeInfo"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*NodeDetail_Status) Descriptor

func (*NodeDetail_Status) Descriptor() ([]byte, []int)

func (*NodeDetail_Status) GetAllocatable

func (m *NodeDetail_Status) GetAllocatable() *NodeDetail_Status_Allocatable

func (*NodeDetail_Status) GetCapacity

func (*NodeDetail_Status) GetNodeInfo

func (*NodeDetail_Status) GetPhase

func (m *NodeDetail_Status) GetPhase() string

func (*NodeDetail_Status) ProtoMessage

func (*NodeDetail_Status) ProtoMessage()

func (*NodeDetail_Status) Reset

func (m *NodeDetail_Status) Reset()

func (*NodeDetail_Status) String

func (m *NodeDetail_Status) String() string

func (*NodeDetail_Status) Validate

func (this *NodeDetail_Status) Validate() error

func (*NodeDetail_Status) XXX_DiscardUnknown

func (m *NodeDetail_Status) XXX_DiscardUnknown()

func (*NodeDetail_Status) XXX_Marshal

func (m *NodeDetail_Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDetail_Status) XXX_Merge

func (m *NodeDetail_Status) XXX_Merge(src proto.Message)

func (*NodeDetail_Status) XXX_Size

func (m *NodeDetail_Status) XXX_Size() int

func (*NodeDetail_Status) XXX_Unmarshal

func (m *NodeDetail_Status) XXX_Unmarshal(b []byte) error

type NodeDetail_Status_Allocatable

type NodeDetail_Status_Allocatable struct {
	//
	//cpu
	Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu" form:"cpu"`
	//
	//memory
	Memory string `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory" form:"memory"`
	//
	//pod数
	Pods                 string   `protobuf:"bytes,3,opt,name=pods,proto3" json:"pods" form:"pods"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NodeDetail_Status_Allocatable) Descriptor

func (*NodeDetail_Status_Allocatable) Descriptor() ([]byte, []int)

func (*NodeDetail_Status_Allocatable) GetCpu

func (*NodeDetail_Status_Allocatable) GetMemory

func (m *NodeDetail_Status_Allocatable) GetMemory() string

func (*NodeDetail_Status_Allocatable) GetPods

func (*NodeDetail_Status_Allocatable) ProtoMessage

func (*NodeDetail_Status_Allocatable) ProtoMessage()

func (*NodeDetail_Status_Allocatable) Reset

func (m *NodeDetail_Status_Allocatable) Reset()

func (*NodeDetail_Status_Allocatable) String

func (*NodeDetail_Status_Allocatable) Validate

func (this *NodeDetail_Status_Allocatable) Validate() error

func (*NodeDetail_Status_Allocatable) XXX_DiscardUnknown

func (m *NodeDetail_Status_Allocatable) XXX_DiscardUnknown()

func (*NodeDetail_Status_Allocatable) XXX_Marshal

func (m *NodeDetail_Status_Allocatable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDetail_Status_Allocatable) XXX_Merge

func (m *NodeDetail_Status_Allocatable) XXX_Merge(src proto.Message)

func (*NodeDetail_Status_Allocatable) XXX_Size

func (m *NodeDetail_Status_Allocatable) XXX_Size() int

func (*NodeDetail_Status_Allocatable) XXX_Unmarshal

func (m *NodeDetail_Status_Allocatable) XXX_Unmarshal(b []byte) error

type NodeDetail_Status_Capacity

type NodeDetail_Status_Capacity struct {
	//
	//cpu
	Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu" form:"cpu"`
	//
	//memory
	Memory string `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory" form:"memory"`
	//
	//pod数
	Pods string `protobuf:"bytes,3,opt,name=pods,proto3" json:"pods" form:"pods"`
	//
	//临时存储
	EphemeralStorage     string   `protobuf:"bytes,4,opt,name=ephemeralStorage,proto3" json:"ephemeralStorage" form:"ephemeralStorage"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NodeDetail_Status_Capacity) Descriptor

func (*NodeDetail_Status_Capacity) Descriptor() ([]byte, []int)

func (*NodeDetail_Status_Capacity) GetCpu

func (m *NodeDetail_Status_Capacity) GetCpu() string

func (*NodeDetail_Status_Capacity) GetEphemeralStorage

func (m *NodeDetail_Status_Capacity) GetEphemeralStorage() string

func (*NodeDetail_Status_Capacity) GetMemory

func (m *NodeDetail_Status_Capacity) GetMemory() string

func (*NodeDetail_Status_Capacity) GetPods

func (m *NodeDetail_Status_Capacity) GetPods() string

func (*NodeDetail_Status_Capacity) ProtoMessage

func (*NodeDetail_Status_Capacity) ProtoMessage()

func (*NodeDetail_Status_Capacity) Reset

func (m *NodeDetail_Status_Capacity) Reset()

func (*NodeDetail_Status_Capacity) String

func (m *NodeDetail_Status_Capacity) String() string

func (*NodeDetail_Status_Capacity) Validate

func (this *NodeDetail_Status_Capacity) Validate() error

func (*NodeDetail_Status_Capacity) XXX_DiscardUnknown

func (m *NodeDetail_Status_Capacity) XXX_DiscardUnknown()

func (*NodeDetail_Status_Capacity) XXX_Marshal

func (m *NodeDetail_Status_Capacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDetail_Status_Capacity) XXX_Merge

func (m *NodeDetail_Status_Capacity) XXX_Merge(src proto.Message)

func (*NodeDetail_Status_Capacity) XXX_Size

func (m *NodeDetail_Status_Capacity) XXX_Size() int

func (*NodeDetail_Status_Capacity) XXX_Unmarshal

func (m *NodeDetail_Status_Capacity) XXX_Unmarshal(b []byte) error

type NodeDetail_Status_NodeInfo

type NodeDetail_Status_NodeInfo struct {
	//
	//机器ID
	MachineID string `protobuf:"bytes,1,opt,name=machineID,proto3" json:"machineID" form:"machineID"`
	//
	//systemUUID, 专用于Red Hat
	SystemUUID string `protobuf:"bytes,2,opt,name=systemUUID,proto3" json:"systemUUID" form:"systemUUID"`
	//
	//Boot ID reported by the node.
	BootID string `protobuf:"bytes,3,opt,name=bootID,proto3" json:"bootID" form:"bootID"`
	//
	//内核版本
	KernelVersion string `protobuf:"bytes,4,opt,name=kernelVersion,proto3" json:"kernelVersion" form:"kernelVersion"`
	//
	//镜像
	OsImage string `protobuf:"bytes,5,opt,name=osImage,proto3" json:"osImage" form:"osImage"`
	//
	//容器版本,如:docker://1.5.0
	ContainerRuntimeVersion string `protobuf:"bytes,6,opt,name=containerRuntimeVersion,proto3" json:"containerRuntimeVersion" form:"containerRuntimeVersion"`
	//
	//kubeletVersion
	KubeletVersion string `protobuf:"bytes,7,opt,name=kubeletVersion,proto3" json:"kubeletVersion" form:"kubeletVersion"`
	//
	//kubeProxyVersion
	KubeProxyVersion string `protobuf:"bytes,8,opt,name=kubeProxyVersion,proto3" json:"kubeProxyVersion" form:"kubeProxyVersion"`
	//
	//操作系统
	OperatingSystem string `protobuf:"bytes,9,opt,name=operatingSystem,proto3" json:"operatingSystem" form:"operatingSystem"`
	//
	//系统架构
	Architecture         string   `protobuf:"bytes,10,opt,name=architecture,proto3" json:"architecture" form:"architecture"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NodeDetail_Status_NodeInfo) Descriptor

func (*NodeDetail_Status_NodeInfo) Descriptor() ([]byte, []int)

func (*NodeDetail_Status_NodeInfo) GetArchitecture

func (m *NodeDetail_Status_NodeInfo) GetArchitecture() string

func (*NodeDetail_Status_NodeInfo) GetBootID

func (m *NodeDetail_Status_NodeInfo) GetBootID() string

func (*NodeDetail_Status_NodeInfo) GetContainerRuntimeVersion

func (m *NodeDetail_Status_NodeInfo) GetContainerRuntimeVersion() string

func (*NodeDetail_Status_NodeInfo) GetKernelVersion

func (m *NodeDetail_Status_NodeInfo) GetKernelVersion() string

func (*NodeDetail_Status_NodeInfo) GetKubeProxyVersion

func (m *NodeDetail_Status_NodeInfo) GetKubeProxyVersion() string

func (*NodeDetail_Status_NodeInfo) GetKubeletVersion

func (m *NodeDetail_Status_NodeInfo) GetKubeletVersion() string

func (*NodeDetail_Status_NodeInfo) GetMachineID

func (m *NodeDetail_Status_NodeInfo) GetMachineID() string

func (*NodeDetail_Status_NodeInfo) GetOperatingSystem

func (m *NodeDetail_Status_NodeInfo) GetOperatingSystem() string

func (*NodeDetail_Status_NodeInfo) GetOsImage

func (m *NodeDetail_Status_NodeInfo) GetOsImage() string

func (*NodeDetail_Status_NodeInfo) GetSystemUUID

func (m *NodeDetail_Status_NodeInfo) GetSystemUUID() string

func (*NodeDetail_Status_NodeInfo) ProtoMessage

func (*NodeDetail_Status_NodeInfo) ProtoMessage()

func (*NodeDetail_Status_NodeInfo) Reset

func (m *NodeDetail_Status_NodeInfo) Reset()

func (*NodeDetail_Status_NodeInfo) String

func (m *NodeDetail_Status_NodeInfo) String() string

func (*NodeDetail_Status_NodeInfo) Validate

func (this *NodeDetail_Status_NodeInfo) Validate() error

func (*NodeDetail_Status_NodeInfo) XXX_DiscardUnknown

func (m *NodeDetail_Status_NodeInfo) XXX_DiscardUnknown()

func (*NodeDetail_Status_NodeInfo) XXX_Marshal

func (m *NodeDetail_Status_NodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDetail_Status_NodeInfo) XXX_Merge

func (m *NodeDetail_Status_NodeInfo) XXX_Merge(src proto.Message)

func (*NodeDetail_Status_NodeInfo) XXX_Size

func (m *NodeDetail_Status_NodeInfo) XXX_Size() int

func (*NodeDetail_Status_NodeInfo) XXX_Unmarshal

func (m *NodeDetail_Status_NodeInfo) XXX_Unmarshal(b []byte) error

type PersistentVolumeClaim

type PersistentVolumeClaim struct {
	//
	//PVC id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//PVC 类型, 只能是 PersistentVolumeClaim
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//PVC 全称,命名规则 clusterId:kind:namespace:name, 创建之后不能修改
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//原始名称
	ResourceName string `protobuf:"bytes,4,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
	//
	//PVC 定义
	ResourceSpec string `protobuf:"bytes,5,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	//
	//存储容量, 如:8Gi, 800Mi
	Storage string `protobuf:"bytes,6,opt,name=storage,proto3" json:"storage" form:"storage"`
	//
	//访问模式
	AccessModes []string `protobuf:"bytes,7,rep,name=accessModes,proto3" json:"accessModes" form:"accessModes"`
	//
	//命名空间, 创建之后不能修改
	Namespace string `protobuf:"bytes,8,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
	//
	//存储类, 创建之后不能修改
	StorageClass string `protobuf:"bytes,9,opt,name=storageClass,proto3" json:"storageClass" form:"storageClass"`
	//
	//创建时间
	CreationTimestamp string `protobuf:"bytes,10,opt,name=creationTimestamp,proto3" json:"creationTimestamp" form:"creationTimestamp"`
	//
	//状态
	Phase                string   `protobuf:"bytes,11,opt,name=phase,proto3" json:"phase" form:"phase"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PersistentVolumeClaim 资源定义, 用于 CMDB 存储

func (*PersistentVolumeClaim) Descriptor

func (*PersistentVolumeClaim) Descriptor() ([]byte, []int)

func (*PersistentVolumeClaim) GetAccessModes

func (m *PersistentVolumeClaim) GetAccessModes() []string

func (*PersistentVolumeClaim) GetCreationTimestamp

func (m *PersistentVolumeClaim) GetCreationTimestamp() string

func (*PersistentVolumeClaim) GetInstanceId

func (m *PersistentVolumeClaim) GetInstanceId() string

func (*PersistentVolumeClaim) GetKind

func (m *PersistentVolumeClaim) GetKind() string

func (*PersistentVolumeClaim) GetName

func (m *PersistentVolumeClaim) GetName() string

func (*PersistentVolumeClaim) GetNamespace

func (m *PersistentVolumeClaim) GetNamespace() string

func (*PersistentVolumeClaim) GetPhase

func (m *PersistentVolumeClaim) GetPhase() string

func (*PersistentVolumeClaim) GetResourceName

func (m *PersistentVolumeClaim) GetResourceName() string

func (*PersistentVolumeClaim) GetResourceSpec

func (m *PersistentVolumeClaim) GetResourceSpec() string

func (*PersistentVolumeClaim) GetStorage

func (m *PersistentVolumeClaim) GetStorage() string

func (*PersistentVolumeClaim) GetStorageClass

func (m *PersistentVolumeClaim) GetStorageClass() string

func (*PersistentVolumeClaim) ProtoMessage

func (*PersistentVolumeClaim) ProtoMessage()

func (*PersistentVolumeClaim) Reset

func (m *PersistentVolumeClaim) Reset()

func (*PersistentVolumeClaim) String

func (m *PersistentVolumeClaim) String() string

func (*PersistentVolumeClaim) Validate

func (this *PersistentVolumeClaim) Validate() error

func (*PersistentVolumeClaim) XXX_DiscardUnknown

func (m *PersistentVolumeClaim) XXX_DiscardUnknown()

func (*PersistentVolumeClaim) XXX_Marshal

func (m *PersistentVolumeClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PersistentVolumeClaim) XXX_Merge

func (m *PersistentVolumeClaim) XXX_Merge(src proto.Message)

func (*PersistentVolumeClaim) XXX_Size

func (m *PersistentVolumeClaim) XXX_Size() int

func (*PersistentVolumeClaim) XXX_Unmarshal

func (m *PersistentVolumeClaim) XXX_Unmarshal(b []byte) error

type PodDetail

type PodDetail struct {
	//
	//元数据
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata" form:"metadata"`
	//
	//状态
	Status               *PodStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status" form:"status"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Pod 实例

func (*PodDetail) Descriptor

func (*PodDetail) Descriptor() ([]byte, []int)

func (*PodDetail) GetMetadata

func (m *PodDetail) GetMetadata() *Metadata

func (*PodDetail) GetStatus

func (m *PodDetail) GetStatus() *PodStatus

func (*PodDetail) ProtoMessage

func (*PodDetail) ProtoMessage()

func (*PodDetail) Reset

func (m *PodDetail) Reset()

func (*PodDetail) String

func (m *PodDetail) String() string

func (*PodDetail) Validate

func (this *PodDetail) Validate() error

func (*PodDetail) XXX_DiscardUnknown

func (m *PodDetail) XXX_DiscardUnknown()

func (*PodDetail) XXX_Marshal

func (m *PodDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodDetail) XXX_Merge

func (m *PodDetail) XXX_Merge(src proto.Message)

func (*PodDetail) XXX_Size

func (m *PodDetail) XXX_Size() int

func (*PodDetail) XXX_Unmarshal

func (m *PodDetail) XXX_Unmarshal(b []byte) error

type PodStatus

type PodStatus struct {
	//
	//状态
	Phase string `protobuf:"bytes,1,opt,name=phase,proto3" json:"phase" form:"phase"`
	//
	//状态消息
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message" form:"message"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Pod 状态

func (*PodStatus) Descriptor

func (*PodStatus) Descriptor() ([]byte, []int)

func (*PodStatus) GetMessage

func (m *PodStatus) GetMessage() string

func (*PodStatus) GetPhase

func (m *PodStatus) GetPhase() string

func (*PodStatus) ProtoMessage

func (*PodStatus) ProtoMessage()

func (*PodStatus) Reset

func (m *PodStatus) Reset()

func (*PodStatus) String

func (m *PodStatus) String() string

func (*PodStatus) Validate

func (this *PodStatus) Validate() error

func (*PodStatus) XXX_DiscardUnknown

func (m *PodStatus) XXX_DiscardUnknown()

func (*PodStatus) XXX_Marshal

func (m *PodStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodStatus) XXX_Merge

func (m *PodStatus) XXX_Merge(src proto.Message)

func (*PodStatus) XXX_Size

func (m *PodStatus) XXX_Size() int

func (*PodStatus) XXX_Unmarshal

func (m *PodStatus) XXX_Unmarshal(b []byte) error

type Probe

type Probe struct {
	//
	//探测方式
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
	//
	//exec
	Exec *Probe_Exec `protobuf:"bytes,2,opt,name=exec,proto3" json:"exec" form:"exec"`
	//
	//httpGet 探测方式
	HttpGet *Probe_HttpGet `protobuf:"bytes,3,opt,name=httpGet,proto3" json:"httpGet" form:"httpGet"`
	//
	//tcpSocket
	TcpSocket *Probe_TcpSocket `protobuf:"bytes,4,opt,name=tcpSocket,proto3" json:"tcpSocket" form:"tcpSocket"`
	//
	//容器启动完成后首次探测时间, 单位s
	InitialDelaySeconds int32 `protobuf:"varint,5,opt,name=initialDelaySeconds,proto3" json:"initialDelaySeconds" form:"initialDelaySeconds"`
	//
	//对容器进行健康检查探测等待响应时间, 默认1s
	TimeoutSeconds int32 `protobuf:"varint,6,opt,name=timeoutSeconds,proto3" json:"timeoutSeconds" form:"timeoutSeconds"`
	//
	//对容器健康检查检查间隔,默认10s一次
	PeriodSeconds int32 `protobuf:"varint,7,opt,name=periodSeconds,proto3" json:"periodSeconds" form:"periodSeconds"`
	//
	//探测成功多少次后,认为成功
	SuccessThreshold int32 `protobuf:"varint,8,opt,name=successThreshold,proto3" json:"successThreshold" form:"successThreshold"`
	//
	//探测失败多少次后,认为失败
	FailureThreshold     int32    `protobuf:"varint,9,opt,name=failureThreshold,proto3" json:"failureThreshold" form:"failureThreshold"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Pod 健康检查

func (*Probe) Descriptor

func (*Probe) Descriptor() ([]byte, []int)

func (*Probe) GetExec

func (m *Probe) GetExec() *Probe_Exec

func (*Probe) GetFailureThreshold

func (m *Probe) GetFailureThreshold() int32

func (*Probe) GetHttpGet

func (m *Probe) GetHttpGet() *Probe_HttpGet

func (*Probe) GetInitialDelaySeconds

func (m *Probe) GetInitialDelaySeconds() int32

func (*Probe) GetPeriodSeconds

func (m *Probe) GetPeriodSeconds() int32

func (*Probe) GetSuccessThreshold

func (m *Probe) GetSuccessThreshold() int32

func (*Probe) GetTcpSocket

func (m *Probe) GetTcpSocket() *Probe_TcpSocket

func (*Probe) GetTimeoutSeconds

func (m *Probe) GetTimeoutSeconds() int32

func (*Probe) GetType

func (m *Probe) GetType() string

func (*Probe) ProtoMessage

func (*Probe) ProtoMessage()

func (*Probe) Reset

func (m *Probe) Reset()

func (*Probe) String

func (m *Probe) String() string

func (*Probe) Validate

func (this *Probe) Validate() error

func (*Probe) XXX_DiscardUnknown

func (m *Probe) XXX_DiscardUnknown()

func (*Probe) XXX_Marshal

func (m *Probe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Probe) XXX_Merge

func (m *Probe) XXX_Merge(src proto.Message)

func (*Probe) XXX_Size

func (m *Probe) XXX_Size() int

func (*Probe) XXX_Unmarshal

func (m *Probe) XXX_Unmarshal(b []byte) error

type Probe_Exec

type Probe_Exec struct {
	//
	//exec 探测方式,检查命令
	Command              []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command" form:"command"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Probe_Exec) Descriptor

func (*Probe_Exec) Descriptor() ([]byte, []int)

func (*Probe_Exec) GetCommand

func (m *Probe_Exec) GetCommand() []string

func (*Probe_Exec) ProtoMessage

func (*Probe_Exec) ProtoMessage()

func (*Probe_Exec) Reset

func (m *Probe_Exec) Reset()

func (*Probe_Exec) String

func (m *Probe_Exec) String() string

func (*Probe_Exec) Validate

func (this *Probe_Exec) Validate() error

func (*Probe_Exec) XXX_DiscardUnknown

func (m *Probe_Exec) XXX_DiscardUnknown()

func (*Probe_Exec) XXX_Marshal

func (m *Probe_Exec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Probe_Exec) XXX_Merge

func (m *Probe_Exec) XXX_Merge(src proto.Message)

func (*Probe_Exec) XXX_Size

func (m *Probe_Exec) XXX_Size() int

func (*Probe_Exec) XXX_Unmarshal

func (m *Probe_Exec) XXX_Unmarshal(b []byte) error

type Probe_HttpGet

type Probe_HttpGet struct {
	//
	//uri
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path" form:"path"`
	//
	//端口
	Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port" form:"port"`
	//
	//域名
	Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host" form:"host"`
	//
	//http协议
	Schema string `protobuf:"bytes,4,opt,name=schema,proto3" json:"schema" form:"schema"`
	//
	//http 请求头
	HttpHeaders          []*Probe_HttpGet_HttpHeaders `protobuf:"bytes,5,rep,name=httpHeaders,proto3" json:"httpHeaders" form:"httpHeaders"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (*Probe_HttpGet) Descriptor

func (*Probe_HttpGet) Descriptor() ([]byte, []int)

func (*Probe_HttpGet) GetHost

func (m *Probe_HttpGet) GetHost() string

func (*Probe_HttpGet) GetHttpHeaders

func (m *Probe_HttpGet) GetHttpHeaders() []*Probe_HttpGet_HttpHeaders

func (*Probe_HttpGet) GetPath

func (m *Probe_HttpGet) GetPath() string

func (*Probe_HttpGet) GetPort

func (m *Probe_HttpGet) GetPort() int32

func (*Probe_HttpGet) GetSchema

func (m *Probe_HttpGet) GetSchema() string

func (*Probe_HttpGet) ProtoMessage

func (*Probe_HttpGet) ProtoMessage()

func (*Probe_HttpGet) Reset

func (m *Probe_HttpGet) Reset()

func (*Probe_HttpGet) String

func (m *Probe_HttpGet) String() string

func (*Probe_HttpGet) Validate

func (this *Probe_HttpGet) Validate() error

func (*Probe_HttpGet) XXX_DiscardUnknown

func (m *Probe_HttpGet) XXX_DiscardUnknown()

func (*Probe_HttpGet) XXX_Marshal

func (m *Probe_HttpGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Probe_HttpGet) XXX_Merge

func (m *Probe_HttpGet) XXX_Merge(src proto.Message)

func (*Probe_HttpGet) XXX_Size

func (m *Probe_HttpGet) XXX_Size() int

func (*Probe_HttpGet) XXX_Unmarshal

func (m *Probe_HttpGet) XXX_Unmarshal(b []byte) error

type Probe_HttpGet_HttpHeaders

type Probe_HttpGet_HttpHeaders struct {
	//
	//变量名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//变量值
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Probe_HttpGet_HttpHeaders) Descriptor

func (*Probe_HttpGet_HttpHeaders) Descriptor() ([]byte, []int)

func (*Probe_HttpGet_HttpHeaders) GetName

func (m *Probe_HttpGet_HttpHeaders) GetName() string

func (*Probe_HttpGet_HttpHeaders) GetValue

func (m *Probe_HttpGet_HttpHeaders) GetValue() string

func (*Probe_HttpGet_HttpHeaders) ProtoMessage

func (*Probe_HttpGet_HttpHeaders) ProtoMessage()

func (*Probe_HttpGet_HttpHeaders) Reset

func (m *Probe_HttpGet_HttpHeaders) Reset()

func (*Probe_HttpGet_HttpHeaders) String

func (m *Probe_HttpGet_HttpHeaders) String() string

func (*Probe_HttpGet_HttpHeaders) Validate

func (this *Probe_HttpGet_HttpHeaders) Validate() error

func (*Probe_HttpGet_HttpHeaders) XXX_DiscardUnknown

func (m *Probe_HttpGet_HttpHeaders) XXX_DiscardUnknown()

func (*Probe_HttpGet_HttpHeaders) XXX_Marshal

func (m *Probe_HttpGet_HttpHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Probe_HttpGet_HttpHeaders) XXX_Merge

func (m *Probe_HttpGet_HttpHeaders) XXX_Merge(src proto.Message)

func (*Probe_HttpGet_HttpHeaders) XXX_Size

func (m *Probe_HttpGet_HttpHeaders) XXX_Size() int

func (*Probe_HttpGet_HttpHeaders) XXX_Unmarshal

func (m *Probe_HttpGet_HttpHeaders) XXX_Unmarshal(b []byte) error

type Probe_TcpSocket

type Probe_TcpSocket struct {
	//
	//通过tcpSocket探测的端口
	Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port" form:"port"`
	//
	//hostname, 默认 pod IP
	Host                 string   `protobuf:"bytes,2,opt,name=host,proto3" json:"host" form:"host"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Probe_TcpSocket) Descriptor

func (*Probe_TcpSocket) Descriptor() ([]byte, []int)

func (*Probe_TcpSocket) GetHost

func (m *Probe_TcpSocket) GetHost() string

func (*Probe_TcpSocket) GetPort

func (m *Probe_TcpSocket) GetPort() int32

func (*Probe_TcpSocket) ProtoMessage

func (*Probe_TcpSocket) ProtoMessage()

func (*Probe_TcpSocket) Reset

func (m *Probe_TcpSocket) Reset()

func (*Probe_TcpSocket) String

func (m *Probe_TcpSocket) String() string

func (*Probe_TcpSocket) Validate

func (this *Probe_TcpSocket) Validate() error

func (*Probe_TcpSocket) XXX_DiscardUnknown

func (m *Probe_TcpSocket) XXX_DiscardUnknown()

func (*Probe_TcpSocket) XXX_Marshal

func (m *Probe_TcpSocket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Probe_TcpSocket) XXX_Merge

func (m *Probe_TcpSocket) XXX_Merge(src proto.Message)

func (*Probe_TcpSocket) XXX_Size

func (m *Probe_TcpSocket) XXX_Size() int

func (*Probe_TcpSocket) XXX_Unmarshal

func (m *Probe_TcpSocket) XXX_Unmarshal(b []byte) error

type ResourceGroup

type ResourceGroup struct {
	//
	//workload id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//资源组名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
	//
	//环境类型
	Env string `protobuf:"bytes,3,opt,name=env,proto3" json:"env" form:"env"`
	//
	//资源组类型
	Infrastructure       string   `protobuf:"bytes,4,opt,name=infrastructure,proto3" json:"infrastructure" form:"infrastructure"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

部署资源组

func (*ResourceGroup) Descriptor

func (*ResourceGroup) Descriptor() ([]byte, []int)

func (*ResourceGroup) GetEnv

func (m *ResourceGroup) GetEnv() string

func (*ResourceGroup) GetInfrastructure

func (m *ResourceGroup) GetInfrastructure() string

func (*ResourceGroup) GetInstanceId

func (m *ResourceGroup) GetInstanceId() string

func (*ResourceGroup) GetName

func (m *ResourceGroup) GetName() string

func (*ResourceGroup) ProtoMessage

func (*ResourceGroup) ProtoMessage()

func (*ResourceGroup) Reset

func (m *ResourceGroup) Reset()

func (*ResourceGroup) String

func (m *ResourceGroup) String() string

func (*ResourceGroup) Validate

func (this *ResourceGroup) Validate() error

func (*ResourceGroup) XXX_DiscardUnknown

func (m *ResourceGroup) XXX_DiscardUnknown()

func (*ResourceGroup) XXX_Marshal

func (m *ResourceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceGroup) XXX_Merge

func (m *ResourceGroup) XXX_Merge(src proto.Message)

func (*ResourceGroup) XXX_Size

func (m *ResourceGroup) XXX_Size() int

func (*ResourceGroup) XXX_Unmarshal

func (m *ResourceGroup) XXX_Unmarshal(b []byte) error

type ResourceList

type ResourceList struct {
	//
	//cpu限制, 单位为 milli CPUs
	Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu" form:"cpu"`
	//
	//memory限制, 单位可以为MiB
	Memory               string   `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory" form:"memory"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

资源限制

func (*ResourceList) Descriptor

func (*ResourceList) Descriptor() ([]byte, []int)

func (*ResourceList) GetCpu

func (m *ResourceList) GetCpu() string

func (*ResourceList) GetMemory

func (m *ResourceList) GetMemory() string

func (*ResourceList) ProtoMessage

func (*ResourceList) ProtoMessage()

func (*ResourceList) Reset

func (m *ResourceList) Reset()

func (*ResourceList) String

func (m *ResourceList) String() string

func (*ResourceList) Validate

func (this *ResourceList) Validate() error

func (*ResourceList) XXX_DiscardUnknown

func (m *ResourceList) XXX_DiscardUnknown()

func (*ResourceList) XXX_Marshal

func (m *ResourceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceList) XXX_Merge

func (m *ResourceList) XXX_Merge(src proto.Message)

func (*ResourceList) XXX_Size

func (m *ResourceList) XXX_Size() int

func (*ResourceList) XXX_Unmarshal

func (m *ResourceList) XXX_Unmarshal(b []byte) error

type ResourceQuota

type ResourceQuota struct {
	//
	//id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//ResourceQuota 类型
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//resourcequota 全称,命名规则 clusterId:kind:name, 创建之后不能修改
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//名称
	ResourceName string `protobuf:"bytes,4,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
	//
	//quota 资源定义文件
	ResourceSpec string `protobuf:"bytes,5,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	//
	//命名空间, 创建之后不能修改
	Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
	//
	//资源限制
	//{
	//"limits.cpu": "2",
	//"limits.memory": "1Gi"
	//"configmaps": 50,
	//"persistentvolumeclaims": 50,
	//"pods": 50,
	//"replicationcontrollers": 50,
	//"resourcequotas": 50,
	//"secrets": 50,
	//"services": 50,
	//"service.loadbalancers": 50,
	//"service.nodeports": 50
	//}
	//
	Hard *types.Struct `protobuf:"bytes,7,opt,name=hard,proto3" json:"hard" form:"hard"`
	//
	//已经使用的资源
	//{
	//"limits.cpu": "2",
	//"limits.memory": "1Gi"
	//"configmaps": 50,
	//"persistentvolumeclaims": 50,
	//"pods": 50,
	//"replicationcontrollers": 50,
	//"resourcequotas": 50,
	//"secrets": 50,
	//"services": 50,
	//"service.loadbalancers": 50,
	//"service.nodeports": 50
	//}
	//
	Used *types.Struct `protobuf:"bytes,8,opt,name=used,proto3" json:"used" form:"used"`
	//
	//创建者, 服务端自动生成
	Creator              string   `protobuf:"bytes,9,opt,name=creator,proto3" json:"creator" form:"creator"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ResourceQuota 资源定义

func (*ResourceQuota) Descriptor

func (*ResourceQuota) Descriptor() ([]byte, []int)

func (*ResourceQuota) GetCreator

func (m *ResourceQuota) GetCreator() string

func (*ResourceQuota) GetHard

func (m *ResourceQuota) GetHard() *types.Struct

func (*ResourceQuota) GetInstanceId

func (m *ResourceQuota) GetInstanceId() string

func (*ResourceQuota) GetKind

func (m *ResourceQuota) GetKind() string

func (*ResourceQuota) GetName

func (m *ResourceQuota) GetName() string

func (*ResourceQuota) GetNamespace

func (m *ResourceQuota) GetNamespace() string

func (*ResourceQuota) GetResourceName

func (m *ResourceQuota) GetResourceName() string

func (*ResourceQuota) GetResourceSpec

func (m *ResourceQuota) GetResourceSpec() string

func (*ResourceQuota) GetUsed

func (m *ResourceQuota) GetUsed() *types.Struct

func (*ResourceQuota) ProtoMessage

func (*ResourceQuota) ProtoMessage()

func (*ResourceQuota) Reset

func (m *ResourceQuota) Reset()

func (*ResourceQuota) String

func (m *ResourceQuota) String() string

func (*ResourceQuota) Validate

func (this *ResourceQuota) Validate() error

func (*ResourceQuota) XXX_DiscardUnknown

func (m *ResourceQuota) XXX_DiscardUnknown()

func (*ResourceQuota) XXX_Marshal

func (m *ResourceQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceQuota) XXX_Merge

func (m *ResourceQuota) XXX_Merge(src proto.Message)

func (*ResourceQuota) XXX_Size

func (m *ResourceQuota) XXX_Size() int

func (*ResourceQuota) XXX_Unmarshal

func (m *ResourceQuota) XXX_Unmarshal(b []byte) error

type ResourceRequirements

type ResourceRequirements struct {
	//
	//最大资源限制
	Limits *ResourceList `protobuf:"bytes,1,opt,name=limits,proto3" json:"limits" form:"limits"`
	//
	//容器启动的初始资源请求
	Requests             *ResourceList `protobuf:"bytes,2,opt,name=requests,proto3" json:"requests" form:"requests"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

ResourceRequirements 资源定义

func (*ResourceRequirements) Descriptor

func (*ResourceRequirements) Descriptor() ([]byte, []int)

func (*ResourceRequirements) GetLimits

func (m *ResourceRequirements) GetLimits() *ResourceList

func (*ResourceRequirements) GetRequests

func (m *ResourceRequirements) GetRequests() *ResourceList

func (*ResourceRequirements) ProtoMessage

func (*ResourceRequirements) ProtoMessage()

func (*ResourceRequirements) Reset

func (m *ResourceRequirements) Reset()

func (*ResourceRequirements) String

func (m *ResourceRequirements) String() string

func (*ResourceRequirements) Validate

func (this *ResourceRequirements) Validate() error

func (*ResourceRequirements) XXX_DiscardUnknown

func (m *ResourceRequirements) XXX_DiscardUnknown()

func (*ResourceRequirements) XXX_Marshal

func (m *ResourceRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceRequirements) XXX_Merge

func (m *ResourceRequirements) XXX_Merge(src proto.Message)

func (*ResourceRequirements) XXX_Size

func (m *ResourceRequirements) XXX_Size() int

func (*ResourceRequirements) XXX_Unmarshal

func (m *ResourceRequirements) XXX_Unmarshal(b []byte) error

type Secret

type Secret struct {
	//
	//id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//Secret 类型
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//全称,命名规则 clusterId:namespace:kind:name, 创建之后不能修改
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//命名空间, 创建之后不能修改
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
	//
	//名称
	ResourceName string `protobuf:"bytes,5,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
	//
	//资源定义文件
	ResourceSpec string `protobuf:"bytes,6,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	//
	//别名
	DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName" form:"displayName"`
	//
	//数据
	Data *types.Struct `protobuf:"bytes,8,opt,name=data,proto3" json:"data" form:"data"`
	//
	//'支持内置类型: [Opaque, kubernetes.io/tls, kubernetes.io/dockerconfigjson, kubernetes.io/basic-auth] 以及自定义' kubernetes.io/dockerconfigjson 配置 ".dockerconfigjson" kubernetes.io/tls 配置 TLS 证书 "tls.crt", TLS 私钥 "tls.key". kubernetes.io/basic-auth 配置 username, password
	//
	Type string `protobuf:"bytes,9,opt,name=type,proto3" json:"type" form:"type"`
	//
	//注解, 后台使用
	Annotations *types.Struct `protobuf:"bytes,10,opt,name=annotations,proto3" json:"annotations" form:"annotations"`
	//
	//创建者, 服务端自动生成
	Creator string `protobuf:"bytes,11,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间
	Ctime                string   `protobuf:"bytes,12,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Secret 资源定义

func (*Secret) Descriptor

func (*Secret) Descriptor() ([]byte, []int)

func (*Secret) GetAnnotations

func (m *Secret) GetAnnotations() *types.Struct

func (*Secret) GetCreator

func (m *Secret) GetCreator() string

func (*Secret) GetCtime

func (m *Secret) GetCtime() string

func (*Secret) GetData

func (m *Secret) GetData() *types.Struct

func (*Secret) GetDisplayName

func (m *Secret) GetDisplayName() string

func (*Secret) GetInstanceId

func (m *Secret) GetInstanceId() string

func (*Secret) GetKind

func (m *Secret) GetKind() string

func (*Secret) GetName

func (m *Secret) GetName() string

func (*Secret) GetNamespace

func (m *Secret) GetNamespace() string

func (*Secret) GetResourceName

func (m *Secret) GetResourceName() string

func (*Secret) GetResourceSpec

func (m *Secret) GetResourceSpec() string

func (*Secret) GetType

func (m *Secret) GetType() string

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) Reset

func (m *Secret) Reset()

func (*Secret) String

func (m *Secret) String() string

func (*Secret) Validate

func (this *Secret) Validate() error

func (*Secret) XXX_DiscardUnknown

func (m *Secret) XXX_DiscardUnknown()

func (*Secret) XXX_Marshal

func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Secret) XXX_Merge

func (m *Secret) XXX_Merge(src proto.Message)

func (*Secret) XXX_Size

func (m *Secret) XXX_Size() int

func (*Secret) XXX_Unmarshal

func (m *Secret) XXX_Unmarshal(b []byte) error

type Service

type Service struct {
	//
	//service id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//service 类型, 只能是 Service
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//service 全称,命名规则 clusterId:kind:namespace:name, 创建之后不能修改
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//命名空间, 创建之后不能修改
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
	//
	//名称
	ResourceName string `protobuf:"bytes,5,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
	//
	//注解
	Annotations *types.Struct `protobuf:"bytes,6,opt,name=annotations,proto3" json:"annotations" form:"annotations"`
	//
	//标签
	Labels *types.Struct `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels" form:"labels"`
	//
	//Service spec 信息
	Spec *ServiceSpec `protobuf:"bytes,8,opt,name=spec,proto3" json:"spec" form:"spec"`
	//
	//service 定义
	ResourceSpec string `protobuf:"bytes,9,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	//
	//创建时间
	CreationTimestamp string `protobuf:"bytes,10,opt,name=creationTimestamp,proto3" json:"creationTimestamp" form:"creationTimestamp"`
	//
	//创建者, 服务端自动生成
	Creator              string   `protobuf:"bytes,11,opt,name=creator,proto3" json:"creator" form:"creator"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Service 资源定义, 用于 CMDB 存储

func (*Service) Descriptor

func (*Service) Descriptor() ([]byte, []int)

func (*Service) GetAnnotations

func (m *Service) GetAnnotations() *types.Struct

func (*Service) GetCreationTimestamp

func (m *Service) GetCreationTimestamp() string

func (*Service) GetCreator

func (m *Service) GetCreator() string

func (*Service) GetInstanceId

func (m *Service) GetInstanceId() string

func (*Service) GetKind

func (m *Service) GetKind() string

func (*Service) GetLabels

func (m *Service) GetLabels() *types.Struct

func (*Service) GetName

func (m *Service) GetName() string

func (*Service) GetNamespace

func (m *Service) GetNamespace() string

func (*Service) GetResourceName

func (m *Service) GetResourceName() string

func (*Service) GetResourceSpec

func (m *Service) GetResourceSpec() string

func (*Service) GetSpec

func (m *Service) GetSpec() *ServiceSpec

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

func (*Service) Validate

func (this *Service) Validate() error

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Service) XXX_Merge

func (m *Service) XXX_Merge(src proto.Message)

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

func (m *Service) XXX_Unmarshal(b []byte) error

type ServicePort

type ServicePort struct {
	//
	//端口名称,
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//服务监听端口号
	Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port" form:"port"`
	//
	//端口协议, 默认 TCP
	Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol" form:"protocol"`
	//
	//需要转发到后端 Pod 的端口或者 Pod 名称, 类型为 int/string
	TargetPort *types.Value `protobuf:"bytes,4,opt,name=targetPort,proto3" json:"targetPort" form:"targetPort"`
	//
	//当 type=NodePort/LoadBalancer 时,指定映射到物理机的端口号
	NodePort             int32    `protobuf:"varint,5,opt,name=nodePort,proto3" json:"nodePort" form:"nodePort"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Service 需要暴露的端口列表

func (*ServicePort) Descriptor

func (*ServicePort) Descriptor() ([]byte, []int)

func (*ServicePort) GetName

func (m *ServicePort) GetName() string

func (*ServicePort) GetNodePort

func (m *ServicePort) GetNodePort() int32

func (*ServicePort) GetPort

func (m *ServicePort) GetPort() int32

func (*ServicePort) GetProtocol

func (m *ServicePort) GetProtocol() string

func (*ServicePort) GetTargetPort

func (m *ServicePort) GetTargetPort() *types.Value

func (*ServicePort) ProtoMessage

func (*ServicePort) ProtoMessage()

func (*ServicePort) Reset

func (m *ServicePort) Reset()

func (*ServicePort) String

func (m *ServicePort) String() string

func (*ServicePort) Validate

func (this *ServicePort) Validate() error

func (*ServicePort) XXX_DiscardUnknown

func (m *ServicePort) XXX_DiscardUnknown()

func (*ServicePort) XXX_Marshal

func (m *ServicePort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServicePort) XXX_Merge

func (m *ServicePort) XXX_Merge(src proto.Message)

func (*ServicePort) XXX_Size

func (m *ServicePort) XXX_Size() int

func (*ServicePort) XXX_Unmarshal

func (m *ServicePort) XXX_Unmarshal(b []byte) error

type ServiceSpec

type ServiceSpec struct {
	//
	//Service 类型
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
	//
	//虚拟服务 IP 地址
	ClusterIP string `protobuf:"bytes,2,opt,name=clusterIP,proto3" json:"clusterIP" form:"clusterIP"`
	//
	//负载均衡 IP
	LoadBalancerIP string `protobuf:"bytes,3,opt,name=loadBalancerIP,proto3" json:"loadBalancerIP" form:"loadBalancerIP"`
	//
	//外部 IP 列表
	ExternalIPs []string `protobuf:"bytes,4,rep,name=externalIPs,proto3" json:"externalIPs" form:"externalIPs"`
	//
	//外部域名
	ExternalName string `protobuf:"bytes,5,opt,name=externalName,proto3" json:"externalName" form:"externalName"`
	//
	//是否支持 Session
	SessionAffinity string `protobuf:"bytes,6,opt,name=sessionAffinity,proto3" json:"sessionAffinity" form:"sessionAffinity"`
	//
	//Pod 筛选器
	Selector *types.Struct `protobuf:"bytes,7,opt,name=selector,proto3" json:"selector" form:"selector"`
	//
	//Service 需要暴露的端口列表
	Ports                []*ServicePort `protobuf:"bytes,8,rep,name=ports,proto3" json:"ports" form:"ports"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

ServiceSpec 定义

func (*ServiceSpec) Descriptor

func (*ServiceSpec) Descriptor() ([]byte, []int)

func (*ServiceSpec) GetClusterIP

func (m *ServiceSpec) GetClusterIP() string

func (*ServiceSpec) GetExternalIPs

func (m *ServiceSpec) GetExternalIPs() []string

func (*ServiceSpec) GetExternalName

func (m *ServiceSpec) GetExternalName() string

func (*ServiceSpec) GetLoadBalancerIP

func (m *ServiceSpec) GetLoadBalancerIP() string

func (*ServiceSpec) GetPorts

func (m *ServiceSpec) GetPorts() []*ServicePort

func (*ServiceSpec) GetSelector

func (m *ServiceSpec) GetSelector() *types.Struct

func (*ServiceSpec) GetSessionAffinity

func (m *ServiceSpec) GetSessionAffinity() string

func (*ServiceSpec) GetType

func (m *ServiceSpec) GetType() string

func (*ServiceSpec) ProtoMessage

func (*ServiceSpec) ProtoMessage()

func (*ServiceSpec) Reset

func (m *ServiceSpec) Reset()

func (*ServiceSpec) String

func (m *ServiceSpec) String() string

func (*ServiceSpec) Validate

func (this *ServiceSpec) Validate() error

func (*ServiceSpec) XXX_DiscardUnknown

func (m *ServiceSpec) XXX_DiscardUnknown()

func (*ServiceSpec) XXX_Marshal

func (m *ServiceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceSpec) XXX_Merge

func (m *ServiceSpec) XXX_Merge(src proto.Message)

func (*ServiceSpec) XXX_Size

func (m *ServiceSpec) XXX_Size() int

func (*ServiceSpec) XXX_Unmarshal

func (m *ServiceSpec) XXX_Unmarshal(b []byte) error

type StorageClass

type StorageClass struct {
	//
	//storageclass id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//类型
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//storageclass 全称,命名规则 clusterId:kind:namespace:name, 创建之后不能修改
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//名称
	ResourceName string `protobuf:"bytes,4,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
	//
	//StorageClass 定义
	ResourceSpec string `protobuf:"bytes,5,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	//
	//描述
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description" form:"description"`
	//
	//annotations
	Annotations *types.Struct `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations" form:"annotations"`
	//
	//provisioner
	Provisioner string `protobuf:"bytes,8,opt,name=provisioner,proto3" json:"provisioner" form:"provisioner"`
	//
	//参数
	Parameters *types.Struct `protobuf:"bytes,9,opt,name=parameters,proto3" json:"parameters" form:"parameters"`
	//
	//回收策略, "Recycle", "Delete", "Retain", 默认 Delete
	ReclaimPolicy string `protobuf:"bytes,10,opt,name=reclaimPolicy,proto3" json:"reclaimPolicy" form:"reclaimPolicy"`
	//
	//cmdb 创建时间
	Ctime                string   `protobuf:"bytes,11,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

StorageClass 资源定义, 用于 CMDB 存储

func (*StorageClass) Descriptor

func (*StorageClass) Descriptor() ([]byte, []int)

func (*StorageClass) GetAnnotations

func (m *StorageClass) GetAnnotations() *types.Struct

func (*StorageClass) GetCtime

func (m *StorageClass) GetCtime() string

func (*StorageClass) GetDescription

func (m *StorageClass) GetDescription() string

func (*StorageClass) GetInstanceId

func (m *StorageClass) GetInstanceId() string

func (*StorageClass) GetKind

func (m *StorageClass) GetKind() string

func (*StorageClass) GetName

func (m *StorageClass) GetName() string

func (*StorageClass) GetParameters

func (m *StorageClass) GetParameters() *types.Struct

func (*StorageClass) GetProvisioner

func (m *StorageClass) GetProvisioner() string

func (*StorageClass) GetReclaimPolicy

func (m *StorageClass) GetReclaimPolicy() string

func (*StorageClass) GetResourceName

func (m *StorageClass) GetResourceName() string

func (*StorageClass) GetResourceSpec

func (m *StorageClass) GetResourceSpec() string

func (*StorageClass) ProtoMessage

func (*StorageClass) ProtoMessage()

func (*StorageClass) Reset

func (m *StorageClass) Reset()

func (*StorageClass) String

func (m *StorageClass) String() string

func (*StorageClass) Validate

func (this *StorageClass) Validate() error

func (*StorageClass) XXX_DiscardUnknown

func (m *StorageClass) XXX_DiscardUnknown()

func (*StorageClass) XXX_Marshal

func (m *StorageClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageClass) XXX_Merge

func (m *StorageClass) XXX_Merge(src proto.Message)

func (*StorageClass) XXX_Size

func (m *StorageClass) XXX_Size() int

func (*StorageClass) XXX_Unmarshal

func (m *StorageClass) XXX_Unmarshal(b []byte) error

type Volume

type Volume struct {
	//
	//pod定义的共享存储卷名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//存储卷内volume 来源为 hostPath
	HostPath *Volume_HostPath `protobuf:"bytes,2,opt,name=hostPath,proto3" json:"hostPath" form:"hostPath"`
	//
	//volume 来源为 emptyDir
	EmptyDir *Volume_EmptyDir `protobuf:"bytes,3,opt,name=emptyDir,proto3" json:"emptyDir" form:"emptyDir"`
	//
	//volume 来源为 secret
	Secret *Volume_Secret `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret" form:"secret"`
	//
	//volume 来源为 configMap
	ConfigMap *Volume_ConfigMap `protobuf:"bytes,5,opt,name=configMap,proto3" json:"configMap" form:"configMap"`
	//
	//volume 来源为 pvc
	PersistentVolumeClaim *Volume_PersistentVolumeClaim `protobuf:"bytes,6,opt,name=persistentVolumeClaim,proto3" json:"persistentVolumeClaim" form:"persistentVolumeClaim"`
	XXX_NoUnkeyedLiteral  struct{}                      `json:"-"`
	XXX_unrecognized      []byte                        `json:"-"`
	XXX_sizecache         int32                         `json:"-"`
}

存储卷

func (*Volume) Descriptor

func (*Volume) Descriptor() ([]byte, []int)

func (*Volume) GetConfigMap

func (m *Volume) GetConfigMap() *Volume_ConfigMap

func (*Volume) GetEmptyDir

func (m *Volume) GetEmptyDir() *Volume_EmptyDir

func (*Volume) GetHostPath

func (m *Volume) GetHostPath() *Volume_HostPath

func (*Volume) GetName

func (m *Volume) GetName() string

func (*Volume) GetPersistentVolumeClaim

func (m *Volume) GetPersistentVolumeClaim() *Volume_PersistentVolumeClaim

func (*Volume) GetSecret

func (m *Volume) GetSecret() *Volume_Secret

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) Reset

func (m *Volume) Reset()

func (*Volume) String

func (m *Volume) String() string

func (*Volume) Validate

func (this *Volume) Validate() error

func (*Volume) XXX_DiscardUnknown

func (m *Volume) XXX_DiscardUnknown()

func (*Volume) XXX_Marshal

func (m *Volume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Volume) XXX_Merge

func (m *Volume) XXX_Merge(src proto.Message)

func (*Volume) XXX_Size

func (m *Volume) XXX_Size() int

func (*Volume) XXX_Unmarshal

func (m *Volume) XXX_Unmarshal(b []byte) error

type VolumeMount

type VolumeMount struct {
	//
	//引用pod定义的共享存储卷名称, 需要 volumes[]部分定义的卷名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//存储卷内 mount 的绝对路径
	MountPath string `protobuf:"bytes,2,opt,name=mountPath,proto3" json:"mountPath" form:"mountPath"`
	//
	//子路径
	SubPath string `protobuf:"bytes,3,opt,name=subPath,proto3" json:"subPath" form:"subPath"`
	//
	//是否为只读模式
	ReadOnly             bool     `protobuf:"varint,4,opt,name=readOnly,proto3" json:"readOnly" form:"readOnly"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

容器挂载目录

func (*VolumeMount) Descriptor

func (*VolumeMount) Descriptor() ([]byte, []int)

func (*VolumeMount) GetMountPath

func (m *VolumeMount) GetMountPath() string

func (*VolumeMount) GetName

func (m *VolumeMount) GetName() string

func (*VolumeMount) GetReadOnly

func (m *VolumeMount) GetReadOnly() bool

func (*VolumeMount) GetSubPath

func (m *VolumeMount) GetSubPath() string

func (*VolumeMount) ProtoMessage

func (*VolumeMount) ProtoMessage()

func (*VolumeMount) Reset

func (m *VolumeMount) Reset()

func (*VolumeMount) String

func (m *VolumeMount) String() string

func (*VolumeMount) Validate

func (this *VolumeMount) Validate() error

func (*VolumeMount) XXX_DiscardUnknown

func (m *VolumeMount) XXX_DiscardUnknown()

func (*VolumeMount) XXX_Marshal

func (m *VolumeMount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VolumeMount) XXX_Merge

func (m *VolumeMount) XXX_Merge(src proto.Message)

func (*VolumeMount) XXX_Size

func (m *VolumeMount) XXX_Size() int

func (*VolumeMount) XXX_Unmarshal

func (m *VolumeMount) XXX_Unmarshal(b []byte) error

type Volume_ConfigMap

type Volume_ConfigMap struct {
	//
	//使用的 configMap 名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//key 映射文件名
	Items []*KeyToPath `protobuf:"bytes,2,rep,name=items,proto3" json:"items" form:"items"`
	//
	//默认文件权限
	DefaultMode string `protobuf:"bytes,3,opt,name=defaultMode,proto3" json:"defaultMode" form:"defaultMode"`
	//
	//secret或者key必须存在
	Optional             bool     `protobuf:"varint,4,opt,name=optional,proto3" json:"optional" form:"optional"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Volume_ConfigMap) Descriptor

func (*Volume_ConfigMap) Descriptor() ([]byte, []int)

func (*Volume_ConfigMap) GetDefaultMode

func (m *Volume_ConfigMap) GetDefaultMode() string

func (*Volume_ConfigMap) GetItems

func (m *Volume_ConfigMap) GetItems() []*KeyToPath

func (*Volume_ConfigMap) GetName

func (m *Volume_ConfigMap) GetName() string

func (*Volume_ConfigMap) GetOptional

func (m *Volume_ConfigMap) GetOptional() bool

func (*Volume_ConfigMap) ProtoMessage

func (*Volume_ConfigMap) ProtoMessage()

func (*Volume_ConfigMap) Reset

func (m *Volume_ConfigMap) Reset()

func (*Volume_ConfigMap) String

func (m *Volume_ConfigMap) String() string

func (*Volume_ConfigMap) Validate

func (this *Volume_ConfigMap) Validate() error

func (*Volume_ConfigMap) XXX_DiscardUnknown

func (m *Volume_ConfigMap) XXX_DiscardUnknown()

func (*Volume_ConfigMap) XXX_Marshal

func (m *Volume_ConfigMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Volume_ConfigMap) XXX_Merge

func (m *Volume_ConfigMap) XXX_Merge(src proto.Message)

func (*Volume_ConfigMap) XXX_Size

func (m *Volume_ConfigMap) XXX_Size() int

func (*Volume_ConfigMap) XXX_Unmarshal

func (m *Volume_ConfigMap) XXX_Unmarshal(b []byte) error

type Volume_EmptyDir

type Volume_EmptyDir struct {
	//
	//emptyDir 存储介质, "" 代表使用 node 上面默认的存储
	Medium string `protobuf:"bytes,1,opt,name=medium,proto3" json:"medium" form:"medium"`
	//
	//emptyDir 存储介质, ["", "Memory", "HugePages"], 单位Mi
	SizeLimit            string   `protobuf:"bytes,2,opt,name=sizeLimit,proto3" json:"sizeLimit" form:"sizeLimit"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Volume_EmptyDir) Descriptor

func (*Volume_EmptyDir) Descriptor() ([]byte, []int)

func (*Volume_EmptyDir) GetMedium

func (m *Volume_EmptyDir) GetMedium() string

func (*Volume_EmptyDir) GetSizeLimit

func (m *Volume_EmptyDir) GetSizeLimit() string

func (*Volume_EmptyDir) ProtoMessage

func (*Volume_EmptyDir) ProtoMessage()

func (*Volume_EmptyDir) Reset

func (m *Volume_EmptyDir) Reset()

func (*Volume_EmptyDir) String

func (m *Volume_EmptyDir) String() string

func (*Volume_EmptyDir) Validate

func (this *Volume_EmptyDir) Validate() error

func (*Volume_EmptyDir) XXX_DiscardUnknown

func (m *Volume_EmptyDir) XXX_DiscardUnknown()

func (*Volume_EmptyDir) XXX_Marshal

func (m *Volume_EmptyDir) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Volume_EmptyDir) XXX_Merge

func (m *Volume_EmptyDir) XXX_Merge(src proto.Message)

func (*Volume_EmptyDir) XXX_Size

func (m *Volume_EmptyDir) XXX_Size() int

func (*Volume_EmptyDir) XXX_Unmarshal

func (m *Volume_EmptyDir) XXX_Unmarshal(b []byte) error

type Volume_HostPath

type Volume_HostPath struct {
	//
	//挂载路径
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path" form:"path"`
	//
	//hostPath 存储卷类型, ["DirectoryOrCreate", "Directory", "FileOrCreate", "File", "Socket", "CharDevice", "BlockDevice"]
	Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type" form:"type"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Volume_HostPath) Descriptor

func (*Volume_HostPath) Descriptor() ([]byte, []int)

func (*Volume_HostPath) GetPath

func (m *Volume_HostPath) GetPath() string

func (*Volume_HostPath) GetType

func (m *Volume_HostPath) GetType() string

func (*Volume_HostPath) ProtoMessage

func (*Volume_HostPath) ProtoMessage()

func (*Volume_HostPath) Reset

func (m *Volume_HostPath) Reset()

func (*Volume_HostPath) String

func (m *Volume_HostPath) String() string

func (*Volume_HostPath) Validate

func (this *Volume_HostPath) Validate() error

func (*Volume_HostPath) XXX_DiscardUnknown

func (m *Volume_HostPath) XXX_DiscardUnknown()

func (*Volume_HostPath) XXX_Marshal

func (m *Volume_HostPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Volume_HostPath) XXX_Merge

func (m *Volume_HostPath) XXX_Merge(src proto.Message)

func (*Volume_HostPath) XXX_Size

func (m *Volume_HostPath) XXX_Size() int

func (*Volume_HostPath) XXX_Unmarshal

func (m *Volume_HostPath) XXX_Unmarshal(b []byte) error

type Volume_PersistentVolumeClaim

type Volume_PersistentVolumeClaim struct {
	//
	//pvc名称, 必须要同一 namespace 下面
	ClaimName string `protobuf:"bytes,1,opt,name=claimName,proto3" json:"claimName" form:"claimName"`
	//
	//只读
	ReadOnly             bool     `protobuf:"varint,2,opt,name=readOnly,proto3" json:"readOnly" form:"readOnly"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Volume_PersistentVolumeClaim) Descriptor

func (*Volume_PersistentVolumeClaim) Descriptor() ([]byte, []int)

func (*Volume_PersistentVolumeClaim) GetClaimName

func (m *Volume_PersistentVolumeClaim) GetClaimName() string

func (*Volume_PersistentVolumeClaim) GetReadOnly

func (m *Volume_PersistentVolumeClaim) GetReadOnly() bool

func (*Volume_PersistentVolumeClaim) ProtoMessage

func (*Volume_PersistentVolumeClaim) ProtoMessage()

func (*Volume_PersistentVolumeClaim) Reset

func (m *Volume_PersistentVolumeClaim) Reset()

func (*Volume_PersistentVolumeClaim) String

func (*Volume_PersistentVolumeClaim) Validate

func (this *Volume_PersistentVolumeClaim) Validate() error

func (*Volume_PersistentVolumeClaim) XXX_DiscardUnknown

func (m *Volume_PersistentVolumeClaim) XXX_DiscardUnknown()

func (*Volume_PersistentVolumeClaim) XXX_Marshal

func (m *Volume_PersistentVolumeClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Volume_PersistentVolumeClaim) XXX_Merge

func (m *Volume_PersistentVolumeClaim) XXX_Merge(src proto.Message)

func (*Volume_PersistentVolumeClaim) XXX_Size

func (m *Volume_PersistentVolumeClaim) XXX_Size() int

func (*Volume_PersistentVolumeClaim) XXX_Unmarshal

func (m *Volume_PersistentVolumeClaim) XXX_Unmarshal(b []byte) error

type Volume_Secret

type Volume_Secret struct {
	//
	//使用的密钥名称
	SecretName string `protobuf:"bytes,1,opt,name=secretName,proto3" json:"secretName" form:"secretName"`
	//
	//key 映射文件名
	Items []*KeyToPath `protobuf:"bytes,2,rep,name=items,proto3" json:"items" form:"items"`
	//
	//默认文件权限
	DefaultMode string `protobuf:"bytes,3,opt,name=defaultMode,proto3" json:"defaultMode" form:"defaultMode"`
	//
	//secret或者key必须存在
	Optional             bool     `protobuf:"varint,4,opt,name=optional,proto3" json:"optional" form:"optional"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Volume_Secret) Descriptor

func (*Volume_Secret) Descriptor() ([]byte, []int)

func (*Volume_Secret) GetDefaultMode

func (m *Volume_Secret) GetDefaultMode() string

func (*Volume_Secret) GetItems

func (m *Volume_Secret) GetItems() []*KeyToPath

func (*Volume_Secret) GetOptional

func (m *Volume_Secret) GetOptional() bool

func (*Volume_Secret) GetSecretName

func (m *Volume_Secret) GetSecretName() string

func (*Volume_Secret) ProtoMessage

func (*Volume_Secret) ProtoMessage()

func (*Volume_Secret) Reset

func (m *Volume_Secret) Reset()

func (*Volume_Secret) String

func (m *Volume_Secret) String() string

func (*Volume_Secret) Validate

func (this *Volume_Secret) Validate() error

func (*Volume_Secret) XXX_DiscardUnknown

func (m *Volume_Secret) XXX_DiscardUnknown()

func (*Volume_Secret) XXX_Marshal

func (m *Volume_Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Volume_Secret) XXX_Merge

func (m *Volume_Secret) XXX_Merge(src proto.Message)

func (*Volume_Secret) XXX_Size

func (m *Volume_Secret) XXX_Size() int

func (*Volume_Secret) XXX_Unmarshal

func (m *Volume_Secret) XXX_Unmarshal(b []byte) error

type Workload

type Workload struct {
	//
	//workload id,服务端自动生成
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//workload 类型, 创建之后不能修改
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind" form:"kind"`
	//
	//workload全称,命名规则 clusterId:kind:namespace:name, 创建之后不能修改
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//命名空间, 创建之后不能修改
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace" form:"namespace"`
	//
	//名称
	ResourceName string `protobuf:"bytes,5,opt,name=resourceName,proto3" json:"resourceName" form:"resourceName"`
	//
	//容器列表
	Containers []*ContainerConfig `protobuf:"bytes,6,rep,name=containers,proto3" json:"containers" form:"containers"`
	//
	//pod 副本数量
	Replicas int32 `protobuf:"varint,7,opt,name=replicas,proto3" json:"replicas" form:"replicas"`
	//
	//"存储卷, refs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.15/#volume-v1-core"
	//目前支持 hostPath, emptyDir, secret, configMap, pvc
	//
	Volumes []*Volume `protobuf:"bytes,8,rep,name=volumes,proto3" json:"volumes" form:"volumes"`
	//
	//注解
	Annotations *types.Struct `protobuf:"bytes,9,opt,name=annotations,proto3" json:"annotations" form:"annotations"`
	//
	//标签
	Labels *types.Struct `protobuf:"bytes,10,opt,name=labels,proto3" json:"labels" form:"labels"`
	//
	//dns 解析策略, 默认 ClusterFirst
	DnsPolicy string `protobuf:"bytes,11,opt,name=dnsPolicy,proto3" json:"dnsPolicy" form:"dnsPolicy"`
	//
	//pod 重启策略
	RestartPolicy string `protobuf:"bytes,12,opt,name=restartPolicy,proto3" json:"restartPolicy" form:"restartPolicy"`
	//
	//deployment 更新策略, 目前只支持deployment, 扩展其它的就使用如 statefulSetConfig, jobConfig
	DeploymentStrategy *DeploymentStrategy `protobuf:"bytes,13,opt,name=deploymentStrategy,proto3" json:"deploymentStrategy" form:"deploymentStrategy"`
	//
	//拉取镜像使用的私钥信息
	ImagePullSecrets []*LocalObjectReference `protobuf:"bytes,14,rep,name=imagePullSecrets,proto3" json:"imagePullSecrets" form:"imagePullSecrets"`
	//
	//deployment 状态
	DeploymentStatus *DeploymentStatus `protobuf:"bytes,15,opt,name=deploymentStatus,proto3" json:"deploymentStatus" form:"deploymentStatus"`
	//
	//workload 定义原文件
	ResourceSpec string `protobuf:"bytes,16,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	//
	//创建者, 服务端自动生成
	Creator string `protobuf:"bytes,17,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间
	CreationTimestamp string `protobuf:"bytes,18,opt,name=creationTimestamp,proto3" json:"creationTimestamp" form:"creationTimestamp"`
	//
	//状态
	State string `protobuf:"bytes,19,opt,name=state,proto3" json:"state" form:"state"`
	//
	//状态信息
	TransitionMessage    string   `protobuf:"bytes,20,opt,name=transitionMessage,proto3" json:"transitionMessage" form:"transitionMessage"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

工作负载

func (*Workload) Descriptor

func (*Workload) Descriptor() ([]byte, []int)

func (*Workload) GetAnnotations

func (m *Workload) GetAnnotations() *types.Struct

func (*Workload) GetContainers

func (m *Workload) GetContainers() []*ContainerConfig

func (*Workload) GetCreationTimestamp

func (m *Workload) GetCreationTimestamp() string

func (*Workload) GetCreator

func (m *Workload) GetCreator() string

func (*Workload) GetDeploymentStatus

func (m *Workload) GetDeploymentStatus() *DeploymentStatus

func (*Workload) GetDeploymentStrategy

func (m *Workload) GetDeploymentStrategy() *DeploymentStrategy

func (*Workload) GetDnsPolicy

func (m *Workload) GetDnsPolicy() string

func (*Workload) GetImagePullSecrets

func (m *Workload) GetImagePullSecrets() []*LocalObjectReference

func (*Workload) GetInstanceId

func (m *Workload) GetInstanceId() string

func (*Workload) GetKind

func (m *Workload) GetKind() string

func (*Workload) GetLabels

func (m *Workload) GetLabels() *types.Struct

func (*Workload) GetName

func (m *Workload) GetName() string

func (*Workload) GetNamespace

func (m *Workload) GetNamespace() string

func (*Workload) GetReplicas

func (m *Workload) GetReplicas() int32

func (*Workload) GetResourceName

func (m *Workload) GetResourceName() string

func (*Workload) GetResourceSpec

func (m *Workload) GetResourceSpec() string

func (*Workload) GetRestartPolicy

func (m *Workload) GetRestartPolicy() string

func (*Workload) GetState

func (m *Workload) GetState() string

func (*Workload) GetTransitionMessage

func (m *Workload) GetTransitionMessage() string

func (*Workload) GetVolumes

func (m *Workload) GetVolumes() []*Volume

func (*Workload) ProtoMessage

func (*Workload) ProtoMessage()

func (*Workload) Reset

func (m *Workload) Reset()

func (*Workload) String

func (m *Workload) String() string

func (*Workload) Validate

func (this *Workload) Validate() error

func (*Workload) XXX_DiscardUnknown

func (m *Workload) XXX_DiscardUnknown()

func (*Workload) XXX_Marshal

func (m *Workload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Workload) XXX_Merge

func (m *Workload) XXX_Merge(src proto.Message)

func (*Workload) XXX_Size

func (m *Workload) XXX_Size() int

func (*Workload) XXX_Unmarshal

func (m *Workload) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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