Documentation
¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type DeleteImageRequest
- func (*DeleteImageRequest) Descriptor() ([]byte, []int)
- func (m *DeleteImageRequest) GetInstanceId() string
- func (*DeleteImageRequest) ProtoMessage()
- func (m *DeleteImageRequest) Reset()
- func (m *DeleteImageRequest) String() string
- func (this *DeleteImageRequest) Validate() error
- func (m *DeleteImageRequest) XXX_DiscardUnknown()
- func (m *DeleteImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteImageRequest) XXX_Merge(src proto.Message)
- func (m *DeleteImageRequest) XXX_Size() int
- func (m *DeleteImageRequest) XXX_Unmarshal(b []byte) error
- type DeleteImageResponseWrapper
- func (*DeleteImageResponseWrapper) Descriptor() ([]byte, []int)
- func (m *DeleteImageResponseWrapper) GetCode() int32
- func (m *DeleteImageResponseWrapper) GetCodeExplain() string
- func (m *DeleteImageResponseWrapper) GetData() *types.Empty
- func (m *DeleteImageResponseWrapper) GetError() string
- func (*DeleteImageResponseWrapper) ProtoMessage()
- func (m *DeleteImageResponseWrapper) Reset()
- func (m *DeleteImageResponseWrapper) String() string
- func (this *DeleteImageResponseWrapper) Validate() error
- func (m *DeleteImageResponseWrapper) XXX_DiscardUnknown()
- func (m *DeleteImageResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteImageResponseWrapper) XXX_Merge(src proto.Message)
- func (m *DeleteImageResponseWrapper) XXX_Size() int
- func (m *DeleteImageResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface {
DeleteImage(ctx context.Context, in *DeleteImageRequest) (*types.Empty, error)
}
Client is the client API for image service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type DeleteImageRequest ¶
type DeleteImageRequest struct { // //要删除的镜像 id InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DeleteImage请求
func (*DeleteImageRequest) Descriptor ¶
func (*DeleteImageRequest) Descriptor() ([]byte, []int)
func (*DeleteImageRequest) GetInstanceId ¶
func (m *DeleteImageRequest) GetInstanceId() string
func (*DeleteImageRequest) ProtoMessage ¶
func (*DeleteImageRequest) ProtoMessage()
func (*DeleteImageRequest) Reset ¶
func (m *DeleteImageRequest) Reset()
func (*DeleteImageRequest) String ¶
func (m *DeleteImageRequest) String() string
func (*DeleteImageRequest) Validate ¶
func (this *DeleteImageRequest) Validate() error
func (*DeleteImageRequest) XXX_DiscardUnknown ¶
func (m *DeleteImageRequest) XXX_DiscardUnknown()
func (*DeleteImageRequest) XXX_Marshal ¶
func (m *DeleteImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteImageRequest) XXX_Merge ¶
func (m *DeleteImageRequest) XXX_Merge(src proto.Message)
func (*DeleteImageRequest) XXX_Size ¶
func (m *DeleteImageRequest) XXX_Size() int
func (*DeleteImageRequest) XXX_Unmarshal ¶
func (m *DeleteImageRequest) XXX_Unmarshal(b []byte) error
type DeleteImageResponseWrapper ¶
type DeleteImageResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DeleteImageApi返回
func (*DeleteImageResponseWrapper) Descriptor ¶
func (*DeleteImageResponseWrapper) Descriptor() ([]byte, []int)
func (*DeleteImageResponseWrapper) GetCode ¶
func (m *DeleteImageResponseWrapper) GetCode() int32
func (*DeleteImageResponseWrapper) GetCodeExplain ¶
func (m *DeleteImageResponseWrapper) GetCodeExplain() string
func (*DeleteImageResponseWrapper) GetData ¶
func (m *DeleteImageResponseWrapper) GetData() *types.Empty
func (*DeleteImageResponseWrapper) GetError ¶
func (m *DeleteImageResponseWrapper) GetError() string
func (*DeleteImageResponseWrapper) ProtoMessage ¶
func (*DeleteImageResponseWrapper) ProtoMessage()
func (*DeleteImageResponseWrapper) Reset ¶
func (m *DeleteImageResponseWrapper) Reset()
func (*DeleteImageResponseWrapper) String ¶
func (m *DeleteImageResponseWrapper) String() string
func (*DeleteImageResponseWrapper) Validate ¶
func (this *DeleteImageResponseWrapper) Validate() error
func (*DeleteImageResponseWrapper) XXX_DiscardUnknown ¶
func (m *DeleteImageResponseWrapper) XXX_DiscardUnknown()
func (*DeleteImageResponseWrapper) XXX_Marshal ¶
func (m *DeleteImageResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteImageResponseWrapper) XXX_Merge ¶
func (m *DeleteImageResponseWrapper) XXX_Merge(src proto.Message)
func (*DeleteImageResponseWrapper) XXX_Size ¶
func (m *DeleteImageResponseWrapper) XXX_Size() int
func (*DeleteImageResponseWrapper) XXX_Unmarshal ¶
func (m *DeleteImageResponseWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.