model

package
v0.1.116 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMeshRequest

type CreateMeshRequest struct {

	// 网格所属ProjectID
	XApplyProjectID *string `json:"X-Apply-ProjectID,omitempty"`

	Body *Mesh `json:"body,omitempty"`
}

CreateMeshRequest Request Object

func (CreateMeshRequest) String

func (o CreateMeshRequest) String() string

type CreateMeshResponse

type CreateMeshResponse struct {

	// API版本,固定值“v1”,该值不可修改
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值“Mesh”或“mesh”,该值不可修改
	Kind *string `json:"kind,omitempty"`

	Metadata *MeshMetadata `json:"metadata,omitempty"`

	Spec *MeshSpec `json:"spec,omitempty"`

	Status         *MeshStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

CreateMeshResponse Response Object

func (CreateMeshResponse) String

func (o CreateMeshResponse) String() string

type DeleteMeshRequest

type DeleteMeshRequest struct {

	// 网格ID
	MeshId string `json:"mesh_id"`

	// 网格所属ProjectID
	XApplyProjectID *string `json:"X-Apply-ProjectID,omitempty"`
}

DeleteMeshRequest Request Object

func (DeleteMeshRequest) String

func (o DeleteMeshRequest) String() string

type DeleteMeshResponse

type DeleteMeshResponse struct {

	// API版本,固定值“v1”,该值不可修改
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值“Mesh”或“mesh”,该值不可修改
	Kind *string `json:"kind,omitempty"`

	Metadata *MeshMetadata `json:"metadata,omitempty"`

	Spec *MeshSpec `json:"spec,omitempty"`

	Status         *MeshStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

DeleteMeshResponse Response Object

func (DeleteMeshResponse) String

func (o DeleteMeshResponse) String() string

type FieldSelector

type FieldSelector struct {

	// Key值
	Key *string `json:"key,omitempty"`

	// 操作符,仅支持取值\"In\"
	Operator *string `json:"operator,omitempty"`

	// Value值
	Values *[]string `json:"values,omitempty"`
}

FieldSelector “字段选择器(Field selectors)”允许你根据一个或多个资源字段的值筛选 Kubernetes 对象

func (FieldSelector) String

func (o FieldSelector) String() string

type InjectionConfig

type InjectionConfig struct {
	Namespaces *Selector `json:"namespaces,omitempty"`
}

InjectionConfig 集群注入信息

func (InjectionConfig) String

func (o InjectionConfig) String() string

type InstallationConfig

type InstallationConfig struct {
	Nodes *Selector `json:"nodes,omitempty"`
}

func (InstallationConfig) String

func (o InstallationConfig) String() string

type ListMeshesRequest

type ListMeshesRequest struct {

	// 网格所属ProjectID
	XApplyProjectID *string `json:"X-Apply-ProjectID,omitempty"`
}

ListMeshesRequest Request Object

func (ListMeshesRequest) String

func (o ListMeshesRequest) String() string

type ListMeshesResponse

type ListMeshesResponse struct {

	// API版本,固定值“v1”,该值不可修改
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值“MeshList”,该值不可修改
	Kind *string `json:"kind,omitempty"`

	// 网格列表
	Items          *[]Mesh `json:"items,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListMeshesResponse Response Object

func (ListMeshesResponse) String

func (o ListMeshesResponse) String() string

type Mesh

type Mesh struct {

	// API版本,固定值“v1”,该值不可修改
	ApiVersion string `json:"apiVersion"`

	// API类型,固定值“Mesh”或“mesh”,该值不可修改
	Kind string `json:"kind"`

	Metadata *MeshMetadata `json:"metadata"`

	Spec *MeshSpec `json:"spec"`

	Status *MeshStatus `json:"status,omitempty"`
}

func (Mesh) String

func (o Mesh) String() string

type MeshCluster

type MeshCluster struct {

	// 集群ID,资源唯一标识,通过该ID查询需要添加的集群
	ClusterID string `json:"clusterID"`

	// 集群所属的projectID
	ProjectID string `json:"projectID"`

	Injection *InjectionConfig `json:"injection,omitempty"`

	Installation *InstallationConfig `json:"installation"`
}

func (MeshCluster) String

func (o MeshCluster) String() string

type MeshExtendParams

type MeshExtendParams struct {

	// 网格内集群信息
	Clusters *[]MeshCluster `json:"clusters,omitempty"`
}

func (MeshExtendParams) String

func (o MeshExtendParams) String() string

type MeshMetadata

type MeshMetadata struct {

	// 网格名称。 命名规则:以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围4-64位,且不能以中划线(-)结尾
	Name string `json:"name"`

	// 网格ID,资源唯一标识,创建成功后自动生成,填写无效
	Uid *string `json:"uid,omitempty"`

	// 网格注解,由key/value组成: “` \"annotations\": {    \"key1\" : \"value1\",    \"key2\" : \"value2\" } “`
	Annotations map[string]string `json:"annotations,omitempty"`

	// 网格标签,由key/value组成:   “`  \"labels\": {    \"key1\" : \"value1\",    \"key2\" : \"value2\" }  “`
	Labels map[string]string `json:"labels,omitempty"`

	// 网格创建时间
	CreationTimestamp *sdktime.SdkTime `json:"creationTimestamp,omitempty"`
}

func (MeshMetadata) String

func (o MeshMetadata) String() string

type MeshSpec

type MeshSpec struct {

	// 网格类型: InCluster: 集群内控制平面形态,基础版网格取值为InCluster
	Type MeshSpecType `json:"type"`

	// 网格版本
	Version string `json:"version"`

	ExtendParams *MeshExtendParams `json:"extendParams,omitempty"`

	// 网格资源标签
	Tags *[]MeshTags `json:"tags,omitempty"`
}

MeshSpec 网格参数定义

func (MeshSpec) String

func (o MeshSpec) String() string

type MeshSpecType

type MeshSpecType struct {
	// contains filtered or unexported fields
}

func (MeshSpecType) MarshalJSON

func (c MeshSpecType) MarshalJSON() ([]byte, error)

func (*MeshSpecType) UnmarshalJSON

func (c *MeshSpecType) UnmarshalJSON(b []byte) error

func (MeshSpecType) Value

func (c MeshSpecType) Value() string

type MeshSpecTypeEnum

type MeshSpecTypeEnum struct {
	IN_CLUSTER MeshSpecType
}

func GetMeshSpecTypeEnum

func GetMeshSpecTypeEnum() MeshSpecTypeEnum

type MeshStatus

type MeshStatus struct {

	// 网格状态,取值如下 - Running:运行中,表示网格处于正常运行状态 - Creating:创建中,表示网格正处于创建过程中 - CreateFailed:创建失败 - Deleting:删除中,表示网格正处于删除过程中 - DeleteFailed:删除失败 - Upgrading:升级中,表示网格正处于升级过程中 - UpgradeFailed:升级失败 - RollingBack:回滚中,表示网格正处于回滚过程中 - RollbackFailed:回滚失败
	Phase *string `json:"phase,omitempty"`
}

func (MeshStatus) String

func (o MeshStatus) String() string

type MeshTags added in v0.1.64

type MeshTags struct {

	// Key值。  不能为空,最多支持128个字符  可用UTF-8格式表示的汉字、字母、数字和空格  支持部分特殊字符:_.:/=+-@  不能以\"_sys_\"开头
	Key *string `json:"key,omitempty"`

	// Value值。  可以为空但不能缺省,最多支持255个字符  可用UTF-8格式表示的汉字、字母、数字和空格  支持部分特殊字符:_.:/=+-@
	Value *string `json:"value,omitempty"`
}

MeshTags 网格标签集合

func (MeshTags) String added in v0.1.64

func (o MeshTags) String() string

type Selector

type Selector struct {
	FieldSelector *FieldSelector `json:"fieldSelector,omitempty"`
}

Selector 选择器

func (Selector) String

func (o Selector) String() string

type ShowMeshRequest

type ShowMeshRequest struct {

	// 网格ID
	MeshId string `json:"mesh_id"`

	// 网格所属ProjectID
	XApplyProjectID *string `json:"X-Apply-ProjectID,omitempty"`
}

ShowMeshRequest Request Object

func (ShowMeshRequest) String

func (o ShowMeshRequest) String() string

type ShowMeshResponse

type ShowMeshResponse struct {

	// API版本,固定值“v1”,该值不可修改
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值“Mesh”或“mesh”,该值不可修改
	Kind *string `json:"kind,omitempty"`

	Metadata *MeshMetadata `json:"metadata,omitempty"`

	Spec *MeshSpec `json:"spec,omitempty"`

	Status         *MeshStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ShowMeshResponse Response Object

func (ShowMeshResponse) String

func (o ShowMeshResponse) String() string

Jump to

Keyboard shortcuts

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