Documentation ¶
Index ¶
- Variables
- func RegisterSnapshotServer(s grpc.ServiceRegistrar, srv SnapshotServer)
- type Delete
- type Delete_Options
- func (*Delete_Options) Descriptor() ([]byte, []int)deprecated
- func (x *Delete_Options) GetProxyName() string
- func (x *Delete_Options) GetProxyNamespace() string
- func (*Delete_Options) ProtoMessage()
- func (x *Delete_Options) ProtoReflect() protoreflect.Message
- func (x *Delete_Options) Reset()
- func (x *Delete_Options) String() string
- type Delete_Request
- func (*Delete_Request) Descriptor() ([]byte, []int)deprecated
- func (x *Delete_Request) GetId() string
- func (x *Delete_Request) GetOptions() *Delete_Options
- func (*Delete_Request) ProtoMessage()
- func (x *Delete_Request) ProtoReflect() protoreflect.Message
- func (x *Delete_Request) Reset()
- func (x *Delete_Request) String() string
- type Delete_Response
- type Diff
- type Diff_Options
- func (*Diff_Options) Descriptor() ([]byte, []int)deprecated
- func (x *Diff_Options) GetProxyName() string
- func (x *Diff_Options) GetProxyNamespace() string
- func (x *Diff_Options) GetShowChoreoAPIs() bool
- func (x *Diff_Options) GetShowManagedField() bool
- func (*Diff_Options) ProtoMessage()
- func (x *Diff_Options) ProtoReflect() protoreflect.Message
- func (x *Diff_Options) Reset()
- func (x *Diff_Options) String() string
- type Diff_Request
- type Diff_Response
- type Get
- type Get_Options
- func (*Get_Options) Descriptor() ([]byte, []int)deprecated
- func (x *Get_Options) GetProxyName() string
- func (x *Get_Options) GetProxyNamespace() string
- func (*Get_Options) ProtoMessage()
- func (x *Get_Options) ProtoReflect() protoreflect.Message
- func (x *Get_Options) Reset()
- func (x *Get_Options) String() string
- type Get_Request
- func (*Get_Request) Descriptor() ([]byte, []int)deprecated
- func (x *Get_Request) GetId() string
- func (x *Get_Request) GetOptions() *Get_Options
- func (*Get_Request) ProtoMessage()
- func (x *Get_Request) ProtoReflect() protoreflect.Message
- func (x *Get_Request) Reset()
- func (x *Get_Request) String() string
- type Get_Response
- type List
- type List_Options
- func (*List_Options) Descriptor() ([]byte, []int)deprecated
- func (x *List_Options) GetProxyName() string
- func (x *List_Options) GetProxyNamespace() string
- func (*List_Options) ProtoMessage()
- func (x *List_Options) ProtoReflect() protoreflect.Message
- func (x *List_Options) Reset()
- func (x *List_Options) String() string
- type List_Request
- type List_Response
- type Result
- type Result_Options
- func (*Result_Options) Descriptor() ([]byte, []int)deprecated
- func (x *Result_Options) GetProxyName() string
- func (x *Result_Options) GetProxyNamespace() string
- func (*Result_Options) ProtoMessage()
- func (x *Result_Options) ProtoReflect() protoreflect.Message
- func (x *Result_Options) Reset()
- func (x *Result_Options) String() string
- type Result_Request
- type Result_Response
- func (*Result_Response) Descriptor() ([]byte, []int)deprecated
- func (x *Result_Response) GetRunResponse() *runnerpb.Once_RunResponse
- func (*Result_Response) ProtoMessage()
- func (x *Result_Response) ProtoReflect() protoreflect.Message
- func (x *Result_Response) Reset()
- func (x *Result_Response) String() string
- type SnapshotClient
- type SnapshotServer
- type Snapshot_WatchClient
- type Snapshot_WatchServer
- type UnimplementedSnapshotServer
- func (UnimplementedSnapshotServer) Delete(context.Context, *Delete_Request) (*Delete_Response, error)
- func (UnimplementedSnapshotServer) Diff(context.Context, *Diff_Request) (*Diff_Response, error)
- func (UnimplementedSnapshotServer) Get(context.Context, *Get_Request) (*Get_Response, error)
- func (UnimplementedSnapshotServer) List(context.Context, *List_Request) (*List_Response, error)
- func (UnimplementedSnapshotServer) Result(context.Context, *Result_Request) (*Result_Response, error)
- func (UnimplementedSnapshotServer) Watch(*Watch_Request, Snapshot_WatchServer) error
- type UnsafeSnapshotServer
- type Watch
- type Watch_EventType
- func (Watch_EventType) Descriptor() protoreflect.EnumDescriptor
- func (x Watch_EventType) Enum() *Watch_EventType
- func (Watch_EventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Watch_EventType) Number() protoreflect.EnumNumber
- func (x Watch_EventType) String() string
- func (Watch_EventType) Type() protoreflect.EnumType
- type Watch_Options
- func (*Watch_Options) Descriptor() ([]byte, []int)deprecated
- func (x *Watch_Options) GetProxyName() string
- func (x *Watch_Options) GetProxyNamespace() string
- func (x *Watch_Options) GetWatch() bool
- func (*Watch_Options) ProtoMessage()
- func (x *Watch_Options) ProtoReflect() protoreflect.Message
- func (x *Watch_Options) Reset()
- func (x *Watch_Options) String() string
- type Watch_Request
- type Watch_Response
- func (*Watch_Response) Descriptor() ([]byte, []int)deprecated
- func (x *Watch_Response) GetEventType() Watch_EventType
- func (x *Watch_Response) GetObject() []byte
- func (*Watch_Response) ProtoMessage()
- func (x *Watch_Response) ProtoReflect() protoreflect.Message
- func (x *Watch_Response) Reset()
- func (x *Watch_Response) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Watch_EventType_name = map[int32]string{ 0: "ERROR", 1: "ADDED", 2: "MODIFIED", 3: "DELETED", 4: "BOOKMARK", } Watch_EventType_value = map[string]int32{ "ERROR": 0, "ADDED": 1, "MODIFIED": 2, "DELETED": 3, "BOOKMARK": 4, } )
Enum value maps for Watch_EventType.
var File_snapshot_proto protoreflect.FileDescriptor
var Snapshot_ServiceDesc = grpc.ServiceDesc{ ServiceName: "snapshotpb.Snapshot", HandlerType: (*SnapshotServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _Snapshot_Get_Handler, }, { MethodName: "List", Handler: _Snapshot_List_Handler, }, { MethodName: "Delete", Handler: _Snapshot_Delete_Handler, }, { MethodName: "Diff", Handler: _Snapshot_Diff_Handler, }, { MethodName: "Result", Handler: _Snapshot_Result_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _Snapshot_Watch_Handler, ServerStreams: true, }, }, Metadata: "snapshot.proto", }
Snapshot_ServiceDesc is the grpc.ServiceDesc for Snapshot service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSnapshotServer ¶
func RegisterSnapshotServer(s grpc.ServiceRegistrar, srv SnapshotServer)
Types ¶
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
func (*Delete) Descriptor
deprecated
func (*Delete) ProtoMessage ¶
func (*Delete) ProtoMessage()
func (*Delete) ProtoReflect ¶
func (x *Delete) ProtoReflect() protoreflect.Message
type Delete_Options ¶
type Delete_Options struct { ProxyName string `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"` ProxyNamespace string `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"` // contains filtered or unexported fields }
func (*Delete_Options) Descriptor
deprecated
func (*Delete_Options) Descriptor() ([]byte, []int)
Deprecated: Use Delete_Options.ProtoReflect.Descriptor instead.
func (*Delete_Options) GetProxyName ¶
func (x *Delete_Options) GetProxyName() string
func (*Delete_Options) GetProxyNamespace ¶
func (x *Delete_Options) GetProxyNamespace() string
func (*Delete_Options) ProtoMessage ¶
func (*Delete_Options) ProtoMessage()
func (*Delete_Options) ProtoReflect ¶
func (x *Delete_Options) ProtoReflect() protoreflect.Message
func (*Delete_Options) Reset ¶
func (x *Delete_Options) Reset()
func (*Delete_Options) String ¶
func (x *Delete_Options) String() string
type Delete_Request ¶
type Delete_Request struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Options *Delete_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*Delete_Request) Descriptor
deprecated
func (*Delete_Request) Descriptor() ([]byte, []int)
Deprecated: Use Delete_Request.ProtoReflect.Descriptor instead.
func (*Delete_Request) GetId ¶
func (x *Delete_Request) GetId() string
func (*Delete_Request) GetOptions ¶
func (x *Delete_Request) GetOptions() *Delete_Options
func (*Delete_Request) ProtoMessage ¶
func (*Delete_Request) ProtoMessage()
func (*Delete_Request) ProtoReflect ¶
func (x *Delete_Request) ProtoReflect() protoreflect.Message
func (*Delete_Request) Reset ¶
func (x *Delete_Request) Reset()
func (*Delete_Request) String ¶
func (x *Delete_Request) String() string
type Delete_Response ¶
type Delete_Response struct {
// contains filtered or unexported fields
}
func (*Delete_Response) Descriptor
deprecated
func (*Delete_Response) Descriptor() ([]byte, []int)
Deprecated: Use Delete_Response.ProtoReflect.Descriptor instead.
func (*Delete_Response) ProtoMessage ¶
func (*Delete_Response) ProtoMessage()
func (*Delete_Response) ProtoReflect ¶
func (x *Delete_Response) ProtoReflect() protoreflect.Message
func (*Delete_Response) Reset ¶
func (x *Delete_Response) Reset()
func (*Delete_Response) String ¶
func (x *Delete_Response) String() string
type Diff ¶
type Diff struct {
// contains filtered or unexported fields
}
func (*Diff) Descriptor
deprecated
func (*Diff) ProtoMessage ¶
func (*Diff) ProtoMessage()
func (*Diff) ProtoReflect ¶
func (x *Diff) ProtoReflect() protoreflect.Message
type Diff_Options ¶
type Diff_Options struct { ProxyName string `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"` ProxyNamespace string `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"` ShowManagedField bool `protobuf:"varint,3,opt,name=showManagedField,proto3" json:"showManagedField,omitempty"` ShowChoreoAPIs bool `protobuf:"varint,4,opt,name=showChoreoAPIs,proto3" json:"showChoreoAPIs,omitempty"` // contains filtered or unexported fields }
func (*Diff_Options) Descriptor
deprecated
func (*Diff_Options) Descriptor() ([]byte, []int)
Deprecated: Use Diff_Options.ProtoReflect.Descriptor instead.
func (*Diff_Options) GetProxyName ¶
func (x *Diff_Options) GetProxyName() string
func (*Diff_Options) GetProxyNamespace ¶
func (x *Diff_Options) GetProxyNamespace() string
func (*Diff_Options) GetShowChoreoAPIs ¶
func (x *Diff_Options) GetShowChoreoAPIs() bool
func (*Diff_Options) GetShowManagedField ¶
func (x *Diff_Options) GetShowManagedField() bool
func (*Diff_Options) ProtoMessage ¶
func (*Diff_Options) ProtoMessage()
func (*Diff_Options) ProtoReflect ¶
func (x *Diff_Options) ProtoReflect() protoreflect.Message
func (*Diff_Options) Reset ¶
func (x *Diff_Options) Reset()
func (*Diff_Options) String ¶
func (x *Diff_Options) String() string
type Diff_Request ¶
type Diff_Request struct { Options *Diff_Options `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*Diff_Request) Descriptor
deprecated
func (*Diff_Request) Descriptor() ([]byte, []int)
Deprecated: Use Diff_Request.ProtoReflect.Descriptor instead.
func (*Diff_Request) GetOptions ¶
func (x *Diff_Request) GetOptions() *Diff_Options
func (*Diff_Request) ProtoMessage ¶
func (*Diff_Request) ProtoMessage()
func (*Diff_Request) ProtoReflect ¶
func (x *Diff_Request) ProtoReflect() protoreflect.Message
func (*Diff_Request) Reset ¶
func (x *Diff_Request) Reset()
func (*Diff_Request) String ¶
func (x *Diff_Request) String() string
type Diff_Response ¶
type Diff_Response struct { Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
func (*Diff_Response) Descriptor
deprecated
func (*Diff_Response) Descriptor() ([]byte, []int)
Deprecated: Use Diff_Response.ProtoReflect.Descriptor instead.
func (*Diff_Response) GetObject ¶
func (x *Diff_Response) GetObject() []byte
func (*Diff_Response) ProtoMessage ¶
func (*Diff_Response) ProtoMessage()
func (*Diff_Response) ProtoReflect ¶
func (x *Diff_Response) ProtoReflect() protoreflect.Message
func (*Diff_Response) Reset ¶
func (x *Diff_Response) Reset()
func (*Diff_Response) String ¶
func (x *Diff_Response) String() string
type Get ¶
type Get struct {
// contains filtered or unexported fields
}
func (*Get) Descriptor
deprecated
func (*Get) ProtoMessage ¶
func (*Get) ProtoMessage()
func (*Get) ProtoReflect ¶
func (x *Get) ProtoReflect() protoreflect.Message
type Get_Options ¶
type Get_Options struct { ProxyName string `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"` ProxyNamespace string `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"` // contains filtered or unexported fields }
func (*Get_Options) Descriptor
deprecated
func (*Get_Options) Descriptor() ([]byte, []int)
Deprecated: Use Get_Options.ProtoReflect.Descriptor instead.
func (*Get_Options) GetProxyName ¶
func (x *Get_Options) GetProxyName() string
func (*Get_Options) GetProxyNamespace ¶
func (x *Get_Options) GetProxyNamespace() string
func (*Get_Options) ProtoMessage ¶
func (*Get_Options) ProtoMessage()
func (*Get_Options) ProtoReflect ¶
func (x *Get_Options) ProtoReflect() protoreflect.Message
func (*Get_Options) Reset ¶
func (x *Get_Options) Reset()
func (*Get_Options) String ¶
func (x *Get_Options) String() string
type Get_Request ¶
type Get_Request struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Options *Get_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*Get_Request) Descriptor
deprecated
func (*Get_Request) Descriptor() ([]byte, []int)
Deprecated: Use Get_Request.ProtoReflect.Descriptor instead.
func (*Get_Request) GetId ¶
func (x *Get_Request) GetId() string
func (*Get_Request) GetOptions ¶
func (x *Get_Request) GetOptions() *Get_Options
func (*Get_Request) ProtoMessage ¶
func (*Get_Request) ProtoMessage()
func (*Get_Request) ProtoReflect ¶
func (x *Get_Request) ProtoReflect() protoreflect.Message
func (*Get_Request) Reset ¶
func (x *Get_Request) Reset()
func (*Get_Request) String ¶
func (x *Get_Request) String() string
type Get_Response ¶
type Get_Response struct { Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
func (*Get_Response) Descriptor
deprecated
func (*Get_Response) Descriptor() ([]byte, []int)
Deprecated: Use Get_Response.ProtoReflect.Descriptor instead.
func (*Get_Response) GetObject ¶
func (x *Get_Response) GetObject() []byte
func (*Get_Response) ProtoMessage ¶
func (*Get_Response) ProtoMessage()
func (*Get_Response) ProtoReflect ¶
func (x *Get_Response) ProtoReflect() protoreflect.Message
func (*Get_Response) Reset ¶
func (x *Get_Response) Reset()
func (*Get_Response) String ¶
func (x *Get_Response) String() string
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) Descriptor
deprecated
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type List_Options ¶
type List_Options struct { ProxyName string `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"` ProxyNamespace string `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"` // contains filtered or unexported fields }
func (*List_Options) Descriptor
deprecated
func (*List_Options) Descriptor() ([]byte, []int)
Deprecated: Use List_Options.ProtoReflect.Descriptor instead.
func (*List_Options) GetProxyName ¶
func (x *List_Options) GetProxyName() string
func (*List_Options) GetProxyNamespace ¶
func (x *List_Options) GetProxyNamespace() string
func (*List_Options) ProtoMessage ¶
func (*List_Options) ProtoMessage()
func (*List_Options) ProtoReflect ¶
func (x *List_Options) ProtoReflect() protoreflect.Message
func (*List_Options) Reset ¶
func (x *List_Options) Reset()
func (*List_Options) String ¶
func (x *List_Options) String() string
type List_Request ¶
type List_Request struct { Options *List_Options `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*List_Request) Descriptor
deprecated
func (*List_Request) Descriptor() ([]byte, []int)
Deprecated: Use List_Request.ProtoReflect.Descriptor instead.
func (*List_Request) GetOptions ¶
func (x *List_Request) GetOptions() *List_Options
func (*List_Request) ProtoMessage ¶
func (*List_Request) ProtoMessage()
func (*List_Request) ProtoReflect ¶
func (x *List_Request) ProtoReflect() protoreflect.Message
func (*List_Request) Reset ¶
func (x *List_Request) Reset()
func (*List_Request) String ¶
func (x *List_Request) String() string
type List_Response ¶
type List_Response struct { Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
func (*List_Response) Descriptor
deprecated
func (*List_Response) Descriptor() ([]byte, []int)
Deprecated: Use List_Response.ProtoReflect.Descriptor instead.
func (*List_Response) GetObject ¶
func (x *List_Response) GetObject() []byte
func (*List_Response) ProtoMessage ¶
func (*List_Response) ProtoMessage()
func (*List_Response) ProtoReflect ¶
func (x *List_Response) ProtoReflect() protoreflect.Message
func (*List_Response) Reset ¶
func (x *List_Response) Reset()
func (*List_Response) String ¶
func (x *List_Response) String() string
type Result ¶ added in v0.0.17
type Result struct {
// contains filtered or unexported fields
}
func (*Result) Descriptor
deprecated
added in
v0.0.17
func (*Result) ProtoMessage ¶ added in v0.0.17
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶ added in v0.0.17
func (x *Result) ProtoReflect() protoreflect.Message
type Result_Options ¶ added in v0.0.17
type Result_Options struct { ProxyName string `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"` ProxyNamespace string `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"` // contains filtered or unexported fields }
func (*Result_Options) Descriptor
deprecated
added in
v0.0.17
func (*Result_Options) Descriptor() ([]byte, []int)
Deprecated: Use Result_Options.ProtoReflect.Descriptor instead.
func (*Result_Options) GetProxyName ¶ added in v0.0.17
func (x *Result_Options) GetProxyName() string
func (*Result_Options) GetProxyNamespace ¶ added in v0.0.17
func (x *Result_Options) GetProxyNamespace() string
func (*Result_Options) ProtoMessage ¶ added in v0.0.17
func (*Result_Options) ProtoMessage()
func (*Result_Options) ProtoReflect ¶ added in v0.0.17
func (x *Result_Options) ProtoReflect() protoreflect.Message
func (*Result_Options) Reset ¶ added in v0.0.17
func (x *Result_Options) Reset()
func (*Result_Options) String ¶ added in v0.0.17
func (x *Result_Options) String() string
type Result_Request ¶ added in v0.0.17
type Result_Request struct { Options *Result_Options `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*Result_Request) Descriptor
deprecated
added in
v0.0.17
func (*Result_Request) Descriptor() ([]byte, []int)
Deprecated: Use Result_Request.ProtoReflect.Descriptor instead.
func (*Result_Request) GetOptions ¶ added in v0.0.17
func (x *Result_Request) GetOptions() *Result_Options
func (*Result_Request) ProtoMessage ¶ added in v0.0.17
func (*Result_Request) ProtoMessage()
func (*Result_Request) ProtoReflect ¶ added in v0.0.17
func (x *Result_Request) ProtoReflect() protoreflect.Message
func (*Result_Request) Reset ¶ added in v0.0.17
func (x *Result_Request) Reset()
func (*Result_Request) String ¶ added in v0.0.17
func (x *Result_Request) String() string
type Result_Response ¶ added in v0.0.17
type Result_Response struct { RunResponse *runnerpb.Once_RunResponse `protobuf:"bytes,4,opt,name=runResponse,proto3" json:"runResponse,omitempty"` // contains filtered or unexported fields }
func (*Result_Response) Descriptor
deprecated
added in
v0.0.17
func (*Result_Response) Descriptor() ([]byte, []int)
Deprecated: Use Result_Response.ProtoReflect.Descriptor instead.
func (*Result_Response) GetRunResponse ¶ added in v0.0.17
func (x *Result_Response) GetRunResponse() *runnerpb.Once_RunResponse
func (*Result_Response) ProtoMessage ¶ added in v0.0.17
func (*Result_Response) ProtoMessage()
func (*Result_Response) ProtoReflect ¶ added in v0.0.17
func (x *Result_Response) ProtoReflect() protoreflect.Message
func (*Result_Response) Reset ¶ added in v0.0.17
func (x *Result_Response) Reset()
func (*Result_Response) String ¶ added in v0.0.17
func (x *Result_Response) String() string
type SnapshotClient ¶
type SnapshotClient interface { Get(ctx context.Context, in *Get_Request, opts ...grpc.CallOption) (*Get_Response, error) List(ctx context.Context, in *List_Request, opts ...grpc.CallOption) (*List_Response, error) Delete(ctx context.Context, in *Delete_Request, opts ...grpc.CallOption) (*Delete_Response, error) Diff(ctx context.Context, in *Diff_Request, opts ...grpc.CallOption) (*Diff_Response, error) Result(ctx context.Context, in *Result_Request, opts ...grpc.CallOption) (*Result_Response, error) Watch(ctx context.Context, in *Watch_Request, opts ...grpc.CallOption) (Snapshot_WatchClient, error) }
SnapshotClient is the client API for Snapshot 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 NewSnapshotClient ¶
func NewSnapshotClient(cc grpc.ClientConnInterface) SnapshotClient
type SnapshotServer ¶
type SnapshotServer interface { Get(context.Context, *Get_Request) (*Get_Response, error) List(context.Context, *List_Request) (*List_Response, error) Delete(context.Context, *Delete_Request) (*Delete_Response, error) Diff(context.Context, *Diff_Request) (*Diff_Response, error) Result(context.Context, *Result_Request) (*Result_Response, error) Watch(*Watch_Request, Snapshot_WatchServer) error // contains filtered or unexported methods }
SnapshotServer is the server API for Snapshot service. All implementations must embed UnimplementedSnapshotServer for forward compatibility
type Snapshot_WatchClient ¶
type Snapshot_WatchClient interface { Recv() (*Watch_Response, error) grpc.ClientStream }
type Snapshot_WatchServer ¶
type Snapshot_WatchServer interface { Send(*Watch_Response) error grpc.ServerStream }
type UnimplementedSnapshotServer ¶
type UnimplementedSnapshotServer struct { }
UnimplementedSnapshotServer must be embedded to have forward compatible implementations.
func (UnimplementedSnapshotServer) Delete ¶
func (UnimplementedSnapshotServer) Delete(context.Context, *Delete_Request) (*Delete_Response, error)
func (UnimplementedSnapshotServer) Diff ¶
func (UnimplementedSnapshotServer) Diff(context.Context, *Diff_Request) (*Diff_Response, error)
func (UnimplementedSnapshotServer) Get ¶
func (UnimplementedSnapshotServer) Get(context.Context, *Get_Request) (*Get_Response, error)
func (UnimplementedSnapshotServer) List ¶
func (UnimplementedSnapshotServer) List(context.Context, *List_Request) (*List_Response, error)
func (UnimplementedSnapshotServer) Result ¶ added in v0.0.17
func (UnimplementedSnapshotServer) Result(context.Context, *Result_Request) (*Result_Response, error)
func (UnimplementedSnapshotServer) Watch ¶
func (UnimplementedSnapshotServer) Watch(*Watch_Request, Snapshot_WatchServer) error
type UnsafeSnapshotServer ¶
type UnsafeSnapshotServer interface {
// contains filtered or unexported methods
}
UnsafeSnapshotServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SnapshotServer will result in compilation errors.
type Watch ¶
type Watch struct {
// contains filtered or unexported fields
}
func (*Watch) Descriptor
deprecated
func (*Watch) ProtoMessage ¶
func (*Watch) ProtoMessage()
func (*Watch) ProtoReflect ¶
func (x *Watch) ProtoReflect() protoreflect.Message
type Watch_EventType ¶
type Watch_EventType int32
const ( Watch_ERROR Watch_EventType = 0 Watch_ADDED Watch_EventType = 1 Watch_MODIFIED Watch_EventType = 2 Watch_DELETED Watch_EventType = 3 Watch_BOOKMARK Watch_EventType = 4 )
func (Watch_EventType) Descriptor ¶
func (Watch_EventType) Descriptor() protoreflect.EnumDescriptor
func (Watch_EventType) Enum ¶
func (x Watch_EventType) Enum() *Watch_EventType
func (Watch_EventType) EnumDescriptor
deprecated
func (Watch_EventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Watch_EventType.Descriptor instead.
func (Watch_EventType) Number ¶
func (x Watch_EventType) Number() protoreflect.EnumNumber
func (Watch_EventType) String ¶
func (x Watch_EventType) String() string
func (Watch_EventType) Type ¶
func (Watch_EventType) Type() protoreflect.EnumType
type Watch_Options ¶
type Watch_Options struct { ProxyName string `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"` ProxyNamespace string `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"` Watch bool `protobuf:"varint,3,opt,name=watch,proto3" json:"watch,omitempty"` // contains filtered or unexported fields }
func (*Watch_Options) Descriptor
deprecated
func (*Watch_Options) Descriptor() ([]byte, []int)
Deprecated: Use Watch_Options.ProtoReflect.Descriptor instead.
func (*Watch_Options) GetProxyName ¶
func (x *Watch_Options) GetProxyName() string
func (*Watch_Options) GetProxyNamespace ¶
func (x *Watch_Options) GetProxyNamespace() string
func (*Watch_Options) GetWatch ¶
func (x *Watch_Options) GetWatch() bool
func (*Watch_Options) ProtoMessage ¶
func (*Watch_Options) ProtoMessage()
func (*Watch_Options) ProtoReflect ¶
func (x *Watch_Options) ProtoReflect() protoreflect.Message
func (*Watch_Options) Reset ¶
func (x *Watch_Options) Reset()
func (*Watch_Options) String ¶
func (x *Watch_Options) String() string
type Watch_Request ¶
type Watch_Request struct { Options *Watch_Options `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*Watch_Request) Descriptor
deprecated
func (*Watch_Request) Descriptor() ([]byte, []int)
Deprecated: Use Watch_Request.ProtoReflect.Descriptor instead.
func (*Watch_Request) GetOptions ¶
func (x *Watch_Request) GetOptions() *Watch_Options
func (*Watch_Request) ProtoMessage ¶
func (*Watch_Request) ProtoMessage()
func (*Watch_Request) ProtoReflect ¶
func (x *Watch_Request) ProtoReflect() protoreflect.Message
func (*Watch_Request) Reset ¶
func (x *Watch_Request) Reset()
func (*Watch_Request) String ¶
func (x *Watch_Request) String() string
type Watch_Response ¶
type Watch_Response struct { Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` EventType Watch_EventType `protobuf:"varint,2,opt,name=eventType,proto3,enum=snapshotpb.Watch_EventType" json:"eventType,omitempty"` // contains filtered or unexported fields }
func (*Watch_Response) Descriptor
deprecated
func (*Watch_Response) Descriptor() ([]byte, []int)
Deprecated: Use Watch_Response.ProtoReflect.Descriptor instead.
func (*Watch_Response) GetEventType ¶
func (x *Watch_Response) GetEventType() Watch_EventType
func (*Watch_Response) GetObject ¶
func (x *Watch_Response) GetObject() []byte
func (*Watch_Response) ProtoMessage ¶
func (*Watch_Response) ProtoMessage()
func (*Watch_Response) ProtoReflect ¶
func (x *Watch_Response) ProtoReflect() protoreflect.Message
func (*Watch_Response) Reset ¶
func (x *Watch_Response) Reset()
func (*Watch_Response) String ¶
func (x *Watch_Response) String() string