Documentation ¶
Index ¶
- Variables
- func RegisterAllocationServer(s grpc.ServiceRegistrar, srv AllocationServer)
- type AllocationClient
- type AllocationServer
- type Allocation_WatchAllocClient
- type Allocation_WatchAllocServer
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)
- func (m *Meta) GetLabels() map[string]string
- func (m *Meta) GetName() string
- func (m *Meta) GetNamespace() string
- func (m *Meta) Marshal() (dAtA []byte, err error)
- func (m *Meta) MarshalTo(dAtA []byte) (int, error)
- func (m *Meta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Meta) ProtoMessage()
- func (m *Meta) Reset()
- func (m *Meta) Size() (n int)
- func (m *Meta) String() string
- func (m *Meta) Unmarshal(dAtA []byte) error
- func (m *Meta) XXX_DiscardUnknown()
- func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Meta) XXX_Merge(src proto.Message)
- func (m *Meta) XXX_Size() int
- func (m *Meta) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetGvk() *Type
- func (m *Request) GetMeta() *Meta
- 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) GetGvk() *Type
- func (m *Response) GetMeta() *Meta
- func (m *Response) GetSpec() *Spec
- func (m *Response) GetStatus() *Status
- 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) GetAttributes() map[string]string
- 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 Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetAttributes() map[string]string
- func (m *Status) GetReason() string
- func (m *Status) GetStatus() string
- func (m *Status) Marshal() (dAtA []byte, err error)
- func (m *Status) MarshalTo(dAtA []byte) (int, error)
- func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) Size() (n int)
- func (m *Status) String() string
- func (m *Status) Unmarshal(dAtA []byte) error
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
- type Type
- func (*Type) Descriptor() ([]byte, []int)
- func (m *Type) GetGroup() string
- func (m *Type) GetKind() string
- func (m *Type) GetVersion() string
- func (m *Type) Marshal() (dAtA []byte, err error)
- func (m *Type) MarshalTo(dAtA []byte) (int, error)
- func (m *Type) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Type) ProtoMessage()
- func (m *Type) Reset()
- func (m *Type) Size() (n int)
- func (m *Type) String() string
- func (m *Type) Unmarshal(dAtA []byte) error
- func (m *Type) XXX_DiscardUnknown()
- func (m *Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Type) XXX_Merge(src proto.Message)
- func (m *Type) XXX_Size() int
- func (m *Type) XXX_Unmarshal(b []byte) error
- type UnimplementedAllocationServer
- type UnsafeAllocationServer
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)
- func (m *WatchRequest) GetGvk() *Type
- func (m *WatchRequest) GetMeta() *Meta
- func (m *WatchRequest) Marshal() (dAtA []byte, err error)
- func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WatchRequest) ProtoMessage()
- func (m *WatchRequest) Reset()
- func (m *WatchRequest) Size() (n int)
- func (m *WatchRequest) String() string
- func (m *WatchRequest) Unmarshal(dAtA []byte) error
- func (m *WatchRequest) XXX_DiscardUnknown()
- func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WatchRequest) XXX_Merge(src proto.Message)
- func (m *WatchRequest) XXX_Size() int
- func (m *WatchRequest) XXX_Unmarshal(b []byte) error
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: "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) GetNamespace ¶ added in v0.0.3
func (*Meta) MarshalToSizedBuffer ¶ added in v0.0.3
func (*Meta) ProtoMessage ¶ added in v0.0.3
func (*Meta) ProtoMessage()
func (*Meta) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Meta) XXX_DiscardUnknown()
func (*Meta) XXX_Marshal ¶ added in v0.0.3
func (*Meta) XXX_Unmarshal ¶ added in v0.0.3
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) 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 { 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) 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 { 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) GetAttributes ¶ added in v0.0.3
func (*Spec) GetSelector ¶
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) XXX_DiscardUnknown ¶
func (m *Spec) XXX_DiscardUnknown()
func (*Spec) XXX_Unmarshal ¶
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) GetAttributes ¶ added in v0.0.3
func (*Status) MarshalToSizedBuffer ¶ added in v0.0.3
func (*Status) ProtoMessage ¶ added in v0.0.3
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶ added in v0.0.3
func (*Status) XXX_Unmarshal ¶ added in v0.0.3
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) GetVersion ¶ added in v0.0.3
func (*Type) MarshalToSizedBuffer ¶ added in v0.0.3
func (*Type) ProtoMessage ¶ added in v0.0.3
func (*Type) ProtoMessage()
func (*Type) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *Type) XXX_DiscardUnknown()
func (*Type) XXX_Marshal ¶ added in v0.0.3
func (*Type) XXX_Unmarshal ¶ added in v0.0.3
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
func (UnimplementedAllocationServer) WatchAlloc(*WatchRequest, Allocation_WatchAllocServer) error
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