Documentation
¶
Index ¶
- Variables
- func RegisterEipAgentServer(s grpc.ServiceRegistrar, srv EipAgentServer)
- type EipAgentClient
- type EipAgentServer
- type EipOpReq
- func (*EipOpReq) Descriptor() ([]byte, []int)deprecated
- func (x *EipOpReq) GetAction() string
- func (x *EipOpReq) GetEipAddr() string
- func (x *EipOpReq) GetVmiAddr() string
- func (*EipOpReq) ProtoMessage()
- func (x *EipOpReq) ProtoReflect() protoreflect.Message
- func (x *EipOpReq) Reset()
- func (x *EipOpReq) String() string
- type EipOpRsp
- type UnimplementedEipAgentServer
- type UnsafeEipAgentServer
Constants ¶
This section is empty.
Variables ¶
var EipAgent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protoc.EipAgent", HandlerType: (*EipAgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EipOperate", Handler: _EipAgent_EipOperate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/protoc/binding/eip_bind.proto", }
EipAgent_ServiceDesc is the grpc.ServiceDesc for EipAgent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_protoc_binding_eip_bind_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEipAgentServer ¶
func RegisterEipAgentServer(s grpc.ServiceRegistrar, srv EipAgentServer)
Types ¶
type EipAgentClient ¶
type EipAgentClient interface {
EipOperate(ctx context.Context, in *EipOpReq, opts ...grpc.CallOption) (*EipOpRsp, error)
}
EipAgentClient is the client API for EipAgent 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.
func NewEipAgentClient ¶
func NewEipAgentClient(cc grpc.ClientConnInterface) EipAgentClient
type EipAgentServer ¶
type EipAgentServer interface { EipOperate(context.Context, *EipOpReq) (*EipOpRsp, error) // contains filtered or unexported methods }
EipAgentServer is the server API for EipAgent service. All implementations must embed UnimplementedEipAgentServer for forward compatibility
type EipOpReq ¶
type EipOpReq struct { Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` EipAddr string `protobuf:"bytes,2,opt,name=eipAddr,proto3" json:"eipAddr,omitempty"` VmiAddr string `protobuf:"bytes,3,opt,name=vmiAddr,proto3" json:"vmiAddr,omitempty"` // contains filtered or unexported fields }
func (*EipOpReq) Descriptor
deprecated
func (*EipOpReq) GetEipAddr ¶
func (*EipOpReq) GetVmiAddr ¶
func (*EipOpReq) ProtoMessage ¶
func (*EipOpReq) ProtoMessage()
func (*EipOpReq) ProtoReflect ¶
func (x *EipOpReq) ProtoReflect() protoreflect.Message
type EipOpRsp ¶
type EipOpRsp struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` ErrPhase int32 `protobuf:"varint,2,opt,name=errPhase,proto3" json:"errPhase,omitempty"` // contains filtered or unexported fields }
func (*EipOpRsp) Descriptor
deprecated
func (*EipOpRsp) GetErrPhase ¶
func (*EipOpRsp) ProtoMessage ¶
func (*EipOpRsp) ProtoMessage()
func (*EipOpRsp) ProtoReflect ¶
func (x *EipOpRsp) ProtoReflect() protoreflect.Message
type UnimplementedEipAgentServer ¶
type UnimplementedEipAgentServer struct { }
UnimplementedEipAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedEipAgentServer) EipOperate ¶
type UnsafeEipAgentServer ¶
type UnsafeEipAgentServer interface {
// contains filtered or unexported methods
}
UnsafeEipAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EipAgentServer will result in compilation errors.