allocpb

package
v0.0.0-...-aebc2b6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAlloc        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAlloc          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAlloc = fmt.Errorf("proto: unexpected end of group")
)
View Source
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) Descriptor() ([]byte, []int)

func (*Request) GetKind

func (m *Request) GetKind() string

func (*Request) GetLabels

func (m *Request) GetLabels() map[string]string

func (*Request) GetName

func (m *Request) GetName() string

func (*Request) GetNamespace

func (m *Request) GetNamespace() string

func (*Request) GetSpec

func (m *Request) GetSpec() *Spec

func (*Request) Marshal

func (m *Request) Marshal() (dAtA []byte, err error)

func (*Request) MarshalTo

func (m *Request) MarshalTo(dAtA []byte) (int, error)

func (*Request) MarshalToSizedBuffer

func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

func (m *Request) Size() (n int)

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

func (m *Request) Unmarshal(dAtA []byte) error

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Response) GetParentPrefix

func (m *Response) GetParentPrefix() string

func (*Response) GetPrefix

func (m *Response) GetPrefix() string

func (*Response) Marshal

func (m *Response) Marshal() (dAtA []byte, err error)

func (*Response) MarshalTo

func (m *Response) MarshalTo(dAtA []byte) (int, error)

func (*Response) MarshalToSizedBuffer

func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

func (m *Response) Size() (n int)

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

func (m *Response) Unmarshal(dAtA []byte) error

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Spec) GetPrefix

func (m *Spec) GetPrefix() string

func (*Spec) GetPrefixLength

func (m *Spec) GetPrefixLength() uint32

func (*Spec) GetSelector

func (m *Spec) GetSelector() map[string]string

func (*Spec) Marshal

func (m *Spec) Marshal() (dAtA []byte, err error)

func (*Spec) MarshalTo

func (m *Spec) MarshalTo(dAtA []byte) (int, error)

func (*Spec) MarshalToSizedBuffer

func (m *Spec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Spec) ProtoMessage

func (*Spec) ProtoMessage()

func (*Spec) Reset

func (m *Spec) Reset()

func (*Spec) Size

func (m *Spec) Size() (n int)

func (*Spec) String

func (m *Spec) String() string

func (*Spec) Unmarshal

func (m *Spec) Unmarshal(dAtA []byte) error

func (*Spec) XXX_DiscardUnknown

func (m *Spec) XXX_DiscardUnknown()

func (*Spec) XXX_Marshal

func (m *Spec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Spec) XXX_Merge

func (m *Spec) XXX_Merge(src proto.Message)

func (*Spec) XXX_Size

func (m *Spec) XXX_Size() int

func (*Spec) XXX_Unmarshal

func (m *Spec) XXX_Unmarshal(b []byte) error

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.

Jump to

Keyboard shortcuts

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