resources

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package resources is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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_Teardown_FullMethodName = "/omni.resources.ResourceService/Teardown"
	ResourceService_Watch_FullMethodName    = "/omni.resources.ResourceService/Watch"
)

Variables

View Source
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.

View Source
var File_omni_resources_resources_proto protoreflect.FileDescriptor
View Source
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,
		},
		{
			MethodName: "Teardown",
			Handler:    _ResourceService_Teardown_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) CloneMessageVT

func (m *CreateRequest) CloneMessageVT() proto.Message

func (*CreateRequest) CloneVT

func (m *CreateRequest) CloneVT() *CreateRequest

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) CloneMessageVT

func (m *CreateResponse) CloneMessageVT() proto.Message

func (*CreateResponse) CloneVT

func (m *CreateResponse) CloneVT() *CreateResponse

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) CloneMessageVT

func (m *DeleteRequest) CloneMessageVT() proto.Message

func (*DeleteRequest) CloneVT

func (m *DeleteRequest) CloneVT() *DeleteRequest

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) CloneMessageVT

func (m *DeleteResponse) CloneMessageVT() proto.Message

func (*DeleteResponse) CloneVT

func (m *DeleteResponse) CloneVT() *DeleteResponse

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) CloneMessageVT

func (m *Event) CloneMessageVT() proto.Message

func (*Event) CloneVT

func (m *Event) CloneVT() *Event

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) EqualMessageVT

func (this *Event) EqualMessageVT(thatMsg proto.Message) bool

func (*Event) EqualVT

func (this *Event) EqualVT(that *Event) bool

func (*Event) GetEventType

func (x *Event) GetEventType() EventType

func (*Event) GetOld

func (x *Event) GetOld() string

func (*Event) GetResource

func (x *Event) GetResource() string

func (*Event) MarshalToSizedBufferVT

func (m *Event) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Event) MarshalToVT

func (m *Event) MarshalToVT(dAtA []byte) (int, error)

func (*Event) MarshalVT

func (m *Event) MarshalVT() (dAtA []byte, err error)

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) SizeVT

func (m *Event) SizeVT() (n int)

func (*Event) String

func (x *Event) String() string

func (*Event) UnmarshalVT

func (m *Event) UnmarshalVT(dAtA []byte) error

type EventType

type EventType int32
const (
	EventType_UNKNOWN      EventType = 0
	EventType_CREATED      EventType = 1
	EventType_UPDATED      EventType = 2
	EventType_DESTROYED    EventType = 3
	EventType_BOOTSTRAPPED EventType = 4
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

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) CloneMessageVT

func (m *GetRequest) CloneMessageVT() proto.Message

func (*GetRequest) CloneVT

func (m *GetRequest) CloneVT() *GetRequest

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) CloneMessageVT

func (m *GetResponse) CloneMessageVT() proto.Message

func (*GetResponse) CloneVT

func (m *GetResponse) CloneVT() *GetResponse

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) CloneMessageVT

func (m *ListRequest) CloneMessageVT() proto.Message

func (*ListRequest) CloneVT

func (m *ListRequest) CloneVT() *ListRequest

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) CloneMessageVT

func (m *ListResponse) CloneMessageVT() proto.Message

func (*ListResponse) CloneVT

func (m *ListResponse) CloneVT() *ListResponse

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) CloneMessageVT

func (m *Resource) CloneMessageVT() proto.Message

func (*Resource) CloneVT

func (m *Resource) CloneVT() *Resource

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) EqualMessageVT

func (this *Resource) EqualMessageVT(thatMsg proto.Message) bool

func (*Resource) EqualVT

func (this *Resource) EqualVT(that *Resource) bool

func (*Resource) GetMetadata

func (x *Resource) GetMetadata() *v1alpha1.Metadata

func (*Resource) GetSpec

func (x *Resource) GetSpec() string

func (*Resource) MarshalToSizedBufferVT

func (m *Resource) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Resource) MarshalToVT

func (m *Resource) MarshalToVT(dAtA []byte) (int, error)

func (*Resource) MarshalVT

func (m *Resource) MarshalVT() (dAtA []byte, err error)

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) SizeVT

func (m *Resource) SizeVT() (n int)

func (*Resource) String

func (x *Resource) String() string

func (*Resource) UnmarshalVT

func (m *Resource) UnmarshalVT(dAtA []byte) error

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)
	Teardown(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.

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)
	Teardown(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) Delete

func (UnimplementedResourceServiceServer) Get

func (UnimplementedResourceServiceServer) List

func (UnimplementedResourceServiceServer) Teardown

func (UnimplementedResourceServiceServer) Update

func (UnimplementedResourceServiceServer) Watch

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) CloneMessageVT

func (m *UpdateRequest) CloneMessageVT() proto.Message

func (*UpdateRequest) CloneVT

func (m *UpdateRequest) CloneVT() *UpdateRequest

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) CloneMessageVT

func (m *UpdateResponse) CloneMessageVT() proto.Message

func (*UpdateResponse) CloneVT

func (m *UpdateResponse) CloneVT() *UpdateResponse

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) CloneMessageVT

func (m *WatchRequest) CloneMessageVT() proto.Message

func (*WatchRequest) CloneVT

func (m *WatchRequest) CloneVT() *WatchRequest

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) CloneMessageVT

func (m *WatchResponse) CloneMessageVT() proto.Message

func (*WatchResponse) CloneVT

func (m *WatchResponse) CloneVT() *WatchResponse

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

Jump to

Keyboard shortcuts

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