allocpb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 3

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: "Allocation",
			Handler:    _Allocation_Allocation_Handler,
		},
		{
			MethodName: "DeAllocation",
			Handler:    _Allocation_DeAllocation_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "WatchAlloc",
			Handler:       _Allocation_WatchAlloc_Handler,
			ServerStreams: true,
		},
	},
	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 {
	Allocation(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
	DeAllocation(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
	WatchAlloc(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Allocation_WatchAllocClient, 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 {
	Allocation(context.Context, *Request) (*Response, error)
	DeAllocation(context.Context, *Request) (*Response, error)
	WatchAlloc(*WatchRequest, Allocation_WatchAllocServer) error
	// contains filtered or unexported methods
}

AllocationServer is the server API for Allocation service. All implementations must embed UnimplementedAllocationServer for forward compatibility

type Allocation_WatchAllocClient added in v0.0.3

type Allocation_WatchAllocClient interface {
	Recv() (*Response, error)
	grpc.ClientStream
}

type Allocation_WatchAllocServer added in v0.0.3

type Allocation_WatchAllocServer interface {
	Send(*Response) error
	grpc.ServerStream
}

type Meta added in v0.0.3

type Meta 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"`
	Labels               map[string]string `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Meta) Descriptor added in v0.0.3

func (*Meta) Descriptor() ([]byte, []int)

func (*Meta) GetLabels added in v0.0.3

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

func (*Meta) GetName added in v0.0.3

func (m *Meta) GetName() string

func (*Meta) GetNamespace added in v0.0.3

func (m *Meta) GetNamespace() string

func (*Meta) Marshal added in v0.0.3

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

func (*Meta) MarshalTo added in v0.0.3

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

func (*Meta) MarshalToSizedBuffer added in v0.0.3

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

func (*Meta) ProtoMessage added in v0.0.3

func (*Meta) ProtoMessage()

func (*Meta) Reset added in v0.0.3

func (m *Meta) Reset()

func (*Meta) Size added in v0.0.3

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

func (*Meta) String added in v0.0.3

func (m *Meta) String() string

func (*Meta) Unmarshal added in v0.0.3

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

func (*Meta) XXX_DiscardUnknown added in v0.0.3

func (m *Meta) XXX_DiscardUnknown()

func (*Meta) XXX_Marshal added in v0.0.3

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

func (*Meta) XXX_Merge added in v0.0.3

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

func (*Meta) XXX_Size added in v0.0.3

func (m *Meta) XXX_Size() int

func (*Meta) XXX_Unmarshal added in v0.0.3

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

type Request

type Request struct {
	Gvk                  *Type    `protobuf:"bytes,1,opt,name=gvk,proto3" json:"gvk,omitempty"`
	Meta                 *Meta    `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	Spec                 *Spec    `protobuf:"bytes,3,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) GetGvk added in v0.0.3

func (m *Request) GetGvk() *Type

func (*Request) GetMeta added in v0.0.3

func (m *Request) GetMeta() *Meta

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 {
	Gvk                  *Type    `protobuf:"bytes,1,opt,name=gvk,proto3" json:"gvk,omitempty"`
	Meta                 *Meta    `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	Spec                 *Spec    `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
	Status               *Status  `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetGvk added in v0.0.3

func (m *Response) GetGvk() *Type

func (*Response) GetMeta added in v0.0.3

func (m *Response) GetMeta() *Meta

func (*Response) GetSpec added in v0.0.3

func (m *Response) GetSpec() *Spec

func (*Response) GetStatus added in v0.0.3

func (m *Response) GetStatus() *Status

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 {
	Selector             map[string]string `` /* 157-byte string literal not displayed */
	Attributes           map[string]string `` /* 161-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) GetAttributes added in v0.0.3

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

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 Status added in v0.0.3

type Status struct {
	Status               string            `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Reason               string            `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	Attributes           map[string]string `` /* 161-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Status) Descriptor added in v0.0.3

func (*Status) Descriptor() ([]byte, []int)

func (*Status) GetAttributes added in v0.0.3

func (m *Status) GetAttributes() map[string]string

func (*Status) GetReason added in v0.0.3

func (m *Status) GetReason() string

func (*Status) GetStatus added in v0.0.3

func (m *Status) GetStatus() string

func (*Status) Marshal added in v0.0.3

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

func (*Status) MarshalTo added in v0.0.3

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

func (*Status) MarshalToSizedBuffer added in v0.0.3

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

func (*Status) ProtoMessage added in v0.0.3

func (*Status) ProtoMessage()

func (*Status) Reset added in v0.0.3

func (m *Status) Reset()

func (*Status) Size added in v0.0.3

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

func (*Status) String added in v0.0.3

func (m *Status) String() string

func (*Status) Unmarshal added in v0.0.3

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

func (*Status) XXX_DiscardUnknown added in v0.0.3

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal added in v0.0.3

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

func (*Status) XXX_Merge added in v0.0.3

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

func (*Status) XXX_Size added in v0.0.3

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal added in v0.0.3

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

type Type added in v0.0.3

type Type struct {
	Group                string   `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Version              string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Kind                 string   `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Type) Descriptor added in v0.0.3

func (*Type) Descriptor() ([]byte, []int)

func (*Type) GetGroup added in v0.0.3

func (m *Type) GetGroup() string

func (*Type) GetKind added in v0.0.3

func (m *Type) GetKind() string

func (*Type) GetVersion added in v0.0.3

func (m *Type) GetVersion() string

func (*Type) Marshal added in v0.0.3

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

func (*Type) MarshalTo added in v0.0.3

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

func (*Type) MarshalToSizedBuffer added in v0.0.3

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

func (*Type) ProtoMessage added in v0.0.3

func (*Type) ProtoMessage()

func (*Type) Reset added in v0.0.3

func (m *Type) Reset()

func (*Type) Size added in v0.0.3

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

func (*Type) String added in v0.0.3

func (m *Type) String() string

func (*Type) Unmarshal added in v0.0.3

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

func (*Type) XXX_DiscardUnknown added in v0.0.3

func (m *Type) XXX_DiscardUnknown()

func (*Type) XXX_Marshal added in v0.0.3

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

func (*Type) XXX_Merge added in v0.0.3

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

func (*Type) XXX_Size added in v0.0.3

func (m *Type) XXX_Size() int

func (*Type) XXX_Unmarshal added in v0.0.3

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

type UnimplementedAllocationServer

type UnimplementedAllocationServer struct {
}

UnimplementedAllocationServer must be embedded to have forward compatible implementations.

func (UnimplementedAllocationServer) Allocation

func (UnimplementedAllocationServer) DeAllocation

func (UnimplementedAllocationServer) WatchAlloc added in v0.0.3

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.

type WatchRequest added in v0.0.3

type WatchRequest struct {
	Gvk                  *Type    `protobuf:"bytes,1,opt,name=gvk,proto3" json:"gvk,omitempty"`
	Meta                 *Meta    `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WatchRequest) Descriptor added in v0.0.3

func (*WatchRequest) Descriptor() ([]byte, []int)

func (*WatchRequest) GetGvk added in v0.0.3

func (m *WatchRequest) GetGvk() *Type

func (*WatchRequest) GetMeta added in v0.0.3

func (m *WatchRequest) GetMeta() *Meta

func (*WatchRequest) Marshal added in v0.0.3

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

func (*WatchRequest) MarshalTo added in v0.0.3

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

func (*WatchRequest) MarshalToSizedBuffer added in v0.0.3

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

func (*WatchRequest) ProtoMessage added in v0.0.3

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) Reset added in v0.0.3

func (m *WatchRequest) Reset()

func (*WatchRequest) Size added in v0.0.3

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

func (*WatchRequest) String added in v0.0.3

func (m *WatchRequest) String() string

func (*WatchRequest) Unmarshal added in v0.0.3

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

func (*WatchRequest) XXX_DiscardUnknown added in v0.0.3

func (m *WatchRequest) XXX_DiscardUnknown()

func (*WatchRequest) XXX_Marshal added in v0.0.3

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

func (*WatchRequest) XXX_Merge added in v0.0.3

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

func (*WatchRequest) XXX_Size added in v0.0.3

func (m *WatchRequest) XXX_Size() int

func (*WatchRequest) XXX_Unmarshal added in v0.0.3

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

Jump to

Keyboard shortcuts

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