Documentation
¶
Index ¶
- type CreateMeshRequest
- type CreateMeshResponse
- type DeleteMeshRequest
- type DeleteMeshResponse
- type FieldSelector
- type InjectionConfig
- type InstallationConfig
- type LabelSelector
- type ListMeshesRequest
- type ListMeshesResponse
- type Mesh
- type MeshCluster
- type MeshClusterProvider
- type MeshClusterProviderEnum
- type MeshClusterProxyMode
- type MeshClusterProxyModeEnum
- type MeshExtendParams
- type MeshMetadata
- type MeshSpec
- type MeshSpecType
- type MeshSpecTypeEnum
- type MeshStatus
- type Selector
- type ShowMeshRequest
- type ShowMeshResponse
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 *string `json:"key,omitempty"` Operator *string `json:"operator,omitempty"` Values *[]string `json:"values,omitempty"` }
func (FieldSelector) String ¶
func (o FieldSelector) String() string
type InjectionConfig ¶
type InjectionConfig struct { // 是否重启pod RestartPod *bool `json:"restartPod,omitempty"` 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 LabelSelector ¶
type LabelSelector struct { MatchLabels map[string]string `json:"matchLabels,omitempty"` MatchExpressions *[]FieldSelector `json:"matchExpressions,omitempty"` }
func (LabelSelector) String ¶
func (o LabelSelector) String() string
type ListMeshesRequest ¶
type ListMeshesRequest struct { // 网格所属DomainID XApplyDomainID *string `json:"X-Apply-DomainID,omitempty"` // 网格所属ProjectID XApplyProjectID *string `json:"X-Apply-ProjectID,omitempty"` }
ListMeshesRequest Request Object
func (ListMeshesRequest) String ¶
func (o ListMeshesRequest) String() string
type ListMeshesResponse ¶
type ListMeshesResponse struct { ApiVersion *string `json:"apiVersion,omitempty"` 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"` }
type MeshCluster ¶
type MeshCluster struct { // 集群ID,资源唯一标识,通过该ID查询需要添加的集群。 ClusterID string `json:"clusterID"` // 集群所在的Region Region string `json:"region"` // 集群所属的projectID ProjectID string `json:"projectID"` // 集群提供方 Provider MeshClusterProvider `json:"provider"` // 集群代理模式 ProxyMode *MeshClusterProxyMode `json:"proxyMode,omitempty"` Injection *InjectionConfig `json:"injection,omitempty"` Installation *InstallationConfig `json:"installation"` }
func (MeshCluster) String ¶
func (o MeshCluster) String() string
type MeshClusterProvider ¶
type MeshClusterProvider struct {
// contains filtered or unexported fields
}
func (MeshClusterProvider) MarshalJSON ¶
func (c MeshClusterProvider) MarshalJSON() ([]byte, error)
func (*MeshClusterProvider) UnmarshalJSON ¶
func (c *MeshClusterProvider) UnmarshalJSON(b []byte) error
func (MeshClusterProvider) Value ¶
func (c MeshClusterProvider) Value() string
type MeshClusterProviderEnum ¶
type MeshClusterProviderEnum struct {
CCE MeshClusterProvider
}
func GetMeshClusterProviderEnum ¶
func GetMeshClusterProviderEnum() MeshClusterProviderEnum
type MeshClusterProxyMode ¶
type MeshClusterProxyMode struct {
// contains filtered or unexported fields
}
func (MeshClusterProxyMode) MarshalJSON ¶
func (c MeshClusterProxyMode) MarshalJSON() ([]byte, error)
func (*MeshClusterProxyMode) UnmarshalJSON ¶
func (c *MeshClusterProxyMode) UnmarshalJSON(b []byte) error
func (MeshClusterProxyMode) Value ¶
func (c MeshClusterProxyMode) Value() string
type MeshClusterProxyModeEnum ¶
type MeshClusterProxyModeEnum struct { SIDECAR MeshClusterProxyMode NODE MeshClusterProxyMode }
func GetMeshClusterProxyModeEnum ¶
func GetMeshClusterProxyModeEnum() MeshClusterProxyModeEnum
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组成: “` \"annotations\": { \"key1\" : \"value1\", \"key2\" : \"value2\" } “` Labels map[string]string `json:"labels,omitempty"` // 网格创建时间 CreateTimestamp *sdktime.SdkTime `json:"createTimestamp,omitempty"` }
func (MeshMetadata) String ¶
func (o MeshMetadata) String() string
type MeshSpec ¶
type MeshSpec struct { // 网格控制面组件所在的region。 创建企业版网格时需要填写该参数,选择控制面组件所在的region; 创建基础版时网格组件安装在用户所提供的集群中,不需要填写该参数。 Region *string `json:"region,omitempty"` // 网格类型: Managed:企业版网格 InCluster:基础版网格 Type MeshSpecType `json:"type"` // 网格版本 Version string `json:"version"` ExtendParams *MeshExtendParams `json:"extendParams,omitempty"` }
MeshSpec 网格参数定义。
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 { MANAGED MeshSpecType 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"` // 网格更新时间 UpdatedAt *sdktime.SdkTime `json:"updatedAt,omitempty"` }
func (MeshStatus) String ¶
func (o MeshStatus) String() string
type Selector ¶
type Selector struct { FieldSelector *FieldSelector `json:"fieldSelector,omitempty"` LabelSelector *LabelSelector `json:"labelSelector,omitempty"` }
type ShowMeshRequest ¶
type ShowMeshRequest struct { // 网格ID MeshId string `json:"mesh_id"` // 网格所属DomainID XApplyDomainID *string `json:"X-Apply-DomainID,omitempty"` // 网格所属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
Source Files
¶
- model_create_mesh_request.go
- model_create_mesh_response.go
- model_delete_mesh_request.go
- model_delete_mesh_response.go
- model_field_selector.go
- model_injection_config.go
- model_installation_config.go
- model_label_selector.go
- model_list_meshes_request.go
- model_list_meshes_response.go
- model_mesh.go
- model_mesh_cluster.go
- model_mesh_extend_params.go
- model_mesh_metadata.go
- model_mesh_spec.go
- model_mesh_status.go
- model_selector.go
- model_show_mesh_request.go
- model_show_mesh_response.go
Click to show internal directories.
Click to hide internal directories.