model

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessConfig

type AccessConfig struct {
	ProtocolType *AccessConfigProtocolType `json:"protocol_type"`

	ProtocolName *AccessConfigProtocolName `json:"protocol_name,omitempty"`

	SlaveId *AccessConfigSlaveId `json:"slave_id,omitempty"`

	Ip *AccessConfigIp `json:"ip,omitempty"`

	Port *AccessConfigPort `json:"port,omitempty"`

	SerialPort *AccessConfigSerialPort `json:"serial_port,omitempty"`

	BaudRate *AccessConfigBaudRate `json:"baud_rate,omitempty"`

	DataBits *AccessConfigDataBits `json:"data_bits,omitempty"`

	StopBits *AccessConfigStopBits `json:"stop_bits,omitempty"`

	ParityBits *AccessConfigParityBits `json:"parity_bits,omitempty"`

	Url *AccessConfigUrl `json:"url,omitempty"`

	SecMode *AccessConfigSecMode `json:"sec_mode,omitempty"`

	SecPolicy *AccessConfigSecPolicy `json:"sec_policy,omitempty"`

	AuthType *AccessConfigAuthType `json:"auth_type,omitempty"`

	Username *AccessConfigUsername `json:"username,omitempty"`

	Password *AccessConfigPassword `json:"password,omitempty"`

	PrivateKey *AccessConfigPrivateKey `json:"private_key,omitempty"`

	Certificate *AccessConfigCertificate `json:"certificate,omitempty"`

	Timeout *AccessConfigTimeout `json:"timeout,omitempty"`
}

访问配置,与access_protocol直接关联

func (AccessConfig) String

func (o AccessConfig) String() string

type AccessConfigAuthType

type AccessConfigAuthType struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下访问认证类型,value值字段可选为0、1、2、3

func (AccessConfigAuthType) String

func (o AccessConfigAuthType) String() string

type AccessConfigBaudRate

type AccessConfigBaudRate struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

RTU传输模式下波特率配置,value值字段可选50、75、110、150、200、300、1200、1800、2400、9600、19200、38400、57600、115200

func (AccessConfigBaudRate) String

func (o AccessConfigBaudRate) String() string

type AccessConfigCertificate

type AccessConfigCertificate struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下,采用证书认证时证书字段,value字段为base64格式

func (AccessConfigCertificate) String

func (o AccessConfigCertificate) String() string

type AccessConfigDataBits

type AccessConfigDataBits struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

RTU传输模式下数据位配置,value值字段包括5、6、7、8

func (AccessConfigDataBits) String

func (o AccessConfigDataBits) String() string

type AccessConfigIp

type AccessConfigIp struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

TCP传输模式下访问ip地址(标准ipv4地址)

func (AccessConfigIp) String

func (o AccessConfigIp) String() string

type AccessConfigParityBits

type AccessConfigParityBits struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

RTU传输模式下校验位配置,value值字段可选为none、odd、even

func (AccessConfigParityBits) String

func (o AccessConfigParityBits) String() string

type AccessConfigPassword

type AccessConfigPassword struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下,采用密码认证时密码字段

func (AccessConfigPassword) String

func (o AccessConfigPassword) String() string

type AccessConfigPort

type AccessConfigPort struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

TCP传输模式下访问端口(0-65535)

func (AccessConfigPort) String

func (o AccessConfigPort) String() string

type AccessConfigPrivateKey

type AccessConfigPrivateKey struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下,采用证书认证时私钥字段,value字段为base64格式

func (AccessConfigPrivateKey) String

func (o AccessConfigPrivateKey) String() string

type AccessConfigProtocolName

type AccessConfigProtocolName struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

设备访问名称

func (AccessConfigProtocolName) String

func (o AccessConfigProtocolName) String() string

type AccessConfigProtocolType

type AccessConfigProtocolType struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

设备访问类型,包含: - userdefine:自定义访问协议; - TCP:modbus访问协议中的一种访问形式; - RTU:modbus访问协议中的一种访问形式; - opc-ua:opc-ua访问协议;

func (AccessConfigProtocolType) String

func (o AccessConfigProtocolType) String() string

type AccessConfigSecMode

type AccessConfigSecMode struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下访问安全模式

func (AccessConfigSecMode) String

func (o AccessConfigSecMode) String() string

type AccessConfigSecPolicy

type AccessConfigSecPolicy struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下访问安全策略

func (AccessConfigSecPolicy) String

func (o AccessConfigSecPolicy) String() string

type AccessConfigSerialPort

type AccessConfigSerialPort struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

RTU传输模式下串口配置

func (AccessConfigSerialPort) String

func (o AccessConfigSerialPort) String() string

type AccessConfigSlaveId

type AccessConfigSlaveId struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

Modbus设备访问id(0-255)

func (AccessConfigSlaveId) String

func (o AccessConfigSlaveId) String() string

type AccessConfigStopBits

type AccessConfigStopBits struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

RTU传输模式下停止位配置,value值字段包含1、2

func (AccessConfigStopBits) String

func (o AccessConfigStopBits) String() string

type AccessConfigTimeout

type AccessConfigTimeout struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下访问超时配置,默认为5s

func (AccessConfigTimeout) String

func (o AccessConfigTimeout) String() string

type AccessConfigUrl

type AccessConfigUrl struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下访问url地址

func (AccessConfigUrl) String

func (o AccessConfigUrl) String() string

type AccessConfigUsername

type AccessConfigUsername struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

OPC-UA协议下,采用密码认证时用户名字段

func (AccessConfigUsername) String

func (o AccessConfigUsername) String() string

type Action

type Action struct {
	Action string `json:"action"`
}

节点

func (Action) String

func (o Action) String() string

type AddTag

type AddTag struct {
	Tag *ResourceTag `json:"tag"`
}

func (AddTag) String

func (o AddTag) String() string

type Affinity

type Affinity struct {
	NodeAffinity *AffinityNodeAffinity `json:"nodeAffinity,omitempty"`

	PodAffinity *AffinityPodAffinity `json:"podAffinity,omitempty"`

	PodAntiAffinity *AffinityPodAntiAffinity `json:"podAntiAffinity,omitempty"`
}

应用实例亲和性规则,仅铂金版支持

func (Affinity) String

func (o Affinity) String() string

type AffinityNodeAffinity

type AffinityNodeAffinity struct {
	PreferredDuringSchedulingIgnoredDuringExecution *[]PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`

	RequiredDuringSchedulingIgnoredDuringExecution *RequiredDuringScheduling `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

节点亲和规则

func (AffinityNodeAffinity) String

func (o AffinityNodeAffinity) String() string

type AffinityPodAffinity

type AffinityPodAffinity struct {
	PreferredDuringSchedulingIgnoredDuringExecution *[]WeightPodAffinityTerms `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`

	RequiredDuringSchedulingIgnoredDuringExecution *[]PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

Pod亲和规则

func (AffinityPodAffinity) String

func (o AffinityPodAffinity) String() string

type AffinityPodAntiAffinity

type AffinityPodAntiAffinity struct {
	PreferredDuringSchedulingIgnoredDuringExecution *[]WeightPodAffinityTerms `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`

	RequiredDuringSchedulingIgnoredDuringExecution *[]PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

Pod反亲和规则

func (AffinityPodAntiAffinity) String

func (o AffinityPodAntiAffinity) String() string

type Annotations

type Annotations struct {
	RingController *string `json:"ring_controller,omitempty"`

	AutonomyEdgeSelector *string `json:"autonomy_edge_selector,omitempty"`
}

应用扩展功能配置选项

func (Annotations) String

func (o Annotations) String() string

type App

type App struct {
	App *AppDetail `json:"app"`
}

应用模板

func (App) String

func (o App) String() string

type AppDetail

type AppDetail struct {
	Name string `json:"name"`

	Alias *string `json:"alias,omitempty"`

	Description *string `json:"description,omitempty"`

	IconUrl *string `json:"icon_url,omitempty"`

	Tags *[]NodeResTag `json:"tags,omitempty"`
}

应用模板配置

func (AppDetail) String

func (o AppDetail) String() string

type AppPorts

type AppPorts struct {
	ContainerPort *int32 `json:"container_port,omitempty"`

	HostPort *int32 `json:"host_port,omitempty"`
}

应用端口配置

func (AppPorts) String

func (o AppPorts) String() string

type AppResp

type AppResp struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Alias string `json:"alias"`

	Description string `json:"description"`

	IconUrl string `json:"icon_url"`

	CreatedAt string `json:"created_at"`

	UpdatedAt string `json:"updated_at"`

	ProjectId string `json:"project_id"`

	Visibility string `json:"visibility"`

	AppVersions []AppVersionDetail `json:"app_versions"`
}

应用模板配置

func (AppResp) String

func (o AppResp) String() string

type AppResponse

type AppResponse struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Alias string `json:"alias"`

	Description string `json:"description"`

	IconUrl string `json:"icon_url"`

	CreatedAt string `json:"created_at"`

	ProjectId string `json:"project_id"`

	Visibility string `json:"visibility"`

	AppVersions []AppVersionDetail `json:"app_versions"`
}

应用模板配置

func (AppResponse) String

func (o AppResponse) String() string

type AppUpdate

type AppUpdate struct {
	Alias *string `json:"alias,omitempty"`

	Description *string `json:"description,omitempty"`
}

func (AppUpdate) String

func (o AppUpdate) String() string

type AppVersionDetail

type AppVersionDetail struct {
	Id *string `json:"id,omitempty"`

	Version *string `json:"version,omitempty"`

	CreatedAt *string `json:"created_at,omitempty"`

	UpdatedAt *string `json:"updated_at,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	ImageUrl *string `json:"image_url,omitempty"`

	Envs []Env `json:"envs"`

	Volumes []Volumes `json:"volumes"`

	Configs *AppVersionDetailConfigs `json:"configs,omitempty"`

	Resources *Resources `json:"resources,omitempty"`

	Arch *string `json:"arch,omitempty"`

	Command *[]string `json:"command,omitempty"`

	Args *[]string `json:"args,omitempty"`

	LivenessProbe *AppVersionDetailLivenessProbe `json:"liveness_probe,omitempty"`

	ReadinessProbe *AppVersionDetailReadinessProbe `json:"readiness_probe,omitempty"`
}

app详情

func (AppVersionDetail) String

func (o AppVersionDetail) String() string

type AppVersionDetailConfigs

type AppVersionDetailConfigs struct {
	Privileged *bool `json:"privileged,omitempty"`

	HostNetwork *bool `json:"host_network,omitempty"`

	RestartPolicy *string `json:"restart_policy,omitempty"`

	Ports *[]Ports `json:"ports,omitempty"`
}

容器特殊参数

func (AppVersionDetailConfigs) String

func (o AppVersionDetailConfigs) String() string

type AppVersionDetailLivenessProbe

type AppVersionDetailLivenessProbe struct {
	ExecCommand string `json:"exec_command"`

	HttpGet *InstancesLivenessProbeHttpGet `json:"http_get"`

	InitialDelaySeconds *int32 `json:"initial_delay_seconds,omitempty"`

	TimeoutSeconds *int32 `json:"timeout_seconds,omitempty"`
}

工作负载存活探针

func (AppVersionDetailLivenessProbe) String

type AppVersionDetailReadinessProbe

type AppVersionDetailReadinessProbe struct {
	ExecCommand string `json:"exec_command"`

	HttpGet *InstancesLivenessProbeHttpGet `json:"http_get"`

	InitialDelaySeconds *int32 `json:"initial_delay_seconds,omitempty"`

	TimeoutSeconds *int32 `json:"timeout_seconds,omitempty"`
}

工作负载业务探针

func (AppVersionDetailReadinessProbe) String

type AppVersionPorts

type AppVersionPorts struct {
	ContainerPort *int32 `json:"container_port,omitempty"`

	HostPort *int32 `json:"host_port,omitempty"`
}

容器端口映射值

func (AppVersionPorts) String

func (o AppVersionPorts) String() string

type Attributes

type Attributes struct {
	Key *string `json:"key,omitempty"`

	Value *string `json:"value,omitempty"`
}

节点属性

func (Attributes) String

func (o Attributes) String() string

type BachTags

type BachTags struct {
	Tags *[]ResourceTag `json:"tags,omitempty"`

	Action string `json:"action"`
}

func (BachTags) String

func (o BachTags) String() string

type BatchAddDeleteTagsRequest

type BatchAddDeleteTagsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	ResourceType string `json:"resource_type"`

	ResourceId string `json:"resource_id"`

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

Request Object

func (BatchAddDeleteTagsRequest) String

func (o BatchAddDeleteTagsRequest) String() string

type BatchAddDeleteTagsResponse

type BatchAddDeleteTagsResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchAddDeleteTagsResponse) String

type Cert

type Cert struct {
	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	Type string `json:"type"`
}

证书属性配置

func (Cert) String

func (o Cert) String() string

type ConfigMap

type ConfigMap struct {
	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	Configs map[string]string `json:"configs,omitempty"`
}

配置项

func (ConfigMap) String

func (o ConfigMap) String() string

type ConfigMapResp

type ConfigMapResp struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Description string `json:"description"`

	Configs map[string]string `json:"configs"`

	ProjectId string `json:"project_id"`

	CreatedAt string `json:"created_at"`

	UpdatedAt string `json:"updated_at"`
}

配置项

func (ConfigMapResp) String

func (o ConfigMapResp) String() string

type ConfigMaps

type ConfigMaps struct {
	Configmap *ConfigMap `json:"configmap"`
}

func (ConfigMaps) String

func (o ConfigMaps) String() string

type ConfigsMap

type ConfigsMap struct {
	Name string `json:"name"`

	Key string `json:"key"`
}

环境变量引用配置项时使用。

func (ConfigsMap) String

func (o ConfigsMap) String() string

type ContainerDef

type ContainerDef struct {
	Name string `json:"name"`

	ImageUrl string `json:"image_url"`

	Args *[]string `json:"args,omitempty"`

	Command *[]string `json:"command,omitempty"`

	Resources *DeploymentResources `json:"resources,omitempty"`

	Envs *[]Env `json:"envs,omitempty"`

	Ports *[]HostContainerPortMapping `json:"ports,omitempty"`

	Privileged *bool `json:"privileged,omitempty"`

	ReadinessProbe *Probe `json:"readiness_probe,omitempty"`

	LivenessProbe *Probe `json:"liveness_probe,omitempty"`

	Version *string `json:"version,omitempty"`

	Volumes *[]Volumes `json:"volumes,omitempty"`

	NpuType *string `json:"npu_type,omitempty"`
}

func (ContainerDef) String

func (o ContainerDef) String() string

type ContainerResp

type ContainerResp struct {
	Args *[]string `json:"args,omitempty"`

	Command *[]string `json:"command,omitempty"`

	Name string `json:"name"`

	Envs *[]EnvPods `json:"envs,omitempty"`

	ImageUrl string `json:"image_url"`

	Version *string `json:"version,omitempty"`

	LivenessProbe *Probe `json:"liveness_probe,omitempty"`

	ReadinessProbe *Probe `json:"readiness_probe,omitempty"`

	Ports *[]HostContainerPort `json:"ports,omitempty"`

	Resources *DeploymentResources `json:"resources,omitempty"`

	Volumes *[]Volumes `json:"volumes,omitempty"`

	Restarts *int64 `json:"restarts,omitempty"`

	Message *string `json:"message,omitempty"`

	Reason *string `json:"reason,omitempty"`

	IsReady *string `json:"is_ready,omitempty"`

	Privileged *bool `json:"privileged,omitempty"`

	ContainerId *string `json:"container_id,omitempty"`

	State *string `json:"state,omitempty"`

	NpuType *string `json:"npu_type,omitempty"`
}

func (ContainerResp) String

func (o ContainerResp) String() string

type CreateAppRequest

type CreateAppRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateAppRequest) String

func (o CreateAppRequest) String() string

type CreateAppResponse

type CreateAppResponse struct {
	App            *AppResponse `json:"app,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (CreateAppResponse) String

func (o CreateAppResponse) String() string

type CreateAppVersionsRequest

type CreateAppVersionsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	AppId string `json:"app_id"`

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

Request Object

func (CreateAppVersionsRequest) String

func (o CreateAppVersionsRequest) String() string

type CreateAppVersionsResponse

type CreateAppVersionsResponse struct {
	Version        *AppVersionDetail `json:"version,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (CreateAppVersionsResponse) String

func (o CreateAppVersionsResponse) String() string

type CreateAppsInDeploymentV3

type CreateAppsInDeploymentV3 struct {
	Replicas int32 `json:"replicas"`

	Template *PodRequest `json:"template"`

	Annotations *Annotations `json:"annotations,omitempty"`
}

部署参数配置

func (CreateAppsInDeploymentV3) String

func (o CreateAppsInDeploymentV3) String() string

type CreateConfigMapRequest

type CreateConfigMapRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateConfigMapRequest) String

func (o CreateConfigMapRequest) String() string

type CreateConfigMapResponse

type CreateConfigMapResponse struct {
	Configmap      *ConfigMapResp `json:"configmap,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (CreateConfigMapResponse) String

func (o CreateConfigMapResponse) String() string

type CreateDeploymentsRequest

type CreateDeploymentsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateDeploymentsRequest) String

func (o CreateDeploymentsRequest) String() string

type CreateDeploymentsResponse

type CreateDeploymentsResponse struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Replicas *int32 `json:"replicas,omitempty"`

	ReadyReplicas *int32 `json:"ready_replicas,omitempty"`

	Description *string `json:"description,omitempty"`

	GroupId *string `json:"group_id,omitempty"`

	NodeIds *[]string `json:"node_ids,omitempty"`

	Tags *[]Attributes `json:"tags,omitempty"`

	ApiVersion *string `json:"api_version,omitempty"`

	Source *string `json:"source,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	CreatedAt *string `json:"created_at,omitempty"`

	UpdatedAt *string `json:"updated_at,omitempty"`

	Template *PodRequest `json:"template,omitempty"`

	State *string `json:"state,omitempty"`

	SourceId *string `json:"source_id,omitempty"`

	Annotations    *Annotations `json:"annotations,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (CreateDeploymentsResponse) String

func (o CreateDeploymentsResponse) String() string

type CreateDeviceRequest

type CreateDeviceRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateDeviceRequest) String

func (o CreateDeviceRequest) String() string

type CreateDeviceResponse

type CreateDeviceResponse struct {
	Device         *Device `json:"device,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDeviceResponse) String

func (o CreateDeviceResponse) String() string

type CreateDeviceTemplateRequest

type CreateDeviceTemplateRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateDeviceTemplateRequest) String

type CreateDeviceTemplateResponse

type CreateDeviceTemplateResponse struct {
	DeviceTemplate *EdgemgrDevice `json:"device_template,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (CreateDeviceTemplateResponse) String

type CreateEdgeNodeCertsRequest

type CreateEdgeNodeCertsRequest struct {
	NodeId string `json:"node_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateEdgeNodeCertsRequest) String

type CreateEdgeNodeCertsResponse

type CreateEdgeNodeCertsResponse struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Description *string `json:"description,omitempty"`

	CreatedAt *string `json:"created_at,omitempty"`

	NodeId *string `json:"node_id,omitempty"`

	Type *string `json:"type,omitempty"`

	SerialNum *string `json:"serial_num,omitempty"`

	Ca *string `json:"ca,omitempty"`

	Certificate *string `json:"certificate,omitempty"`

	PrivateKey *string `json:"private_key,omitempty"`

	Package        *string `json:"package,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateEdgeNodeCertsResponse) String

type CreateEdgeNodeRequest

type CreateEdgeNodeRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateEdgeNodeRequest) String

func (o CreateEdgeNodeRequest) String() string

type CreateEdgeNodeResponse

type CreateEdgeNodeResponse struct {
	Node           *EdgeNodeResp `json:"node,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (CreateEdgeNodeResponse) String

func (o CreateEdgeNodeResponse) String() string

type CreateEndpointRequest

type CreateEndpointRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateEndpointRequest) String

func (o CreateEndpointRequest) String() string

type CreateEndpointResponse

type CreateEndpointResponse struct {
	Endpoint       *EndpointObjResp `json:"endpoint,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (CreateEndpointResponse) String

func (o CreateEndpointResponse) String() string

type CreateRuleRequest

type CreateRuleRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateRuleRequest) String

func (o CreateRuleRequest) String() string

type CreateRuleResponse

type CreateRuleResponse struct {
	Rule           *RuleResponse `json:"rule,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (CreateRuleResponse) String

func (o CreateRuleResponse) String() string

type CreateSecretRequest

type CreateSecretRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateSecretRequest) String

func (o CreateSecretRequest) String() string

type CreateSecretResponse

type CreateSecretResponse struct {
	Secret         *SecretDetailResp `json:"secret,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (CreateSecretResponse) String

func (o CreateSecretResponse) String() string

type CreateServiceRequest

type CreateServiceRequest struct {
	IefInstanceId string `json:"ief-instance-id"`

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

Request Object

func (CreateServiceRequest) String

func (o CreateServiceRequest) String() string

type CreateServiceResponse

type CreateServiceResponse struct {
	Service        *ServiceRespDetail `json:"service,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (CreateServiceResponse) String

func (o CreateServiceResponse) String() string

type CreateTagRequest

type CreateTagRequest struct {
	ResourceId string `json:"resource_id"`

	ResourceType string `json:"resource_type"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (CreateTagRequest) String

func (o CreateTagRequest) String() string

type CreateTagResponse

type CreateTagResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateTagResponse) String

func (o CreateTagResponse) String() string

type DeleteAppRequest

type DeleteAppRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	AppId string `json:"app_id"`
}

Request Object

func (DeleteAppRequest) String

func (o DeleteAppRequest) String() string

type DeleteAppResponse

type DeleteAppResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteAppResponse) String

func (o DeleteAppResponse) String() string

type DeleteAppVersionRequest

type DeleteAppVersionRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	AppId string `json:"app_id"`

	VersionId string `json:"version_id"`
}

Request Object

func (DeleteAppVersionRequest) String

func (o DeleteAppVersionRequest) String() string

type DeleteAppVersionResponse

type DeleteAppVersionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteAppVersionResponse) String

func (o DeleteAppVersionResponse) String() string

type DeleteConfigMapRequest

type DeleteConfigMapRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	ConfigmapId string `json:"configmap_id"`
}

Request Object

func (DeleteConfigMapRequest) String

func (o DeleteConfigMapRequest) String() string

type DeleteConfigMapResponse

type DeleteConfigMapResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteConfigMapResponse) String

func (o DeleteConfigMapResponse) String() string

type DeleteDeploymentRequest

type DeleteDeploymentRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeploymentId string `json:"deployment_id"`

	ForceDelete *string `json:"force_delete,omitempty"`
}

Request Object

func (DeleteDeploymentRequest) String

func (o DeleteDeploymentRequest) String() string

type DeleteDeploymentResponse

type DeleteDeploymentResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteDeploymentResponse) String

func (o DeleteDeploymentResponse) String() string

type DeleteDeviceRequest

type DeleteDeviceRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeviceId string `json:"device_id"`
}

Request Object

func (DeleteDeviceRequest) String

func (o DeleteDeviceRequest) String() string

type DeleteDeviceResponse

type DeleteDeviceResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteDeviceResponse) String

func (o DeleteDeviceResponse) String() string

type DeleteDeviceTemplateRequest

type DeleteDeviceTemplateRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeviceTemplateId string `json:"device_template_id"`
}

Request Object

func (DeleteDeviceTemplateRequest) String

type DeleteDeviceTemplateResponse

type DeleteDeviceTemplateResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteDeviceTemplateResponse) String

type DeleteEdgeNodeCertsRequest

type DeleteEdgeNodeCertsRequest struct {
	NodeId string `json:"node_id"`

	CertId string `json:"cert_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`
}

Request Object

func (DeleteEdgeNodeCertsRequest) String

type DeleteEdgeNodeCertsResponse

type DeleteEdgeNodeCertsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteEdgeNodeCertsResponse) String

type DeleteEdgeNodeRequest

type DeleteEdgeNodeRequest struct {
	NodeId string `json:"node_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`
}

Request Object

func (DeleteEdgeNodeRequest) String

func (o DeleteEdgeNodeRequest) String() string

type DeleteEdgeNodeResponse

type DeleteEdgeNodeResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteEdgeNodeResponse) String

func (o DeleteEdgeNodeResponse) String() string

type DeleteEndPointRequest

type DeleteEndPointRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	EndpointId string `json:"endpoint_id"`
}

Request Object

func (DeleteEndPointRequest) String

func (o DeleteEndPointRequest) String() string

type DeleteEndPointResponse

type DeleteEndPointResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteEndPointResponse) String

func (o DeleteEndPointResponse) String() string

type DeleteResourceTagRequest

type DeleteResourceTagRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	ResourceType string `json:"resource_type"`

	ResourceId string `json:"resource_id"`

	Key string `json:"key"`
}

Request Object

func (DeleteResourceTagRequest) String

func (o DeleteResourceTagRequest) String() string

type DeleteResourceTagResponse

type DeleteResourceTagResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteResourceTagResponse) String

func (o DeleteResourceTagResponse) String() string

type DeleteRuleRequest

type DeleteRuleRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	RuleId string `json:"rule_id"`
}

Request Object

func (DeleteRuleRequest) String

func (o DeleteRuleRequest) String() string

type DeleteRuleResponse

type DeleteRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteRuleResponse) String

func (o DeleteRuleResponse) String() string

type DeleteSecretRequest

type DeleteSecretRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	SecretId string `json:"secret_id"`
}

Request Object

func (DeleteSecretRequest) String

func (o DeleteSecretRequest) String() string

type DeleteSecretResponse

type DeleteSecretResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteSecretResponse) String

func (o DeleteSecretResponse) String() string

type DeleteServiceRequest

type DeleteServiceRequest struct {
	ServiceId string `json:"service_id"`

	IefInstanceId string `json:"ief-instance-id"`
}

Request Object

func (DeleteServiceRequest) String

func (o DeleteServiceRequest) String() string

type DeleteServiceResponse

type DeleteServiceResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteServiceResponse) String

func (o DeleteServiceResponse) String() string

type Deployment

type Deployment struct {
	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	Source *string `json:"source,omitempty"`

	GroupId *string `json:"group_id,omitempty"`

	NodeIds []string `json:"node_ids"`

	Tags *[]Attributes `json:"tags,omitempty"`

	Deployment *CreateAppsInDeploymentV3 `json:"deployment"`
}

部署参数配置

func (Deployment) String

func (o Deployment) String() string

type DeploymentResources

type DeploymentResources struct {
	Limits map[string]string `json:"limits,omitempty"`

	Requests map[string]string `json:"requests,omitempty"`
}

创建容器时使用的资源

func (DeploymentResources) String

func (o DeploymentResources) String() string

type DeploymentResp

type DeploymentResp struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Replicas *int32 `json:"replicas,omitempty"`

	ReadyReplicas *int32 `json:"ready_replicas,omitempty"`

	Description *string `json:"description,omitempty"`

	GroupId *string `json:"group_id,omitempty"`

	NodeIds []string `json:"node_ids"`

	Tags *[]Attributes `json:"tags,omitempty"`

	ApiVersion *string `json:"api_version,omitempty"`

	Source *string `json:"source,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	CreatedAt *string `json:"created_at,omitempty"`

	UpdatedAt *string `json:"updated_at,omitempty"`

	Template *PodRequest `json:"template"`

	State *string `json:"state,omitempty"`

	SourceId *string `json:"source_id,omitempty"`

	Annotations *Annotations `json:"annotations,omitempty"`
}

部署参数配置

func (DeploymentResp) String

func (o DeploymentResp) String() string

type Device

type Device struct {
	Id string `json:"id"`

	Name string `json:"name"`

	AccessProtocol string `json:"access_protocol"`

	Description string `json:"description"`

	ProjectId string `json:"project_id"`

	CreatedAt string `json:"created_at"`

	UpdatedAt string `json:"updated_at"`

	Attributes map[string]ValueInAttributes `json:"attributes"`

	ConnectionType string `json:"connection_type"`

	Twin map[string]ValueInTwinResponse `json:"twin"`

	AccessConfig *AccessConfig `json:"access_config"`

	PropertyVisitors map[string]ValueInPropertyVisitors `json:"property_visitors"`
}

终端设备属性

func (Device) String

func (o Device) String() string

type DeviceInfos

type DeviceInfos struct {
	Relation string `json:"relation"`

	Comment *string `json:"comment,omitempty"`

	DeviceIds []string `json:"device_ids"`
}

关联设备信息

func (DeviceInfos) String

func (o DeviceInfos) String() string

type DeviceTemplate

type DeviceTemplate struct {
	DeviceTemplate *EdgemgrDeviceReq `json:"device_template"`
}

设备模板

func (DeviceTemplate) String

func (o DeviceTemplate) String() string

type DeviceTemplateUpdate

type DeviceTemplateUpdate struct {
	DeviceTemplate *DeviceTemplateUpdateDetail `json:"device_template"`
}

设备模板

func (DeviceTemplateUpdate) String

func (o DeviceTemplateUpdate) String() string

type DeviceTemplateUpdateDetail

type DeviceTemplateUpdateDetail struct {
	Description *string `json:"description,omitempty"`

	Attributes map[string]ValueInAttributes `json:"attributes,omitempty"`

	Twin map[string]ValueInTwin `json:"twin,omitempty"`

	Tags *DeviceTemplateUpdateDetailTags `json:"tags,omitempty"`

	AccessProtocol *string `json:"access_protocol,omitempty"`

	PropertyVisitors map[string]ValueInPropertyVisitors `json:"property_visitors,omitempty"`
}

设备模板

func (DeviceTemplateUpdateDetail) String

type DeviceTemplateUpdateDetailTags

type DeviceTemplateUpdateDetailTags struct {
	Key *string `json:"key,omitempty"`

	Value *string `json:"value,omitempty"`
}

设备模板标签,key-value键值对形式。

func (DeviceTemplateUpdateDetailTags) String

type Devices

type Devices struct {
	Devices *DevicesDevices `json:"devices"`
}

终端设备属性

func (Devices) String

func (o Devices) String() string

type DevicesDevices

type DevicesDevices struct {
	Added *DevicesDevicesAdded `json:"added,omitempty"`

	Removed *[]string `json:"removed,omitempty"`
}

终端设备信息

func (DevicesDevices) String

func (o DevicesDevices) String() string

type DevicesDevicesAdded

type DevicesDevicesAdded struct {
	Relation *string `json:"relation,omitempty"`

	Comment *string `json:"comment,omitempty"`

	DeviceIds []string `json:"device_ids"`
}

要加入的终端设备详情

func (DevicesDevicesAdded) String

func (o DevicesDevicesAdded) String() string

type EdgeNode

type EdgeNode struct {
	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	EnableGpu *bool `json:"enable_gpu,omitempty"`

	LogConfigs *[]LogConfigs `json:"log_configs,omitempty"`

	DeviceInfos *[]DeviceInfos `json:"device_infos,omitempty"`

	EnableNpu *bool `json:"enable_npu,omitempty"`

	NpuType *string `json:"npu_type,omitempty"`

	Attributes *[]Attributes `json:"attributes,omitempty"`

	EnableDocker *bool `json:"enable_docker,omitempty"`

	Tags *[]NodeResTag `json:"tags,omitempty"`

	MqttConfig *EdgeNodeMqttConfig `json:"mqtt_config,omitempty"`
}

边缘节点参数

func (EdgeNode) String

func (o EdgeNode) String() string

type EdgeNodeAdded

type EdgeNodeAdded struct {
	Relation *string `json:"relation,omitempty"`

	Comment *string `json:"comment,omitempty"`

	NodeIds []string `json:"node_ids"`
}

要加入的节点详情

func (EdgeNodeAdded) String

func (o EdgeNodeAdded) String() string

type EdgeNodeMqttConfig

type EdgeNodeMqttConfig struct {
	EnableMqtt bool `json:"enable_mqtt"`

	Mqtts []Mqtt `json:"mqtts"`
}

MQTT配置。

func (EdgeNodeMqttConfig) String

func (o EdgeNodeMqttConfig) String() string

type EdgeNodeResp

type EdgeNodeResp struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Description string `json:"description"`

	CreatedAt string `json:"created_at"`

	UpdatedAt string `json:"updated_at"`

	ProjectId string `json:"project_id"`

	PrivateKey string `json:"private_key"`

	Certificate string `json:"certificate"`

	Ca string `json:"ca"`

	State string `json:"state"`

	Package string `json:"package"`

	MasterAddr string `json:"master_addr"`

	Cpu int32 `json:"cpu"`

	Memory int32 `json:"memory"`

	OsName string `json:"os_name"`

	OsVersion string `json:"os_version"`

	PauseDockerImage string `json:"pause_docker_image"`

	Arch string `json:"arch"`

	OsType string `json:"os_type"`

	DeploymentNum int32 `json:"deployment_num"`

	EnableGpu bool `json:"enable_gpu"`

	LogConfigs []LogConfigs `json:"log_configs"`

	DeviceInfos []DeviceInfos `json:"device_infos"`

	EdgedVersion string `json:"edged_version"`

	GpuNum int32 `json:"gpu_num"`

	HostIps []string `json:"host_ips"`

	Relation string `json:"relation"`

	Comment string `json:"comment"`

	GpuInfo []GpuInfo `json:"gpu_info"`

	DeviceNum int32 `json:"device_num"`

	EnableNpu bool `json:"enable_npu"`

	NpuType string `json:"npu_type"`

	Nics []Nics `json:"nics"`

	HostName string `json:"host_name"`

	IefNodeVersion string `json:"ief_node_version"`

	UpgradeFlag bool `json:"upgrade_flag"`

	ProductId string `json:"product_id"`

	GroupIds []string `json:"group_ids"`

	UpgradeHistory []UpgradeHistory `json:"upgrade_history"`

	Attributes []Attributes `json:"attributes"`

	DockerEnable bool `json:"docker_enable"`

	MqttMode string `json:"mqtt_mode"`

	MqttExternal string `json:"mqtt_external"`

	MqttInternal string `json:"mqtt_internal"`

	NodeType string `json:"node_type"`

	NtpConfigs *NtpConfigs `json:"ntp_configs"`

	ErrorReason string `json:"error_reason"`

	Tags []ResourceTag `json:"tags"`

	NpuNum int32 `json:"npu_num"`

	NpuInfo []NpuInfo `json:"npu_info"`

	ContainerRuntimeVersion string `json:"container_runtime_version"`
}

边缘节点参数

func (EdgeNodeResp) String

func (o EdgeNodeResp) String() string

type EdgeNodeUpdate

type EdgeNodeUpdate struct {
	Description *string `json:"description,omitempty"`

	LogConfigs *[]LogConfigs `json:"log_configs,omitempty"`

	NtpServers *[]string `json:"ntp_servers,omitempty"`

	Attributes *[]Attributes `json:"attributes,omitempty"`
}

边缘节点参数

func (EdgeNodeUpdate) String

func (o EdgeNodeUpdate) String() string

type EdgeNodeUpdateByDevice

type EdgeNodeUpdateByDevice struct {
	Nodes *NodeUpdateByDevice `json:"nodes"`
}

边缘节点的终端设备信息

func (EdgeNodeUpdateByDevice) String

func (o EdgeNodeUpdateByDevice) String() string

type EdgemgrDevice

type EdgemgrDevice struct {
	Id string `json:"id"`

	Name string `json:"name"`

	AccessProtocol string `json:"access_protocol"`

	Description string `json:"description"`

	Attributes map[string]ValueInAttributes `json:"attributes"`

	Twin map[string]ValueInTwinResponse `json:"twin"`

	ProjectId string `json:"project_id"`

	CreatedAt string `json:"created_at"`

	PropertyVisitors map[string]ValueInPropertyVisitors `json:"property_visitors"`

	Tags *ResourceTag `json:"tags"`
}

终端设备属性

func (EdgemgrDevice) String

func (o EdgemgrDevice) String() string

type EdgemgrDeviceReq

type EdgemgrDeviceReq struct {
	Name string `json:"name"`

	AccessProtocol *string `json:"access_protocol,omitempty"`

	Description *string `json:"description,omitempty"`

	Attributes map[string]ValueInAttributes `json:"attributes,omitempty"`

	Twin map[string]ValueInTwin `json:"twin,omitempty"`

	Tags *ResourceTag `json:"tags,omitempty"`

	PropertyVisitors map[string]ValueInPropertyVisitors `json:"property_visitors,omitempty"`
}

终端设备属性

func (EdgemgrDeviceReq) String

func (o EdgemgrDeviceReq) String() string

type EdgemgrDevices

type EdgemgrDevices struct {
	Device *EdgemgrDevicesDetail `json:"device"`
}

终端设备属性

func (EdgemgrDevices) String

func (o EdgemgrDevices) String() string

type EdgemgrDevicesDetail

type EdgemgrDevicesDetail struct {
	Id *string `json:"id,omitempty"`

	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	Attributes map[string]ValueInAttributes `json:"attributes,omitempty"`

	ConnectionType *string `json:"connection_type,omitempty"`

	AccessProtocol *string `json:"access_protocol,omitempty"`

	Twin map[string]ValueInTwin `json:"twin,omitempty"`

	AccessConfig *AccessConfig `json:"access_config,omitempty"`

	PropertyVisitors map[string]ValueInPropertyVisitors `json:"property_visitors,omitempty"`
}

终端设备属性

func (EdgemgrDevicesDetail) String

func (o EdgemgrDevicesDetail) String() string

type EdgemgrDevicesPara

type EdgemgrDevicesPara struct {
	Description *string `json:"description,omitempty"`

	Attributes map[string]ValueInAttributes `json:"attributes,omitempty"`
}

终端设备属性

func (EdgemgrDevicesPara) String

func (o EdgemgrDevicesPara) String() string

type EdgemgrDevicesUpdate

type EdgemgrDevicesUpdate struct {
	Device *EdgemgrDevicesPara `json:"device"`
}

终端设备属性

func (EdgemgrDevicesUpdate) String

func (o EdgemgrDevicesUpdate) String() string

type EnableDisableEdgeNodesRequest

type EnableDisableEdgeNodesRequest struct {
	NodeId string `json:"node_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (EnableDisableEdgeNodesRequest) String

type EnableDisableEdgeNodesResponse

type EnableDisableEdgeNodesResponse struct {
	Node           *Action `json:"node,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (EnableDisableEdgeNodesResponse) String

type Endpoint

type Endpoint struct {
	Endpoint *EndpointObj `json:"endpoint,omitempty"`
}

端点详情

func (Endpoint) String

func (o Endpoint) String() string

type EndpointObj

type EndpointObj struct {
	Description *string `json:"description,omitempty"`

	IefInstanceId *string `json:"ief_instance_id,omitempty"`

	Name string `json:"name"`

	Properties map[string]string `json:"properties"`

	Type string `json:"type"`
}

端点详情

func (EndpointObj) String

func (o EndpointObj) String() string

type EndpointObjResp

type EndpointObjResp struct {
	CreatedAt string `json:"created_at"`

	Description string `json:"description"`

	Id string `json:"id"`

	IefInstanceId string `json:"ief_instance_id"`

	IsShared bool `json:"is_shared"`

	Name string `json:"name"`

	ProjectId string `json:"project_id"`

	Properties map[string]interface{} `json:"properties"`

	Type string `json:"type"`

	UpdatedAt string `json:"updated_at"`
}

端点详情

func (EndpointObjResp) String

func (o EndpointObjResp) String() string

type Env

type Env struct {
	Name string `json:"name"`

	Value *string `json:"value,omitempty"`

	ValueFrom *EnvValueFrom `json:"value_from,omitempty"`

	FieldPath *string `json:"field_path,omitempty"`
}

环境变量

func (Env) String

func (o Env) String() string

type EnvPods

type EnvPods struct {
	Name string `json:"name"`

	Value *string `json:"value,omitempty"`
}

环境变量

func (EnvPods) String

func (o EnvPods) String() string

type EnvValueFrom

type EnvValueFrom struct {
	Secret *Secrets `json:"secret,omitempty"`

	Configmap *ConfigsMap `json:"configmap,omitempty"`
}

环境变量可使用配置项和密钥导入

func (EnvValueFrom) String

func (o EnvValueFrom) String() string

type Error

type Error struct {
	Detail string `json:"detail"`

	IefInstanceId string `json:"ief_instance_id"`

	ProjectId string `json:"project_id"`

	RuleId string `json:"rule_id"`

	Time string `json:"time"`
}

func (Error) String

func (o Error) String() string

type GpuInfo

type GpuInfo struct {
	Name *string `json:"name,omitempty"`

	Type *string `json:"type,omitempty"`

	Capacity *string `json:"capacity,omitempty"`
}

func (GpuInfo) String

func (o GpuInfo) String() string

type HostContainerPort

type HostContainerPort struct {
	ContainerPort int32 `json:"container_port"`

	HostPort *int32 `json:"host_port,omitempty"`

	HostIp *string `json:"host_ip,omitempty"`
}

容器端口映射值

func (HostContainerPort) String

func (o HostContainerPort) String() string

type HostContainerPortMapping

type HostContainerPortMapping struct {
	ContainerPort int32 `json:"container_port"`

	HostPort *int32 `json:"host_port,omitempty"`

	HostIp *string `json:"host_ip,omitempty"`

	HostPortRange *HostPortRange `json:"host_port_range,omitempty"`
}

容器端口映射值

func (HostContainerPortMapping) String

func (o HostContainerPortMapping) String() string

type HostPortRange

type HostPortRange struct {
	MinPort int32 `json:"min_port"`

	MaxPort int32 `json:"max_port"`
}

主机端口范围,在范围内为应用实例自动分配主机端口;与主机端口参数二选一;仅铂金版可用

func (HostPortRange) String

func (o HostPortRange) String() string

type InstancesLivenessProbeHttpGet

type InstancesLivenessProbeHttpGet struct {
	Path string `json:"path"`

	Port int32 `json:"port"`

	Host *string `json:"host,omitempty"`

	Scheme *string `json:"scheme,omitempty"`
}

执行http探测

func (InstancesLivenessProbeHttpGet) String

type LabelSelector

type LabelSelector struct {
	MatchExpressions *[]MatchExpression `json:"matchExpressions,omitempty"`

	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

标签选择器

func (LabelSelector) String

func (o LabelSelector) String() string

type ListAppVersionsRequest

type ListAppVersionsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	AppId string `json:"app_id"`

	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`
}

Request Object

func (ListAppVersionsRequest) String

func (o ListAppVersionsRequest) String() string

type ListAppVersionsResponse

type ListAppVersionsResponse struct {
	Versions *[]AppVersionDetail `json:"versions,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAppVersionsResponse) String

func (o ListAppVersionsResponse) String() string

type ListAppsRequest

type ListAppsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Name *string `json:"name,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`

	Alias *string `json:"alias,omitempty"`

	Visibility *string `json:"visibility,omitempty"`
}

Request Object

func (ListAppsRequest) String

func (o ListAppsRequest) String() string

type ListAppsResponse

type ListAppsResponse struct {
	Apps *[]AppResp `json:"apps,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAppsResponse) String

func (o ListAppsResponse) String() string

type ListConfigMapsRequest

type ListConfigMapsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Name *string `json:"name,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`
}

Request Object

func (ListConfigMapsRequest) String

func (o ListConfigMapsRequest) String() string

type ListConfigMapsResponse

type ListConfigMapsResponse struct {
	Configmaps *[]ConfigMapResp `json:"configmaps,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListConfigMapsResponse) String

func (o ListConfigMapsResponse) String() string

type ListDeploymentsRequest

type ListDeploymentsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Limit *int64 `json:"limit,omitempty"`

	Offset *int64 `json:"offset,omitempty"`

	Sort *string `json:"sort,omitempty"`

	Name *string `json:"name,omitempty"`

	NodeId *string `json:"node_id,omitempty"`

	GroupId *string `json:"group_id,omitempty"`
}

Request Object

func (ListDeploymentsRequest) String

func (o ListDeploymentsRequest) String() string

type ListDeploymentsResponse

type ListDeploymentsResponse struct {
	Count *int64 `json:"count,omitempty"`

	Deployments    *[]DeploymentResp `json:"deployments,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ListDeploymentsResponse) String

func (o ListDeploymentsResponse) String() string

type ListDeviceTemplatesRequest

type ListDeviceTemplatesRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Name *string `json:"name,omitempty"`

	Offset *string `json:"offset,omitempty"`

	Limit *string `json:"limit,omitempty"`
}

Request Object

func (ListDeviceTemplatesRequest) String

type ListDeviceTemplatesResponse

type ListDeviceTemplatesResponse struct {
	DeviceTemplates *[]EdgemgrDevice `json:"device_templates,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDeviceTemplatesResponse) String

type ListDevicesRequest

type ListDevicesRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Name *string `json:"name,omitempty"`

	NodeId *string `json:"node_id,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`

	IsBinding *string `json:"is_binding,omitempty"`

	Tags *string `json:"tags,omitempty"`
}

Request Object

func (ListDevicesRequest) String

func (o ListDevicesRequest) String() string

type ListDevicesResponse

type ListDevicesResponse struct {
	Devices *[]Device `json:"devices,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDevicesResponse) String

func (o ListDevicesResponse) String() string

type ListEdgeNodeCertsRequest

type ListEdgeNodeCertsRequest struct {
	NodeId string `json:"node_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListEdgeNodeCertsRequest) String

func (o ListEdgeNodeCertsRequest) String() string

type ListEdgeNodeCertsResponse

type ListEdgeNodeCertsResponse struct {
	Count *int32 `json:"count,omitempty"`

	NodeCerts      *[]NodeCert `json:"node_certs,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListEdgeNodeCertsResponse) String

func (o ListEdgeNodeCertsResponse) String() string

type ListEdgeNodesRequest

type ListEdgeNodesRequest struct {
	Name *string `json:"name,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`

	DeviceId *string `json:"device_id,omitempty"`

	DeviceName *string `json:"device_name,omitempty"`

	AppName *string `json:"app_name,omitempty"`

	Tags *string `json:"tags,omitempty"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`
}

Request Object

func (ListEdgeNodesRequest) String

func (o ListEdgeNodesRequest) String() string

type ListEdgeNodesResponse

type ListEdgeNodesResponse struct {
	Nodes *[]EdgeNodeResp `json:"nodes,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListEdgeNodesResponse) String

func (o ListEdgeNodesResponse) String() string

type ListEndpointsRequest

type ListEndpointsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Name *string `json:"name,omitempty"`

	Type *string `json:"type,omitempty"`

	IsShared *string `json:"is_shared,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListEndpointsRequest) String

func (o ListEndpointsRequest) String() string

type ListEndpointsResponse

type ListEndpointsResponse struct {
	Endpoints *[]EndpointObjResp `json:"endpoints,omitempty"`

	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListEndpointsResponse) String

func (o ListEndpointsResponse) String() string

type ListPodsRequest

type ListPodsRequest struct {
	NodeId *string `json:"node_id,omitempty"`

	GroupId *string `json:"group_id,omitempty"`

	DeploymentId *string `json:"deployment_id,omitempty"`

	DeploymentIds *string `json:"deployment_ids,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`
}

Request Object

func (ListPodsRequest) String

func (o ListPodsRequest) String() string

type ListPodsResponse

type ListPodsResponse struct {
	Count *int32 `json:"count,omitempty"`

	Pods           *[]PodResp `json:"pods,omitempty"`
	HttpStatusCode int        `json:"-"`
}

Response Object

func (ListPodsResponse) String

func (o ListPodsResponse) String() string

type ListResourceByTagsRequest

type ListResourceByTagsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	ResourceType string `json:"resource_type"`

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

Request Object

func (ListResourceByTagsRequest) String

func (o ListResourceByTagsRequest) String() string

type ListResourceByTagsResponse

type ListResourceByTagsResponse struct {
	Resources *[]Resource `json:"resources,omitempty"`

	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListResourceByTagsResponse) String

type ListRuleErrorsRequest

type ListRuleErrorsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	RuleId string `json:"rule_id"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListRuleErrorsRequest) String

func (o ListRuleErrorsRequest) String() string

type ListRuleErrorsResponse

type ListRuleErrorsResponse struct {
	Count *int64 `json:"count,omitempty"`

	Errors         *[]Error `json:"errors,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (ListRuleErrorsResponse) String

func (o ListRuleErrorsResponse) String() string

type ListRulesRequest

type ListRulesRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Name *string `json:"name,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListRulesRequest) String

func (o ListRulesRequest) String() string

type ListRulesResponse

type ListRulesResponse struct {
	Rules *[]RuleResponse `json:"rules,omitempty"`

	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListRulesResponse) String

func (o ListRulesResponse) String() string

type ListSecretsRequest

type ListSecretsRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	Name *string `json:"name,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`

	Sort *string `json:"sort,omitempty"`
}

Request Object

func (ListSecretsRequest) String

func (o ListSecretsRequest) String() string

type ListSecretsResponse

type ListSecretsResponse struct {
	Secrets *[]SecretDetailResp `json:"secrets,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListSecretsResponse) String

func (o ListSecretsResponse) String() string

type ListServicesRequest

type ListServicesRequest struct {
	Limit *int64 `json:"limit,omitempty"`

	Offset *int64 `json:"offset,omitempty"`

	Sorted *string `json:"sorted,omitempty"`

	Name *string `json:"name,omitempty"`

	App *string `json:"app,omitempty"`

	IefInstanceId string `json:"ief-instance-id"`
}

Request Object

func (ListServicesRequest) String

func (o ListServicesRequest) String() string

type ListServicesResponse

type ListServicesResponse struct {
	Count *int64 `json:"count,omitempty"`

	Services       *[]ServiceRespDetail `json:"services,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListServicesResponse) String

func (o ListServicesResponse) String() string

type ListTagsByResourceTypeRequest

type ListTagsByResourceTypeRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	ResourceType string `json:"resource_type"`
}

Request Object

func (ListTagsByResourceTypeRequest) String

type ListTagsByResourceTypeResponse

type ListTagsByResourceTypeResponse struct {
	Tags *[]Tag `json:"tags,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListTagsByResourceTypeResponse) String

type ListTagsRequest

type ListTagsRequest struct {
	ResourceId string `json:"resource_id"`

	ResourceType string `json:"resource_type"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`
}

Request Object

func (ListTagsRequest) String

func (o ListTagsRequest) String() string

type ListTagsResponse

type ListTagsResponse struct {
	Tags *[]ResourceTag `json:"tags,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListTagsResponse) String

func (o ListTagsResponse) String() string

type LogConfigs

type LogConfigs struct {
	Id *string `json:"id,omitempty"`

	Size *int32 `json:"size,omitempty"`

	Level *string `json:"level,omitempty"`

	RotateNum *int32 `json:"rotate_num,omitempty"`

	RotatePeriod *string `json:"rotate_period,omitempty"`

	Type string `json:"type"`

	Component string `json:"component"`
}

边缘节点日志配置

func (LogConfigs) String

func (o LogConfigs) String() string

type MatchExpression

type MatchExpression struct {
	Key *string `json:"key,omitempty"`

	Operator *string `json:"operator,omitempty"`

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

匹配规则表达式

func (MatchExpression) String

func (o MatchExpression) String() string

type MatchExpressions

type MatchExpressions struct {
	MatchExpressions *[]MatchExpression `json:"matchExpressions,omitempty"`
}

匹配规则表达式

func (MatchExpressions) String

func (o MatchExpressions) String() string

type Matches

type Matches struct {
	Key string `json:"key"`

	Value *string `json:"value,omitempty"`
}

搜索字段,key为要匹配的字段,如resource_name等。value为匹配的值。key为固定字典值,不能包含重复的key或不支持的key。 根据key的值确认是否需要模糊匹配,如resource_name默认为模糊搜索(不区分大小写,不支持*,支持字符串匹配),如果value为空字符串则返回空列表(IEF服务不存在资源名称为空的情况,因此这类情况返回空列表)。

func (Matches) String

func (o Matches) String() string

type Metadata

type Metadata struct {
	Type string `json:"type"`
}

期望值设置的时间信息

func (Metadata) String

func (o Metadata) String() string

type Mqtt

type Mqtt struct {
	BindAddr string `json:"bind_addr"`

	Port int32 `json:"port"`

	Type string `json:"type"`
}

MQTT配置。 当enable_mqtt取值为false时,mqtts需要为空数组。

func (Mqtt) String

func (o Mqtt) String() string

type Nics

type Nics struct {
	Interface *string `json:"interface,omitempty"`

	Ip *string `json:"ip,omitempty"`
}

func (Nics) String

func (o Nics) String() string

type Node

type Node struct {
	Node *EdgeNode `json:"node"`
}

边缘节点参数

func (Node) String

func (o Node) String() string

type NodeAction

type NodeAction struct {
	Node *Action `json:"node"`
}

节点启停

func (NodeAction) String

func (o NodeAction) String() string

type NodeCert

type NodeCert struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Description *string `json:"description,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	NodeId *string `json:"node_id,omitempty"`

	Type *string `json:"type,omitempty"`

	SerialNum *string `json:"serial_num,omitempty"`
}

func (NodeCert) String

func (o NodeCert) String() string

type NodeDevice

type NodeDevice struct {
	Added *DevicesDevicesAdded `json:"added,omitempty"`

	Removed *[]string `json:"removed,omitempty"`
}

边缘节点的终端设备信息

func (NodeDevice) String

func (o NodeDevice) String() string

type NodeResTag

type NodeResTag struct {
	Key *string `json:"key,omitempty"`

	Value *string `json:"value,omitempty"`
}

标签属性

func (NodeResTag) String

func (o NodeResTag) String() string

type NodeUpdateByDevice

type NodeUpdateByDevice struct {
	Added *EdgeNodeAdded `json:"added,omitempty"`

	Removed *[]string `json:"removed,omitempty"`
}

边缘节点的终端设备信息

func (NodeUpdateByDevice) String

func (o NodeUpdateByDevice) String() string

type NpuInfo

type NpuInfo struct {
	Name *string `json:"name,omitempty"`

	Type *string `json:"type,omitempty"`

	Capacity *string `json:"capacity,omitempty"`

	DriverVersion *string `json:"driver_version,omitempty"`
}

func (NpuInfo) String

func (o NpuInfo) String() string

type NtpConfigs

type NtpConfigs struct {
	NtpEnabled *bool `json:"ntp_enabled,omitempty"`

	Ntpservers *[]string `json:"ntpservers,omitempty"`
}

ntp配置

func (NtpConfigs) String

func (o NtpConfigs) String() string

type PodAffinityTerm

type PodAffinityTerm struct {
	LabelSelector *PodAffinityTermLabelSelector `json:"labelSelector,omitempty"`

	Namespaces *[]string `json:"namespaces,omitempty"`

	TopologyKey *string `json:"topologyKey,omitempty"`
}

Pod亲和规则

func (PodAffinityTerm) String

func (o PodAffinityTerm) String() string

type PodAffinityTermLabelSelector

type PodAffinityTermLabelSelector struct {
	MatchExpressions *[]MatchExpression `json:"matchExpressions,omitempty"`

	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

标签选择器

func (PodAffinityTermLabelSelector) String

type PodConfigs

type PodConfigs struct {
	HostNetwork bool `json:"host_network"`

	HostPid *bool `json:"host_pid,omitempty"`

	Migration *bool `json:"migration,omitempty"`

	RestartPolicy string `json:"restart_policy"`

	TolerationSeconds *int32 `json:"toleration_seconds,omitempty"`
}

应用实例配置

func (PodConfigs) String

func (o PodConfigs) String() string

type PodRequest

type PodRequest struct {
	Configs *PodConfigs `json:"configs"`

	Affinity *Affinity `json:"affinity,omitempty"`

	InitContainers *[]ContainerDef `json:"init_containers,omitempty"`

	Containers []ContainerDef `json:"containers"`
}

应用部署模板

func (PodRequest) String

func (o PodRequest) String() string

type PodResp

type PodResp struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Configs *PodConfigs `json:"configs"`

	Affinity *Affinity `json:"affinity"`

	InitContainers *[]ContainerResp `json:"init_containers,omitempty"`

	Containers []ContainerResp `json:"containers"`

	NodeId string `json:"node_id"`

	DeploymentId string `json:"deployment_id"`

	ProjectId string `json:"project_id"`

	Reason string `json:"reason"`

	Message string `json:"message"`

	CreatedAt string `json:"created_at"`

	UpdatedAt string `json:"updated_at"`

	State string `json:"state"`
}

func (PodResp) String

func (o PodResp) String() string

type Ports

type Ports struct {
	ContainerPort *int32 `json:"container_port,omitempty"`

	HostPort *int32 `json:"host_port,omitempty"`

	HostIp *string `json:"host_ip,omitempty"`
}

容器端口映射值

func (Ports) String

func (o Ports) String() string

type PreferredSchedulingTerm

type PreferredSchedulingTerm struct {
	Preference *PreferredSchedulingTermPreference `json:"preference,omitempty"`

	Weight *int32 `json:"weight,omitempty"`
}

优先使用定义的规则调度,且不会影响已经在节点上运行的Pod。即优先选择调度到满足规则的节点,但也可能会调度到不满足规则的节点。

func (PreferredSchedulingTerm) String

func (o PreferredSchedulingTerm) String() string

type PreferredSchedulingTermPreference

type PreferredSchedulingTermPreference struct {
	MatchExpressions *[]MatchExpression `json:"matchExpressions,omitempty"`
}

与相应权重关联的节点选择器项。

func (PreferredSchedulingTermPreference) String

type Probe

type Probe struct {
	Exec *ProbeExec `json:"exec,omitempty"`

	HttpGet *InstancesLivenessProbeHttpGet `json:"http_get,omitempty"`

	InitialDelaySeconds *int32 `json:"initial_delay_seconds,omitempty"`

	TimeoutSeconds *int32 `json:"timeout_seconds,omitempty"`
}

探针配置

func (Probe) String

func (o Probe) String() string

type ProbeExec

type ProbeExec struct {
	Command string `json:"command"`
}

执行命令检查,与http_get二选一

func (ProbeExec) String

func (o ProbeExec) String() string

type RequiredDuringScheduling

type RequiredDuringScheduling struct {
	NodeSelectorTerms *[]MatchExpressions `json:"nodeSelectorTerms,omitempty"`
}

强制使用定义的规则调度,且不会影响已经在节点上运行的Pod。即强制选择调度到满足规则的节点,不会调度到不满足规则的节点。

func (RequiredDuringScheduling) String

func (o RequiredDuringScheduling) String() string

type Resource

type Resource struct {
	ResourceId string `json:"resource_id"`

	Tags []ResourceTag `json:"tags"`

	ResourceName string `json:"resource_name"`
}

func (Resource) String

func (o Resource) String() string

type ResourceTag

type ResourceTag struct {
	Key string `json:"key"`

	Value string `json:"value"`
}

标签属性

func (ResourceTag) String

func (o ResourceTag) String() string

type Resources

type Resources struct {
	Limits *ResourcesLimits `json:"limits,omitempty"`

	Requests *ResourcesRequests `json:"requests,omitempty"`
}

容器使用的资源

func (Resources) String

func (o Resources) String() string

type ResourcesLimits

type ResourcesLimits struct {
	Cpu *float32 `json:"cpu,omitempty"`

	Memory *float32 `json:"memory,omitempty"`

	Gpu *float32 `json:"gpu,omitempty"`

	Npu *float32 `json:"npu,omitempty"`
}

允许容器使用的最大资源

func (ResourcesLimits) String

func (o ResourcesLimits) String() string

type ResourcesRequests

type ResourcesRequests struct {
	Cpu *float32 `json:"cpu,omitempty"`

	Memory *float32 `json:"memory,omitempty"`

	Gpu *float32 `json:"gpu,omitempty"`

	Npu *float32 `json:"npu,omitempty"`
}

容器需要使用的最小资源

func (ResourcesRequests) String

func (o ResourcesRequests) String() string

type RuleConfig

type RuleConfig struct {
	Description *string `json:"description,omitempty"`

	IefInstanceId *string `json:"ief_instance_id,omitempty"`

	InUsing *bool `json:"in_using,omitempty"`

	Name string `json:"name"`

	Source string `json:"source"`

	SourceResource map[string]string `json:"source_resource"`

	Target string `json:"target"`

	TargetResource map[string]string `json:"target_resource"`
}

规则配置

func (RuleConfig) String

func (o RuleConfig) String() string

type RuleDetail

type RuleDetail struct {
	Rule *RuleConfig `json:"rule,omitempty"`
}

规则配置

func (RuleDetail) String

func (o RuleDetail) String() string

type RuleResponse

type RuleResponse struct {
	CreatedAt *string `json:"created_at,omitempty"`

	Description *string `json:"description,omitempty"`

	FailMessages *int32 `json:"fail_messages,omitempty"`

	Id *string `json:"id,omitempty"`

	IefInstanceId *string `json:"ief_instance_id,omitempty"`

	InUsing *bool `json:"in_using,omitempty"`

	Name string `json:"name"`

	ProjectId string `json:"project_id"`

	Source *EndpointObjResp `json:"source"`

	SourceResource map[string]string `json:"source_resource"`

	Target *EndpointObjResp `json:"target"`

	TargetResource map[string]string `json:"target_resource"`

	UpdatedAt string `json:"updated_at"`

	SuccessMessages int32 `json:"success_messages"`
}

规则配置

func (RuleResponse) String

func (o RuleResponse) String() string

type Secret

type Secret struct {
	Secret *SecretDetail `json:"secret"`
}

密钥。

func (Secret) String

func (o Secret) String() string

type SecretDetail

type SecretDetail struct {
	Name string `json:"name"`

	Type *string `json:"type,omitempty"`

	Description *string `json:"description,omitempty"`

	Secrets map[string]string `json:"secrets"`
}

密钥

func (SecretDetail) String

func (o SecretDetail) String() string

type SecretDetailResp

type SecretDetailResp struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Description string `json:"description"`

	Secrets map[string]string `json:"secrets"`

	ProjectId string `json:"project_id"`

	CreatedAt string `json:"created_at"`

	UpdatedAt string `json:"updated_at"`

	Type string `json:"type"`
}

密钥

func (SecretDetailResp) String

func (o SecretDetailResp) String() string

type Secrets

type Secrets struct {
	Name string `json:"name"`

	Key string `json:"key"`
}

环境变量引用密钥时使用。使用ValueFrom时,secret与configmap必须二选一。

func (Secrets) String

func (o Secrets) String() string

type Service

type Service struct {
	Service *ServiceReqDetail `json:"service,omitempty"`
}

服务详情

func (Service) String

func (o Service) String() string

type ServiceReqDetail

type ServiceReqDetail struct {
	MetaData *SvcMetadata `json:"meta_data"`

	Spec *SvcSpec `json:"spec"`
}

服务详情

func (ServiceReqDetail) String

func (o ServiceReqDetail) String() string

type ServiceRespDetail

type ServiceRespDetail struct {
	CreatedAt string `json:"created_at"`

	Id string `json:"id"`

	MetaData *SvcMetadata `json:"meta_data"`

	ProjectId string `json:"project_id"`

	Spec *SvcSpec `json:"spec"`

	UpdatedAt string `json:"updated_at"`
}

服务详情

func (ServiceRespDetail) String

func (o ServiceRespDetail) String() string

type ShowAppDetailRequest

type ShowAppDetailRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	AppId string `json:"app_id"`
}

Request Object

func (ShowAppDetailRequest) String

func (o ShowAppDetailRequest) String() string

type ShowAppDetailResponse

type ShowAppDetailResponse struct {
	App            *AppResp `json:"app,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (ShowAppDetailResponse) String

func (o ShowAppDetailResponse) String() string

type ShowAppVersionDetailRequest

type ShowAppVersionDetailRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	AppId string `json:"app_id"`

	VersionId string `json:"version_id"`
}

Request Object

func (ShowAppVersionDetailRequest) String

type ShowAppVersionDetailResponse

type ShowAppVersionDetailResponse struct {
	Version        *AppVersionDetail `json:"version,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ShowAppVersionDetailResponse) String

type ShowConfigMapRequest

type ShowConfigMapRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	ConfigmapId string `json:"configmap_id"`
}

Request Object

func (ShowConfigMapRequest) String

func (o ShowConfigMapRequest) String() string

type ShowConfigMapResponse

type ShowConfigMapResponse struct {
	Configmap      *ConfigMapResp `json:"configmap,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowConfigMapResponse) String

func (o ShowConfigMapResponse) String() string

type ShowDeploymentRequest

type ShowDeploymentRequest struct {
	DeploymentId string `json:"deployment_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`
}

Request Object

func (ShowDeploymentRequest) String

func (o ShowDeploymentRequest) String() string

type ShowDeploymentResponse

type ShowDeploymentResponse struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Replicas *int32 `json:"replicas,omitempty"`

	ReadyReplicas *int32 `json:"ready_replicas,omitempty"`

	Description *string `json:"description,omitempty"`

	GroupId *string `json:"group_id,omitempty"`

	NodeIds *[]string `json:"node_ids,omitempty"`

	Tags *[]Attributes `json:"tags,omitempty"`

	ApiVersion *string `json:"api_version,omitempty"`

	Source *string `json:"source,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	CreatedAt *string `json:"created_at,omitempty"`

	UpdatedAt *string `json:"updated_at,omitempty"`

	Template *PodRequest `json:"template,omitempty"`

	State *string `json:"state,omitempty"`

	SourceId *string `json:"source_id,omitempty"`

	Annotations    *Annotations `json:"annotations,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ShowDeploymentResponse) String

func (o ShowDeploymentResponse) String() string

type ShowDeviceRequest

type ShowDeviceRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeviceId string `json:"device_id"`
}

Request Object

func (ShowDeviceRequest) String

func (o ShowDeviceRequest) String() string

type ShowDeviceResponse

type ShowDeviceResponse struct {
	Device         *Device `json:"device,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowDeviceResponse) String

func (o ShowDeviceResponse) String() string

type ShowDeviceTemplateRequest

type ShowDeviceTemplateRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeviceTemplateId string `json:"device_template_id"`
}

Request Object

func (ShowDeviceTemplateRequest) String

func (o ShowDeviceTemplateRequest) String() string

type ShowDeviceTemplateResponse

type ShowDeviceTemplateResponse struct {
	DeviceTemplate *EdgemgrDevice `json:"device_template,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowDeviceTemplateResponse) String

type ShowDeviceTwinRequest

type ShowDeviceTwinRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeviceId string `json:"device_id"`
}

Request Object

func (ShowDeviceTwinRequest) String

func (o ShowDeviceTwinRequest) String() string

type ShowDeviceTwinResponse

type ShowDeviceTwinResponse struct {
	PropertyVisitors *ValueInPropertyVisitors `json:"property_visitors,omitempty"`

	Twin *ValueInTwinResponse `json:"twin,omitempty"`

	AccessProtocol *string `json:"access_protocol,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowDeviceTwinResponse) String

func (o ShowDeviceTwinResponse) String() string

type ShowEdgeNodeDetailRequest

type ShowEdgeNodeDetailRequest struct {
	NodeId string `json:"node_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`
}

Request Object

func (ShowEdgeNodeDetailRequest) String

func (o ShowEdgeNodeDetailRequest) String() string

type ShowEdgeNodeDetailResponse

type ShowEdgeNodeDetailResponse struct {
	Node           *EdgeNodeResp `json:"node,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowEdgeNodeDetailResponse) String

type ShowEndPointDetailRequest

type ShowEndPointDetailRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	EndpointId string `json:"endpoint_id"`
}

Request Object

func (ShowEndPointDetailRequest) String

func (o ShowEndPointDetailRequest) String() string

type ShowEndPointDetailResponse

type ShowEndPointDetailResponse struct {
	Endpoint       *EndpointObjResp `json:"endpoint,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ShowEndPointDetailResponse) String

type ShowRuleDetailRequest

type ShowRuleDetailRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	RuleId string `json:"rule_id"`
}

Request Object

func (ShowRuleDetailRequest) String

func (o ShowRuleDetailRequest) String() string

type ShowRuleDetailResponse

type ShowRuleDetailResponse struct {
	Rule           *RuleResponse `json:"rule,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowRuleDetailResponse) String

func (o ShowRuleDetailResponse) String() string

type ShowSecretRequest

type ShowSecretRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	SecretId string `json:"secret_id"`
}

Request Object

func (ShowSecretRequest) String

func (o ShowSecretRequest) String() string

type ShowSecretResponse

type ShowSecretResponse struct {
	Secret         *SecretDetailResp `json:"secret,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ShowSecretResponse) String

func (o ShowSecretResponse) String() string

type ShowServiceDetailRequest

type ShowServiceDetailRequest struct {
	ServiceId string `json:"service_id"`

	IefInstanceId string `json:"ief-instance-id"`
}

Request Object

func (ShowServiceDetailRequest) String

func (o ShowServiceDetailRequest) String() string

type ShowServiceDetailResponse

type ShowServiceDetailResponse struct {
	Service        *ServiceRespDetail `json:"service,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ShowServiceDetailResponse) String

func (o ShowServiceDetailResponse) String() string

type Sorted

type Sorted struct {
	Key *string `json:"key,omitempty"`

	Reverse *bool `json:"reverse,omitempty"`
}

按标签过滤资源后返回结果的排序方式

func (Sorted) String

func (o Sorted) String() string

type StartRuleRequest

type StartRuleRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	RuleId string `json:"rule_id"`
}

Request Object

func (StartRuleRequest) String

func (o StartRuleRequest) String() string

type StartRuleResponse

type StartRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (StartRuleResponse) String

func (o StartRuleResponse) String() string

type StopRuleRequest

type StopRuleRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	RuleId string `json:"rule_id"`
}

Request Object

func (StopRuleRequest) String

func (o StopRuleRequest) String() string

type StopRuleResponse

type StopRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (StopRuleResponse) String

func (o StopRuleResponse) String() string

type SvcMetadata

type SvcMetadata struct {
	Labels map[string]string `json:"labels,omitempty"`

	Name string `json:"name"`
}

服务详情

func (SvcMetadata) String

func (o SvcMetadata) String() string

type SvcPort

type SvcPort struct {
	Name *string `json:"name,omitempty"`

	NodePort *string `json:"node_port,omitempty"`

	Port *string `json:"port,omitempty"`

	Protocol *string `json:"protocol,omitempty"`

	TargetPort *string `json:"target_port,omitempty"`
}

服务需要暴露的端口列表

func (SvcPort) String

func (o SvcPort) String() string

type SvcSpec

type SvcSpec struct {
	ClusterIp *string `json:"cluster_ip,omitempty"`

	ExternalIps *[]string `json:"external_ips,omitempty"`

	ExternalName *string `json:"external_name,omitempty"`

	Ports *[]SvcPort `json:"ports,omitempty"`

	Selector map[string]string `json:"selector"`

	Type *string `json:"type,omitempty"`
}

服务的动态属性

func (SvcSpec) String

func (o SvcSpec) String() string

type Tag

type Tag struct {
	Key string `json:"key"`

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

标签属性

func (Tag) String

func (o Tag) String() string

type Tags

type Tags struct {
	Tags *[]Tag `json:"tags,omitempty"`

	TagsAny *[]Tag `json:"tags_any,omitempty"`

	NotTags *[]Tag `json:"not_tags,omitempty"`

	NotTagsAny *[]Tag `json:"not_tags_any,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`

	Action string `json:"action"`

	Matches *[]Matches `json:"matches,omitempty"`

	Console *bool `json:"console,omitempty"`

	Sorted *Sorted `json:"sorted,omitempty"`
}

func (Tags) String

func (o Tags) String() string

type TwinUpdateDetail

type TwinUpdateDetail struct {
	Twin *ValueInTwin `json:"twin,omitempty"`

	PropertyVisitors *TwinUpdateDetailPropertyVisitors `json:"property_visitors,omitempty"`
}

更新终端设备孪生参数配置

func (TwinUpdateDetail) String

func (o TwinUpdateDetail) String() string

type TwinUpdateDetailPropertyVisitors

type TwinUpdateDetailPropertyVisitors struct {
	RegisterType *ValueInPropertyVisitorsRegisterType `json:"register_type,omitempty"`

	AccessMode *ValueInPropertyVisitorsAccessMode `json:"access_mode,omitempty"`

	RegisterIndex *ValueInPropertyVisitorsRegisterIndex `json:"register_index,omitempty"`

	RegisterNum *ValueInPropertyVisitorsRegisterNum `json:"register_num,omitempty"`

	ScaleIndex *ValueInPropertyVisitorsScaleIndex `json:"scale_index,omitempty"`

	OriginalDatatype *ValueInPropertyVisitorsOriginalDatatype `json:"original_datatype,omitempty"`

	ExpectedDatatype *ValueInPropertyVisitorsExpectedDatatype `json:"expected_datatype,omitempty"`

	IsRegisterswap *ValueInPropertyVisitorsIsRegisterswap `json:"is_registerswap,omitempty"`

	IsSwap *ValueInPropertyVisitorsIsSwap `json:"is_swap,omitempty"`

	SampleInterval *ValueInPropertyVisitorsSampleInterval `json:"sample_interval,omitempty"`

	DataMin *ValueInPropertyVisitorsDataMin `json:"data_min,omitempty"`

	DataMax *ValueInPropertyVisitorsDataMax `json:"data_max,omitempty"`

	NodeId *ValueInPropertyVisitorsNodeId `json:"node_id,omitempty"`

	BrowseName *ValueInPropertyVisitorsBrowseName `json:"browse_name,omitempty"`
}

孪生属性配置,与access_protocol关联。

func (TwinUpdateDetailPropertyVisitors) String

type UpdateAppRequest

type UpdateAppRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	AppId string `json:"app_id"`

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

Request Object

func (UpdateAppRequest) String

func (o UpdateAppRequest) String() string

type UpdateAppResponse

type UpdateAppResponse struct {
	App            *AppResp `json:"app,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (UpdateAppResponse) String

func (o UpdateAppResponse) String() string

type UpdateAppVersionRequest

type UpdateAppVersionRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	AppId string `json:"app_id"`

	VersionId string `json:"version_id"`

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

Request Object

func (UpdateAppVersionRequest) String

func (o UpdateAppVersionRequest) String() string

type UpdateAppVersionResponse

type UpdateAppVersionResponse struct {
	Version        *AppVersionDetail `json:"version,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (UpdateAppVersionResponse) String

func (o UpdateAppVersionResponse) String() string

type UpdateConfigMap

type UpdateConfigMap struct {
	Description *string `json:"description,omitempty"`

	Configs map[string]string `json:"configs,omitempty"`
}

配置项

func (UpdateConfigMap) String

func (o UpdateConfigMap) String() string

type UpdateConfigMapRequest

type UpdateConfigMapRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	ConfigmapId string `json:"configmap_id"`

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

Request Object

func (UpdateConfigMapRequest) String

func (o UpdateConfigMapRequest) String() string

type UpdateConfigMapResponse

type UpdateConfigMapResponse struct {
	Configmap      *ConfigMapResp `json:"configmap,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdateConfigMapResponse) String

func (o UpdateConfigMapResponse) String() string

type UpdateConfigMaps

type UpdateConfigMaps struct {
	Configmap *UpdateConfigMap `json:"configmap"`
}

func (UpdateConfigMaps) String

func (o UpdateConfigMaps) String() string

type UpdateDeployment

type UpdateDeployment struct {
	Deployment *UpdatePodDeployment `json:"deployment,omitempty"`

	Description *string `json:"description,omitempty"`
}

更新部署请求Body参数

func (UpdateDeployment) String

func (o UpdateDeployment) String() string

type UpdateDeploymentRequest

type UpdateDeploymentRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeploymentId string `json:"deployment_id"`

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

Request Object

func (UpdateDeploymentRequest) String

func (o UpdateDeploymentRequest) String() string

type UpdateDeploymentResponse

type UpdateDeploymentResponse struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Replicas *int32 `json:"replicas,omitempty"`

	ReadyReplicas *int32 `json:"ready_replicas,omitempty"`

	Description *string `json:"description,omitempty"`

	GroupId *string `json:"group_id,omitempty"`

	NodeIds *[]string `json:"node_ids,omitempty"`

	Tags *[]Attributes `json:"tags,omitempty"`

	ApiVersion *string `json:"api_version,omitempty"`

	Source *string `json:"source,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	CreatedAt *string `json:"created_at,omitempty"`

	UpdatedAt *string `json:"updated_at,omitempty"`

	Template *PodRequest `json:"template,omitempty"`

	State *string `json:"state,omitempty"`

	SourceId       *string `json:"source_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateDeploymentResponse) String

func (o UpdateDeploymentResponse) String() string

type UpdateDeviceRequest

type UpdateDeviceRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeviceId string `json:"device_id"`

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

Request Object

func (UpdateDeviceRequest) String

func (o UpdateDeviceRequest) String() string

type UpdateDeviceResponse

type UpdateDeviceResponse struct {
	Device         *Device `json:"device,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateDeviceResponse) String

func (o UpdateDeviceResponse) String() string

type UpdateDeviceTemplateByIdRequest

type UpdateDeviceTemplateByIdRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeviceTemplateId string `json:"device_template_id"`

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

Request Object

func (UpdateDeviceTemplateByIdRequest) String

type UpdateDeviceTemplateByIdResponse

type UpdateDeviceTemplateByIdResponse struct {
	DeviceTemplate *EdgemgrDevice `json:"device_template,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdateDeviceTemplateByIdResponse) String

type UpdateDeviceTwinRequest

type UpdateDeviceTwinRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	DeviceId string `json:"device_id"`

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

Request Object

func (UpdateDeviceTwinRequest) String

func (o UpdateDeviceTwinRequest) String() string

type UpdateDeviceTwinResponse

type UpdateDeviceTwinResponse struct {
	PropertyVisitors *ValueInPropertyVisitors `json:"property_visitors,omitempty"`

	Twin           *ValueInTwinResponse `json:"twin,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (UpdateDeviceTwinResponse) String

func (o UpdateDeviceTwinResponse) String() string

type UpdateEdgeNodeDeviceRequest

type UpdateEdgeNodeDeviceRequest struct {
	NodeId string `json:"node_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (UpdateEdgeNodeDeviceRequest) String

type UpdateEdgeNodeDeviceResponse

type UpdateEdgeNodeDeviceResponse struct {
	DeleteConnector *bool `json:"delete_connector,omitempty"`

	DeployConnector *bool `json:"deploy_connector,omitempty"`

	DeploymentId *string `json:"deployment_id,omitempty"`

	UpdateDevices  *NodeDevice `json:"update_devices,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (UpdateEdgeNodeDeviceResponse) String

type UpdateEdgeNodeRequest

type UpdateEdgeNodeRequest struct {
	NodeId string `json:"node_id"`

	IefInstanceId *string `json:"ief-instance-id,omitempty"`

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

Request Object

func (UpdateEdgeNodeRequest) String

func (o UpdateEdgeNodeRequest) String() string

type UpdateEdgeNodeResponse

type UpdateEdgeNodeResponse struct {
	Node           *EdgeNodeResp `json:"node,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (UpdateEdgeNodeResponse) String

func (o UpdateEdgeNodeResponse) String() string

type UpdateNodeByDeviceIdRequest

type UpdateNodeByDeviceIdRequest struct {
	DeviceId string `json:"device_id"`

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

Request Object

func (UpdateNodeByDeviceIdRequest) String

type UpdateNodeByDeviceIdResponse

type UpdateNodeByDeviceIdResponse struct {
	UpdateNodes    *NodeUpdateByDevice `json:"update_nodes,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (UpdateNodeByDeviceIdResponse) String

type UpdatePodDeployment

type UpdatePodDeployment struct {
	Replicas int32 `json:"replicas"`

	Template *PodRequest `json:"template"`
}

应用部署全量替换修改,应用更新时调用

func (UpdatePodDeployment) String

func (o UpdatePodDeployment) String() string

type UpdateSecret

type UpdateSecret struct {
	Secret *UpdateSecretDetail `json:"secret"`
}

密钥。

func (UpdateSecret) String

func (o UpdateSecret) String() string

type UpdateSecretDetail

type UpdateSecretDetail struct {
	Description *string `json:"description,omitempty"`

	Secrets map[string]string `json:"secrets,omitempty"`
}

密钥

func (UpdateSecretDetail) String

func (o UpdateSecretDetail) String() string

type UpdateSecretRequest

type UpdateSecretRequest struct {
	IefInstanceId *string `json:"ief-instance-id,omitempty"`

	SecretId string `json:"secret_id"`

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

Request Object

func (UpdateSecretRequest) String

func (o UpdateSecretRequest) String() string

type UpdateSecretResponse

type UpdateSecretResponse struct {
	Secret         *SecretDetailResp `json:"secret,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (UpdateSecretResponse) String

func (o UpdateSecretResponse) String() string

type UpdateServiceRequest

type UpdateServiceRequest struct {
	ServiceId string `json:"service_id"`

	IefInstanceId string `json:"ief-instance-id"`

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

Request Object

func (UpdateServiceRequest) String

func (o UpdateServiceRequest) String() string

type UpdateServiceResponse

type UpdateServiceResponse struct {
	Service        *ServiceRespDetail `json:"service,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (UpdateServiceResponse) String

func (o UpdateServiceResponse) String() string

type UpgradeHistory

type UpgradeHistory struct {
	Id *int32 `json:"id,omitempty"`

	FromVersion *string `json:"from_version,omitempty"`

	ToVersion *string `json:"to_version,omitempty"`

	UpgradeTime *int32 `json:"upgrade_time,omitempty"`

	Result *string `json:"result,omitempty"`

	DurTime *int32 `json:"dur_time,omitempty"`
}

节点安装或升级记录

func (UpgradeHistory) String

func (o UpgradeHistory) String() string

type ValueInAttributes

type ValueInAttributes struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

静态属性

func (ValueInAttributes) String

func (o ValueInAttributes) String() string

type ValueInPropertyVisitors

type ValueInPropertyVisitors struct {
	RegisterType *ValueInPropertyVisitorsRegisterType `json:"register_type,omitempty"`

	AccessMode *ValueInPropertyVisitorsAccessMode `json:"access_mode,omitempty"`

	RegisterIndex *ValueInPropertyVisitorsRegisterIndex `json:"register_index,omitempty"`

	RegisterNum *ValueInPropertyVisitorsRegisterNum `json:"register_num,omitempty"`

	ScaleIndex *ValueInPropertyVisitorsScaleIndex `json:"scale_index,omitempty"`

	OriginalDatatype *ValueInPropertyVisitorsOriginalDatatype `json:"original_datatype,omitempty"`

	ExpectedDatatype *ValueInPropertyVisitorsExpectedDatatype `json:"expected_datatype,omitempty"`

	IsRegisterswap *ValueInPropertyVisitorsIsRegisterswap `json:"is_registerswap,omitempty"`

	IsSwap *ValueInPropertyVisitorsIsSwap `json:"is_swap,omitempty"`

	SampleInterval *ValueInPropertyVisitorsSampleInterval `json:"sample_interval,omitempty"`

	DataMin *ValueInPropertyVisitorsDataMin `json:"data_min,omitempty"`

	DataMax *ValueInPropertyVisitorsDataMax `json:"data_max,omitempty"`

	NodeId *ValueInPropertyVisitorsNodeId `json:"node_id,omitempty"`

	BrowseName *ValueInPropertyVisitorsBrowseName `json:"browse_name,omitempty"`
}

孪生属性配置,与access_protocol关联。

func (ValueInPropertyVisitors) String

func (o ValueInPropertyVisitors) String() string

type ValueInPropertyVisitorsAccessMode

type ValueInPropertyVisitorsAccessMode struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

访问模式,value值字段可选为r和r/w

func (ValueInPropertyVisitorsAccessMode) String

type ValueInPropertyVisitorsBrowseName

type ValueInPropertyVisitorsBrowseName struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

节点名称

func (ValueInPropertyVisitorsBrowseName) String

type ValueInPropertyVisitorsDataMax

type ValueInPropertyVisitorsDataMax struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

原始数据值区间最大值,与原始数据类型关联

func (ValueInPropertyVisitorsDataMax) String

type ValueInPropertyVisitorsDataMin

type ValueInPropertyVisitorsDataMin struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

原始数据值区间最小值,与原始数据类型关联

func (ValueInPropertyVisitorsDataMin) String

type ValueInPropertyVisitorsExpectedDatatype

type ValueInPropertyVisitorsExpectedDatatype struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

期望数据类型

func (ValueInPropertyVisitorsExpectedDatatype) String

type ValueInPropertyVisitorsIsRegisterswap

type ValueInPropertyVisitorsIsRegisterswap struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

是否交换寄存器顺序

func (ValueInPropertyVisitorsIsRegisterswap) String

type ValueInPropertyVisitorsIsSwap

type ValueInPropertyVisitorsIsSwap struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

是否交换高低字节

func (ValueInPropertyVisitorsIsSwap) String

type ValueInPropertyVisitorsNodeId

type ValueInPropertyVisitorsNodeId struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

节点id

func (ValueInPropertyVisitorsNodeId) String

type ValueInPropertyVisitorsOriginalDatatype

type ValueInPropertyVisitorsOriginalDatatype struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

原始数据类型

func (ValueInPropertyVisitorsOriginalDatatype) String

type ValueInPropertyVisitorsRegisterIndex

type ValueInPropertyVisitorsRegisterIndex struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

寄存器偏移地址,value值字段取值范围0-65535

func (ValueInPropertyVisitorsRegisterIndex) String

type ValueInPropertyVisitorsRegisterNum

type ValueInPropertyVisitorsRegisterNum struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

寄存器个数

func (ValueInPropertyVisitorsRegisterNum) String

type ValueInPropertyVisitorsRegisterType

type ValueInPropertyVisitorsRegisterType struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

寄存器类型,value值字段可选为CoilsRegisters、HoldingRegisters、DiscreteInputsRegisters、InputRegisters

func (ValueInPropertyVisitorsRegisterType) String

type ValueInPropertyVisitorsRegisterTypeMetadata

type ValueInPropertyVisitorsRegisterTypeMetadata struct {
	Type string `json:"type"`
}

静态属性的元数据信息,默认为{\"type\": \"string\"}

func (ValueInPropertyVisitorsRegisterTypeMetadata) String

type ValueInPropertyVisitorsSampleInterval

type ValueInPropertyVisitorsSampleInterval struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

数据采集间隔,取值范围为1-3600

func (ValueInPropertyVisitorsSampleInterval) String

type ValueInPropertyVisitorsScaleIndex

type ValueInPropertyVisitorsScaleIndex struct {
	Value string `json:"value"`

	Optional *bool `json:"optional,omitempty"`

	Metadata *ValueInPropertyVisitorsRegisterTypeMetadata `json:"metadata,omitempty"`
}

缩放因子

func (ValueInPropertyVisitorsScaleIndex) String

type ValueInTwin

type ValueInTwin struct {
	Excepted *ValueInTwinExcepted `json:"excepted"`

	Optional *bool `json:"optional,omitempty"`

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

终端设备动态属性

func (ValueInTwin) String

func (o ValueInTwin) String() string

type ValueInTwinExcepted

type ValueInTwinExcepted struct {
	Value string `json:"value"`

	Metadata *ValueInTwinExceptedMetadata `json:"metadata,omitempty"`
}

动态属性的期望信息

func (ValueInTwinExcepted) String

func (o ValueInTwinExcepted) String() string

type ValueInTwinExceptedMetadata

type ValueInTwinExceptedMetadata struct {
	Timestamp *string `json:"timestamp,omitempty"`
}

期望值设置的时间信息

func (ValueInTwinExceptedMetadata) String

type ValueInTwinResponse

type ValueInTwinResponse struct {
	Excepted *ValueInTwinResponseExcepted `json:"excepted,omitempty"`

	Actual *ValueInTwinResponseActual `json:"actual,omitempty"`

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

	Optional *bool `json:"optional,omitempty"`
}

终端设备静态属性信息

func (ValueInTwinResponse) String

func (o ValueInTwinResponse) String() string

type ValueInTwinResponseActual

type ValueInTwinResponseActual struct {
	Value *string `json:"value,omitempty"`
}

动态属性的实际信息

func (ValueInTwinResponseActual) String

func (o ValueInTwinResponseActual) String() string

type ValueInTwinResponseExcepted

type ValueInTwinResponseExcepted struct {
	Value *string `json:"value,omitempty"`
}

动态属性的期望信息

func (ValueInTwinResponseExcepted) String

type ValueInTwinResponseMetadata

type ValueInTwinResponseMetadata struct {
	Timestamp *string `json:"timestamp,omitempty"`
}

动态属性的元数据信息

func (ValueInTwinResponseMetadata) String

type Version

type Version struct {
	Version *VersionDetail `json:"version"`
}

应用模板版本

func (Version) String

func (o Version) String() string

type VersionDetail

type VersionDetail struct {
	Version string `json:"version"`

	ImageUrl string `json:"image_url"`

	Envs *[]Env `json:"envs,omitempty"`

	Volumes *[]Volumes `json:"volumes,omitempty"`

	Configs *VersionDetailConfigs `json:"configs,omitempty"`

	Resources *VersionDetailResources `json:"resources,omitempty"`

	Arch *string `json:"arch,omitempty"`

	Command *[]string `json:"command,omitempty"`

	Args *[]string `json:"args,omitempty"`

	LivenessProbe *AppVersionDetailLivenessProbe `json:"liveness_probe,omitempty"`

	ReadinessProbe *AppVersionDetailReadinessProbe `json:"readiness_probe,omitempty"`

	NpuType *string `json:"npu_type,omitempty"`
}

应用模板版本配置

func (VersionDetail) String

func (o VersionDetail) String() string

type VersionDetailConfigs

type VersionDetailConfigs struct {
	Privileged *bool `json:"privileged,omitempty"`

	HostNetwork *bool `json:"host_network,omitempty"`

	RestartPolicy *string `json:"restart_policy,omitempty"`

	Ports *[]AppVersionPorts `json:"ports,omitempty"`
}

容器特殊参数

func (VersionDetailConfigs) String

func (o VersionDetailConfigs) String() string

type VersionDetailResources

type VersionDetailResources struct {
	Limits *VersionDetailResourcesLimits `json:"limits,omitempty"`

	Requests *VersionDetailResourcesRequests `json:"requests,omitempty"`
}

资源配额

func (VersionDetailResources) String

func (o VersionDetailResources) String() string

type VersionDetailResourcesLimits

type VersionDetailResourcesLimits struct {
	Cpu *string `json:"cpu,omitempty"`

	Memory *string `json:"memory,omitempty"`

	Gpu *string `json:"gpu,omitempty"`

	Npu *string `json:"npu,omitempty"`
}

允许容器使用的最大资源

func (VersionDetailResourcesLimits) String

type VersionDetailResourcesRequests

type VersionDetailResourcesRequests struct {
	Cpu *string `json:"cpu,omitempty"`

	Memory *string `json:"memory,omitempty"`

	Gpu *string `json:"gpu,omitempty"`

	Npu *string `json:"npu,omitempty"`
}

容器需要使用的最小资源

func (VersionDetailResourcesRequests) String

type VersionUpdate

type VersionUpdate struct {
	Envs *[]Env `json:"envs,omitempty"`

	Volumes *[]Volumes `json:"volumes,omitempty"`

	Configs *VersionUpdateConfigs `json:"configs,omitempty"`

	Resources *VersionDetailResources `json:"resources,omitempty"`

	Command *[]string `json:"command,omitempty"`

	Args *[]string `json:"args,omitempty"`

	LivenessProbe *string `json:"liveness_probe,omitempty"`

	ReadinessProbe *string `json:"readiness_probe,omitempty"`

	NpuType *string `json:"npu_type,omitempty"`
}

应用模板版本配置

func (VersionUpdate) String

func (o VersionUpdate) String() string

type VersionUpdateConfigs

type VersionUpdateConfigs struct {
	Privileged *bool `json:"privileged,omitempty"`

	HostNetwork *bool `json:"host_network,omitempty"`

	RestartPolicy *string `json:"restart_policy,omitempty"`

	Ports *[]AppPorts `json:"ports,omitempty"`
}

容器特殊参数

func (VersionUpdateConfigs) String

func (o VersionUpdateConfigs) String() string

type Volumes

type Volumes struct {
	Name string `json:"name"`

	Type string `json:"type"`

	Source string `json:"source"`

	Destination string `json:"destination"`

	ReadOnly bool `json:"read_only"`
}

卷配置

func (Volumes) String

func (o Volumes) String() string

type WeightPodAffinityTerms

type WeightPodAffinityTerms struct {
	PodAffinityTerm *WeightPodAffinityTermsPodAffinityTerm `json:"podAffinityTerm,omitempty"`

	Weight *int32 `json:"weight,omitempty"`
}

优先使用定义的规则调度,且不会影响已经在节点上运行的Pod。即优先选择调度到满足规则的节点,但也可能会调度到不满足规则的节点。

func (WeightPodAffinityTerms) String

func (o WeightPodAffinityTerms) String() string

type WeightPodAffinityTermsPodAffinityTerm

type WeightPodAffinityTermsPodAffinityTerm struct {
	LabelSelector *LabelSelector `json:"labelSelector,omitempty"`

	Namespaces *[]string `json:"namespaces,omitempty"`

	TopologyKey *string `json:"topologyKey,omitempty"`
}

Pod亲和规则

func (WeightPodAffinityTermsPodAffinityTerm) String

Source Files

Jump to

Keyboard shortcuts

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