Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStoreServiceHTTPServer(s *http.Server, srv StoreServiceHTTPServer)
- func RegisterStoreServiceServer(s grpc.ServiceRegistrar, srv StoreServiceServer)
- type CheckStoreRequest
- func (*CheckStoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckStoreRequest) GetAk() string
- func (x *CheckStoreRequest) GetBucket() string
- func (x *CheckStoreRequest) GetEndpoint() string
- func (x *CheckStoreRequest) GetId() uint32
- func (x *CheckStoreRequest) GetProvider() string
- func (x *CheckStoreRequest) GetRegion() string
- func (x *CheckStoreRequest) GetSk() string
- func (*CheckStoreRequest) ProtoMessage()
- func (x *CheckStoreRequest) ProtoReflect() protoreflect.Message
- func (x *CheckStoreRequest) Reset()
- func (x *CheckStoreRequest) String() string
- func (m *CheckStoreRequest) Validate() error
- func (m *CheckStoreRequest) ValidateAll() error
- type CheckStoreRequestMultiError
- type CheckStoreRequestValidationError
- func (e CheckStoreRequestValidationError) Cause() error
- func (e CheckStoreRequestValidationError) Error() string
- func (e CheckStoreRequestValidationError) ErrorName() string
- func (e CheckStoreRequestValidationError) Field() string
- func (e CheckStoreRequestValidationError) Key() bool
- func (e CheckStoreRequestValidationError) Reason() string
- type CheckStoreResponse
- func (*CheckStoreResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckStoreResponse) GetMessage() string
- func (x *CheckStoreResponse) GetOk() bool
- func (*CheckStoreResponse) ProtoMessage()
- func (x *CheckStoreResponse) ProtoReflect() protoreflect.Message
- func (x *CheckStoreResponse) Reset()
- func (x *CheckStoreResponse) String() string
- func (m *CheckStoreResponse) Validate() error
- func (m *CheckStoreResponse) ValidateAll() error
- type CheckStoreResponseMultiError
- type CheckStoreResponseValidationError
- func (e CheckStoreResponseValidationError) Cause() error
- func (e CheckStoreResponseValidationError) Error() string
- func (e CheckStoreResponseValidationError) ErrorName() string
- func (e CheckStoreResponseValidationError) Field() string
- func (e CheckStoreResponseValidationError) Key() bool
- func (e CheckStoreResponseValidationError) Reason() string
- type CreateStoreRequest
- func (*CreateStoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStoreRequest) GetAk() string
- func (x *CreateStoreRequest) GetBucket() string
- func (x *CreateStoreRequest) GetCdnAuthKey() string
- func (x *CreateStoreRequest) GetCdnAuthType() string
- func (x *CreateStoreRequest) GetDescription() string
- func (x *CreateStoreRequest) GetEndpoint() string
- func (x *CreateStoreRequest) GetKeyword() string
- func (x *CreateStoreRequest) GetName() string
- func (x *CreateStoreRequest) GetProvider() string
- func (x *CreateStoreRequest) GetPublicBaseUrl() string
- func (x *CreateStoreRequest) GetRegion() string
- func (x *CreateStoreRequest) GetSk() string
- func (x *CreateStoreRequest) GetStatus() uint32
- func (*CreateStoreRequest) ProtoMessage()
- func (x *CreateStoreRequest) ProtoReflect() protoreflect.Message
- func (x *CreateStoreRequest) Reset()
- func (x *CreateStoreRequest) String() string
- func (m *CreateStoreRequest) Validate() error
- func (m *CreateStoreRequest) ValidateAll() error
- type CreateStoreRequestMultiError
- type CreateStoreRequestValidationError
- func (e CreateStoreRequestValidationError) Cause() error
- func (e CreateStoreRequestValidationError) Error() string
- func (e CreateStoreRequestValidationError) ErrorName() string
- func (e CreateStoreRequestValidationError) Field() string
- func (e CreateStoreRequestValidationError) Key() bool
- func (e CreateStoreRequestValidationError) Reason() string
- type CreateStoreResponse
- func (*CreateStoreResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStoreResponse) GetId() uint32
- func (*CreateStoreResponse) ProtoMessage()
- func (x *CreateStoreResponse) ProtoReflect() protoreflect.Message
- func (x *CreateStoreResponse) Reset()
- func (x *CreateStoreResponse) String() string
- func (m *CreateStoreResponse) Validate() error
- func (m *CreateStoreResponse) ValidateAll() error
- type CreateStoreResponseMultiError
- type CreateStoreResponseValidationError
- func (e CreateStoreResponseValidationError) Cause() error
- func (e CreateStoreResponseValidationError) Error() string
- func (e CreateStoreResponseValidationError) ErrorName() string
- func (e CreateStoreResponseValidationError) Field() string
- func (e CreateStoreResponseValidationError) Key() bool
- func (e CreateStoreResponseValidationError) Reason() string
- type DeleteStoreRequest
- func (*DeleteStoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteStoreRequest) GetId() uint32
- func (*DeleteStoreRequest) ProtoMessage()
- func (x *DeleteStoreRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteStoreRequest) Reset()
- func (x *DeleteStoreRequest) String() string
- func (m *DeleteStoreRequest) Validate() error
- func (m *DeleteStoreRequest) ValidateAll() error
- type DeleteStoreRequestMultiError
- type DeleteStoreRequestValidationError
- func (e DeleteStoreRequestValidationError) Cause() error
- func (e DeleteStoreRequestValidationError) Error() string
- func (e DeleteStoreRequestValidationError) ErrorName() string
- func (e DeleteStoreRequestValidationError) Field() string
- func (e DeleteStoreRequestValidationError) Key() bool
- func (e DeleteStoreRequestValidationError) Reason() string
- type DeleteStoreResponse
- func (*DeleteStoreResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteStoreResponse) GetId() uint32
- func (*DeleteStoreResponse) ProtoMessage()
- func (x *DeleteStoreResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteStoreResponse) Reset()
- func (x *DeleteStoreResponse) String() string
- func (m *DeleteStoreResponse) Validate() error
- func (m *DeleteStoreResponse) ValidateAll() error
- type DeleteStoreResponseMultiError
- type DeleteStoreResponseValidationError
- func (e DeleteStoreResponseValidationError) Cause() error
- func (e DeleteStoreResponseValidationError) Error() string
- func (e DeleteStoreResponseValidationError) ErrorName() string
- func (e DeleteStoreResponseValidationError) Field() string
- func (e DeleteStoreResponseValidationError) Key() bool
- func (e DeleteStoreResponseValidationError) Reason() string
- type GetStoreRequest
- func (*GetStoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStoreRequest) GetId() uint32
- func (*GetStoreRequest) ProtoMessage()
- func (x *GetStoreRequest) ProtoReflect() protoreflect.Message
- func (x *GetStoreRequest) Reset()
- func (x *GetStoreRequest) String() string
- func (m *GetStoreRequest) Validate() error
- func (m *GetStoreRequest) ValidateAll() error
- type GetStoreRequestMultiError
- type GetStoreRequestValidationError
- func (e GetStoreRequestValidationError) Cause() error
- func (e GetStoreRequestValidationError) Error() string
- func (e GetStoreRequestValidationError) ErrorName() string
- func (e GetStoreRequestValidationError) Field() string
- func (e GetStoreRequestValidationError) Key() bool
- func (e GetStoreRequestValidationError) Reason() string
- type GetStoreResponse
- func (*GetStoreResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStoreResponse) GetStore() *Store
- func (*GetStoreResponse) ProtoMessage()
- func (x *GetStoreResponse) ProtoReflect() protoreflect.Message
- func (x *GetStoreResponse) Reset()
- func (x *GetStoreResponse) String() string
- func (m *GetStoreResponse) Validate() error
- func (m *GetStoreResponse) ValidateAll() error
- type GetStoreResponseMultiError
- type GetStoreResponseValidationError
- func (e GetStoreResponseValidationError) Cause() error
- func (e GetStoreResponseValidationError) Error() string
- func (e GetStoreResponseValidationError) ErrorName() string
- func (e GetStoreResponseValidationError) Field() string
- func (e GetStoreResponseValidationError) Key() bool
- func (e GetStoreResponseValidationError) Reason() string
- type ListProviderRequest
- func (*ListProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListProviderRequest) ProtoMessage()
- func (x *ListProviderRequest) ProtoReflect() protoreflect.Message
- func (x *ListProviderRequest) Reset()
- func (x *ListProviderRequest) String() string
- func (m *ListProviderRequest) Validate() error
- func (m *ListProviderRequest) ValidateAll() error
- type ListProviderRequestMultiError
- type ListProviderRequestValidationError
- func (e ListProviderRequestValidationError) Cause() error
- func (e ListProviderRequestValidationError) Error() string
- func (e ListProviderRequestValidationError) ErrorName() string
- func (e ListProviderRequestValidationError) Field() string
- func (e ListProviderRequestValidationError) Key() bool
- func (e ListProviderRequestValidationError) Reason() string
- type ListProviderResponse
- func (*ListProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProviderResponse) GetList() []*Provider
- func (*ListProviderResponse) ProtoMessage()
- func (x *ListProviderResponse) ProtoReflect() protoreflect.Message
- func (x *ListProviderResponse) Reset()
- func (x *ListProviderResponse) String() string
- func (m *ListProviderResponse) Validate() error
- func (m *ListProviderResponse) ValidateAll() error
- type ListProviderResponseMultiError
- type ListProviderResponseValidationError
- func (e ListProviderResponseValidationError) Cause() error
- func (e ListProviderResponseValidationError) Error() string
- func (e ListProviderResponseValidationError) ErrorName() string
- func (e ListProviderResponseValidationError) Field() string
- func (e ListProviderResponseValidationError) Key() bool
- func (e ListProviderResponseValidationError) Reason() string
- type ListStoreRequest
- func (*ListStoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListStoreRequest) GetKeyword() string
- func (x *ListStoreRequest) GetPage() uint32
- func (x *ListStoreRequest) GetPageSize() uint32
- func (x *ListStoreRequest) GetProvider() string
- func (x *ListStoreRequest) GetStatus() uint32
- func (*ListStoreRequest) ProtoMessage()
- func (x *ListStoreRequest) ProtoReflect() protoreflect.Message
- func (x *ListStoreRequest) Reset()
- func (x *ListStoreRequest) String() string
- func (m *ListStoreRequest) Validate() error
- func (m *ListStoreRequest) ValidateAll() error
- type ListStoreRequestMultiError
- type ListStoreRequestValidationError
- func (e ListStoreRequestValidationError) Cause() error
- func (e ListStoreRequestValidationError) Error() string
- func (e ListStoreRequestValidationError) ErrorName() string
- func (e ListStoreRequestValidationError) Field() string
- func (e ListStoreRequestValidationError) Key() bool
- func (e ListStoreRequestValidationError) Reason() string
- type ListStoreResponse
- func (*ListStoreResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListStoreResponse) GetList() []*Store
- func (x *ListStoreResponse) GetTotal() uint32
- func (*ListStoreResponse) ProtoMessage()
- func (x *ListStoreResponse) ProtoReflect() protoreflect.Message
- func (x *ListStoreResponse) Reset()
- func (x *ListStoreResponse) String() string
- func (m *ListStoreResponse) Validate() error
- func (m *ListStoreResponse) ValidateAll() error
- type ListStoreResponseMultiError
- type ListStoreResponseValidationError
- func (e ListStoreResponseValidationError) Cause() error
- func (e ListStoreResponseValidationError) Error() string
- func (e ListStoreResponseValidationError) ErrorName() string
- func (e ListStoreResponseValidationError) Field() string
- func (e ListStoreResponseValidationError) Key() bool
- func (e ListStoreResponseValidationError) Reason() string
- type Provider
- func (*Provider) Descriptor() ([]byte, []int)deprecated
- func (x *Provider) GetImplemented() bool
- func (x *Provider) GetLabel() string
- func (x *Provider) GetValue() string
- func (*Provider) ProtoMessage()
- func (x *Provider) ProtoReflect() protoreflect.Message
- func (x *Provider) Reset()
- func (x *Provider) String() string
- func (m *Provider) Validate() error
- func (m *Provider) ValidateAll() error
- type ProviderMultiError
- type ProviderValidationError
- type Store
- func (*Store) Descriptor() ([]byte, []int)deprecated
- func (x *Store) GetAk() string
- func (x *Store) GetBucket() string
- func (x *Store) GetCdnAuthKey() string
- func (x *Store) GetCdnAuthType() string
- func (x *Store) GetCreatedAt() uint32
- func (x *Store) GetDescription() string
- func (x *Store) GetEndpoint() string
- func (x *Store) GetId() uint32
- func (x *Store) GetKeyword() string
- func (x *Store) GetName() string
- func (x *Store) GetProvider() string
- func (x *Store) GetPublicBaseUrl() string
- func (x *Store) GetRegion() string
- func (x *Store) GetSk() string
- func (x *Store) GetStatus() uint32
- func (x *Store) GetUpdatedAt() uint32
- func (x *Store) GetUpdatedBy() uint32
- func (*Store) ProtoMessage()
- func (x *Store) ProtoReflect() protoreflect.Message
- func (x *Store) Reset()
- func (x *Store) String() string
- func (m *Store) Validate() error
- func (m *Store) ValidateAll() error
- type StoreMultiError
- type StoreServiceClient
- type StoreServiceHTTPClient
- type StoreServiceHTTPClientImpl
- func (c *StoreServiceHTTPClientImpl) CheckStore(ctx context.Context, in *CheckStoreRequest, opts ...http.CallOption) (*CheckStoreResponse, error)
- func (c *StoreServiceHTTPClientImpl) CreateStore(ctx context.Context, in *CreateStoreRequest, opts ...http.CallOption) (*CreateStoreResponse, error)
- func (c *StoreServiceHTTPClientImpl) DeleteStore(ctx context.Context, in *DeleteStoreRequest, opts ...http.CallOption) (*DeleteStoreResponse, error)
- func (c *StoreServiceHTTPClientImpl) GetStore(ctx context.Context, in *GetStoreRequest, opts ...http.CallOption) (*GetStoreResponse, error)
- func (c *StoreServiceHTTPClientImpl) ListProvider(ctx context.Context, in *ListProviderRequest, opts ...http.CallOption) (*ListProviderResponse, error)
- func (c *StoreServiceHTTPClientImpl) ListStore(ctx context.Context, in *ListStoreRequest, opts ...http.CallOption) (*ListStoreResponse, error)
- func (c *StoreServiceHTTPClientImpl) UpdateStore(ctx context.Context, in *UpdateStoreRequest, opts ...http.CallOption) (*UpdateStoreResponse, error)
- type StoreServiceHTTPServer
- type StoreServiceServer
- type StoreValidationError
- type UnimplementedStoreServiceServer
- func (UnimplementedStoreServiceServer) CheckStore(context.Context, *CheckStoreRequest) (*CheckStoreResponse, error)
- func (UnimplementedStoreServiceServer) CreateStore(context.Context, *CreateStoreRequest) (*CreateStoreResponse, error)
- func (UnimplementedStoreServiceServer) DeleteStore(context.Context, *DeleteStoreRequest) (*DeleteStoreResponse, error)
- func (UnimplementedStoreServiceServer) GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error)
- func (UnimplementedStoreServiceServer) ListProvider(context.Context, *ListProviderRequest) (*ListProviderResponse, error)
- func (UnimplementedStoreServiceServer) ListStore(context.Context, *ListStoreRequest) (*ListStoreResponse, error)
- func (UnimplementedStoreServiceServer) UpdateStore(context.Context, *UpdateStoreRequest) (*UpdateStoreResponse, error)
- type UnsafeStoreServiceServer
- type UpdateStoreRequest
- func (*UpdateStoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStoreRequest) GetAk() string
- func (x *UpdateStoreRequest) GetBucket() string
- func (x *UpdateStoreRequest) GetCdnAuthKey() string
- func (x *UpdateStoreRequest) GetCdnAuthType() string
- func (x *UpdateStoreRequest) GetDescription() string
- func (x *UpdateStoreRequest) GetEndpoint() string
- func (x *UpdateStoreRequest) GetId() uint32
- func (x *UpdateStoreRequest) GetName() string
- func (x *UpdateStoreRequest) GetProvider() string
- func (x *UpdateStoreRequest) GetPublicBaseUrl() string
- func (x *UpdateStoreRequest) GetRegion() string
- func (x *UpdateStoreRequest) GetSk() string
- func (x *UpdateStoreRequest) GetStatus() uint32
- func (*UpdateStoreRequest) ProtoMessage()
- func (x *UpdateStoreRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateStoreRequest) Reset()
- func (x *UpdateStoreRequest) String() string
- func (m *UpdateStoreRequest) Validate() error
- func (m *UpdateStoreRequest) ValidateAll() error
- type UpdateStoreRequestMultiError
- type UpdateStoreRequestValidationError
- func (e UpdateStoreRequestValidationError) Cause() error
- func (e UpdateStoreRequestValidationError) Error() string
- func (e UpdateStoreRequestValidationError) ErrorName() string
- func (e UpdateStoreRequestValidationError) Field() string
- func (e UpdateStoreRequestValidationError) Key() bool
- func (e UpdateStoreRequestValidationError) Reason() string
- type UpdateStoreResponse
- func (*UpdateStoreResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStoreResponse) GetId() uint32
- func (*UpdateStoreResponse) ProtoMessage()
- func (x *UpdateStoreResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateStoreResponse) Reset()
- func (x *UpdateStoreResponse) String() string
- func (m *UpdateStoreResponse) Validate() error
- func (m *UpdateStoreResponse) ValidateAll() error
- type UpdateStoreResponseMultiError
- type UpdateStoreResponseValidationError
- func (e UpdateStoreResponseValidationError) Cause() error
- func (e UpdateStoreResponseValidationError) Error() string
- func (e UpdateStoreResponseValidationError) ErrorName() string
- func (e UpdateStoreResponseValidationError) Field() string
- func (e UpdateStoreResponseValidationError) Key() bool
- func (e UpdateStoreResponseValidationError) Reason() string
Constants ¶
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" )
const OperationStoreServiceCheckStore = "/resource.api.store.StoreService/CheckStore"
const OperationStoreServiceCreateStore = "/resource.api.store.StoreService/CreateStore"
const OperationStoreServiceDeleteStore = "/resource.api.store.StoreService/DeleteStore"
const OperationStoreServiceGetStore = "/resource.api.store.StoreService/GetStore"
const OperationStoreServiceListProvider = "/resource.api.store.StoreService/ListProvider"
const OperationStoreServiceListStore = "/resource.api.store.StoreService/ListStore"
const OperationStoreServiceUpdateStore = "/resource.api.store.StoreService/UpdateStore"
Variables ¶
var File_api_store_proto_store_proto protoreflect.FileDescriptor
var File_api_store_proto_store_service_proto protoreflect.FileDescriptor
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 ¶
func (m CheckStoreRequestMultiError) Error() string
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 ¶
func (e CheckStoreRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckStoreRequestValidationError) Error ¶
func (e CheckStoreRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckStoreRequestValidationError) ErrorName ¶
func (e CheckStoreRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckStoreRequestValidationError) Field ¶
func (e CheckStoreRequestValidationError) Field() string
Field function returns field value.
func (CheckStoreRequestValidationError) Key ¶
func (e CheckStoreRequestValidationError) Key() bool
Key function returns key value.
func (CheckStoreRequestValidationError) Reason ¶
func (e CheckStoreRequestValidationError) Reason() string
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 ¶
func (m CheckStoreResponseMultiError) Error() string
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 ¶
func (e CheckStoreResponseValidationError) Cause() error
Cause function returns cause value.
func (CheckStoreResponseValidationError) Error ¶
func (e CheckStoreResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CheckStoreResponseValidationError) ErrorName ¶
func (e CheckStoreResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CheckStoreResponseValidationError) Field ¶
func (e CheckStoreResponseValidationError) Field() string
Field function returns field value.
func (CheckStoreResponseValidationError) Key ¶
func (e CheckStoreResponseValidationError) Key() bool
Key function returns key value.
func (CheckStoreResponseValidationError) Reason ¶
func (e CheckStoreResponseValidationError) Reason() string
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 ¶
func (m CreateStoreRequestMultiError) Error() string
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 ¶
func (e CreateStoreRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateStoreRequestValidationError) Error ¶
func (e CreateStoreRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateStoreRequestValidationError) ErrorName ¶
func (e CreateStoreRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateStoreRequestValidationError) Field ¶
func (e CreateStoreRequestValidationError) Field() string
Field function returns field value.
func (CreateStoreRequestValidationError) Key ¶
func (e CreateStoreRequestValidationError) Key() bool
Key function returns key value.
func (CreateStoreRequestValidationError) Reason ¶
func (e CreateStoreRequestValidationError) Reason() string
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 ¶
func (m CreateStoreResponseMultiError) Error() string
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 ¶
func (e CreateStoreResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateStoreResponseValidationError) Error ¶
func (e CreateStoreResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateStoreResponseValidationError) ErrorName ¶
func (e CreateStoreResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateStoreResponseValidationError) Field ¶
func (e CreateStoreResponseValidationError) Field() string
Field function returns field value.
func (CreateStoreResponseValidationError) Key ¶
func (e CreateStoreResponseValidationError) Key() bool
Key function returns key value.
func (CreateStoreResponseValidationError) Reason ¶
func (e CreateStoreResponseValidationError) Reason() string
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 ¶
func (m DeleteStoreRequestMultiError) Error() string
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 ¶
func (e DeleteStoreRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteStoreRequestValidationError) Error ¶
func (e DeleteStoreRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteStoreRequestValidationError) ErrorName ¶
func (e DeleteStoreRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteStoreRequestValidationError) Field ¶
func (e DeleteStoreRequestValidationError) Field() string
Field function returns field value.
func (DeleteStoreRequestValidationError) Key ¶
func (e DeleteStoreRequestValidationError) Key() bool
Key function returns key value.
func (DeleteStoreRequestValidationError) Reason ¶
func (e DeleteStoreRequestValidationError) Reason() string
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 ¶
func (m DeleteStoreResponseMultiError) Error() string
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 ¶
func (e DeleteStoreResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteStoreResponseValidationError) Error ¶
func (e DeleteStoreResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteStoreResponseValidationError) ErrorName ¶
func (e DeleteStoreResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteStoreResponseValidationError) Field ¶
func (e DeleteStoreResponseValidationError) Field() string
Field function returns field value.
func (DeleteStoreResponseValidationError) Key ¶
func (e DeleteStoreResponseValidationError) Key() bool
Key function returns key value.
func (DeleteStoreResponseValidationError) Reason ¶
func (e DeleteStoreResponseValidationError) Reason() string
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 ¶
func (m GetStoreRequestMultiError) Error() string
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 ¶
func (e GetStoreRequestValidationError) Cause() error
Cause function returns cause value.
func (GetStoreRequestValidationError) Error ¶
func (e GetStoreRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetStoreRequestValidationError) ErrorName ¶
func (e GetStoreRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetStoreRequestValidationError) Field ¶
func (e GetStoreRequestValidationError) Field() string
Field function returns field value.
func (GetStoreRequestValidationError) Key ¶
func (e GetStoreRequestValidationError) Key() bool
Key function returns key value.
func (GetStoreRequestValidationError) Reason ¶
func (e GetStoreRequestValidationError) Reason() string
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 ¶
func (m GetStoreResponseMultiError) Error() string
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 ¶
func (e GetStoreResponseValidationError) Cause() error
Cause function returns cause value.
func (GetStoreResponseValidationError) Error ¶
func (e GetStoreResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetStoreResponseValidationError) ErrorName ¶
func (e GetStoreResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetStoreResponseValidationError) Field ¶
func (e GetStoreResponseValidationError) Field() string
Field function returns field value.
func (GetStoreResponseValidationError) Key ¶
func (e GetStoreResponseValidationError) Key() bool
Key function returns key value.
func (GetStoreResponseValidationError) Reason ¶
func (e GetStoreResponseValidationError) Reason() string
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 ¶
func (m ListProviderRequestMultiError) Error() string
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 ¶
func (e ListProviderRequestValidationError) Cause() error
Cause function returns cause value.
func (ListProviderRequestValidationError) Error ¶
func (e ListProviderRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListProviderRequestValidationError) ErrorName ¶
func (e ListProviderRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListProviderRequestValidationError) Field ¶
func (e ListProviderRequestValidationError) Field() string
Field function returns field value.
func (ListProviderRequestValidationError) Key ¶
func (e ListProviderRequestValidationError) Key() bool
Key function returns key value.
func (ListProviderRequestValidationError) Reason ¶
func (e ListProviderRequestValidationError) Reason() string
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 ¶
func (m ListProviderResponseMultiError) Error() string
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 ¶
func (e ListProviderResponseValidationError) Cause() error
Cause function returns cause value.
func (ListProviderResponseValidationError) Error ¶
func (e ListProviderResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListProviderResponseValidationError) ErrorName ¶
func (e ListProviderResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListProviderResponseValidationError) Field ¶
func (e ListProviderResponseValidationError) Field() string
Field function returns field value.
func (ListProviderResponseValidationError) Key ¶
func (e ListProviderResponseValidationError) Key() bool
Key function returns key value.
func (ListProviderResponseValidationError) Reason ¶
func (e ListProviderResponseValidationError) Reason() string
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 ¶
func (m ListStoreRequestMultiError) Error() string
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 ¶
func (e ListStoreRequestValidationError) Cause() error
Cause function returns cause value.
func (ListStoreRequestValidationError) Error ¶
func (e ListStoreRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListStoreRequestValidationError) ErrorName ¶
func (e ListStoreRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListStoreRequestValidationError) Field ¶
func (e ListStoreRequestValidationError) Field() string
Field function returns field value.
func (ListStoreRequestValidationError) Key ¶
func (e ListStoreRequestValidationError) Key() bool
Key function returns key value.
func (ListStoreRequestValidationError) Reason ¶
func (e ListStoreRequestValidationError) Reason() string
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 ¶
func (m ListStoreResponseMultiError) Error() string
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 ¶
func (e ListStoreResponseValidationError) Cause() error
Cause function returns cause value.
func (ListStoreResponseValidationError) Error ¶
func (e ListStoreResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListStoreResponseValidationError) ErrorName ¶
func (e ListStoreResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListStoreResponseValidationError) Field ¶
func (e ListStoreResponseValidationError) Field() string
Field function returns field value.
func (ListStoreResponseValidationError) Key ¶
func (e ListStoreResponseValidationError) Key() bool
Key function returns key value.
func (ListStoreResponseValidationError) Reason ¶
func (e ListStoreResponseValidationError) Reason() string
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) GetImplemented ¶
func (*Provider) ProtoMessage ¶
func (*Provider) ProtoMessage()
func (*Provider) ProtoReflect ¶
func (x *Provider) ProtoReflect() protoreflect.Message
func (*Provider) Validate ¶
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 ¶
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) GetCdnAuthKey ¶
func (*Store) GetCdnAuthType ¶
func (*Store) GetCreatedAt ¶
func (*Store) GetDescription ¶
func (*Store) GetEndpoint ¶
func (*Store) GetKeyword ¶
func (*Store) GetProvider ¶
func (*Store) GetPublicBaseUrl ¶
func (*Store) GetUpdatedAt ¶
func (*Store) GetUpdatedBy ¶
func (*Store) ProtoMessage ¶
func (*Store) ProtoMessage()
func (*Store) ProtoReflect ¶
func (x *Store) ProtoReflect() protoreflect.Message
func (*Store) Validate ¶
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 ¶
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 绑定。
func NewStoreServiceClient ¶
func NewStoreServiceClient(cc grpc.ClientConnInterface) StoreServiceClient
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 (c *StoreServiceHTTPClientImpl) CheckStore(ctx context.Context, in *CheckStoreRequest, opts ...http.CallOption) (*CheckStoreResponse, error)
func (*StoreServiceHTTPClientImpl) CreateStore ¶
func (c *StoreServiceHTTPClientImpl) CreateStore(ctx context.Context, in *CreateStoreRequest, opts ...http.CallOption) (*CreateStoreResponse, error)
func (*StoreServiceHTTPClientImpl) DeleteStore ¶
func (c *StoreServiceHTTPClientImpl) DeleteStore(ctx context.Context, in *DeleteStoreRequest, opts ...http.CallOption) (*DeleteStoreResponse, error)
func (*StoreServiceHTTPClientImpl) GetStore ¶
func (c *StoreServiceHTTPClientImpl) GetStore(ctx context.Context, in *GetStoreRequest, opts ...http.CallOption) (*GetStoreResponse, error)
func (*StoreServiceHTTPClientImpl) ListProvider ¶
func (c *StoreServiceHTTPClientImpl) ListProvider(ctx context.Context, in *ListProviderRequest, opts ...http.CallOption) (*ListProviderResponse, error)
func (*StoreServiceHTTPClientImpl) ListStore ¶
func (c *StoreServiceHTTPClientImpl) ListStore(ctx context.Context, in *ListStoreRequest, opts ...http.CallOption) (*ListStoreResponse, error)
func (*StoreServiceHTTPClientImpl) UpdateStore ¶
func (c *StoreServiceHTTPClientImpl) UpdateStore(ctx context.Context, in *UpdateStoreRequest, opts ...http.CallOption) (*UpdateStoreResponse, error)
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) CheckStore(context.Context, *CheckStoreRequest) (*CheckStoreResponse, error)
func (UnimplementedStoreServiceServer) CreateStore ¶
func (UnimplementedStoreServiceServer) CreateStore(context.Context, *CreateStoreRequest) (*CreateStoreResponse, error)
func (UnimplementedStoreServiceServer) DeleteStore ¶
func (UnimplementedStoreServiceServer) DeleteStore(context.Context, *DeleteStoreRequest) (*DeleteStoreResponse, error)
func (UnimplementedStoreServiceServer) GetStore ¶
func (UnimplementedStoreServiceServer) GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error)
func (UnimplementedStoreServiceServer) ListProvider ¶
func (UnimplementedStoreServiceServer) ListProvider(context.Context, *ListProviderRequest) (*ListProviderResponse, error)
func (UnimplementedStoreServiceServer) ListStore ¶
func (UnimplementedStoreServiceServer) ListStore(context.Context, *ListStoreRequest) (*ListStoreResponse, error)
func (UnimplementedStoreServiceServer) UpdateStore ¶
func (UnimplementedStoreServiceServer) UpdateStore(context.Context, *UpdateStoreRequest) (*UpdateStoreResponse, error)
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 ¶
func (m UpdateStoreRequestMultiError) Error() string
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 ¶
func (e UpdateStoreRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateStoreRequestValidationError) Error ¶
func (e UpdateStoreRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateStoreRequestValidationError) ErrorName ¶
func (e UpdateStoreRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateStoreRequestValidationError) Field ¶
func (e UpdateStoreRequestValidationError) Field() string
Field function returns field value.
func (UpdateStoreRequestValidationError) Key ¶
func (e UpdateStoreRequestValidationError) Key() bool
Key function returns key value.
func (UpdateStoreRequestValidationError) Reason ¶
func (e UpdateStoreRequestValidationError) Reason() string
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 ¶
func (m UpdateStoreResponseMultiError) Error() string
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 ¶
func (e UpdateStoreResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateStoreResponseValidationError) Error ¶
func (e UpdateStoreResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateStoreResponseValidationError) ErrorName ¶
func (e UpdateStoreResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateStoreResponseValidationError) Field ¶
func (e UpdateStoreResponseValidationError) Field() string
Field function returns field value.
func (UpdateStoreResponseValidationError) Key ¶
func (e UpdateStoreResponseValidationError) Key() bool
Key function returns key value.
func (UpdateStoreResponseValidationError) Reason ¶
func (e UpdateStoreResponseValidationError) Reason() string
Reason function returns reason value.