deployPB

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "CONNECT",
		2: "UPDATE_VERSION",
		3: "GET_PROVIDER",
		4: "REGISTER",
		5: "EXECUTE_BUSINES",
		6: "CHALLENGE",
	}
	Type_value = map[string]int32{
		"UNKNOWN":         0,
		"CONNECT":         1,
		"UPDATE_VERSION":  2,
		"GET_PROVIDER":    3,
		"REGISTER":        4,
		"EXECUTE_BUSINES": 5,
		"CHALLENGE":       6,
	}
)

Enum value maps for Type.

View Source
var (
	ExecuteBusinesType_name = map[int32]string{
		0:  "EXECUTE_BUSINES_UNKNOWN",
		1:  "EXECUTE_BUSINES_ANSSL_CLI_CERT",
		2:  "EXECUTE_BUSINES_UPLOAD_CERT",
		3:  "EXECUTE_BUSINES_CDN",
		4:  "EXECUTE_BUSINES_DCDN",
		6:  "EXECUTE_BUSINES_ANSSL_CLI_APACHE_CERT",
		7:  "EXECUTE_BUSINES_ANSSL_CLI_RUSTFS_CERT",
		8:  "EXECUTE_BUSINES_ANSSL_CLI_FEINIU_CERT",
		9:  "EXECUTE_BUSINES_ANSSL_CLI_1PANEL_CERT",
		10: "EXECUTE_BUSINES_ANSSL_CLI_OPENVPN_AS_CERT",
		11: "EXECUTE_BUSINES_ANSSL_CLI_UPLOAD_ONLY_CERT",
		12: "EXECUTE_BUSINES_ESA",
		13: "EXECUTE_BUSINES_EDGEONE",
		14: "EXECUTE_BUSINES_COS",
		15: "EXECUTE_BUSINES_OSS_CUSTOM_DOMAIN",
	}
	ExecuteBusinesType_value = map[string]int32{
		"EXECUTE_BUSINES_UNKNOWN":                    0,
		"EXECUTE_BUSINES_ANSSL_CLI_CERT":             1,
		"EXECUTE_BUSINES_UPLOAD_CERT":                2,
		"EXECUTE_BUSINES_CDN":                        3,
		"EXECUTE_BUSINES_DCDN":                       4,
		"EXECUTE_BUSINES_ANSSL_CLI_APACHE_CERT":      6,
		"EXECUTE_BUSINES_ANSSL_CLI_RUSTFS_CERT":      7,
		"EXECUTE_BUSINES_ANSSL_CLI_FEINIU_CERT":      8,
		"EXECUTE_BUSINES_ANSSL_CLI_1PANEL_CERT":      9,
		"EXECUTE_BUSINES_ANSSL_CLI_OPENVPN_AS_CERT":  10,
		"EXECUTE_BUSINES_ANSSL_CLI_UPLOAD_ONLY_CERT": 11,
		"EXECUTE_BUSINES_ESA":                        12,
		"EXECUTE_BUSINES_EDGEONE":                    13,
		"EXECUTE_BUSINES_COS":                        14,
		"EXECUTE_BUSINES_OSS_CUSTOM_DOMAIN":          15,
	}
)

Enum value maps for ExecuteBusinesType.

View Source
var (
	ChallengeRequest_Action_name = map[int32]string{
		0: "CHALLENGE_ACTION_UNKNOWN",
		1: "CHALLENGE_ACTION_SET",
		2: "CHALLENGE_ACTION_DELETE",
	}
	ChallengeRequest_Action_value = map[string]int32{
		"CHALLENGE_ACTION_UNKNOWN": 0,
		"CHALLENGE_ACTION_SET":     1,
		"CHALLENGE_ACTION_DELETE":  2,
	}
)

Enum value maps for ChallengeRequest_Action.

View Source
var (
	ChallengeResponse_Result_name = map[int32]string{
		0: "CHALLENGE_RESULT_UNKNOWN",
		1: "CHALLENGE_RESULT_SUCCESS",
		2: "CHALLENGE_RESULT_FAILED",
		3: "CHALLENGE_RESULT_NOT_SUPPORTED",
	}
	ChallengeResponse_Result_value = map[string]int32{
		"CHALLENGE_RESULT_UNKNOWN":       0,
		"CHALLENGE_RESULT_SUCCESS":       1,
		"CHALLENGE_RESULT_FAILED":        2,
		"CHALLENGE_RESULT_NOT_SUPPORTED": 3,
	}
)

Enum value maps for ChallengeResponse_Result.

View Source
var (
	ExecuteBusinesRequest_RequestResult_name = map[int32]string{
		0: "REQUEST_RESULT_UNKNOWN",
		1: "REQUEST_RESULT_SUCCESS",
		2: "REQUEST_RESULT_FAILED",
		3: "REQUEST_RESULT_NOT_SUPPORTED",
	}
	ExecuteBusinesRequest_RequestResult_value = map[string]int32{
		"REQUEST_RESULT_UNKNOWN":       0,
		"REQUEST_RESULT_SUCCESS":       1,
		"REQUEST_RESULT_FAILED":        2,
		"REQUEST_RESULT_NOT_SUPPORTED": 3,
	}
)

Enum value maps for ExecuteBusinesRequest_RequestResult.

View Source
var File_deployPB_deploy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CertUpdateRequest

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

MARK: - 证书更新

func (*CertUpdateRequest) Descriptor deprecated

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

Deprecated: Use CertUpdateRequest.ProtoReflect.Descriptor instead.

func (*CertUpdateRequest) ProtoMessage

func (*CertUpdateRequest) ProtoMessage()

func (*CertUpdateRequest) ProtoReflect

func (x *CertUpdateRequest) ProtoReflect() protoreflect.Message

func (*CertUpdateRequest) Reset

func (x *CertUpdateRequest) Reset()

func (*CertUpdateRequest) String

func (x *CertUpdateRequest) String() string

type CertUpdateResponse

type CertUpdateResponse struct {
	Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` // 域名
	Url    string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`       // 证书下载URL
	// contains filtered or unexported fields
}

func (*CertUpdateResponse) Descriptor deprecated

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

Deprecated: Use CertUpdateResponse.ProtoReflect.Descriptor instead.

func (*CertUpdateResponse) GetDomain

func (x *CertUpdateResponse) GetDomain() string

func (*CertUpdateResponse) GetUrl

func (x *CertUpdateResponse) GetUrl() string

func (*CertUpdateResponse) ProtoMessage

func (*CertUpdateResponse) ProtoMessage()

func (*CertUpdateResponse) ProtoReflect

func (x *CertUpdateResponse) ProtoReflect() protoreflect.Message

func (*CertUpdateResponse) Reset

func (x *CertUpdateResponse) Reset()

func (*CertUpdateResponse) String

func (x *CertUpdateResponse) String() string

type ChallengeRequest added in v0.6.2

type ChallengeRequest struct {
	OperationId int64                   `protobuf:"varint,1,opt,name=operationId,proto3" json:"operationId,omitempty"`                             // 证书操作 ID
	CertId      int32                   `protobuf:"varint,2,opt,name=certId,proto3" json:"certId,omitempty"`                                       // 证书 ID
	Domain      string                  `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`                                        // 验证域名
	Token       string                  `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`                                          // ACME challenge token
	KeyAuth     string                  `protobuf:"bytes,5,opt,name=keyAuth,proto3" json:"keyAuth,omitempty"`                                      // HTTP 端点应返回的 key authorization
	Action      ChallengeRequest_Action `protobuf:"varint,6,opt,name=action,proto3,enum=deployPB.ChallengeRequest_Action" json:"action,omitempty"` // 客户端需要执行的动作
	// contains filtered or unexported fields
}

MARK: - HTTP-01 challenge ChallengeRequest 要求 deploy 客户端设置或删除一条精确的 HTTP-01 challenge。

func (*ChallengeRequest) Descriptor deprecated added in v0.6.2

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

Deprecated: Use ChallengeRequest.ProtoReflect.Descriptor instead.

func (*ChallengeRequest) GetAction added in v0.6.2

func (*ChallengeRequest) GetCertId added in v0.6.2

func (x *ChallengeRequest) GetCertId() int32

func (*ChallengeRequest) GetDomain added in v0.6.2

func (x *ChallengeRequest) GetDomain() string

func (*ChallengeRequest) GetKeyAuth added in v0.6.2

func (x *ChallengeRequest) GetKeyAuth() string

func (*ChallengeRequest) GetOperationId added in v0.6.2

func (x *ChallengeRequest) GetOperationId() int64

func (*ChallengeRequest) GetToken added in v0.6.2

func (x *ChallengeRequest) GetToken() string

func (*ChallengeRequest) ProtoMessage added in v0.6.2

func (*ChallengeRequest) ProtoMessage()

func (*ChallengeRequest) ProtoReflect added in v0.6.2

func (x *ChallengeRequest) ProtoReflect() protoreflect.Message

func (*ChallengeRequest) Reset added in v0.6.2

func (x *ChallengeRequest) Reset()

func (*ChallengeRequest) String added in v0.6.2

func (x *ChallengeRequest) String() string

type ChallengeRequest_Action added in v0.6.2

type ChallengeRequest_Action int32
const (
	ChallengeRequest_CHALLENGE_ACTION_UNKNOWN ChallengeRequest_Action = 0 // 未知操作
	ChallengeRequest_CHALLENGE_ACTION_SET     ChallengeRequest_Action = 1 // 设置 challenge
	ChallengeRequest_CHALLENGE_ACTION_DELETE  ChallengeRequest_Action = 2 // 删除 challenge
)

func (ChallengeRequest_Action) Descriptor added in v0.6.2

func (ChallengeRequest_Action) Enum added in v0.6.2

func (ChallengeRequest_Action) EnumDescriptor deprecated added in v0.6.2

func (ChallengeRequest_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChallengeRequest_Action.Descriptor instead.

func (ChallengeRequest_Action) Number added in v0.6.2

func (ChallengeRequest_Action) String added in v0.6.2

func (x ChallengeRequest_Action) String() string

func (ChallengeRequest_Action) Type added in v0.6.2

type ChallengeResponse added in v0.6.2

type ChallengeResponse struct {
	OperationId int64                    `protobuf:"varint,1,opt,name=operationId,proto3" json:"operationId,omitempty"`                              // 证书操作 ID
	CertId      int32                    `protobuf:"varint,2,opt,name=certId,proto3" json:"certId,omitempty"`                                        // 证书 ID
	Domain      string                   `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`                                         // 验证域名
	Token       string                   `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`                                           // ACME challenge token
	Result      ChallengeResponse_Result `protobuf:"varint,5,opt,name=result,proto3,enum=deployPB.ChallengeResponse_Result" json:"result,omitempty"` // 客户端执行结果
	Message     string                   `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`                                       // 失败原因或成功说明
	// contains filtered or unexported fields
}

ChallengeResponse 返回 deploy 客户端执行 challenge 请求的明确结果。

func (*ChallengeResponse) Descriptor deprecated added in v0.6.2

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

Deprecated: Use ChallengeResponse.ProtoReflect.Descriptor instead.

func (*ChallengeResponse) GetCertId added in v0.6.2

func (x *ChallengeResponse) GetCertId() int32

func (*ChallengeResponse) GetDomain added in v0.6.2

func (x *ChallengeResponse) GetDomain() string

func (*ChallengeResponse) GetMessage added in v0.6.2

func (x *ChallengeResponse) GetMessage() string

func (*ChallengeResponse) GetOperationId added in v0.6.2

func (x *ChallengeResponse) GetOperationId() int64

func (*ChallengeResponse) GetResult added in v0.6.2

func (*ChallengeResponse) GetToken added in v0.6.2

func (x *ChallengeResponse) GetToken() string

func (*ChallengeResponse) ProtoMessage added in v0.6.2

func (*ChallengeResponse) ProtoMessage()

func (*ChallengeResponse) ProtoReflect added in v0.6.2

func (x *ChallengeResponse) ProtoReflect() protoreflect.Message

func (*ChallengeResponse) Reset added in v0.6.2

func (x *ChallengeResponse) Reset()

func (*ChallengeResponse) String added in v0.6.2

func (x *ChallengeResponse) String() string

type ChallengeResponse_Result added in v0.6.2

type ChallengeResponse_Result int32
const (
	ChallengeResponse_CHALLENGE_RESULT_UNKNOWN       ChallengeResponse_Result = 0 // 未知结果
	ChallengeResponse_CHALLENGE_RESULT_SUCCESS       ChallengeResponse_Result = 1 // 执行成功
	ChallengeResponse_CHALLENGE_RESULT_FAILED        ChallengeResponse_Result = 2 // 执行失败
	ChallengeResponse_CHALLENGE_RESULT_NOT_SUPPORTED ChallengeResponse_Result = 3 // 客户端不支持
)

func (ChallengeResponse_Result) Descriptor added in v0.6.2

func (ChallengeResponse_Result) Enum added in v0.6.2

func (ChallengeResponse_Result) EnumDescriptor deprecated added in v0.6.2

func (ChallengeResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChallengeResponse_Result.Descriptor instead.

func (ChallengeResponse_Result) Number added in v0.6.2

func (ChallengeResponse_Result) String added in v0.6.2

func (x ChallengeResponse_Result) String() string

func (ChallengeResponse_Result) Type added in v0.6.2

type ConnectRequest

type ConnectRequest struct {
	Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` // 提供商
	Success  bool   `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`  // 是否成功
	// contains filtered or unexported fields
}

MARK: - Connect: 连接

func (*ConnectRequest) Descriptor deprecated

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

Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.

func (*ConnectRequest) GetProvider

func (x *ConnectRequest) GetProvider() string

func (*ConnectRequest) GetSuccess

func (x *ConnectRequest) GetSuccess() bool

func (*ConnectRequest) ProtoMessage

func (*ConnectRequest) ProtoMessage()

func (*ConnectRequest) ProtoReflect

func (x *ConnectRequest) ProtoReflect() protoreflect.Message

func (*ConnectRequest) Reset

func (x *ConnectRequest) Reset()

func (*ConnectRequest) String

func (x *ConnectRequest) String() string

type DeployResource added in v0.6.4

type DeployResource struct {
	TargetRef string `protobuf:"bytes,1,opt,name=target_ref,json=targetRef,proto3" json:"target_ref,omitempty"` // 客户端根据本地资源定位参数生成的不透明引用
	Label     string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`                          // 供控制台展示的资源名称
	Domain    string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`                        // 资源绑定的精确域名
	// contains filtered or unexported fields
}

DeployResource 是某项明确部署业务下可选择的脱敏资源。

func (*DeployResource) Descriptor deprecated added in v0.6.4

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

Deprecated: Use DeployResource.ProtoReflect.Descriptor instead.

func (*DeployResource) GetDomain added in v0.6.4

func (x *DeployResource) GetDomain() string

func (*DeployResource) GetLabel added in v0.6.4

func (x *DeployResource) GetLabel() string

func (*DeployResource) GetTargetRef added in v0.6.4

func (x *DeployResource) GetTargetRef() string

func (*DeployResource) ProtoMessage added in v0.6.4

func (*DeployResource) ProtoMessage()

func (*DeployResource) ProtoReflect added in v0.6.4

func (x *DeployResource) ProtoReflect() protoreflect.Message

func (*DeployResource) Reset added in v0.6.4

func (x *DeployResource) Reset()

func (*DeployResource) String added in v0.6.4

func (x *DeployResource) String() string

type ExecuteBusinesRequest

type ExecuteBusinesRequest struct {
	RequestResult ExecuteBusinesRequest_RequestResult `` // 请求结果
	/* 130-byte string literal not displayed */
	Message           string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`                                                // 失败原因或成功说明
	Retryable         *bool  `protobuf:"varint,3,opt,name=retryable,proto3,oneof" json:"retryable,omitempty"`                                     // 是否建议后端重试;未设置表示旧客户端未分类
	ProviderRequestId string `protobuf:"bytes,4,opt,name=provider_request_id,json=providerRequestId,proto3" json:"provider_request_id,omitempty"` // 云厂商请求 ID,便于排查 API 调用
	// contains filtered or unexported fields
}

MARK: - 执行业务

func (*ExecuteBusinesRequest) Descriptor deprecated

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

Deprecated: Use ExecuteBusinesRequest.ProtoReflect.Descriptor instead.

func (*ExecuteBusinesRequest) GetMessage added in v0.6.4

func (x *ExecuteBusinesRequest) GetMessage() string

func (*ExecuteBusinesRequest) GetProviderRequestId added in v0.6.4

func (x *ExecuteBusinesRequest) GetProviderRequestId() string

func (*ExecuteBusinesRequest) GetRequestResult

func (*ExecuteBusinesRequest) GetRetryable added in v0.6.4

func (x *ExecuteBusinesRequest) GetRetryable() bool

func (*ExecuteBusinesRequest) ProtoMessage

func (*ExecuteBusinesRequest) ProtoMessage()

func (*ExecuteBusinesRequest) ProtoReflect

func (x *ExecuteBusinesRequest) ProtoReflect() protoreflect.Message

func (*ExecuteBusinesRequest) Reset

func (x *ExecuteBusinesRequest) Reset()

func (*ExecuteBusinesRequest) String

func (x *ExecuteBusinesRequest) String() string

type ExecuteBusinesRequest_RequestResult

type ExecuteBusinesRequest_RequestResult int32

请求结果

const (
	ExecuteBusinesRequest_REQUEST_RESULT_UNKNOWN       ExecuteBusinesRequest_RequestResult = 0 // 未知
	ExecuteBusinesRequest_REQUEST_RESULT_SUCCESS       ExecuteBusinesRequest_RequestResult = 1 // 成功
	ExecuteBusinesRequest_REQUEST_RESULT_FAILED        ExecuteBusinesRequest_RequestResult = 2 // 失败
	ExecuteBusinesRequest_REQUEST_RESULT_NOT_SUPPORTED ExecuteBusinesRequest_RequestResult = 3 // 不支持
)

func (ExecuteBusinesRequest_RequestResult) Descriptor

func (ExecuteBusinesRequest_RequestResult) Enum

func (ExecuteBusinesRequest_RequestResult) EnumDescriptor deprecated

func (ExecuteBusinesRequest_RequestResult) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExecuteBusinesRequest_RequestResult.Descriptor instead.

func (ExecuteBusinesRequest_RequestResult) Number

func (ExecuteBusinesRequest_RequestResult) String

func (ExecuteBusinesRequest_RequestResult) Type

type ExecuteBusinesResponse

type ExecuteBusinesResponse struct {
	Provider           string             `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`                                                       // 提供商
	ExecuteBusinesType ExecuteBusinesType `protobuf:"varint,2,opt,name=executeBusinesType,proto3,enum=deployPB.ExecuteBusinesType" json:"executeBusinesType,omitempty"` // 执行业务类型
	Domain             string             `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`                                                           // 域名
	Url                string             `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`                                                                 // 证书下载URL
	Cert               string             `protobuf:"bytes,5,opt,name=cert,proto3" json:"cert,omitempty"`                                                               // 证书
	Key                string             `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`                                                                 // 私钥
	ChallengeToken     string             `protobuf:"bytes,7,opt,name=challengeToken,proto3" json:"challengeToken,omitempty"`                                           // ACME challenge token
	ChallengeResponse  string             `protobuf:"bytes,8,opt,name=challengeResponse,proto3" json:"challengeResponse,omitempty"`                                     // ACME challenge response
	TargetRef          string             `protobuf:"bytes,9,opt,name=target_ref,json=targetRef,proto3" json:"target_ref,omitempty"`                                    // 客户端本地配置中的精确部署资源引用
	// contains filtered or unexported fields
}

func (*ExecuteBusinesResponse) Descriptor deprecated

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

Deprecated: Use ExecuteBusinesResponse.ProtoReflect.Descriptor instead.

func (*ExecuteBusinesResponse) GetCert

func (x *ExecuteBusinesResponse) GetCert() string

func (*ExecuteBusinesResponse) GetChallengeResponse added in v0.4.1

func (x *ExecuteBusinesResponse) GetChallengeResponse() string

func (*ExecuteBusinesResponse) GetChallengeToken added in v0.4.1

func (x *ExecuteBusinesResponse) GetChallengeToken() string

func (*ExecuteBusinesResponse) GetDomain

func (x *ExecuteBusinesResponse) GetDomain() string

func (*ExecuteBusinesResponse) GetExecuteBusinesType

func (x *ExecuteBusinesResponse) GetExecuteBusinesType() ExecuteBusinesType

func (*ExecuteBusinesResponse) GetKey

func (x *ExecuteBusinesResponse) GetKey() string

func (*ExecuteBusinesResponse) GetProvider

func (x *ExecuteBusinesResponse) GetProvider() string

func (*ExecuteBusinesResponse) GetTargetRef added in v0.6.4

func (x *ExecuteBusinesResponse) GetTargetRef() string

func (*ExecuteBusinesResponse) GetUrl

func (x *ExecuteBusinesResponse) GetUrl() string

func (*ExecuteBusinesResponse) ProtoMessage

func (*ExecuteBusinesResponse) ProtoMessage()

func (*ExecuteBusinesResponse) ProtoReflect

func (x *ExecuteBusinesResponse) ProtoReflect() protoreflect.Message

func (*ExecuteBusinesResponse) Reset

func (x *ExecuteBusinesResponse) Reset()

func (*ExecuteBusinesResponse) String

func (x *ExecuteBusinesResponse) String() string

type ExecuteBusinesType

type ExecuteBusinesType int32

MARK: - 执行业务类型

const (
	ExecuteBusinesType_EXECUTE_BUSINES_UNKNOWN                    ExecuteBusinesType = 0  // 未知
	ExecuteBusinesType_EXECUTE_BUSINES_ANSSL_CLI_CERT             ExecuteBusinesType = 1  // Nginx 证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_UPLOAD_CERT                ExecuteBusinesType = 2  // 上传证书
	ExecuteBusinesType_EXECUTE_BUSINES_CDN                        ExecuteBusinesType = 3  // CDN
	ExecuteBusinesType_EXECUTE_BUSINES_DCDN                       ExecuteBusinesType = 4  // DCDN
	ExecuteBusinesType_EXECUTE_BUSINES_ANSSL_CLI_APACHE_CERT      ExecuteBusinesType = 6  // Apache 证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_ANSSL_CLI_RUSTFS_CERT      ExecuteBusinesType = 7  // RustFS 证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_ANSSL_CLI_FEINIU_CERT      ExecuteBusinesType = 8  // 飞牛 证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_ANSSL_CLI_1PANEL_CERT      ExecuteBusinesType = 9  // 1Panel 证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_ANSSL_CLI_OPENVPN_AS_CERT  ExecuteBusinesType = 10 // OpenVPN-AS 证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_ANSSL_CLI_UPLOAD_ONLY_CERT ExecuteBusinesType = 11 // UploadOnly 仅上传证书
	ExecuteBusinesType_EXECUTE_BUSINES_ESA                        ExecuteBusinesType = 12 // ESA Record 证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_EDGEONE                    ExecuteBusinesType = 13 // EdgeOne Host 证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_COS                        ExecuteBusinesType = 14 // COS 自定义域名证书部署
	ExecuteBusinesType_EXECUTE_BUSINES_OSS_CUSTOM_DOMAIN          ExecuteBusinesType = 15 // OSS 自定义域名证书部署
)

func (ExecuteBusinesType) Descriptor

func (ExecuteBusinesType) Enum

func (ExecuteBusinesType) EnumDescriptor deprecated

func (ExecuteBusinesType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExecuteBusinesType.Descriptor instead.

func (ExecuteBusinesType) Number

func (ExecuteBusinesType) String

func (x ExecuteBusinesType) String() string

func (ExecuteBusinesType) Type

type GetProviderRequest

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

MARK: - 获取提供商信息

func (*GetProviderRequest) Descriptor deprecated

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

Deprecated: Use GetProviderRequest.ProtoReflect.Descriptor instead.

func (*GetProviderRequest) ProtoMessage

func (*GetProviderRequest) ProtoMessage()

func (*GetProviderRequest) ProtoReflect

func (x *GetProviderRequest) ProtoReflect() protoreflect.Message

func (*GetProviderRequest) Reset

func (x *GetProviderRequest) Reset()

func (*GetProviderRequest) String

func (x *GetProviderRequest) String() string

type GetProviderResponse

type GetProviderResponse struct {
	Providers []*GetProviderResponse_Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProviderResponse) Descriptor deprecated

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

Deprecated: Use GetProviderResponse.ProtoReflect.Descriptor instead.

func (*GetProviderResponse) GetProviders

func (*GetProviderResponse) ProtoMessage

func (*GetProviderResponse) ProtoMessage()

func (*GetProviderResponse) ProtoReflect

func (x *GetProviderResponse) ProtoReflect() protoreflect.Message

func (*GetProviderResponse) Reset

func (x *GetProviderResponse) Reset()

func (*GetProviderResponse) String

func (x *GetProviderResponse) String() string

type GetProviderResponse_Provider

type GetProviderResponse_Provider struct {
	Name       string                                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`             // 提供商名称
	Remark     string                                   `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"`         // 备注
	Businesses []*GetProviderResponse_Provider_Business `protobuf:"bytes,3,rep,name=businesses,proto3" json:"businesses,omitempty"` // 按明确部署业务分组的资源目录
	// contains filtered or unexported fields
}

func (*GetProviderResponse_Provider) Descriptor deprecated

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

Deprecated: Use GetProviderResponse_Provider.ProtoReflect.Descriptor instead.

func (*GetProviderResponse_Provider) GetBusinesses added in v0.6.4

func (*GetProviderResponse_Provider) GetName

func (x *GetProviderResponse_Provider) GetName() string

func (*GetProviderResponse_Provider) GetRemark

func (x *GetProviderResponse_Provider) GetRemark() string

func (*GetProviderResponse_Provider) ProtoMessage

func (*GetProviderResponse_Provider) ProtoMessage()

func (*GetProviderResponse_Provider) ProtoReflect

func (*GetProviderResponse_Provider) Reset

func (x *GetProviderResponse_Provider) Reset()

func (*GetProviderResponse_Provider) String

type GetProviderResponse_Provider_Business added in v0.6.4

type GetProviderResponse_Provider_Business struct {
	ExecuteBusinesType ExecuteBusinesType `` // CDN、DCDN、ESA、OSS、EdgeOne 或 COS 等明确业务
	/* 151-byte string literal not displayed */
	Resources []*DeployResource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"` // 当前业务下可部署的脱敏资源目录
	// contains filtered or unexported fields
}

func (*GetProviderResponse_Provider_Business) Descriptor deprecated added in v0.6.4

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

Deprecated: Use GetProviderResponse_Provider_Business.ProtoReflect.Descriptor instead.

func (*GetProviderResponse_Provider_Business) GetExecuteBusinesType added in v0.6.4

func (x *GetProviderResponse_Provider_Business) GetExecuteBusinesType() ExecuteBusinesType

func (*GetProviderResponse_Provider_Business) GetResources added in v0.6.4

func (*GetProviderResponse_Provider_Business) ProtoMessage added in v0.6.4

func (*GetProviderResponse_Provider_Business) ProtoMessage()

func (*GetProviderResponse_Provider_Business) ProtoReflect added in v0.6.4

func (*GetProviderResponse_Provider_Business) Reset added in v0.6.4

func (*GetProviderResponse_Provider_Business) String added in v0.6.4

type NotifyRequest

type NotifyRequest struct {
	AccessKey string `protobuf:"bytes,1,opt,name=accessKey,proto3" json:"accessKey,omitempty"` // 令牌
	ClientId  string `protobuf:"bytes,2,opt,name=clientId,proto3" json:"clientId,omitempty"`   // 客户端ID
	RequestId string `protobuf:"bytes,3,opt,name=requestId,proto3" json:"requestId,omitempty"` // 请求ID(用于请求-响应匹配)
	Version   string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`     // 客户端版本
	// Types that are valid to be assigned to Data:
	//
	//	*NotifyRequest_GetProviderResponse
	//	*NotifyRequest_RegisterResponse
	//	*NotifyRequest_ConnectRequest
	//	*NotifyRequest_ExecuteBusinesRequest
	//	*NotifyRequest_ChallengeResponse
	Data isNotifyRequest_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

MARK: - 通知

func (*NotifyRequest) Descriptor deprecated

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

Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead.

func (*NotifyRequest) GetAccessKey

func (x *NotifyRequest) GetAccessKey() string

func (*NotifyRequest) GetChallengeResponse added in v0.6.2

func (x *NotifyRequest) GetChallengeResponse() *ChallengeResponse

func (*NotifyRequest) GetClientId

func (x *NotifyRequest) GetClientId() string

func (*NotifyRequest) GetConnectRequest

func (x *NotifyRequest) GetConnectRequest() *ConnectRequest

func (*NotifyRequest) GetData

func (x *NotifyRequest) GetData() isNotifyRequest_Data

func (*NotifyRequest) GetExecuteBusinesRequest

func (x *NotifyRequest) GetExecuteBusinesRequest() *ExecuteBusinesRequest

func (*NotifyRequest) GetGetProviderResponse

func (x *NotifyRequest) GetGetProviderResponse() *GetProviderResponse

func (*NotifyRequest) GetRegisterResponse

func (x *NotifyRequest) GetRegisterResponse() *RegisterResponse

func (*NotifyRequest) GetRequestId

func (x *NotifyRequest) GetRequestId() string

func (*NotifyRequest) GetVersion

func (x *NotifyRequest) GetVersion() string

func (*NotifyRequest) ProtoMessage

func (*NotifyRequest) ProtoMessage()

func (*NotifyRequest) ProtoReflect

func (x *NotifyRequest) ProtoReflect() protoreflect.Message

func (*NotifyRequest) Reset

func (x *NotifyRequest) Reset()

func (*NotifyRequest) String

func (x *NotifyRequest) String() string

type NotifyRequest_ChallengeResponse added in v0.6.2

type NotifyRequest_ChallengeResponse struct {
	ChallengeResponse *ChallengeResponse `protobuf:"bytes,14,opt,name=challengeResponse,proto3,oneof"`
}

type NotifyRequest_ConnectRequest

type NotifyRequest_ConnectRequest struct {
	ConnectRequest *ConnectRequest `protobuf:"bytes,12,opt,name=connectRequest,proto3,oneof"`
}

type NotifyRequest_ExecuteBusinesRequest

type NotifyRequest_ExecuteBusinesRequest struct {
	ExecuteBusinesRequest *ExecuteBusinesRequest `protobuf:"bytes,13,opt,name=executeBusinesRequest,proto3,oneof"`
}

type NotifyRequest_GetProviderResponse

type NotifyRequest_GetProviderResponse struct {
	GetProviderResponse *GetProviderResponse `protobuf:"bytes,10,opt,name=getProviderResponse,proto3,oneof"`
}

type NotifyRequest_RegisterResponse

type NotifyRequest_RegisterResponse struct {
	RegisterResponse *RegisterResponse `protobuf:"bytes,11,opt,name=registerResponse,proto3,oneof"`
}

type NotifyResponse

type NotifyResponse struct {
	Type      Type   `protobuf:"varint,1,opt,name=type,proto3,enum=deployPB.Type" json:"type,omitempty"` // 类型
	ClientId  string `protobuf:"bytes,2,opt,name=clientId,proto3" json:"clientId,omitempty"`             // 客户端ID
	RequestId string `protobuf:"bytes,3,opt,name=requestId,proto3" json:"requestId,omitempty"`           // 请求ID(用于请求-响应匹配)
	// Types that are valid to be assigned to Data:
	//
	//	*NotifyResponse_GetProviderResponse
	//	*NotifyResponse_RegisterRequest
	//	*NotifyResponse_ConnectRequest
	//	*NotifyResponse_ExecuteBusinesResponse
	//	*NotifyResponse_ChallengeRequest
	Data isNotifyResponse_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*NotifyResponse) Descriptor deprecated

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

Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead.

func (*NotifyResponse) GetChallengeRequest added in v0.6.2

func (x *NotifyResponse) GetChallengeRequest() *ChallengeRequest

func (*NotifyResponse) GetClientId

func (x *NotifyResponse) GetClientId() string

func (*NotifyResponse) GetConnectRequest

func (x *NotifyResponse) GetConnectRequest() *ConnectRequest

func (*NotifyResponse) GetData

func (x *NotifyResponse) GetData() isNotifyResponse_Data

func (*NotifyResponse) GetExecuteBusinesResponse

func (x *NotifyResponse) GetExecuteBusinesResponse() *ExecuteBusinesResponse

func (*NotifyResponse) GetGetProviderResponse

func (x *NotifyResponse) GetGetProviderResponse() *GetProviderResponse

func (*NotifyResponse) GetRegisterRequest

func (x *NotifyResponse) GetRegisterRequest() *RegisterRequest

func (*NotifyResponse) GetRequestId

func (x *NotifyResponse) GetRequestId() string

func (*NotifyResponse) GetType

func (x *NotifyResponse) GetType() Type

func (*NotifyResponse) ProtoMessage

func (*NotifyResponse) ProtoMessage()

func (*NotifyResponse) ProtoReflect

func (x *NotifyResponse) ProtoReflect() protoreflect.Message

func (*NotifyResponse) Reset

func (x *NotifyResponse) Reset()

func (*NotifyResponse) String

func (x *NotifyResponse) String() string

type NotifyResponse_ChallengeRequest added in v0.6.2

type NotifyResponse_ChallengeRequest struct {
	ChallengeRequest *ChallengeRequest `protobuf:"bytes,9,opt,name=challengeRequest,proto3,oneof"`
}

type NotifyResponse_ConnectRequest

type NotifyResponse_ConnectRequest struct {
	ConnectRequest *ConnectRequest `protobuf:"bytes,7,opt,name=connectRequest,proto3,oneof"`
}

type NotifyResponse_ExecuteBusinesResponse

type NotifyResponse_ExecuteBusinesResponse struct {
	ExecuteBusinesResponse *ExecuteBusinesResponse `protobuf:"bytes,8,opt,name=executeBusinesResponse,proto3,oneof"`
}

type NotifyResponse_GetProviderResponse

type NotifyResponse_GetProviderResponse struct {
	GetProviderResponse *GetProviderResponse `protobuf:"bytes,5,opt,name=getProviderResponse,proto3,oneof"`
}

type NotifyResponse_RegisterRequest

type NotifyResponse_RegisterRequest struct {
	RegisterRequest *RegisterRequest `protobuf:"bytes,6,opt,name=registerRequest,proto3,oneof"`
}

type RegisterRequest

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

MARK: - 注册客户端

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

func (x *RegisterRequest) ProtoReflect() protoreflect.Message

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	SystemInfo *RegisterResponse_SystemInfo `protobuf:"bytes,1,opt,name=systemInfo,proto3" json:"systemInfo,omitempty"` // 系统信息
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetSystemInfo

func (x *RegisterResponse) GetSystemInfo() *RegisterResponse_SystemInfo

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

func (x *RegisterResponse) ProtoReflect() protoreflect.Message

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type RegisterResponse_SystemInfo

type RegisterResponse_SystemInfo struct {
	Os       string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"`             // 操作系统
	Arch     string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"`         // 架构
	Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` // 主机名
	Ip       string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`             // IP地址
	// contains filtered or unexported fields
}

func (*RegisterResponse_SystemInfo) Descriptor deprecated

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

Deprecated: Use RegisterResponse_SystemInfo.ProtoReflect.Descriptor instead.

func (*RegisterResponse_SystemInfo) GetArch

func (x *RegisterResponse_SystemInfo) GetArch() string

func (*RegisterResponse_SystemInfo) GetHostname

func (x *RegisterResponse_SystemInfo) GetHostname() string

func (*RegisterResponse_SystemInfo) GetIp

func (*RegisterResponse_SystemInfo) GetOs

func (*RegisterResponse_SystemInfo) ProtoMessage

func (*RegisterResponse_SystemInfo) ProtoMessage()

func (*RegisterResponse_SystemInfo) ProtoReflect

func (*RegisterResponse_SystemInfo) Reset

func (x *RegisterResponse_SystemInfo) Reset()

func (*RegisterResponse_SystemInfo) String

func (x *RegisterResponse_SystemInfo) String() string

type Type

type Type int32

MARK: - 通知类型

const (
	Type_UNKNOWN         Type = 0 // 未知
	Type_CONNECT         Type = 1 // 连接成功
	Type_UPDATE_VERSION  Type = 2 // 更新版本
	Type_GET_PROVIDER    Type = 3 // 获取提供商信息
	Type_REGISTER        Type = 4 // 注册客户端
	Type_EXECUTE_BUSINES Type = 5 // 执行业务
	Type_CHALLENGE       Type = 6 // ACME HTTP-01 验证
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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