Documentation ¶
Index ¶
- Variables
- func RegisterAllocationServer(s grpc.ServiceRegistrar, srv AllocationServer)
- type AllocationClient
- type AllocationServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetKind() string
- func (m *Request) GetLabels() map[string]string
- func (m *Request) GetName() string
- func (m *Request) GetNamespace() string
- func (m *Request) GetSpec() *Spec
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetParentPrefix() string
- func (m *Response) GetPrefix() string
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Spec
- func (*Spec) Descriptor() ([]byte, []int)
- func (m *Spec) GetPrefix() string
- func (m *Spec) GetPrefixLength() uint32
- func (m *Spec) GetSelector() map[string]string
- func (m *Spec) Marshal() (dAtA []byte, err error)
- func (m *Spec) MarshalTo(dAtA []byte) (int, error)
- func (m *Spec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Spec) ProtoMessage()
- func (m *Spec) Reset()
- func (m *Spec) Size() (n int)
- func (m *Spec) String() string
- func (m *Spec) Unmarshal(dAtA []byte) error
- func (m *Spec) XXX_DiscardUnknown()
- func (m *Spec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Spec) XXX_Merge(src proto.Message)
- func (m *Spec) XXX_Size() int
- func (m *Spec) XXX_Unmarshal(b []byte) error
- type UnimplementedAllocationServer
- type UnsafeAllocationServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthAlloc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAlloc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAlloc = fmt.Errorf("proto: unexpected end of group") )
var Allocation_ServiceDesc = grpc.ServiceDesc{ ServiceName: "alloc.Allocation", HandlerType: (*AllocationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AllocationRequest", Handler: _Allocation_AllocationRequest_Handler, }, { MethodName: "DeAllocationRequest", Handler: _Allocation_DeAllocationRequest_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/alloc/allocpb/alloc.proto", }
Allocation_ServiceDesc is the grpc.ServiceDesc for Allocation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAllocationServer ¶
func RegisterAllocationServer(s grpc.ServiceRegistrar, srv AllocationServer)
Types ¶
type AllocationClient ¶
type AllocationClient interface { AllocationRequest(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) DeAllocationRequest(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
AllocationClient is the client API for Allocation 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 NewAllocationClient ¶
func NewAllocationClient(cc grpc.ClientConnInterface) AllocationClient
type AllocationServer ¶
type AllocationServer interface { AllocationRequest(context.Context, *Request) (*Response, error) DeAllocationRequest(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
AllocationServer is the server API for Allocation service. All implementations must embed UnimplementedAllocationServer for forward compatibility
type Request ¶
type Request struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Spec *Spec `protobuf:"bytes,5,opt,name=spec,proto3" json:"spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetNamespace ¶
func (*Request) MarshalToSizedBuffer ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` ParentPrefix string `protobuf:"bytes,2,opt,name=parentPrefix,proto3" json:"parentPrefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetParentPrefix ¶
func (*Response) MarshalToSizedBuffer ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Spec ¶
type Spec struct { Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` PrefixLength uint32 `protobuf:"varint,2,opt,name=prefixLength,proto3" json:"prefixLength,omitempty"` Selector map[string]string `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Spec) Descriptor ¶
func (*Spec) GetPrefixLength ¶
func (*Spec) GetSelector ¶
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) XXX_DiscardUnknown ¶
func (m *Spec) XXX_DiscardUnknown()
func (*Spec) XXX_Unmarshal ¶
type UnimplementedAllocationServer ¶
type UnimplementedAllocationServer struct { }
UnimplementedAllocationServer must be embedded to have forward compatible implementations.
func (UnimplementedAllocationServer) AllocationRequest ¶
func (UnimplementedAllocationServer) DeAllocationRequest ¶
type UnsafeAllocationServer ¶
type UnsafeAllocationServer interface {
// contains filtered or unexported methods
}
UnsafeAllocationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AllocationServer will result in compilation errors.