Documentation ¶
Overview ¶
Package watcherv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterWatchServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWatchServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WatchServiceClient) error
- func RegisterWatchServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWatchServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WatchServiceServer) error
- func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)
- type CreateWatcherRequest
- func (*CreateWatcherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWatcherRequest) GetWatch() *WatcherDetails
- func (*CreateWatcherRequest) ProtoMessage()
- func (x *CreateWatcherRequest) ProtoReflect() protoreflect.Message
- func (x *CreateWatcherRequest) Reset()
- func (x *CreateWatcherRequest) String() string
- type CreateWatcherResponse
- func (*CreateWatcherResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWatcherResponse) GetWatch() *WatcherDetails
- func (*CreateWatcherResponse) ProtoMessage()
- func (x *CreateWatcherResponse) ProtoReflect() protoreflect.Message
- func (x *CreateWatcherResponse) Reset()
- func (x *CreateWatcherResponse) String() string
- type DeleteWatcherRequest
- func (*DeleteWatcherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteWatcherRequest) GetId() string
- func (*DeleteWatcherRequest) ProtoMessage()
- func (x *DeleteWatcherRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteWatcherRequest) Reset()
- func (x *DeleteWatcherRequest) String() string
- type DeleteWatcherResponse
- func (*DeleteWatcherResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteWatcherResponse) GetWatch() *WatcherDetails
- func (*DeleteWatcherResponse) ProtoMessage()
- func (x *DeleteWatcherResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteWatcherResponse) Reset()
- func (x *DeleteWatcherResponse) String() string
- type DocumentDetails
- func (*DocumentDetails) Descriptor() ([]byte, []int)deprecated
- func (x *DocumentDetails) GetCreatedAt() *timestamppb.Timestamp
- func (x *DocumentDetails) GetDigest() string
- func (x *DocumentDetails) GetMetadata() *DocumentMetadata
- func (x *DocumentDetails) GetRemoved() bool
- func (x *DocumentDetails) GetUrl() string
- func (*DocumentDetails) ProtoMessage()
- func (x *DocumentDetails) ProtoReflect() protoreflect.Message
- func (x *DocumentDetails) Reset()
- func (x *DocumentDetails) String() string
- type DocumentMetadata
- func (*DocumentMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *DocumentMetadata) GetDate() string
- func (x *DocumentMetadata) GetFormat() v1.Format
- func (x *DocumentMetadata) GetName() string
- func (x *DocumentMetadata) GetVersion() string
- func (*DocumentMetadata) ProtoMessage()
- func (x *DocumentMetadata) ProtoReflect() protoreflect.Message
- func (x *DocumentMetadata) Reset()
- func (x *DocumentMetadata) String() string
- type Documents
- func (*Documents) Descriptor() ([]byte, []int)deprecated
- func (x *Documents) GetDocument() []*DocumentDetails
- func (x *Documents) GetLastUpdated() *timestamppb.Timestamp
- func (*Documents) ProtoMessage()
- func (x *Documents) ProtoReflect() protoreflect.Message
- func (x *Documents) Reset()
- func (x *Documents) String() string
- type Entries
- type GetWatcherRequest
- type GetWatcherResponse
- func (*GetWatcherResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWatcherResponse) GetWatch() *WatcherDetails
- func (*GetWatcherResponse) ProtoMessage()
- func (x *GetWatcherResponse) ProtoReflect() protoreflect.Message
- func (x *GetWatcherResponse) Reset()
- func (x *GetWatcherResponse) String() string
- type Index
- func (*Index) Descriptor() ([]byte, []int)deprecated
- func (x *Index) GetCount() int64
- func (x *Index) GetEntries() *Entries
- func (x *Index) GetLastUpdated() *timestamppb.Timestamp
- func (x *Index) GetUrl() string
- func (*Index) ProtoMessage()
- func (x *Index) ProtoReflect() protoreflect.Message
- func (x *Index) Reset()
- func (x *Index) String() string
- type ListWatchersRequest
- type ListWatchersResponse
- func (*ListWatchersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListWatchersResponse) GetWatches() []*WatcherDetails
- func (*ListWatchersResponse) ProtoMessage()
- func (x *ListWatchersResponse) ProtoReflect() protoreflect.Message
- func (x *ListWatchersResponse) Reset()
- func (x *ListWatchersResponse) String() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetCreationTimestamp() string
- func (x *Metadata) GetId() string
- func (x *Metadata) GetName() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type Spec
- type Status
- type SyncAllRequest
- type SyncAllResponse
- type SyncDetails
- func (*SyncDetails) Descriptor() ([]byte, []int)deprecated
- func (x *SyncDetails) GetId() string
- func (x *SyncDetails) GetName() string
- func (x *SyncDetails) GetStatus() Status
- func (*SyncDetails) ProtoMessage()
- func (x *SyncDetails) ProtoReflect() protoreflect.Message
- func (x *SyncDetails) Reset()
- func (x *SyncDetails) String() string
- type SyncStatus
- type SyncWatcherRequest
- type SyncWatcherResponse
- func (*SyncWatcherResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyncWatcherResponse) GetSync() *SyncDetails
- func (*SyncWatcherResponse) ProtoMessage()
- func (x *SyncWatcherResponse) ProtoReflect() protoreflect.Message
- func (x *SyncWatcherResponse) Reset()
- func (x *SyncWatcherResponse) String() string
- type UnimplementedWatchServiceServer
- func (UnimplementedWatchServiceServer) CreateWatcher(context.Context, *CreateWatcherRequest) (*CreateWatcherResponse, error)
- func (UnimplementedWatchServiceServer) DeleteWatcher(context.Context, *DeleteWatcherRequest) (*DeleteWatcherResponse, error)
- func (UnimplementedWatchServiceServer) GetWatcher(context.Context, *GetWatcherRequest) (*GetWatcherResponse, error)
- func (UnimplementedWatchServiceServer) ListWatchers(context.Context, *ListWatchersRequest) (*ListWatchersResponse, error)
- func (UnimplementedWatchServiceServer) SyncAll(context.Context, *SyncAllRequest) (*SyncAllResponse, error)
- func (UnimplementedWatchServiceServer) SyncWatcher(context.Context, *SyncWatcherRequest) (*SyncWatcherResponse, error)
- func (UnimplementedWatchServiceServer) UpdateWatcher(context.Context, *UpdateWatcherRequest) (*UpdateWatcherResponse, error)
- type UnsafeWatchServiceServer
- type UpdateWatcherRequest
- func (*UpdateWatcherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateWatcherRequest) GetId() string
- func (x *UpdateWatcherRequest) GetWatch() *WatcherDetails
- func (*UpdateWatcherRequest) ProtoMessage()
- func (x *UpdateWatcherRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateWatcherRequest) Reset()
- func (x *UpdateWatcherRequest) String() string
- type UpdateWatcherResponse
- func (*UpdateWatcherResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateWatcherResponse) GetWatch() *WatcherDetails
- func (*UpdateWatcherResponse) ProtoMessage()
- func (x *UpdateWatcherResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateWatcherResponse) Reset()
- func (x *UpdateWatcherResponse) String() string
- type WatchServiceClient
- type WatchServiceServer
- type WatcherDetails
- func (*WatcherDetails) Descriptor() ([]byte, []int)deprecated
- func (x *WatcherDetails) GetApiVersion() string
- func (x *WatcherDetails) GetMetadata() *Metadata
- func (x *WatcherDetails) GetSpec() *Spec
- func (x *WatcherDetails) GetStatus() *SyncStatus
- func (*WatcherDetails) ProtoMessage()
- func (x *WatcherDetails) ProtoReflect() protoreflect.Message
- func (x *WatcherDetails) Reset()
- func (x *WatcherDetails) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Status_name = map[int32]string{ 0: "UNSPECIFIED", 1: "PENDING", 2: "SUCCESS", 3: "FAILURE", } Status_value = map[string]int32{ "UNSPECIFIED": 0, "PENDING": 1, "SUCCESS": 2, "FAILURE": 3, } )
Enum value maps for Status.
var File_watcherapi_v1_service_proto protoreflect.FileDescriptor
var File_watcherapi_v1_watcher_proto protoreflect.FileDescriptor
var WatchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shorted.service.watcher.v1.WatchService", HandlerType: (*WatchServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListWatchers", Handler: _WatchService_ListWatchers_Handler, }, { MethodName: "GetWatcher", Handler: _WatchService_GetWatcher_Handler, }, { MethodName: "CreateWatcher", Handler: _WatchService_CreateWatcher_Handler, }, { MethodName: "DeleteWatcher", Handler: _WatchService_DeleteWatcher_Handler, }, { MethodName: "UpdateWatcher", Handler: _WatchService_UpdateWatcher_Handler, }, { MethodName: "SyncAll", Handler: _WatchService_SyncAll_Handler, }, { MethodName: "SyncWatcher", Handler: _WatchService_SyncWatcher_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "watcherapi/v1/service.proto", }
WatchService_ServiceDesc is the grpc.ServiceDesc for WatchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWatchServiceHandler ¶
func RegisterWatchServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterWatchServiceHandler registers the http handlers for service WatchService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWatchServiceHandlerClient ¶
func RegisterWatchServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WatchServiceClient) error
RegisterWatchServiceHandlerClient registers the http handlers for service WatchService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WatchServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WatchServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WatchServiceClient" to call the correct interceptors.
func RegisterWatchServiceHandlerFromEndpoint ¶
func RegisterWatchServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWatchServiceHandlerFromEndpoint is same as RegisterWatchServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWatchServiceHandlerServer ¶
func RegisterWatchServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WatchServiceServer) error
RegisterWatchServiceHandlerServer registers the http handlers for service WatchService to "mux". UnaryRPC :call WatchServiceServer 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 RegisterWatchServiceHandlerFromEndpoint instead.
func RegisterWatchServiceServer ¶
func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)
Types ¶
type CreateWatcherRequest ¶
type CreateWatcherRequest struct { Watch *WatcherDetails `protobuf:"bytes,1,opt,name=watch,proto3" json:"watch,omitempty"` // contains filtered or unexported fields }
func (*CreateWatcherRequest) Descriptor
deprecated
func (*CreateWatcherRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateWatcherRequest.ProtoReflect.Descriptor instead.
func (*CreateWatcherRequest) GetWatch ¶
func (x *CreateWatcherRequest) GetWatch() *WatcherDetails
func (*CreateWatcherRequest) ProtoMessage ¶
func (*CreateWatcherRequest) ProtoMessage()
func (*CreateWatcherRequest) ProtoReflect ¶
func (x *CreateWatcherRequest) ProtoReflect() protoreflect.Message
func (*CreateWatcherRequest) Reset ¶
func (x *CreateWatcherRequest) Reset()
func (*CreateWatcherRequest) String ¶
func (x *CreateWatcherRequest) String() string
type CreateWatcherResponse ¶
type CreateWatcherResponse struct { Watch *WatcherDetails `protobuf:"bytes,1,opt,name=watch,proto3" json:"watch,omitempty"` // contains filtered or unexported fields }
func (*CreateWatcherResponse) Descriptor
deprecated
func (*CreateWatcherResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateWatcherResponse.ProtoReflect.Descriptor instead.
func (*CreateWatcherResponse) GetWatch ¶
func (x *CreateWatcherResponse) GetWatch() *WatcherDetails
func (*CreateWatcherResponse) ProtoMessage ¶
func (*CreateWatcherResponse) ProtoMessage()
func (*CreateWatcherResponse) ProtoReflect ¶
func (x *CreateWatcherResponse) ProtoReflect() protoreflect.Message
func (*CreateWatcherResponse) Reset ¶
func (x *CreateWatcherResponse) Reset()
func (*CreateWatcherResponse) String ¶
func (x *CreateWatcherResponse) String() string
type DeleteWatcherRequest ¶
type DeleteWatcherRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteWatcherRequest) Descriptor
deprecated
func (*DeleteWatcherRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteWatcherRequest.ProtoReflect.Descriptor instead.
func (*DeleteWatcherRequest) GetId ¶
func (x *DeleteWatcherRequest) GetId() string
func (*DeleteWatcherRequest) ProtoMessage ¶
func (*DeleteWatcherRequest) ProtoMessage()
func (*DeleteWatcherRequest) ProtoReflect ¶
func (x *DeleteWatcherRequest) ProtoReflect() protoreflect.Message
func (*DeleteWatcherRequest) Reset ¶
func (x *DeleteWatcherRequest) Reset()
func (*DeleteWatcherRequest) String ¶
func (x *DeleteWatcherRequest) String() string
type DeleteWatcherResponse ¶
type DeleteWatcherResponse struct { Watch *WatcherDetails `protobuf:"bytes,1,opt,name=watch,proto3" json:"watch,omitempty"` // contains filtered or unexported fields }
func (*DeleteWatcherResponse) Descriptor
deprecated
func (*DeleteWatcherResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteWatcherResponse.ProtoReflect.Descriptor instead.
func (*DeleteWatcherResponse) GetWatch ¶
func (x *DeleteWatcherResponse) GetWatch() *WatcherDetails
func (*DeleteWatcherResponse) ProtoMessage ¶
func (*DeleteWatcherResponse) ProtoMessage()
func (*DeleteWatcherResponse) ProtoReflect ¶
func (x *DeleteWatcherResponse) ProtoReflect() protoreflect.Message
func (*DeleteWatcherResponse) Reset ¶
func (x *DeleteWatcherResponse) Reset()
func (*DeleteWatcherResponse) String ¶
func (x *DeleteWatcherResponse) String() string
type DocumentDetails ¶
type DocumentDetails struct { Metadata *DocumentMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Removed bool `protobuf:"varint,3,opt,name=removed,proto3" json:"removed,omitempty"` Digest string `protobuf:"bytes,4,opt,name=digest,proto3" json:"digest,omitempty"` Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*DocumentDetails) Descriptor
deprecated
func (*DocumentDetails) Descriptor() ([]byte, []int)
Deprecated: Use DocumentDetails.ProtoReflect.Descriptor instead.
func (*DocumentDetails) GetCreatedAt ¶
func (x *DocumentDetails) GetCreatedAt() *timestamppb.Timestamp
func (*DocumentDetails) GetDigest ¶
func (x *DocumentDetails) GetDigest() string
func (*DocumentDetails) GetMetadata ¶
func (x *DocumentDetails) GetMetadata() *DocumentMetadata
func (*DocumentDetails) GetRemoved ¶
func (x *DocumentDetails) GetRemoved() bool
func (*DocumentDetails) GetUrl ¶
func (x *DocumentDetails) GetUrl() string
func (*DocumentDetails) ProtoMessage ¶
func (*DocumentDetails) ProtoMessage()
func (*DocumentDetails) ProtoReflect ¶
func (x *DocumentDetails) ProtoReflect() protoreflect.Message
func (*DocumentDetails) Reset ¶
func (x *DocumentDetails) Reset()
func (*DocumentDetails) String ¶
func (x *DocumentDetails) String() string
type DocumentMetadata ¶
type DocumentMetadata struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Date string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"` Format v1.Format `protobuf:"varint,3,opt,name=format,proto3,enum=core.v1.Format" json:"format,omitempty"` Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*DocumentMetadata) Descriptor
deprecated
func (*DocumentMetadata) Descriptor() ([]byte, []int)
Deprecated: Use DocumentMetadata.ProtoReflect.Descriptor instead.
func (*DocumentMetadata) GetDate ¶
func (x *DocumentMetadata) GetDate() string
func (*DocumentMetadata) GetFormat ¶
func (x *DocumentMetadata) GetFormat() v1.Format
func (*DocumentMetadata) GetName ¶
func (x *DocumentMetadata) GetName() string
func (*DocumentMetadata) GetVersion ¶
func (x *DocumentMetadata) GetVersion() string
func (*DocumentMetadata) ProtoMessage ¶
func (*DocumentMetadata) ProtoMessage()
func (*DocumentMetadata) ProtoReflect ¶
func (x *DocumentMetadata) ProtoReflect() protoreflect.Message
func (*DocumentMetadata) Reset ¶
func (x *DocumentMetadata) Reset()
func (*DocumentMetadata) String ¶
func (x *DocumentMetadata) String() string
type Documents ¶
type Documents struct { Document []*DocumentDetails `protobuf:"bytes,1,rep,name=document,proto3" json:"document,omitempty"` LastUpdated *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` // contains filtered or unexported fields }
func (*Documents) Descriptor
deprecated
func (*Documents) GetDocument ¶
func (x *Documents) GetDocument() []*DocumentDetails
func (*Documents) GetLastUpdated ¶
func (x *Documents) GetLastUpdated() *timestamppb.Timestamp
func (*Documents) ProtoMessage ¶
func (*Documents) ProtoMessage()
func (*Documents) ProtoReflect ¶
func (x *Documents) ProtoReflect() protoreflect.Message
type Entries ¶
type Entries struct { Documents map[string]*Documents `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Entries) Descriptor
deprecated
func (*Entries) GetDocuments ¶
func (*Entries) ProtoMessage ¶
func (*Entries) ProtoMessage()
func (*Entries) ProtoReflect ¶
func (x *Entries) ProtoReflect() protoreflect.Message
type GetWatcherRequest ¶
type GetWatcherRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
------------ GET ------------
func (*GetWatcherRequest) Descriptor
deprecated
func (*GetWatcherRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWatcherRequest.ProtoReflect.Descriptor instead.
func (*GetWatcherRequest) GetId ¶
func (x *GetWatcherRequest) GetId() string
func (*GetWatcherRequest) ProtoMessage ¶
func (*GetWatcherRequest) ProtoMessage()
func (*GetWatcherRequest) ProtoReflect ¶
func (x *GetWatcherRequest) ProtoReflect() protoreflect.Message
func (*GetWatcherRequest) Reset ¶
func (x *GetWatcherRequest) Reset()
func (*GetWatcherRequest) String ¶
func (x *GetWatcherRequest) String() string
type GetWatcherResponse ¶
type GetWatcherResponse struct { Watch *WatcherDetails `protobuf:"bytes,1,opt,name=watch,proto3" json:"watch,omitempty"` // contains filtered or unexported fields }
func (*GetWatcherResponse) Descriptor
deprecated
func (*GetWatcherResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWatcherResponse.ProtoReflect.Descriptor instead.
func (*GetWatcherResponse) GetWatch ¶
func (x *GetWatcherResponse) GetWatch() *WatcherDetails
func (*GetWatcherResponse) ProtoMessage ¶
func (*GetWatcherResponse) ProtoMessage()
func (*GetWatcherResponse) ProtoReflect ¶
func (x *GetWatcherResponse) ProtoReflect() protoreflect.Message
func (*GetWatcherResponse) Reset ¶
func (x *GetWatcherResponse) Reset()
func (*GetWatcherResponse) String ¶
func (x *GetWatcherResponse) String() string
type Index ¶
type Index struct { // url where index is stored (i.e gs://<project-name>-index/index.json) Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` LastUpdated *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` Entries *Entries `protobuf:"bytes,4,opt,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
Index defines where the discovered content of a Source is stored
func (*Index) Descriptor
deprecated
func (*Index) GetEntries ¶
func (*Index) GetLastUpdated ¶
func (x *Index) GetLastUpdated() *timestamppb.Timestamp
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) ProtoReflect ¶
func (x *Index) ProtoReflect() protoreflect.Message
type ListWatchersRequest ¶
type ListWatchersRequest struct {
// contains filtered or unexported fields
}
------------ LIST ------------ ListWatchersRequest
func (*ListWatchersRequest) Descriptor
deprecated
func (*ListWatchersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListWatchersRequest.ProtoReflect.Descriptor instead.
func (*ListWatchersRequest) ProtoMessage ¶
func (*ListWatchersRequest) ProtoMessage()
func (*ListWatchersRequest) ProtoReflect ¶
func (x *ListWatchersRequest) ProtoReflect() protoreflect.Message
func (*ListWatchersRequest) Reset ¶
func (x *ListWatchersRequest) Reset()
func (*ListWatchersRequest) String ¶
func (x *ListWatchersRequest) String() string
type ListWatchersResponse ¶
type ListWatchersResponse struct { Watches []*WatcherDetails `protobuf:"bytes,1,rep,name=watches,proto3" json:"watches,omitempty"` // contains filtered or unexported fields }
func (*ListWatchersResponse) Descriptor
deprecated
func (*ListWatchersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListWatchersResponse.ProtoReflect.Descriptor instead.
func (*ListWatchersResponse) GetWatches ¶
func (x *ListWatchersResponse) GetWatches() []*WatcherDetails
func (*ListWatchersResponse) ProtoMessage ¶
func (*ListWatchersResponse) ProtoMessage()
func (*ListWatchersResponse) ProtoReflect ¶
func (x *ListWatchersResponse) ProtoReflect() protoreflect.Message
func (*ListWatchersResponse) Reset ¶
func (x *ListWatchersResponse) Reset()
func (*ListWatchersResponse) String ¶
func (x *ListWatchersResponse) String() string
type Metadata ¶
type Metadata struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreationTimestamp string `protobuf:"bytes,3,opt,name=creationTimestamp,proto3" json:"creationTimestamp,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetCreationTimestamp ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Spec ¶
type Spec struct { Source *v1.Source `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` Index *Index `protobuf:"bytes,4,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*Spec) Descriptor
deprecated
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) ProtoReflect ¶
func (x *Spec) ProtoReflect() protoreflect.Message
type Status ¶
type Status int32
SyncStatus specifies the state of a given synchronisation request. Where a synchronisation state will correspond to a specfic source
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type SyncAllRequest ¶
type SyncAllRequest struct {
// contains filtered or unexported fields
}
------------ Sync ------------ TODO(castlemilk): good use case for using streaming to track sync status to watch for updates etc via shortedctl
func (*SyncAllRequest) Descriptor
deprecated
func (*SyncAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncAllRequest.ProtoReflect.Descriptor instead.
func (*SyncAllRequest) ProtoMessage ¶
func (*SyncAllRequest) ProtoMessage()
func (*SyncAllRequest) ProtoReflect ¶
func (x *SyncAllRequest) ProtoReflect() protoreflect.Message
func (*SyncAllRequest) Reset ¶
func (x *SyncAllRequest) Reset()
func (*SyncAllRequest) String ¶
func (x *SyncAllRequest) String() string
type SyncAllResponse ¶
type SyncAllResponse struct { Sync []*SyncDetails `protobuf:"bytes,1,rep,name=sync,proto3" json:"sync,omitempty"` // contains filtered or unexported fields }
func (*SyncAllResponse) Descriptor
deprecated
func (*SyncAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncAllResponse.ProtoReflect.Descriptor instead.
func (*SyncAllResponse) GetSync ¶
func (x *SyncAllResponse) GetSync() []*SyncDetails
func (*SyncAllResponse) ProtoMessage ¶
func (*SyncAllResponse) ProtoMessage()
func (*SyncAllResponse) ProtoReflect ¶
func (x *SyncAllResponse) ProtoReflect() protoreflect.Message
func (*SyncAllResponse) Reset ¶
func (x *SyncAllResponse) Reset()
func (*SyncAllResponse) String ¶
func (x *SyncAllResponse) String() string
type SyncDetails ¶
type SyncDetails struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=shorted.service.watcher.v1.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*SyncDetails) Descriptor
deprecated
func (*SyncDetails) Descriptor() ([]byte, []int)
Deprecated: Use SyncDetails.ProtoReflect.Descriptor instead.
func (*SyncDetails) GetId ¶
func (x *SyncDetails) GetId() string
func (*SyncDetails) GetName ¶
func (x *SyncDetails) GetName() string
func (*SyncDetails) GetStatus ¶
func (x *SyncDetails) GetStatus() Status
func (*SyncDetails) ProtoMessage ¶
func (*SyncDetails) ProtoMessage()
func (*SyncDetails) ProtoReflect ¶
func (x *SyncDetails) ProtoReflect() protoreflect.Message
func (*SyncDetails) Reset ¶
func (x *SyncDetails) Reset()
func (*SyncDetails) String ¶
func (x *SyncDetails) String() string
type SyncStatus ¶
type SyncStatus struct { Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=shorted.service.watcher.v1.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*SyncStatus) Descriptor
deprecated
func (*SyncStatus) Descriptor() ([]byte, []int)
Deprecated: Use SyncStatus.ProtoReflect.Descriptor instead.
func (*SyncStatus) GetStatus ¶
func (x *SyncStatus) GetStatus() Status
func (*SyncStatus) ProtoMessage ¶
func (*SyncStatus) ProtoMessage()
func (*SyncStatus) ProtoReflect ¶
func (x *SyncStatus) ProtoReflect() protoreflect.Message
func (*SyncStatus) Reset ¶
func (x *SyncStatus) Reset()
func (*SyncStatus) String ¶
func (x *SyncStatus) String() string
type SyncWatcherRequest ¶
type SyncWatcherRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SyncWatcherRequest) Descriptor
deprecated
func (*SyncWatcherRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncWatcherRequest.ProtoReflect.Descriptor instead.
func (*SyncWatcherRequest) GetId ¶
func (x *SyncWatcherRequest) GetId() string
func (*SyncWatcherRequest) ProtoMessage ¶
func (*SyncWatcherRequest) ProtoMessage()
func (*SyncWatcherRequest) ProtoReflect ¶
func (x *SyncWatcherRequest) ProtoReflect() protoreflect.Message
func (*SyncWatcherRequest) Reset ¶
func (x *SyncWatcherRequest) Reset()
func (*SyncWatcherRequest) String ¶
func (x *SyncWatcherRequest) String() string
type SyncWatcherResponse ¶
type SyncWatcherResponse struct { Sync *SyncDetails `protobuf:"bytes,1,opt,name=sync,proto3" json:"sync,omitempty"` // contains filtered or unexported fields }
func (*SyncWatcherResponse) Descriptor
deprecated
func (*SyncWatcherResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncWatcherResponse.ProtoReflect.Descriptor instead.
func (*SyncWatcherResponse) GetSync ¶
func (x *SyncWatcherResponse) GetSync() *SyncDetails
func (*SyncWatcherResponse) ProtoMessage ¶
func (*SyncWatcherResponse) ProtoMessage()
func (*SyncWatcherResponse) ProtoReflect ¶
func (x *SyncWatcherResponse) ProtoReflect() protoreflect.Message
func (*SyncWatcherResponse) Reset ¶
func (x *SyncWatcherResponse) Reset()
func (*SyncWatcherResponse) String ¶
func (x *SyncWatcherResponse) String() string
type UnimplementedWatchServiceServer ¶
type UnimplementedWatchServiceServer struct { }
UnimplementedWatchServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWatchServiceServer) CreateWatcher ¶
func (UnimplementedWatchServiceServer) CreateWatcher(context.Context, *CreateWatcherRequest) (*CreateWatcherResponse, error)
func (UnimplementedWatchServiceServer) DeleteWatcher ¶
func (UnimplementedWatchServiceServer) DeleteWatcher(context.Context, *DeleteWatcherRequest) (*DeleteWatcherResponse, error)
func (UnimplementedWatchServiceServer) GetWatcher ¶
func (UnimplementedWatchServiceServer) GetWatcher(context.Context, *GetWatcherRequest) (*GetWatcherResponse, error)
func (UnimplementedWatchServiceServer) ListWatchers ¶
func (UnimplementedWatchServiceServer) ListWatchers(context.Context, *ListWatchersRequest) (*ListWatchersResponse, error)
func (UnimplementedWatchServiceServer) SyncAll ¶
func (UnimplementedWatchServiceServer) SyncAll(context.Context, *SyncAllRequest) (*SyncAllResponse, error)
func (UnimplementedWatchServiceServer) SyncWatcher ¶
func (UnimplementedWatchServiceServer) SyncWatcher(context.Context, *SyncWatcherRequest) (*SyncWatcherResponse, error)
func (UnimplementedWatchServiceServer) UpdateWatcher ¶
func (UnimplementedWatchServiceServer) UpdateWatcher(context.Context, *UpdateWatcherRequest) (*UpdateWatcherResponse, error)
type UnsafeWatchServiceServer ¶
type UnsafeWatchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWatchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WatchServiceServer will result in compilation errors.
type UpdateWatcherRequest ¶
type UpdateWatcherRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Watch *WatcherDetails `protobuf:"bytes,2,opt,name=watch,proto3" json:"watch,omitempty"` // contains filtered or unexported fields }
func (*UpdateWatcherRequest) Descriptor
deprecated
func (*UpdateWatcherRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateWatcherRequest.ProtoReflect.Descriptor instead.
func (*UpdateWatcherRequest) GetId ¶
func (x *UpdateWatcherRequest) GetId() string
func (*UpdateWatcherRequest) GetWatch ¶
func (x *UpdateWatcherRequest) GetWatch() *WatcherDetails
func (*UpdateWatcherRequest) ProtoMessage ¶
func (*UpdateWatcherRequest) ProtoMessage()
func (*UpdateWatcherRequest) ProtoReflect ¶
func (x *UpdateWatcherRequest) ProtoReflect() protoreflect.Message
func (*UpdateWatcherRequest) Reset ¶
func (x *UpdateWatcherRequest) Reset()
func (*UpdateWatcherRequest) String ¶
func (x *UpdateWatcherRequest) String() string
type UpdateWatcherResponse ¶
type UpdateWatcherResponse struct { Watch *WatcherDetails `protobuf:"bytes,1,opt,name=watch,proto3" json:"watch,omitempty"` // contains filtered or unexported fields }
func (*UpdateWatcherResponse) Descriptor
deprecated
func (*UpdateWatcherResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateWatcherResponse.ProtoReflect.Descriptor instead.
func (*UpdateWatcherResponse) GetWatch ¶
func (x *UpdateWatcherResponse) GetWatch() *WatcherDetails
func (*UpdateWatcherResponse) ProtoMessage ¶
func (*UpdateWatcherResponse) ProtoMessage()
func (*UpdateWatcherResponse) ProtoReflect ¶
func (x *UpdateWatcherResponse) ProtoReflect() protoreflect.Message
func (*UpdateWatcherResponse) Reset ¶
func (x *UpdateWatcherResponse) Reset()
func (*UpdateWatcherResponse) String ¶
func (x *UpdateWatcherResponse) String() string
type WatchServiceClient ¶
type WatchServiceClient interface { // A unary RPC used to fetch a list of existing watches ListWatchers(ctx context.Context, in *ListWatchersRequest, opts ...grpc.CallOption) (*ListWatchersResponse, error) // A unary RPC used to fetch a specific watcherby watch ID GetWatcher(ctx context.Context, in *GetWatcherRequest, opts ...grpc.CallOption) (*GetWatcherResponse, error) // A unary RPC to create a new watch source. CreateWatcher(ctx context.Context, in *CreateWatcherRequest, opts ...grpc.CallOption) (*CreateWatcherResponse, error) // A unary RPC to delete a watch source. DeleteWatcher(ctx context.Context, in *DeleteWatcherRequest, opts ...grpc.CallOption) (*DeleteWatcherResponse, error) // A unary RPC to update an existing watch. UpdateWatcher(ctx context.Context, in *UpdateWatcherRequest, opts ...grpc.CallOption) (*UpdateWatcherResponse, error) // A unary RPC to update an existing watch. SyncAll(ctx context.Context, in *SyncAllRequest, opts ...grpc.CallOption) (*SyncAllResponse, error) // A unary RPC to update an existing watch. SyncWatcher(ctx context.Context, in *SyncWatcherRequest, opts ...grpc.CallOption) (*SyncWatcherResponse, error) }
WatchServiceClient is the client API for WatchService 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 NewWatchServiceClient ¶
func NewWatchServiceClient(cc grpc.ClientConnInterface) WatchServiceClient
type WatchServiceServer ¶
type WatchServiceServer interface { // A unary RPC used to fetch a list of existing watches ListWatchers(context.Context, *ListWatchersRequest) (*ListWatchersResponse, error) // A unary RPC used to fetch a specific watcherby watch ID GetWatcher(context.Context, *GetWatcherRequest) (*GetWatcherResponse, error) // A unary RPC to create a new watch source. CreateWatcher(context.Context, *CreateWatcherRequest) (*CreateWatcherResponse, error) // A unary RPC to delete a watch source. DeleteWatcher(context.Context, *DeleteWatcherRequest) (*DeleteWatcherResponse, error) // A unary RPC to update an existing watch. UpdateWatcher(context.Context, *UpdateWatcherRequest) (*UpdateWatcherResponse, error) // A unary RPC to update an existing watch. SyncAll(context.Context, *SyncAllRequest) (*SyncAllResponse, error) // A unary RPC to update an existing watch. SyncWatcher(context.Context, *SyncWatcherRequest) (*SyncWatcherResponse, error) // contains filtered or unexported methods }
WatchServiceServer is the server API for WatchService service. All implementations must embed UnimplementedWatchServiceServer for forward compatibility
type WatcherDetails ¶
type WatcherDetails struct { ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` Spec *Spec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` Status *SyncStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
WatchDetails contains the set of information for a given watch.
func (*WatcherDetails) Descriptor
deprecated
func (*WatcherDetails) Descriptor() ([]byte, []int)
Deprecated: Use WatcherDetails.ProtoReflect.Descriptor instead.
func (*WatcherDetails) GetApiVersion ¶
func (x *WatcherDetails) GetApiVersion() string
func (*WatcherDetails) GetMetadata ¶
func (x *WatcherDetails) GetMetadata() *Metadata
func (*WatcherDetails) GetSpec ¶
func (x *WatcherDetails) GetSpec() *Spec
func (*WatcherDetails) GetStatus ¶
func (x *WatcherDetails) GetStatus() *SyncStatus
func (*WatcherDetails) ProtoMessage ¶
func (*WatcherDetails) ProtoMessage()
func (*WatcherDetails) ProtoReflect ¶
func (x *WatcherDetails) ProtoReflect() protoreflect.Message
func (*WatcherDetails) Reset ¶
func (x *WatcherDetails) Reset()
func (*WatcherDetails) String ¶
func (x *WatcherDetails) String() string