Documentation ¶
Overview ¶
Package resources is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error
- func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceServiceServer) error
- func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (this *CreateRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *CreateRequest) EqualVT(that *CreateRequest) bool
- func (x *CreateRequest) GetResource() *Resource
- func (m *CreateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CreateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *CreateRequest) MarshalVT() (dAtA []byte, err error)
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (m *CreateRequest) SizeVT() (n int)
- func (x *CreateRequest) String() string
- func (m *CreateRequest) UnmarshalVT(dAtA []byte) error
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (this *CreateResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *CreateResponse) EqualVT(that *CreateResponse) bool
- func (m *CreateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CreateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *CreateResponse) MarshalVT() (dAtA []byte, err error)
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (m *CreateResponse) SizeVT() (n int)
- func (x *CreateResponse) String() string
- func (m *CreateResponse) UnmarshalVT(dAtA []byte) error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (this *DeleteRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *DeleteRequest) EqualVT(that *DeleteRequest) bool
- func (x *DeleteRequest) GetId() string
- func (x *DeleteRequest) GetNamespace() string
- func (x *DeleteRequest) GetType() string
- func (m *DeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeleteRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeleteRequest) MarshalVT() (dAtA []byte, err error)
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (m *DeleteRequest) SizeVT() (n int)
- func (x *DeleteRequest) String() string
- func (m *DeleteRequest) UnmarshalVT(dAtA []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (this *DeleteResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *DeleteResponse) EqualVT(that *DeleteResponse) bool
- func (m *DeleteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeleteResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeleteResponse) MarshalVT() (dAtA []byte, err error)
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (m *DeleteResponse) SizeVT() (n int)
- func (x *DeleteResponse) String() string
- func (m *DeleteResponse) UnmarshalVT(dAtA []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (this *Event) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Event) EqualVT(that *Event) bool
- func (x *Event) GetEventType() EventType
- func (x *Event) GetOld() string
- func (x *Event) GetResource() string
- func (m *Event) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Event) MarshalToVT(dAtA []byte) (int, error)
- func (m *Event) MarshalVT() (dAtA []byte, err error)
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (m *Event) SizeVT() (n int)
- func (x *Event) String() string
- func (m *Event) UnmarshalVT(dAtA []byte) error
- type EventType
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (this *GetRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetRequest) EqualVT(that *GetRequest) bool
- func (x *GetRequest) GetId() string
- func (x *GetRequest) GetNamespace() string
- func (x *GetRequest) GetType() string
- func (m *GetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (m *GetRequest) SizeVT() (n int)
- func (x *GetRequest) String() string
- func (m *GetRequest) UnmarshalVT(dAtA []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (this *GetResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetResponse) EqualVT(that *GetResponse) bool
- func (x *GetResponse) GetBody() string
- func (m *GetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetResponse) MarshalVT() (dAtA []byte, err error)
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (m *GetResponse) SizeVT() (n int)
- func (x *GetResponse) String() string
- func (m *GetResponse) UnmarshalVT(dAtA []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (this *ListRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *ListRequest) EqualVT(that *ListRequest) bool
- func (x *ListRequest) GetLimit() int32
- func (x *ListRequest) GetNamespace() string
- func (x *ListRequest) GetOffset() int32
- func (x *ListRequest) GetSearchFor() []string
- func (x *ListRequest) GetSortByField() string
- func (x *ListRequest) GetSortDescending() bool
- func (x *ListRequest) GetType() string
- func (m *ListRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ListRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ListRequest) MarshalVT() (dAtA []byte, err error)
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (m *ListRequest) SizeVT() (n int)
- func (x *ListRequest) String() string
- func (m *ListRequest) UnmarshalVT(dAtA []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (this *ListResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *ListResponse) EqualVT(that *ListResponse) bool
- func (x *ListResponse) GetItems() []string
- func (x *ListResponse) GetTotal() int32
- func (m *ListResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ListResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *ListResponse) MarshalVT() (dAtA []byte, err error)
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (m *ListResponse) SizeVT() (n int)
- func (x *ListResponse) String() string
- func (m *ListResponse) UnmarshalVT(dAtA []byte) error
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (this *Resource) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Resource) EqualVT(that *Resource) bool
- func (x *Resource) GetMetadata() *v1alpha1.Metadata
- func (x *Resource) GetSpec() string
- func (m *Resource) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Resource) MarshalToVT(dAtA []byte) (int, error)
- func (m *Resource) MarshalVT() (dAtA []byte, err error)
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (m *Resource) SizeVT() (n int)
- func (x *Resource) String() string
- func (m *Resource) UnmarshalVT(dAtA []byte) error
- type ResourceServiceClient
- type ResourceServiceServer
- type ResourceService_WatchClient
- type ResourceService_WatchServer
- type UnimplementedResourceServiceServer
- func (UnimplementedResourceServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedResourceServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedResourceServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedResourceServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedResourceServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- func (UnimplementedResourceServiceServer) Watch(*WatchRequest, ResourceService_WatchServer) error
- type UnsafeResourceServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (this *UpdateRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *UpdateRequest) EqualVT(that *UpdateRequest) bool
- func (x *UpdateRequest) GetCurrentVersion() string
- func (x *UpdateRequest) GetResource() *Resource
- func (m *UpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UpdateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UpdateRequest) MarshalVT() (dAtA []byte, err error)
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (m *UpdateRequest) SizeVT() (n int)
- func (x *UpdateRequest) String() string
- func (m *UpdateRequest) UnmarshalVT(dAtA []byte) error
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (this *UpdateResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *UpdateResponse) EqualVT(that *UpdateResponse) bool
- func (m *UpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UpdateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *UpdateResponse) MarshalVT() (dAtA []byte, err error)
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (m *UpdateResponse) SizeVT() (n int)
- func (x *UpdateResponse) String() string
- func (m *UpdateResponse) UnmarshalVT(dAtA []byte) error
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (this *WatchRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *WatchRequest) EqualVT(that *WatchRequest) bool
- func (x *WatchRequest) GetId() string
- func (x *WatchRequest) GetLimit() int32
- func (x *WatchRequest) GetNamespace() string
- func (x *WatchRequest) GetOffset() int32
- func (x *WatchRequest) GetSearchFor() []string
- func (x *WatchRequest) GetSortByField() string
- func (x *WatchRequest) GetSortDescending() bool
- func (x *WatchRequest) GetTailEvents() int32
- func (x *WatchRequest) GetType() string
- func (m *WatchRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WatchRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *WatchRequest) MarshalVT() (dAtA []byte, err error)
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (m *WatchRequest) SizeVT() (n int)
- func (x *WatchRequest) String() string
- func (m *WatchRequest) UnmarshalVT(dAtA []byte) error
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)deprecated
- func (this *WatchResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *WatchResponse) EqualVT(that *WatchResponse) bool
- func (x *WatchResponse) GetEvent() *Event
- func (x *WatchResponse) GetSortDescending() bool
- func (x *WatchResponse) GetSortFieldData() string
- func (x *WatchResponse) GetTotal() int32
- func (m *WatchResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WatchResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *WatchResponse) MarshalVT() (dAtA []byte, err error)
- func (*WatchResponse) ProtoMessage()
- func (x *WatchResponse) ProtoReflect() protoreflect.Message
- func (x *WatchResponse) Reset()
- func (m *WatchResponse) SizeVT() (n int)
- func (x *WatchResponse) String() string
- func (m *WatchResponse) UnmarshalVT(dAtA []byte) error
Constants ¶
const ( ResourceService_Get_FullMethodName = "/omni.resources.ResourceService/Get" ResourceService_List_FullMethodName = "/omni.resources.ResourceService/List" ResourceService_Create_FullMethodName = "/omni.resources.ResourceService/Create" ResourceService_Update_FullMethodName = "/omni.resources.ResourceService/Update" ResourceService_Delete_FullMethodName = "/omni.resources.ResourceService/Delete" ResourceService_Watch_FullMethodName = "/omni.resources.ResourceService/Watch" )
Variables ¶
var ( EventType_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATED", 2: "UPDATED", 3: "DESTROYED", 4: "BOOTSTRAPPED", } EventType_value = map[string]int32{ "UNKNOWN": 0, "CREATED": 1, "UPDATED": 2, "DESTROYED": 3, "BOOTSTRAPPED": 4, } )
Enum value maps for EventType.
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_omni_resources_resources_proto protoreflect.FileDescriptor
var ResourceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "omni.resources.ResourceService", HandlerType: (*ResourceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _ResourceService_Get_Handler, }, { MethodName: "List", Handler: _ResourceService_List_Handler, }, { MethodName: "Create", Handler: _ResourceService_Create_Handler, }, { MethodName: "Update", Handler: _ResourceService_Update_Handler, }, { MethodName: "Delete", Handler: _ResourceService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _ResourceService_Watch_Handler, ServerStreams: true, }, }, Metadata: "omni/resources/resources.proto", }
ResourceService_ServiceDesc is the grpc.ServiceDesc for ResourceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterResourceServiceHandler ¶
func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterResourceServiceHandler registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterResourceServiceHandlerClient ¶
func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error
RegisterResourceServiceHandlerClient registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ResourceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ResourceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ResourceServiceClient" to call the correct interceptors.
func RegisterResourceServiceHandlerFromEndpoint ¶
func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterResourceServiceHandlerFromEndpoint is same as RegisterResourceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterResourceServiceHandlerServer ¶
func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceServiceServer) error
RegisterResourceServiceHandlerServer registers the http handlers for service ResourceService to "mux". UnaryRPC :call ResourceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterResourceServiceHandlerFromEndpoint instead.
func RegisterResourceServiceServer ¶
func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) EqualMessageVT ¶
func (this *CreateRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*CreateRequest) EqualVT ¶
func (this *CreateRequest) EqualVT(that *CreateRequest) bool
func (*CreateRequest) GetResource ¶
func (x *CreateRequest) GetResource() *Resource
func (*CreateRequest) MarshalToSizedBufferVT ¶
func (m *CreateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CreateRequest) MarshalToVT ¶
func (m *CreateRequest) MarshalToVT(dAtA []byte) (int, error)
func (*CreateRequest) MarshalVT ¶
func (m *CreateRequest) MarshalVT() (dAtA []byte, err error)
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) SizeVT ¶
func (m *CreateRequest) SizeVT() (n int)
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
func (*CreateRequest) UnmarshalVT ¶
func (m *CreateRequest) UnmarshalVT(dAtA []byte) error
type CreateResponse ¶
type CreateResponse struct {
// contains filtered or unexported fields
}
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) EqualMessageVT ¶
func (this *CreateResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*CreateResponse) EqualVT ¶
func (this *CreateResponse) EqualVT(that *CreateResponse) bool
func (*CreateResponse) MarshalToSizedBufferVT ¶
func (m *CreateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CreateResponse) MarshalToVT ¶
func (m *CreateResponse) MarshalToVT(dAtA []byte) (int, error)
func (*CreateResponse) MarshalVT ¶
func (m *CreateResponse) MarshalVT() (dAtA []byte, err error)
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) SizeVT ¶
func (m *CreateResponse) SizeVT() (n int)
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
func (*CreateResponse) UnmarshalVT ¶
func (m *CreateResponse) UnmarshalVT(dAtA []byte) error
type DeleteRequest ¶
type DeleteRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) EqualMessageVT ¶
func (this *DeleteRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*DeleteRequest) EqualVT ¶
func (this *DeleteRequest) EqualVT(that *DeleteRequest) bool
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) GetNamespace ¶
func (x *DeleteRequest) GetNamespace() string
func (*DeleteRequest) GetType ¶
func (x *DeleteRequest) GetType() string
func (*DeleteRequest) MarshalToSizedBufferVT ¶
func (m *DeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DeleteRequest) MarshalToVT ¶
func (m *DeleteRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DeleteRequest) MarshalVT ¶
func (m *DeleteRequest) MarshalVT() (dAtA []byte, err error)
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) SizeVT ¶
func (m *DeleteRequest) SizeVT() (n int)
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) UnmarshalVT ¶
func (m *DeleteRequest) UnmarshalVT(dAtA []byte) error
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) EqualMessageVT ¶
func (this *DeleteResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*DeleteResponse) EqualVT ¶
func (this *DeleteResponse) EqualVT(that *DeleteResponse) bool
func (*DeleteResponse) MarshalToSizedBufferVT ¶
func (m *DeleteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DeleteResponse) MarshalToVT ¶
func (m *DeleteResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DeleteResponse) MarshalVT ¶
func (m *DeleteResponse) MarshalVT() (dAtA []byte, err error)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) SizeVT ¶
func (m *DeleteResponse) SizeVT() (n int)
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
func (*DeleteResponse) UnmarshalVT ¶
func (m *DeleteResponse) UnmarshalVT(dAtA []byte) error
type Event ¶
type Event struct { Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Old string `protobuf:"bytes,2,opt,name=old,proto3" json:"old,omitempty"` EventType EventType `protobuf:"varint,3,opt,name=event_type,json=eventType,proto3,enum=omni.resources.EventType" json:"event_type,omitempty"` // contains filtered or unexported fields }
Event is emitted when resource changes. It's the same as COSI Event, but encodes resources into JSON.
func (*Event) Descriptor
deprecated
func (*Event) GetEventType ¶
func (*Event) GetResource ¶
func (*Event) MarshalToSizedBufferVT ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) UnmarshalVT ¶
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
type GetRequest ¶
type GetRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) EqualMessageVT ¶
func (this *GetRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*GetRequest) EqualVT ¶
func (this *GetRequest) EqualVT(that *GetRequest) bool
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() string
func (*GetRequest) GetNamespace ¶
func (x *GetRequest) GetNamespace() string
func (*GetRequest) GetType ¶
func (x *GetRequest) GetType() string
func (*GetRequest) MarshalToSizedBufferVT ¶
func (m *GetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetRequest) MarshalToVT ¶
func (m *GetRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetRequest) MarshalVT ¶
func (m *GetRequest) MarshalVT() (dAtA []byte, err error)
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) SizeVT ¶
func (m *GetRequest) SizeVT() (n int)
func (*GetRequest) String ¶
func (x *GetRequest) String() string
func (*GetRequest) UnmarshalVT ¶
func (m *GetRequest) UnmarshalVT(dAtA []byte) error
type GetResponse ¶
type GetResponse struct { // Body should contain JSON encoded spec. Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) EqualMessageVT ¶
func (this *GetResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*GetResponse) EqualVT ¶
func (this *GetResponse) EqualVT(that *GetResponse) bool
func (*GetResponse) GetBody ¶
func (x *GetResponse) GetBody() string
func (*GetResponse) MarshalToSizedBufferVT ¶
func (m *GetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetResponse) MarshalToVT ¶
func (m *GetResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetResponse) MarshalVT ¶
func (m *GetResponse) MarshalVT() (dAtA []byte, err error)
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) SizeVT ¶
func (m *GetResponse) SizeVT() (n int)
func (*GetResponse) String ¶
func (x *GetResponse) String() string
func (*GetResponse) UnmarshalVT ¶
func (m *GetResponse) UnmarshalVT(dAtA []byte) error
type ListRequest ¶
type ListRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` SortByField string `protobuf:"bytes,5,opt,name=sort_by_field,json=sortByField,proto3" json:"sort_by_field,omitempty"` SortDescending bool `protobuf:"varint,6,opt,name=sort_descending,json=sortDescending,proto3" json:"sort_descending,omitempty"` SearchFor []string `protobuf:"bytes,7,rep,name=search_for,json=searchFor,proto3" json:"search_for,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) EqualMessageVT ¶
func (this *ListRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*ListRequest) EqualVT ¶
func (this *ListRequest) EqualVT(that *ListRequest) bool
func (*ListRequest) GetLimit ¶
func (x *ListRequest) GetLimit() int32
func (*ListRequest) GetNamespace ¶
func (x *ListRequest) GetNamespace() string
func (*ListRequest) GetOffset ¶
func (x *ListRequest) GetOffset() int32
func (*ListRequest) GetSearchFor ¶
func (x *ListRequest) GetSearchFor() []string
func (*ListRequest) GetSortByField ¶
func (x *ListRequest) GetSortByField() string
func (*ListRequest) GetSortDescending ¶
func (x *ListRequest) GetSortDescending() bool
func (*ListRequest) GetType ¶
func (x *ListRequest) GetType() string
func (*ListRequest) MarshalToSizedBufferVT ¶
func (m *ListRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ListRequest) MarshalToVT ¶
func (m *ListRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ListRequest) MarshalVT ¶
func (m *ListRequest) MarshalVT() (dAtA []byte, err error)
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) SizeVT ¶
func (m *ListRequest) SizeVT() (n int)
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) UnmarshalVT ¶
func (m *ListRequest) UnmarshalVT(dAtA []byte) error
type ListResponse ¶
type ListResponse struct { // Items should contain JSON encoded resources. Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) EqualMessageVT ¶
func (this *ListResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*ListResponse) EqualVT ¶
func (this *ListResponse) EqualVT(that *ListResponse) bool
func (*ListResponse) GetItems ¶
func (x *ListResponse) GetItems() []string
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() int32
func (*ListResponse) MarshalToSizedBufferVT ¶
func (m *ListResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ListResponse) MarshalToVT ¶
func (m *ListResponse) MarshalToVT(dAtA []byte) (int, error)
func (*ListResponse) MarshalVT ¶
func (m *ListResponse) MarshalVT() (dAtA []byte, err error)
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) SizeVT ¶
func (m *ListResponse) SizeVT() (n int)
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) UnmarshalVT ¶
func (m *ListResponse) UnmarshalVT(dAtA []byte) error
type Resource ¶
type Resource struct { Metadata *v1alpha1.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Spec string `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) GetMetadata ¶
func (*Resource) MarshalToSizedBufferVT ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
func (*Resource) UnmarshalVT ¶
type ResourceServiceClient ¶
type ResourceServiceClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (ResourceService_WatchClient, error) }
ResourceServiceClient is the client API for ResourceService 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 NewResourceServiceClient ¶
func NewResourceServiceClient(cc grpc.ClientConnInterface) ResourceServiceClient
type ResourceServiceServer ¶
type ResourceServiceServer interface { Get(context.Context, *GetRequest) (*GetResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Create(context.Context, *CreateRequest) (*CreateResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) Watch(*WatchRequest, ResourceService_WatchServer) error // contains filtered or unexported methods }
ResourceServiceServer is the server API for ResourceService service. All implementations must embed UnimplementedResourceServiceServer for forward compatibility
type ResourceService_WatchClient ¶
type ResourceService_WatchClient interface { Recv() (*WatchResponse, error) grpc.ClientStream }
type ResourceService_WatchServer ¶
type ResourceService_WatchServer interface { Send(*WatchResponse) error grpc.ServerStream }
type UnimplementedResourceServiceServer ¶
type UnimplementedResourceServiceServer struct { }
UnimplementedResourceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedResourceServiceServer) Create ¶
func (UnimplementedResourceServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedResourceServiceServer) Delete ¶
func (UnimplementedResourceServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedResourceServiceServer) Get ¶
func (UnimplementedResourceServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedResourceServiceServer) List ¶
func (UnimplementedResourceServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedResourceServiceServer) Update ¶
func (UnimplementedResourceServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeResourceServiceServer ¶
type UnsafeResourceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeResourceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { CurrentVersion string `protobuf:"bytes,1,opt,name=currentVersion,proto3" json:"currentVersion,omitempty"` Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) EqualMessageVT ¶
func (this *UpdateRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*UpdateRequest) EqualVT ¶
func (this *UpdateRequest) EqualVT(that *UpdateRequest) bool
func (*UpdateRequest) GetCurrentVersion ¶
func (x *UpdateRequest) GetCurrentVersion() string
func (*UpdateRequest) GetResource ¶
func (x *UpdateRequest) GetResource() *Resource
func (*UpdateRequest) MarshalToSizedBufferVT ¶
func (m *UpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UpdateRequest) MarshalToVT ¶
func (m *UpdateRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UpdateRequest) MarshalVT ¶
func (m *UpdateRequest) MarshalVT() (dAtA []byte, err error)
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) SizeVT ¶
func (m *UpdateRequest) SizeVT() (n int)
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
func (*UpdateRequest) UnmarshalVT ¶
func (m *UpdateRequest) UnmarshalVT(dAtA []byte) error
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) EqualMessageVT ¶
func (this *UpdateResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*UpdateResponse) EqualVT ¶
func (this *UpdateResponse) EqualVT(that *UpdateResponse) bool
func (*UpdateResponse) MarshalToSizedBufferVT ¶
func (m *UpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UpdateResponse) MarshalToVT ¶
func (m *UpdateResponse) MarshalToVT(dAtA []byte) (int, error)
func (*UpdateResponse) MarshalVT ¶
func (m *UpdateResponse) MarshalVT() (dAtA []byte, err error)
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) SizeVT ¶
func (m *UpdateResponse) SizeVT() (n int)
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
func (*UpdateResponse) UnmarshalVT ¶
func (m *UpdateResponse) UnmarshalVT(dAtA []byte) error
type WatchRequest ¶
type WatchRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` TailEvents int32 `protobuf:"varint,4,opt,name=tail_events,json=tailEvents,proto3" json:"tail_events,omitempty"` Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` Limit int32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` SortByField string `protobuf:"bytes,7,opt,name=sort_by_field,json=sortByField,proto3" json:"sort_by_field,omitempty"` SortDescending bool `protobuf:"varint,8,opt,name=sort_descending,json=sortDescending,proto3" json:"sort_descending,omitempty"` SearchFor []string `protobuf:"bytes,9,rep,name=search_for,json=searchFor,proto3" json:"search_for,omitempty"` // contains filtered or unexported fields }
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) EqualMessageVT ¶
func (this *WatchRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*WatchRequest) EqualVT ¶
func (this *WatchRequest) EqualVT(that *WatchRequest) bool
func (*WatchRequest) GetId ¶
func (x *WatchRequest) GetId() string
func (*WatchRequest) GetLimit ¶
func (x *WatchRequest) GetLimit() int32
func (*WatchRequest) GetNamespace ¶
func (x *WatchRequest) GetNamespace() string
func (*WatchRequest) GetOffset ¶
func (x *WatchRequest) GetOffset() int32
func (*WatchRequest) GetSearchFor ¶
func (x *WatchRequest) GetSearchFor() []string
func (*WatchRequest) GetSortByField ¶
func (x *WatchRequest) GetSortByField() string
func (*WatchRequest) GetSortDescending ¶
func (x *WatchRequest) GetSortDescending() bool
func (*WatchRequest) GetTailEvents ¶
func (x *WatchRequest) GetTailEvents() int32
func (*WatchRequest) GetType ¶
func (x *WatchRequest) GetType() string
func (*WatchRequest) MarshalToSizedBufferVT ¶
func (m *WatchRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*WatchRequest) MarshalToVT ¶
func (m *WatchRequest) MarshalToVT(dAtA []byte) (int, error)
func (*WatchRequest) MarshalVT ¶
func (m *WatchRequest) MarshalVT() (dAtA []byte, err error)
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) SizeVT ¶
func (m *WatchRequest) SizeVT() (n int)
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string
func (*WatchRequest) UnmarshalVT ¶
func (m *WatchRequest) UnmarshalVT(dAtA []byte) error
type WatchResponse ¶
type WatchResponse struct { Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` SortFieldData string `protobuf:"bytes,3,opt,name=sort_field_data,json=sortFieldData,proto3" json:"sort_field_data,omitempty"` SortDescending bool `protobuf:"varint,4,opt,name=sort_descending,json=sortDescending,proto3" json:"sort_descending,omitempty"` // contains filtered or unexported fields }
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) EqualMessageVT ¶
func (this *WatchResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*WatchResponse) EqualVT ¶
func (this *WatchResponse) EqualVT(that *WatchResponse) bool
func (*WatchResponse) GetEvent ¶
func (x *WatchResponse) GetEvent() *Event
func (*WatchResponse) GetSortDescending ¶
func (x *WatchResponse) GetSortDescending() bool
func (*WatchResponse) GetSortFieldData ¶
func (x *WatchResponse) GetSortFieldData() string
func (*WatchResponse) GetTotal ¶
func (x *WatchResponse) GetTotal() int32
func (*WatchResponse) MarshalToSizedBufferVT ¶
func (m *WatchResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*WatchResponse) MarshalToVT ¶
func (m *WatchResponse) MarshalToVT(dAtA []byte) (int, error)
func (*WatchResponse) MarshalVT ¶
func (m *WatchResponse) MarshalVT() (dAtA []byte, err error)
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶
func (x *WatchResponse) Reset()
func (*WatchResponse) SizeVT ¶
func (m *WatchResponse) SizeVT() (n int)
func (*WatchResponse) String ¶
func (x *WatchResponse) String() string
func (*WatchResponse) UnmarshalVT ¶
func (m *WatchResponse) UnmarshalVT(dAtA []byte) error