store

package
v0.0.0-...-3f826f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StoreService_ListStore_FullMethodName    = "/resource.api.store.StoreService/ListStore"
	StoreService_GetStore_FullMethodName     = "/resource.api.store.StoreService/GetStore"
	StoreService_CreateStore_FullMethodName  = "/resource.api.store.StoreService/CreateStore"
	StoreService_UpdateStore_FullMethodName  = "/resource.api.store.StoreService/UpdateStore"
	StoreService_DeleteStore_FullMethodName  = "/resource.api.store.StoreService/DeleteStore"
	StoreService_ListProvider_FullMethodName = "/resource.api.store.StoreService/ListProvider"
	StoreService_CheckStore_FullMethodName   = "/resource.api.store.StoreService/CheckStore"
)
View Source
const OperationStoreServiceCheckStore = "/resource.api.store.StoreService/CheckStore"
View Source
const OperationStoreServiceCreateStore = "/resource.api.store.StoreService/CreateStore"
View Source
const OperationStoreServiceDeleteStore = "/resource.api.store.StoreService/DeleteStore"
View Source
const OperationStoreServiceGetStore = "/resource.api.store.StoreService/GetStore"
View Source
const OperationStoreServiceListProvider = "/resource.api.store.StoreService/ListProvider"
View Source
const OperationStoreServiceListStore = "/resource.api.store.StoreService/ListStore"
View Source
const OperationStoreServiceUpdateStore = "/resource.api.store.StoreService/UpdateStore"

Variables

View Source
var File_api_store_proto_store_proto protoreflect.FileDescriptor
View Source
var File_api_store_proto_store_service_proto protoreflect.FileDescriptor
View Source
var StoreService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "resource.api.store.StoreService",
	HandlerType: (*StoreServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListStore",
			Handler:    _StoreService_ListStore_Handler,
		},
		{
			MethodName: "GetStore",
			Handler:    _StoreService_GetStore_Handler,
		},
		{
			MethodName: "CreateStore",
			Handler:    _StoreService_CreateStore_Handler,
		},
		{
			MethodName: "UpdateStore",
			Handler:    _StoreService_UpdateStore_Handler,
		},
		{
			MethodName: "DeleteStore",
			Handler:    _StoreService_DeleteStore_Handler,
		},
		{
			MethodName: "ListProvider",
			Handler:    _StoreService_ListProvider_Handler,
		},
		{
			MethodName: "CheckStore",
			Handler:    _StoreService_CheckStore_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/store/proto/store_service.proto",
}

StoreService_ServiceDesc is the grpc.ServiceDesc for StoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStoreServiceHTTPServer

func RegisterStoreServiceHTTPServer(s *http.Server, srv StoreServiceHTTPServer)

func RegisterStoreServiceServer

func RegisterStoreServiceServer(s grpc.ServiceRegistrar, srv StoreServiceServer)

Types

type CheckStoreRequest

type CheckStoreRequest struct {
	Id       *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // 已保存的 store 主键(可选:编辑场景回退 sk 用)
	Provider string  `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	Endpoint string  `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Region   string  `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
	Bucket   string  `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Ak       string  `protobuf:"bytes,6,opt,name=ak,proto3" json:"ak,omitempty"`
	Sk       string  `protobuf:"bytes,7,opt,name=sk,proto3" json:"sk,omitempty"`
	// contains filtered or unexported fields
}

---- CheckStore 测试存储配置连通性(不落库) ---- 用 HeadBucket 探测:200 = 有效(认证/桶/网络全通);403 = 凭证或权限;404 = 桶不存在;其余 = 网络异常。 已保存的 store 编辑测试时传 id:sk 为掩码/未改则回退用 DB 存的真实 sk(明文仅在服务端取),其余字段以入参为准。

func (*CheckStoreRequest) Descriptor deprecated

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

Deprecated: Use CheckStoreRequest.ProtoReflect.Descriptor instead.

func (*CheckStoreRequest) GetAk

func (x *CheckStoreRequest) GetAk() string

func (*CheckStoreRequest) GetBucket

func (x *CheckStoreRequest) GetBucket() string

func (*CheckStoreRequest) GetEndpoint

func (x *CheckStoreRequest) GetEndpoint() string

func (*CheckStoreRequest) GetId

func (x *CheckStoreRequest) GetId() uint32

func (*CheckStoreRequest) GetProvider

func (x *CheckStoreRequest) GetProvider() string

func (*CheckStoreRequest) GetRegion

func (x *CheckStoreRequest) GetRegion() string

func (*CheckStoreRequest) GetSk

func (x *CheckStoreRequest) GetSk() string

func (*CheckStoreRequest) ProtoMessage

func (*CheckStoreRequest) ProtoMessage()

func (*CheckStoreRequest) ProtoReflect

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

func (*CheckStoreRequest) Reset

func (x *CheckStoreRequest) Reset()

func (*CheckStoreRequest) String

func (x *CheckStoreRequest) String() string

func (*CheckStoreRequest) Validate

func (m *CheckStoreRequest) Validate() error

Validate checks the field values on CheckStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CheckStoreRequest) ValidateAll

func (m *CheckStoreRequest) ValidateAll() error

ValidateAll checks the field values on CheckStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckStoreRequestMultiError, or nil if none found.

type CheckStoreRequestMultiError

type CheckStoreRequestMultiError []error

CheckStoreRequestMultiError is an error wrapping multiple validation errors returned by CheckStoreRequest.ValidateAll() if the designated constraints aren't met.

func (CheckStoreRequestMultiError) AllErrors

func (m CheckStoreRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckStoreRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CheckStoreRequestValidationError

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

CheckStoreRequestValidationError is the validation error returned by CheckStoreRequest.Validate if the designated constraints aren't met.

func (CheckStoreRequestValidationError) Cause

Cause function returns cause value.

func (CheckStoreRequestValidationError) Error

Error satisfies the builtin error interface

func (CheckStoreRequestValidationError) ErrorName

ErrorName returns error name.

func (CheckStoreRequestValidationError) Field

Field function returns field value.

func (CheckStoreRequestValidationError) Key

Key function returns key value.

func (CheckStoreRequestValidationError) Reason

Reason function returns reason value.

type CheckStoreResponse

type CheckStoreResponse struct {
	Ok      bool   `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // ok=false 时为分类原因(凭证错误 / 桶不存在 / 无法连接等)
	// contains filtered or unexported fields
}

func (*CheckStoreResponse) Descriptor deprecated

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

Deprecated: Use CheckStoreResponse.ProtoReflect.Descriptor instead.

func (*CheckStoreResponse) GetMessage

func (x *CheckStoreResponse) GetMessage() string

func (*CheckStoreResponse) GetOk

func (x *CheckStoreResponse) GetOk() bool

func (*CheckStoreResponse) ProtoMessage

func (*CheckStoreResponse) ProtoMessage()

func (*CheckStoreResponse) ProtoReflect

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

func (*CheckStoreResponse) Reset

func (x *CheckStoreResponse) Reset()

func (*CheckStoreResponse) String

func (x *CheckStoreResponse) String() string

func (*CheckStoreResponse) Validate

func (m *CheckStoreResponse) Validate() error

Validate checks the field values on CheckStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CheckStoreResponse) ValidateAll

func (m *CheckStoreResponse) ValidateAll() error

ValidateAll checks the field values on CheckStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckStoreResponseMultiError, or nil if none found.

type CheckStoreResponseMultiError

type CheckStoreResponseMultiError []error

CheckStoreResponseMultiError is an error wrapping multiple validation errors returned by CheckStoreResponse.ValidateAll() if the designated constraints aren't met.

func (CheckStoreResponseMultiError) AllErrors

func (m CheckStoreResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckStoreResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CheckStoreResponseValidationError

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

CheckStoreResponseValidationError is the validation error returned by CheckStoreResponse.Validate if the designated constraints aren't met.

func (CheckStoreResponseValidationError) Cause

Cause function returns cause value.

func (CheckStoreResponseValidationError) Error

Error satisfies the builtin error interface

func (CheckStoreResponseValidationError) ErrorName

ErrorName returns error name.

func (CheckStoreResponseValidationError) Field

Field function returns field value.

func (CheckStoreResponseValidationError) Key

Key function returns key value.

func (CheckStoreResponseValidationError) Reason

Reason function returns reason value.

type CreateStoreRequest

type CreateStoreRequest struct {
	Keyword       string  `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Provider      string  `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	Name          string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Endpoint      string  `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Region        string  `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
	Bucket        string  `protobuf:"bytes,6,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Ak            string  `protobuf:"bytes,7,opt,name=ak,proto3" json:"ak,omitempty"`
	Sk            string  `protobuf:"bytes,8,opt,name=sk,proto3" json:"sk,omitempty"`
	PublicBaseUrl string  `protobuf:"bytes,9,opt,name=public_base_url,json=publicBaseUrl,proto3" json:"public_base_url,omitempty"`
	CdnAuthType   string  `protobuf:"bytes,10,opt,name=cdn_auth_type,json=cdnAuthType,proto3" json:"cdn_auth_type,omitempty"`
	CdnAuthKey    *string `protobuf:"bytes,11,opt,name=cdn_auth_key,json=cdnAuthKey,proto3,oneof" json:"cdn_auth_key,omitempty"` // 不传 = 不配置
	Status        uint32  `protobuf:"varint,12,opt,name=status,proto3" json:"status,omitempty"`
	Description   *string `protobuf:"bytes,13,opt,name=description,proto3,oneof" json:"description,omitempty"` // 不传 = 无备注
	// contains filtered or unexported fields
}

---- CreateStore ----

func (*CreateStoreRequest) Descriptor deprecated

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

Deprecated: Use CreateStoreRequest.ProtoReflect.Descriptor instead.

func (*CreateStoreRequest) GetAk

func (x *CreateStoreRequest) GetAk() string

func (*CreateStoreRequest) GetBucket

func (x *CreateStoreRequest) GetBucket() string

func (*CreateStoreRequest) GetCdnAuthKey

func (x *CreateStoreRequest) GetCdnAuthKey() string

func (*CreateStoreRequest) GetCdnAuthType

func (x *CreateStoreRequest) GetCdnAuthType() string

func (*CreateStoreRequest) GetDescription

func (x *CreateStoreRequest) GetDescription() string

func (*CreateStoreRequest) GetEndpoint

func (x *CreateStoreRequest) GetEndpoint() string

func (*CreateStoreRequest) GetKeyword

func (x *CreateStoreRequest) GetKeyword() string

func (*CreateStoreRequest) GetName

func (x *CreateStoreRequest) GetName() string

func (*CreateStoreRequest) GetProvider

func (x *CreateStoreRequest) GetProvider() string

func (*CreateStoreRequest) GetPublicBaseUrl

func (x *CreateStoreRequest) GetPublicBaseUrl() string

func (*CreateStoreRequest) GetRegion

func (x *CreateStoreRequest) GetRegion() string

func (*CreateStoreRequest) GetSk

func (x *CreateStoreRequest) GetSk() string

func (*CreateStoreRequest) GetStatus

func (x *CreateStoreRequest) GetStatus() uint32

func (*CreateStoreRequest) ProtoMessage

func (*CreateStoreRequest) ProtoMessage()

func (*CreateStoreRequest) ProtoReflect

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

func (*CreateStoreRequest) Reset

func (x *CreateStoreRequest) Reset()

func (*CreateStoreRequest) String

func (x *CreateStoreRequest) String() string

func (*CreateStoreRequest) Validate

func (m *CreateStoreRequest) Validate() error

Validate checks the field values on CreateStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateStoreRequest) ValidateAll

func (m *CreateStoreRequest) ValidateAll() error

ValidateAll checks the field values on CreateStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateStoreRequestMultiError, or nil if none found.

type CreateStoreRequestMultiError

type CreateStoreRequestMultiError []error

CreateStoreRequestMultiError is an error wrapping multiple validation errors returned by CreateStoreRequest.ValidateAll() if the designated constraints aren't met.

func (CreateStoreRequestMultiError) AllErrors

func (m CreateStoreRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateStoreRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateStoreRequestValidationError

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

CreateStoreRequestValidationError is the validation error returned by CreateStoreRequest.Validate if the designated constraints aren't met.

func (CreateStoreRequestValidationError) Cause

Cause function returns cause value.

func (CreateStoreRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateStoreRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateStoreRequestValidationError) Field

Field function returns field value.

func (CreateStoreRequestValidationError) Key

Key function returns key value.

func (CreateStoreRequestValidationError) Reason

Reason function returns reason value.

type CreateStoreResponse

type CreateStoreResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateStoreResponse) Descriptor deprecated

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

Deprecated: Use CreateStoreResponse.ProtoReflect.Descriptor instead.

func (*CreateStoreResponse) GetId

func (x *CreateStoreResponse) GetId() uint32

func (*CreateStoreResponse) ProtoMessage

func (*CreateStoreResponse) ProtoMessage()

func (*CreateStoreResponse) ProtoReflect

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

func (*CreateStoreResponse) Reset

func (x *CreateStoreResponse) Reset()

func (*CreateStoreResponse) String

func (x *CreateStoreResponse) String() string

func (*CreateStoreResponse) Validate

func (m *CreateStoreResponse) Validate() error

Validate checks the field values on CreateStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateStoreResponse) ValidateAll

func (m *CreateStoreResponse) ValidateAll() error

ValidateAll checks the field values on CreateStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateStoreResponseMultiError, or nil if none found.

type CreateStoreResponseMultiError

type CreateStoreResponseMultiError []error

CreateStoreResponseMultiError is an error wrapping multiple validation errors returned by CreateStoreResponse.ValidateAll() if the designated constraints aren't met.

func (CreateStoreResponseMultiError) AllErrors

func (m CreateStoreResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateStoreResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateStoreResponseValidationError

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

CreateStoreResponseValidationError is the validation error returned by CreateStoreResponse.Validate if the designated constraints aren't met.

func (CreateStoreResponseValidationError) Cause

Cause function returns cause value.

func (CreateStoreResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateStoreResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateStoreResponseValidationError) Field

Field function returns field value.

func (CreateStoreResponseValidationError) Key

Key function returns key value.

func (CreateStoreResponseValidationError) Reason

Reason function returns reason value.

type DeleteStoreRequest

type DeleteStoreRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

---- DeleteStore ----

func (*DeleteStoreRequest) Descriptor deprecated

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

Deprecated: Use DeleteStoreRequest.ProtoReflect.Descriptor instead.

func (*DeleteStoreRequest) GetId

func (x *DeleteStoreRequest) GetId() uint32

func (*DeleteStoreRequest) ProtoMessage

func (*DeleteStoreRequest) ProtoMessage()

func (*DeleteStoreRequest) ProtoReflect

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

func (*DeleteStoreRequest) Reset

func (x *DeleteStoreRequest) Reset()

func (*DeleteStoreRequest) String

func (x *DeleteStoreRequest) String() string

func (*DeleteStoreRequest) Validate

func (m *DeleteStoreRequest) Validate() error

Validate checks the field values on DeleteStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteStoreRequest) ValidateAll

func (m *DeleteStoreRequest) ValidateAll() error

ValidateAll checks the field values on DeleteStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteStoreRequestMultiError, or nil if none found.

type DeleteStoreRequestMultiError

type DeleteStoreRequestMultiError []error

DeleteStoreRequestMultiError is an error wrapping multiple validation errors returned by DeleteStoreRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteStoreRequestMultiError) AllErrors

func (m DeleteStoreRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteStoreRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteStoreRequestValidationError

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

DeleteStoreRequestValidationError is the validation error returned by DeleteStoreRequest.Validate if the designated constraints aren't met.

func (DeleteStoreRequestValidationError) Cause

Cause function returns cause value.

func (DeleteStoreRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteStoreRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteStoreRequestValidationError) Field

Field function returns field value.

func (DeleteStoreRequestValidationError) Key

Key function returns key value.

func (DeleteStoreRequestValidationError) Reason

Reason function returns reason value.

type DeleteStoreResponse

type DeleteStoreResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteStoreResponse) Descriptor deprecated

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

Deprecated: Use DeleteStoreResponse.ProtoReflect.Descriptor instead.

func (*DeleteStoreResponse) GetId

func (x *DeleteStoreResponse) GetId() uint32

func (*DeleteStoreResponse) ProtoMessage

func (*DeleteStoreResponse) ProtoMessage()

func (*DeleteStoreResponse) ProtoReflect

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

func (*DeleteStoreResponse) Reset

func (x *DeleteStoreResponse) Reset()

func (*DeleteStoreResponse) String

func (x *DeleteStoreResponse) String() string

func (*DeleteStoreResponse) Validate

func (m *DeleteStoreResponse) Validate() error

Validate checks the field values on DeleteStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteStoreResponse) ValidateAll

func (m *DeleteStoreResponse) ValidateAll() error

ValidateAll checks the field values on DeleteStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteStoreResponseMultiError, or nil if none found.

type DeleteStoreResponseMultiError

type DeleteStoreResponseMultiError []error

DeleteStoreResponseMultiError is an error wrapping multiple validation errors returned by DeleteStoreResponse.ValidateAll() if the designated constraints aren't met.

func (DeleteStoreResponseMultiError) AllErrors

func (m DeleteStoreResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteStoreResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteStoreResponseValidationError

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

DeleteStoreResponseValidationError is the validation error returned by DeleteStoreResponse.Validate if the designated constraints aren't met.

func (DeleteStoreResponseValidationError) Cause

Cause function returns cause value.

func (DeleteStoreResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteStoreResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteStoreResponseValidationError) Field

Field function returns field value.

func (DeleteStoreResponseValidationError) Key

Key function returns key value.

func (DeleteStoreResponseValidationError) Reason

Reason function returns reason value.

type GetStoreRequest

type GetStoreRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

---- GetStore ----

func (*GetStoreRequest) Descriptor deprecated

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

Deprecated: Use GetStoreRequest.ProtoReflect.Descriptor instead.

func (*GetStoreRequest) GetId

func (x *GetStoreRequest) GetId() uint32

func (*GetStoreRequest) ProtoMessage

func (*GetStoreRequest) ProtoMessage()

func (*GetStoreRequest) ProtoReflect

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

func (*GetStoreRequest) Reset

func (x *GetStoreRequest) Reset()

func (*GetStoreRequest) String

func (x *GetStoreRequest) String() string

func (*GetStoreRequest) Validate

func (m *GetStoreRequest) Validate() error

Validate checks the field values on GetStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetStoreRequest) ValidateAll

func (m *GetStoreRequest) ValidateAll() error

ValidateAll checks the field values on GetStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetStoreRequestMultiError, or nil if none found.

type GetStoreRequestMultiError

type GetStoreRequestMultiError []error

GetStoreRequestMultiError is an error wrapping multiple validation errors returned by GetStoreRequest.ValidateAll() if the designated constraints aren't met.

func (GetStoreRequestMultiError) AllErrors

func (m GetStoreRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetStoreRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetStoreRequestValidationError

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

GetStoreRequestValidationError is the validation error returned by GetStoreRequest.Validate if the designated constraints aren't met.

func (GetStoreRequestValidationError) Cause

Cause function returns cause value.

func (GetStoreRequestValidationError) Error

Error satisfies the builtin error interface

func (GetStoreRequestValidationError) ErrorName

func (e GetStoreRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetStoreRequestValidationError) Field

Field function returns field value.

func (GetStoreRequestValidationError) Key

Key function returns key value.

func (GetStoreRequestValidationError) Reason

Reason function returns reason value.

type GetStoreResponse

type GetStoreResponse struct {
	Store *Store `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStoreResponse) Descriptor deprecated

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

Deprecated: Use GetStoreResponse.ProtoReflect.Descriptor instead.

func (*GetStoreResponse) GetStore

func (x *GetStoreResponse) GetStore() *Store

func (*GetStoreResponse) ProtoMessage

func (*GetStoreResponse) ProtoMessage()

func (*GetStoreResponse) ProtoReflect

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

func (*GetStoreResponse) Reset

func (x *GetStoreResponse) Reset()

func (*GetStoreResponse) String

func (x *GetStoreResponse) String() string

func (*GetStoreResponse) Validate

func (m *GetStoreResponse) Validate() error

Validate checks the field values on GetStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetStoreResponse) ValidateAll

func (m *GetStoreResponse) ValidateAll() error

ValidateAll checks the field values on GetStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetStoreResponseMultiError, or nil if none found.

type GetStoreResponseMultiError

type GetStoreResponseMultiError []error

GetStoreResponseMultiError is an error wrapping multiple validation errors returned by GetStoreResponse.ValidateAll() if the designated constraints aren't met.

func (GetStoreResponseMultiError) AllErrors

func (m GetStoreResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetStoreResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetStoreResponseValidationError

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

GetStoreResponseValidationError is the validation error returned by GetStoreResponse.Validate if the designated constraints aren't met.

func (GetStoreResponseValidationError) Cause

Cause function returns cause value.

func (GetStoreResponseValidationError) Error

Error satisfies the builtin error interface

func (GetStoreResponseValidationError) ErrorName

ErrorName returns error name.

func (GetStoreResponseValidationError) Field

Field function returns field value.

func (GetStoreResponseValidationError) Key

Key function returns key value.

func (GetStoreResponseValidationError) Reason

Reason function returns reason value.

type ListProviderRequest

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

---- ListProvider ----

func (*ListProviderRequest) Descriptor deprecated

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

Deprecated: Use ListProviderRequest.ProtoReflect.Descriptor instead.

func (*ListProviderRequest) ProtoMessage

func (*ListProviderRequest) ProtoMessage()

func (*ListProviderRequest) ProtoReflect

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

func (*ListProviderRequest) Reset

func (x *ListProviderRequest) Reset()

func (*ListProviderRequest) String

func (x *ListProviderRequest) String() string

func (*ListProviderRequest) Validate

func (m *ListProviderRequest) Validate() error

Validate checks the field values on ListProviderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListProviderRequest) ValidateAll

func (m *ListProviderRequest) ValidateAll() error

ValidateAll checks the field values on ListProviderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListProviderRequestMultiError, or nil if none found.

type ListProviderRequestMultiError

type ListProviderRequestMultiError []error

ListProviderRequestMultiError is an error wrapping multiple validation errors returned by ListProviderRequest.ValidateAll() if the designated constraints aren't met.

func (ListProviderRequestMultiError) AllErrors

func (m ListProviderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListProviderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListProviderRequestValidationError

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

ListProviderRequestValidationError is the validation error returned by ListProviderRequest.Validate if the designated constraints aren't met.

func (ListProviderRequestValidationError) Cause

Cause function returns cause value.

func (ListProviderRequestValidationError) Error

Error satisfies the builtin error interface

func (ListProviderRequestValidationError) ErrorName

ErrorName returns error name.

func (ListProviderRequestValidationError) Field

Field function returns field value.

func (ListProviderRequestValidationError) Key

Key function returns key value.

func (ListProviderRequestValidationError) Reason

Reason function returns reason value.

type ListProviderResponse

type ListProviderResponse struct {
	List []*Provider `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProviderResponse) Descriptor deprecated

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

Deprecated: Use ListProviderResponse.ProtoReflect.Descriptor instead.

func (*ListProviderResponse) GetList

func (x *ListProviderResponse) GetList() []*Provider

func (*ListProviderResponse) ProtoMessage

func (*ListProviderResponse) ProtoMessage()

func (*ListProviderResponse) ProtoReflect

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

func (*ListProviderResponse) Reset

func (x *ListProviderResponse) Reset()

func (*ListProviderResponse) String

func (x *ListProviderResponse) String() string

func (*ListProviderResponse) Validate

func (m *ListProviderResponse) Validate() error

Validate checks the field values on ListProviderResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListProviderResponse) ValidateAll

func (m *ListProviderResponse) ValidateAll() error

ValidateAll checks the field values on ListProviderResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListProviderResponseMultiError, or nil if none found.

type ListProviderResponseMultiError

type ListProviderResponseMultiError []error

ListProviderResponseMultiError is an error wrapping multiple validation errors returned by ListProviderResponse.ValidateAll() if the designated constraints aren't met.

func (ListProviderResponseMultiError) AllErrors

func (m ListProviderResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListProviderResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListProviderResponseValidationError

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

ListProviderResponseValidationError is the validation error returned by ListProviderResponse.Validate if the designated constraints aren't met.

func (ListProviderResponseValidationError) Cause

Cause function returns cause value.

func (ListProviderResponseValidationError) Error

Error satisfies the builtin error interface

func (ListProviderResponseValidationError) ErrorName

ErrorName returns error name.

func (ListProviderResponseValidationError) Field

Field function returns field value.

func (ListProviderResponseValidationError) Key

Key function returns key value.

func (ListProviderResponseValidationError) Reason

Reason function returns reason value.

type ListStoreRequest

type ListStoreRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Keyword  *string `protobuf:"bytes,3,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`   // 可选过滤
	Provider *string `protobuf:"bytes,4,opt,name=provider,proto3,oneof" json:"provider,omitempty"` // 可选过滤
	Status   *uint32 `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"`    // 可选过滤(0 停用 / 1 启用,均可过滤)
	// contains filtered or unexported fields
}

---- ListStore ----

func (*ListStoreRequest) Descriptor deprecated

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

Deprecated: Use ListStoreRequest.ProtoReflect.Descriptor instead.

func (*ListStoreRequest) GetKeyword

func (x *ListStoreRequest) GetKeyword() string

func (*ListStoreRequest) GetPage

func (x *ListStoreRequest) GetPage() uint32

func (*ListStoreRequest) GetPageSize

func (x *ListStoreRequest) GetPageSize() uint32

func (*ListStoreRequest) GetProvider

func (x *ListStoreRequest) GetProvider() string

func (*ListStoreRequest) GetStatus

func (x *ListStoreRequest) GetStatus() uint32

func (*ListStoreRequest) ProtoMessage

func (*ListStoreRequest) ProtoMessage()

func (*ListStoreRequest) ProtoReflect

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

func (*ListStoreRequest) Reset

func (x *ListStoreRequest) Reset()

func (*ListStoreRequest) String

func (x *ListStoreRequest) String() string

func (*ListStoreRequest) Validate

func (m *ListStoreRequest) Validate() error

Validate checks the field values on ListStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListStoreRequest) ValidateAll

func (m *ListStoreRequest) ValidateAll() error

ValidateAll checks the field values on ListStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListStoreRequestMultiError, or nil if none found.

type ListStoreRequestMultiError

type ListStoreRequestMultiError []error

ListStoreRequestMultiError is an error wrapping multiple validation errors returned by ListStoreRequest.ValidateAll() if the designated constraints aren't met.

func (ListStoreRequestMultiError) AllErrors

func (m ListStoreRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListStoreRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListStoreRequestValidationError

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

ListStoreRequestValidationError is the validation error returned by ListStoreRequest.Validate if the designated constraints aren't met.

func (ListStoreRequestValidationError) Cause

Cause function returns cause value.

func (ListStoreRequestValidationError) Error

Error satisfies the builtin error interface

func (ListStoreRequestValidationError) ErrorName

ErrorName returns error name.

func (ListStoreRequestValidationError) Field

Field function returns field value.

func (ListStoreRequestValidationError) Key

Key function returns key value.

func (ListStoreRequestValidationError) Reason

Reason function returns reason value.

type ListStoreResponse

type ListStoreResponse struct {
	List  []*Store `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total uint32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListStoreResponse) Descriptor deprecated

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

Deprecated: Use ListStoreResponse.ProtoReflect.Descriptor instead.

func (*ListStoreResponse) GetList

func (x *ListStoreResponse) GetList() []*Store

func (*ListStoreResponse) GetTotal

func (x *ListStoreResponse) GetTotal() uint32

func (*ListStoreResponse) ProtoMessage

func (*ListStoreResponse) ProtoMessage()

func (*ListStoreResponse) ProtoReflect

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

func (*ListStoreResponse) Reset

func (x *ListStoreResponse) Reset()

func (*ListStoreResponse) String

func (x *ListStoreResponse) String() string

func (*ListStoreResponse) Validate

func (m *ListStoreResponse) Validate() error

Validate checks the field values on ListStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListStoreResponse) ValidateAll

func (m *ListStoreResponse) ValidateAll() error

ValidateAll checks the field values on ListStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListStoreResponseMultiError, or nil if none found.

type ListStoreResponseMultiError

type ListStoreResponseMultiError []error

ListStoreResponseMultiError is an error wrapping multiple validation errors returned by ListStoreResponse.ValidateAll() if the designated constraints aren't met.

func (ListStoreResponseMultiError) AllErrors

func (m ListStoreResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListStoreResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListStoreResponseValidationError

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

ListStoreResponseValidationError is the validation error returned by ListStoreResponse.Validate if the designated constraints aren't met.

func (ListStoreResponseValidationError) Cause

Cause function returns cause value.

func (ListStoreResponseValidationError) Error

Error satisfies the builtin error interface

func (ListStoreResponseValidationError) ErrorName

ErrorName returns error name.

func (ListStoreResponseValidationError) Field

Field function returns field value.

func (ListStoreResponseValidationError) Key

Key function returns key value.

func (ListStoreResponseValidationError) Reason

Reason function returns reason value.

type Provider

type Provider struct {
	Value       string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Label       string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Implemented bool   `protobuf:"varint,3,opt,name=implemented,proto3" json:"implemented,omitempty"`
	// contains filtered or unexported fields
}

Provider 厂商下拉项

func (*Provider) Descriptor deprecated

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

Deprecated: Use Provider.ProtoReflect.Descriptor instead.

func (*Provider) GetImplemented

func (x *Provider) GetImplemented() bool

func (*Provider) GetLabel

func (x *Provider) GetLabel() string

func (*Provider) GetValue

func (x *Provider) GetValue() string

func (*Provider) ProtoMessage

func (*Provider) ProtoMessage()

func (*Provider) ProtoReflect

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

func (*Provider) Reset

func (x *Provider) Reset()

func (*Provider) String

func (x *Provider) String() string

func (*Provider) Validate

func (m *Provider) Validate() error

Validate checks the field values on Provider with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Provider) ValidateAll

func (m *Provider) ValidateAll() error

ValidateAll checks the field values on Provider with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProviderMultiError, or nil if none found.

type ProviderMultiError

type ProviderMultiError []error

ProviderMultiError is an error wrapping multiple validation errors returned by Provider.ValidateAll() if the designated constraints aren't met.

func (ProviderMultiError) AllErrors

func (m ProviderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProviderMultiError) Error

func (m ProviderMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ProviderValidationError

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

ProviderValidationError is the validation error returned by Provider.Validate if the designated constraints aren't met.

func (ProviderValidationError) Cause

func (e ProviderValidationError) Cause() error

Cause function returns cause value.

func (ProviderValidationError) Error

func (e ProviderValidationError) Error() string

Error satisfies the builtin error interface

func (ProviderValidationError) ErrorName

func (e ProviderValidationError) ErrorName() string

ErrorName returns error name.

func (ProviderValidationError) Field

func (e ProviderValidationError) Field() string

Field function returns field value.

func (ProviderValidationError) Key

func (e ProviderValidationError) Key() bool

Key function returns key value.

func (ProviderValidationError) Reason

func (e ProviderValidationError) Reason() string

Reason function returns reason value.

type Store

type Store struct {
	Id            uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword       string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Provider      string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	Name          string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Endpoint      string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Region        string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"`
	Bucket        string `protobuf:"bytes,7,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Ak            string `protobuf:"bytes,8,opt,name=ak,proto3" json:"ak,omitempty"` // 访问密钥 ID,完整返回
	Sk            string `protobuf:"bytes,9,opt,name=sk,proto3" json:"sk,omitempty"` // 访问密钥,掩码返回(前 3 后 3,中间 *)
	PublicBaseUrl string `protobuf:"bytes,10,opt,name=public_base_url,json=publicBaseUrl,proto3" json:"public_base_url,omitempty"`
	CdnAuthType   string `protobuf:"bytes,11,opt,name=cdn_auth_type,json=cdnAuthType,proto3" json:"cdn_auth_type,omitempty"`
	CdnAuthKey    string `protobuf:"bytes,12,opt,name=cdn_auth_key,json=cdnAuthKey,proto3" json:"cdn_auth_key,omitempty"` // 回显掩码由服务端控制(明文仅在写入路径接受)
	Status        uint32 `protobuf:"varint,13,opt,name=status,proto3" json:"status,omitempty"`
	Description   string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
	UpdatedBy     uint32 `protobuf:"varint,15,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
	CreatedAt     uint32 `protobuf:"varint,16,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     uint32 `protobuf:"varint,17,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Store 存储后端视图(ak 完整返回,sk 掩码返回)

func (*Store) Descriptor deprecated

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

Deprecated: Use Store.ProtoReflect.Descriptor instead.

func (*Store) GetAk

func (x *Store) GetAk() string

func (*Store) GetBucket

func (x *Store) GetBucket() string

func (*Store) GetCdnAuthKey

func (x *Store) GetCdnAuthKey() string

func (*Store) GetCdnAuthType

func (x *Store) GetCdnAuthType() string

func (*Store) GetCreatedAt

func (x *Store) GetCreatedAt() uint32

func (*Store) GetDescription

func (x *Store) GetDescription() string

func (*Store) GetEndpoint

func (x *Store) GetEndpoint() string

func (*Store) GetId

func (x *Store) GetId() uint32

func (*Store) GetKeyword

func (x *Store) GetKeyword() string

func (*Store) GetName

func (x *Store) GetName() string

func (*Store) GetProvider

func (x *Store) GetProvider() string

func (*Store) GetPublicBaseUrl

func (x *Store) GetPublicBaseUrl() string

func (*Store) GetRegion

func (x *Store) GetRegion() string

func (*Store) GetSk

func (x *Store) GetSk() string

func (*Store) GetStatus

func (x *Store) GetStatus() uint32

func (*Store) GetUpdatedAt

func (x *Store) GetUpdatedAt() uint32

func (*Store) GetUpdatedBy

func (x *Store) GetUpdatedBy() uint32

func (*Store) ProtoMessage

func (*Store) ProtoMessage()

func (*Store) ProtoReflect

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

func (*Store) Reset

func (x *Store) Reset()

func (*Store) String

func (x *Store) String() string

func (*Store) Validate

func (m *Store) Validate() error

Validate checks the field values on Store with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Store) ValidateAll

func (m *Store) ValidateAll() error

ValidateAll checks the field values on Store with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StoreMultiError, or nil if none found.

type StoreMultiError

type StoreMultiError []error

StoreMultiError is an error wrapping multiple validation errors returned by Store.ValidateAll() if the designated constraints aren't met.

func (StoreMultiError) AllErrors

func (m StoreMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StoreMultiError) Error

func (m StoreMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StoreServiceClient

type StoreServiceClient interface {
	// ListStore 分页查询存储后端
	ListStore(ctx context.Context, in *ListStoreRequest, opts ...grpc.CallOption) (*ListStoreResponse, error)
	// GetStore 按主键查询存储后端
	GetStore(ctx context.Context, in *GetStoreRequest, opts ...grpc.CallOption) (*GetStoreResponse, error)
	// CreateStore 新建存储后端
	CreateStore(ctx context.Context, in *CreateStoreRequest, opts ...grpc.CallOption) (*CreateStoreResponse, error)
	// UpdateStore 更新存储后端
	UpdateStore(ctx context.Context, in *UpdateStoreRequest, opts ...grpc.CallOption) (*UpdateStoreResponse, error)
	// DeleteStore 删除未被引用的存储后端
	DeleteStore(ctx context.Context, in *DeleteStoreRequest, opts ...grpc.CallOption) (*DeleteStoreResponse, error)
	// ListProvider 返回代码里已注册的厂商清单
	ListProvider(ctx context.Context, in *ListProviderRequest, opts ...grpc.CallOption) (*ListProviderResponse, error)
	// CheckStore 测试存储配置连通性(不落库)
	CheckStore(ctx context.Context, in *CheckStoreRequest, opts ...grpc.CallOption) (*CheckStoreResponse, error)
}

StoreServiceClient is the client API for StoreService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

约定:不使用 {path} 路径参数,所有入参均经 Request 的 query / body 绑定。

type StoreServiceHTTPClient

type StoreServiceHTTPClient interface {
	CheckStore(ctx context.Context, req *CheckStoreRequest, opts ...http.CallOption) (rsp *CheckStoreResponse, err error)
	CreateStore(ctx context.Context, req *CreateStoreRequest, opts ...http.CallOption) (rsp *CreateStoreResponse, err error)
	DeleteStore(ctx context.Context, req *DeleteStoreRequest, opts ...http.CallOption) (rsp *DeleteStoreResponse, err error)
	GetStore(ctx context.Context, req *GetStoreRequest, opts ...http.CallOption) (rsp *GetStoreResponse, err error)
	ListProvider(ctx context.Context, req *ListProviderRequest, opts ...http.CallOption) (rsp *ListProviderResponse, err error)
	ListStore(ctx context.Context, req *ListStoreRequest, opts ...http.CallOption) (rsp *ListStoreResponse, err error)
	UpdateStore(ctx context.Context, req *UpdateStoreRequest, opts ...http.CallOption) (rsp *UpdateStoreResponse, err error)
}

func NewStoreServiceHTTPClient

func NewStoreServiceHTTPClient(client *http.Client) StoreServiceHTTPClient

type StoreServiceHTTPClientImpl

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

func (*StoreServiceHTTPClientImpl) CheckStore

func (*StoreServiceHTTPClientImpl) CreateStore

func (*StoreServiceHTTPClientImpl) DeleteStore

func (*StoreServiceHTTPClientImpl) GetStore

func (*StoreServiceHTTPClientImpl) ListProvider

func (*StoreServiceHTTPClientImpl) ListStore

func (*StoreServiceHTTPClientImpl) UpdateStore

type StoreServiceHTTPServer

type StoreServiceHTTPServer interface {
	// CheckStore CheckStore 测试存储配置连通性(不落库)
	CheckStore(context.Context, *CheckStoreRequest) (*CheckStoreResponse, error)
	// CreateStore CreateStore 新建存储后端
	CreateStore(context.Context, *CreateStoreRequest) (*CreateStoreResponse, error)
	// DeleteStore DeleteStore 删除未被引用的存储后端
	DeleteStore(context.Context, *DeleteStoreRequest) (*DeleteStoreResponse, error)
	// GetStore GetStore 按主键查询存储后端
	GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error)
	// ListProvider ListProvider 返回代码里已注册的厂商清单
	ListProvider(context.Context, *ListProviderRequest) (*ListProviderResponse, error)
	// ListStore ListStore 分页查询存储后端
	ListStore(context.Context, *ListStoreRequest) (*ListStoreResponse, error)
	// UpdateStore UpdateStore 更新存储后端
	UpdateStore(context.Context, *UpdateStoreRequest) (*UpdateStoreResponse, error)
}

type StoreServiceServer

type StoreServiceServer interface {
	// ListStore 分页查询存储后端
	ListStore(context.Context, *ListStoreRequest) (*ListStoreResponse, error)
	// GetStore 按主键查询存储后端
	GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error)
	// CreateStore 新建存储后端
	CreateStore(context.Context, *CreateStoreRequest) (*CreateStoreResponse, error)
	// UpdateStore 更新存储后端
	UpdateStore(context.Context, *UpdateStoreRequest) (*UpdateStoreResponse, error)
	// DeleteStore 删除未被引用的存储后端
	DeleteStore(context.Context, *DeleteStoreRequest) (*DeleteStoreResponse, error)
	// ListProvider 返回代码里已注册的厂商清单
	ListProvider(context.Context, *ListProviderRequest) (*ListProviderResponse, error)
	// CheckStore 测试存储配置连通性(不落库)
	CheckStore(context.Context, *CheckStoreRequest) (*CheckStoreResponse, error)
	// contains filtered or unexported methods
}

StoreServiceServer is the server API for StoreService service. All implementations must embed UnimplementedStoreServiceServer for forward compatibility.

约定:不使用 {path} 路径参数,所有入参均经 Request 的 query / body 绑定。

type StoreValidationError

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

StoreValidationError is the validation error returned by Store.Validate if the designated constraints aren't met.

func (StoreValidationError) Cause

func (e StoreValidationError) Cause() error

Cause function returns cause value.

func (StoreValidationError) Error

func (e StoreValidationError) Error() string

Error satisfies the builtin error interface

func (StoreValidationError) ErrorName

func (e StoreValidationError) ErrorName() string

ErrorName returns error name.

func (StoreValidationError) Field

func (e StoreValidationError) Field() string

Field function returns field value.

func (StoreValidationError) Key

func (e StoreValidationError) Key() bool

Key function returns key value.

func (StoreValidationError) Reason

func (e StoreValidationError) Reason() string

Reason function returns reason value.

type UnimplementedStoreServiceServer

type UnimplementedStoreServiceServer struct{}

UnimplementedStoreServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedStoreServiceServer) CheckStore

func (UnimplementedStoreServiceServer) CreateStore

func (UnimplementedStoreServiceServer) DeleteStore

func (UnimplementedStoreServiceServer) GetStore

func (UnimplementedStoreServiceServer) ListProvider

func (UnimplementedStoreServiceServer) ListStore

func (UnimplementedStoreServiceServer) UpdateStore

type UnsafeStoreServiceServer

type UnsafeStoreServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeStoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StoreServiceServer will result in compilation errors.

type UpdateStoreRequest

type UpdateStoreRequest struct {
	Id            uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Provider      *string `protobuf:"bytes,2,opt,name=provider,proto3,oneof" json:"provider,omitempty"`
	Name          *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Endpoint      *string `protobuf:"bytes,4,opt,name=endpoint,proto3,oneof" json:"endpoint,omitempty"`
	Region        *string `protobuf:"bytes,5,opt,name=region,proto3,oneof" json:"region,omitempty"`
	Bucket        *string `protobuf:"bytes,6,opt,name=bucket,proto3,oneof" json:"bucket,omitempty"`
	Ak            *string `protobuf:"bytes,7,opt,name=ak,proto3,oneof" json:"ak,omitempty"`
	Sk            *string `protobuf:"bytes,8,opt,name=sk,proto3,oneof" json:"sk,omitempty"` // 空串 = 不修改
	PublicBaseUrl *string `protobuf:"bytes,9,opt,name=public_base_url,json=publicBaseUrl,proto3,oneof" json:"public_base_url,omitempty"`
	CdnAuthType   *string `protobuf:"bytes,10,opt,name=cdn_auth_type,json=cdnAuthType,proto3,oneof" json:"cdn_auth_type,omitempty"`
	CdnAuthKey    *string `protobuf:"bytes,11,opt,name=cdn_auth_key,json=cdnAuthKey,proto3,oneof" json:"cdn_auth_key,omitempty"` // 不传 = 不改
	Status        *uint32 `protobuf:"varint,12,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Description   *string `protobuf:"bytes,13,opt,name=description,proto3,oneof" json:"description,omitempty"` // 不传 = 不改
	// contains filtered or unexported fields
}

---- UpdateStore ---- 局部更新:仅 id 固定必传(WHERE 条件),其余字段 optional——不传 = 该列不改; 传了才走各自的限定约束。更新停用只需 id + status。

func (*UpdateStoreRequest) Descriptor deprecated

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

Deprecated: Use UpdateStoreRequest.ProtoReflect.Descriptor instead.

func (*UpdateStoreRequest) GetAk

func (x *UpdateStoreRequest) GetAk() string

func (*UpdateStoreRequest) GetBucket

func (x *UpdateStoreRequest) GetBucket() string

func (*UpdateStoreRequest) GetCdnAuthKey

func (x *UpdateStoreRequest) GetCdnAuthKey() string

func (*UpdateStoreRequest) GetCdnAuthType

func (x *UpdateStoreRequest) GetCdnAuthType() string

func (*UpdateStoreRequest) GetDescription

func (x *UpdateStoreRequest) GetDescription() string

func (*UpdateStoreRequest) GetEndpoint

func (x *UpdateStoreRequest) GetEndpoint() string

func (*UpdateStoreRequest) GetId

func (x *UpdateStoreRequest) GetId() uint32

func (*UpdateStoreRequest) GetName

func (x *UpdateStoreRequest) GetName() string

func (*UpdateStoreRequest) GetProvider

func (x *UpdateStoreRequest) GetProvider() string

func (*UpdateStoreRequest) GetPublicBaseUrl

func (x *UpdateStoreRequest) GetPublicBaseUrl() string

func (*UpdateStoreRequest) GetRegion

func (x *UpdateStoreRequest) GetRegion() string

func (*UpdateStoreRequest) GetSk

func (x *UpdateStoreRequest) GetSk() string

func (*UpdateStoreRequest) GetStatus

func (x *UpdateStoreRequest) GetStatus() uint32

func (*UpdateStoreRequest) ProtoMessage

func (*UpdateStoreRequest) ProtoMessage()

func (*UpdateStoreRequest) ProtoReflect

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

func (*UpdateStoreRequest) Reset

func (x *UpdateStoreRequest) Reset()

func (*UpdateStoreRequest) String

func (x *UpdateStoreRequest) String() string

func (*UpdateStoreRequest) Validate

func (m *UpdateStoreRequest) Validate() error

Validate checks the field values on UpdateStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateStoreRequest) ValidateAll

func (m *UpdateStoreRequest) ValidateAll() error

ValidateAll checks the field values on UpdateStoreRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateStoreRequestMultiError, or nil if none found.

type UpdateStoreRequestMultiError

type UpdateStoreRequestMultiError []error

UpdateStoreRequestMultiError is an error wrapping multiple validation errors returned by UpdateStoreRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateStoreRequestMultiError) AllErrors

func (m UpdateStoreRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateStoreRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateStoreRequestValidationError

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

UpdateStoreRequestValidationError is the validation error returned by UpdateStoreRequest.Validate if the designated constraints aren't met.

func (UpdateStoreRequestValidationError) Cause

Cause function returns cause value.

func (UpdateStoreRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateStoreRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateStoreRequestValidationError) Field

Field function returns field value.

func (UpdateStoreRequestValidationError) Key

Key function returns key value.

func (UpdateStoreRequestValidationError) Reason

Reason function returns reason value.

type UpdateStoreResponse

type UpdateStoreResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateStoreResponse) Descriptor deprecated

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

Deprecated: Use UpdateStoreResponse.ProtoReflect.Descriptor instead.

func (*UpdateStoreResponse) GetId

func (x *UpdateStoreResponse) GetId() uint32

func (*UpdateStoreResponse) ProtoMessage

func (*UpdateStoreResponse) ProtoMessage()

func (*UpdateStoreResponse) ProtoReflect

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

func (*UpdateStoreResponse) Reset

func (x *UpdateStoreResponse) Reset()

func (*UpdateStoreResponse) String

func (x *UpdateStoreResponse) String() string

func (*UpdateStoreResponse) Validate

func (m *UpdateStoreResponse) Validate() error

Validate checks the field values on UpdateStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateStoreResponse) ValidateAll

func (m *UpdateStoreResponse) ValidateAll() error

ValidateAll checks the field values on UpdateStoreResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateStoreResponseMultiError, or nil if none found.

type UpdateStoreResponseMultiError

type UpdateStoreResponseMultiError []error

UpdateStoreResponseMultiError is an error wrapping multiple validation errors returned by UpdateStoreResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateStoreResponseMultiError) AllErrors

func (m UpdateStoreResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateStoreResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateStoreResponseValidationError

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

UpdateStoreResponseValidationError is the validation error returned by UpdateStoreResponse.Validate if the designated constraints aren't met.

func (UpdateStoreResponseValidationError) Cause

Cause function returns cause value.

func (UpdateStoreResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateStoreResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateStoreResponseValidationError) Field

Field function returns field value.

func (UpdateStoreResponseValidationError) Key

Key function returns key value.

func (UpdateStoreResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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