Documentation ¶
Index ¶
- Variables
- func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
- type DeployRequest
- func (*DeployRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeployRequest) GetDevelopmentMode() bool
- func (x *DeployRequest) GetParameters() []*Parameter
- func (x *DeployRequest) GetSubstreamsPackage() *v1.Package
- func (*DeployRequest) ProtoMessage()
- func (x *DeployRequest) ProtoReflect() protoreflect.Message
- func (x *DeployRequest) Reset()
- func (x *DeployRequest) String() string
- type DeployResponse
- func (*DeployResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeployResponse) GetDeploymentId() string
- func (x *DeployResponse) GetMotd() string
- func (x *DeployResponse) GetReason() string
- func (x *DeployResponse) GetServices() map[string]string
- func (x *DeployResponse) GetStatus() DeploymentStatus
- func (*DeployResponse) ProtoMessage()
- func (x *DeployResponse) ProtoReflect() protoreflect.Message
- func (x *DeployResponse) Reset()
- func (x *DeployResponse) String() string
- type DeploymentStatus
- func (DeploymentStatus) Descriptor() protoreflect.EnumDescriptor
- func (x DeploymentStatus) Enum() *DeploymentStatus
- func (DeploymentStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeploymentStatus) Number() protoreflect.EnumNumber
- func (x DeploymentStatus) String() string
- func (DeploymentStatus) Type() protoreflect.EnumType
- type DeploymentWithStatus
- func (*DeploymentWithStatus) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentWithStatus) GetId() string
- func (x *DeploymentWithStatus) GetMotd() string
- func (x *DeploymentWithStatus) GetPackageInfo() *PackageInfo
- func (x *DeploymentWithStatus) GetProgress() *SinkProgress
- func (x *DeploymentWithStatus) GetReason() string
- func (x *DeploymentWithStatus) GetStatus() DeploymentStatus
- func (*DeploymentWithStatus) ProtoMessage()
- func (x *DeploymentWithStatus) ProtoReflect() protoreflect.Message
- func (x *DeploymentWithStatus) Reset()
- func (x *DeploymentWithStatus) String() string
- type InfoRequest
- type InfoResponse
- func (*InfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InfoResponse) GetMotd() string
- func (x *InfoResponse) GetPackageInfo() *PackageInfo
- func (x *InfoResponse) GetProgress() *SinkProgress
- func (x *InfoResponse) GetReason() string
- func (x *InfoResponse) GetServices() map[string]string
- func (x *InfoResponse) GetStatus() DeploymentStatus
- func (*InfoResponse) ProtoMessage()
- func (x *InfoResponse) ProtoReflect() protoreflect.Message
- func (x *InfoResponse) Reset()
- func (x *InfoResponse) String() string
- type ListRequest
- type ListResponse
- type PackageInfo
- func (*PackageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PackageInfo) GetName() string
- func (x *PackageInfo) GetOutputModuleHash() string
- func (x *PackageInfo) GetOutputModuleName() string
- func (x *PackageInfo) GetVersion() string
- func (*PackageInfo) ProtoMessage()
- func (x *PackageInfo) ProtoReflect() protoreflect.Message
- func (x *PackageInfo) Reset()
- func (x *PackageInfo) String() string
- type Parameter
- type PauseRequest
- type PauseResponse
- func (*PauseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PauseResponse) GetNewStatus() DeploymentStatus
- func (x *PauseResponse) GetPreviousStatus() DeploymentStatus
- func (*PauseResponse) ProtoMessage()
- func (x *PauseResponse) ProtoReflect() protoreflect.Message
- func (x *PauseResponse) Reset()
- func (x *PauseResponse) String() string
- type ProviderClient
- type ProviderServer
- type RemoveRequest
- type RemoveResponse
- type ResumeRequest
- type ResumeResponse
- func (*ResumeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResumeResponse) GetNewStatus() DeploymentStatus
- func (x *ResumeResponse) GetPreviousStatus() DeploymentStatus
- func (*ResumeResponse) ProtoMessage()
- func (x *ResumeResponse) ProtoReflect() protoreflect.Message
- func (x *ResumeResponse) Reset()
- func (x *ResumeResponse) String() string
- type SinkProgress
- type StopRequest
- type StopResponse
- func (*StopResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StopResponse) GetNewStatus() DeploymentStatus
- func (x *StopResponse) GetPreviousStatus() DeploymentStatus
- func (*StopResponse) ProtoMessage()
- func (x *StopResponse) ProtoReflect() protoreflect.Message
- func (x *StopResponse) Reset()
- func (x *StopResponse) String() string
- type UnimplementedProviderServer
- func (UnimplementedProviderServer) Deploy(context.Context, *DeployRequest) (*DeployResponse, error)
- func (UnimplementedProviderServer) Info(context.Context, *InfoRequest) (*InfoResponse, error)
- func (UnimplementedProviderServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedProviderServer) Pause(context.Context, *PauseRequest) (*PauseResponse, error)
- func (UnimplementedProviderServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
- func (UnimplementedProviderServer) Resume(context.Context, *ResumeRequest) (*ResumeResponse, error)
- func (UnimplementedProviderServer) Stop(context.Context, *StopRequest) (*StopResponse, error)
- func (UnimplementedProviderServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeProviderServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetDeploymentId() string
- func (x *UpdateRequest) GetReset_() bool
- func (x *UpdateRequest) GetSubstreamsPackage() *v1.Package
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResponse) GetMotd() string
- func (x *UpdateResponse) GetReason() string
- func (x *UpdateResponse) GetServices() map[string]string
- func (x *UpdateResponse) GetStatus() DeploymentStatus
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( DeploymentStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "RUNNING", 2: "FAILING", 3: "PAUSED", 4: "STOPPED", 5: "STARTING", 6: "PAUSING", 7: "STOPPING", 8: "REMOVING", 9: "RESUMING", } DeploymentStatus_value = map[string]int32{ "UNKNOWN": 0, "RUNNING": 1, "FAILING": 2, "PAUSED": 3, "STOPPED": 4, "STARTING": 5, "PAUSING": 6, "STOPPING": 7, "REMOVING": 8, "RESUMING": 9, } )
Enum value maps for DeploymentStatus.
var File_sf_substreams_sink_service_v1_service_proto protoreflect.FileDescriptor
var Provider_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sf.substreams.sink.service.v1.Provider", HandlerType: (*ProviderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Deploy", Handler: _Provider_Deploy_Handler, }, { MethodName: "Update", Handler: _Provider_Update_Handler, }, { MethodName: "Info", Handler: _Provider_Info_Handler, }, { MethodName: "List", Handler: _Provider_List_Handler, }, { MethodName: "Pause", Handler: _Provider_Pause_Handler, }, { MethodName: "Stop", Handler: _Provider_Stop_Handler, }, { MethodName: "Resume", Handler: _Provider_Resume_Handler, }, { MethodName: "Remove", Handler: _Provider_Remove_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sf/substreams/sink/service/v1/service.proto", }
Provider_ServiceDesc is the grpc.ServiceDesc for Provider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProviderServer ¶
func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
Types ¶
type DeployRequest ¶
type DeployRequest struct { SubstreamsPackage *v1.Package `protobuf:"bytes,1,opt,name=substreams_package,json=substreamsPackage,proto3" json:"substreams_package,omitempty"` DevelopmentMode bool `protobuf:"varint,2,opt,name=development_mode,json=developmentMode,proto3" json:"development_mode,omitempty"` Parameters []*Parameter `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"` // contains filtered or unexported fields }
func (*DeployRequest) Descriptor
deprecated
func (*DeployRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeployRequest.ProtoReflect.Descriptor instead.
func (*DeployRequest) GetDevelopmentMode ¶ added in v1.1.21
func (x *DeployRequest) GetDevelopmentMode() bool
func (*DeployRequest) GetParameters ¶ added in v1.1.21
func (x *DeployRequest) GetParameters() []*Parameter
func (*DeployRequest) GetSubstreamsPackage ¶
func (x *DeployRequest) GetSubstreamsPackage() *v1.Package
func (*DeployRequest) ProtoMessage ¶
func (*DeployRequest) ProtoMessage()
func (*DeployRequest) ProtoReflect ¶
func (x *DeployRequest) ProtoReflect() protoreflect.Message
func (*DeployRequest) Reset ¶
func (x *DeployRequest) Reset()
func (*DeployRequest) String ¶
func (x *DeployRequest) String() string
type DeployResponse ¶
type DeployResponse struct { Status DeploymentStatus `protobuf:"varint,1,opt,name=status,proto3,enum=sf.substreams.sink.service.v1.DeploymentStatus" json:"status,omitempty"` // deployment_id is a short name (max 8 characters) that uniquely identifies your deployment DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` Services map[string]string `` /* 157-byte string literal not displayed */ Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` Motd string `protobuf:"bytes,5,opt,name=motd,proto3" json:"motd,omitempty"` // contains filtered or unexported fields }
func (*DeployResponse) Descriptor
deprecated
func (*DeployResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeployResponse.ProtoReflect.Descriptor instead.
func (*DeployResponse) GetDeploymentId ¶
func (x *DeployResponse) GetDeploymentId() string
func (*DeployResponse) GetMotd ¶ added in v1.1.21
func (x *DeployResponse) GetMotd() string
func (*DeployResponse) GetReason ¶
func (x *DeployResponse) GetReason() string
func (*DeployResponse) GetServices ¶
func (x *DeployResponse) GetServices() map[string]string
func (*DeployResponse) GetStatus ¶
func (x *DeployResponse) GetStatus() DeploymentStatus
func (*DeployResponse) ProtoMessage ¶
func (*DeployResponse) ProtoMessage()
func (*DeployResponse) ProtoReflect ¶
func (x *DeployResponse) ProtoReflect() protoreflect.Message
func (*DeployResponse) Reset ¶
func (x *DeployResponse) Reset()
func (*DeployResponse) String ¶
func (x *DeployResponse) String() string
type DeploymentStatus ¶
type DeploymentStatus int32
const ( DeploymentStatus_UNKNOWN DeploymentStatus = 0 DeploymentStatus_RUNNING DeploymentStatus = 1 DeploymentStatus_FAILING DeploymentStatus = 2 DeploymentStatus_PAUSED DeploymentStatus = 3 DeploymentStatus_STOPPED DeploymentStatus = 4 DeploymentStatus_STARTING DeploymentStatus = 5 DeploymentStatus_PAUSING DeploymentStatus = 6 DeploymentStatus_STOPPING DeploymentStatus = 7 DeploymentStatus_REMOVING DeploymentStatus = 8 DeploymentStatus_RESUMING DeploymentStatus = 9 )
func (DeploymentStatus) Descriptor ¶
func (DeploymentStatus) Descriptor() protoreflect.EnumDescriptor
func (DeploymentStatus) Enum ¶
func (x DeploymentStatus) Enum() *DeploymentStatus
func (DeploymentStatus) EnumDescriptor
deprecated
func (DeploymentStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeploymentStatus.Descriptor instead.
func (DeploymentStatus) Number ¶
func (x DeploymentStatus) Number() protoreflect.EnumNumber
func (DeploymentStatus) String ¶
func (x DeploymentStatus) String() string
func (DeploymentStatus) Type ¶
func (DeploymentStatus) Type() protoreflect.EnumType
type DeploymentWithStatus ¶
type DeploymentWithStatus struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status DeploymentStatus `protobuf:"varint,2,opt,name=status,proto3,enum=sf.substreams.sink.service.v1.DeploymentStatus" json:"status,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` PackageInfo *PackageInfo `protobuf:"bytes,4,opt,name=package_info,json=packageInfo,proto3" json:"package_info,omitempty"` Progress *SinkProgress `protobuf:"bytes,5,opt,name=progress,proto3" json:"progress,omitempty"` Motd string `protobuf:"bytes,6,opt,name=motd,proto3" json:"motd,omitempty"` // contains filtered or unexported fields }
func (*DeploymentWithStatus) Descriptor
deprecated
func (*DeploymentWithStatus) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentWithStatus.ProtoReflect.Descriptor instead.
func (*DeploymentWithStatus) GetId ¶
func (x *DeploymentWithStatus) GetId() string
func (*DeploymentWithStatus) GetMotd ¶ added in v1.1.21
func (x *DeploymentWithStatus) GetMotd() string
func (*DeploymentWithStatus) GetPackageInfo ¶
func (x *DeploymentWithStatus) GetPackageInfo() *PackageInfo
func (*DeploymentWithStatus) GetProgress ¶
func (x *DeploymentWithStatus) GetProgress() *SinkProgress
func (*DeploymentWithStatus) GetReason ¶
func (x *DeploymentWithStatus) GetReason() string
func (*DeploymentWithStatus) GetStatus ¶
func (x *DeploymentWithStatus) GetStatus() DeploymentStatus
func (*DeploymentWithStatus) ProtoMessage ¶
func (*DeploymentWithStatus) ProtoMessage()
func (*DeploymentWithStatus) ProtoReflect ¶
func (x *DeploymentWithStatus) ProtoReflect() protoreflect.Message
func (*DeploymentWithStatus) Reset ¶
func (x *DeploymentWithStatus) Reset()
func (*DeploymentWithStatus) String ¶
func (x *DeploymentWithStatus) String() string
type InfoRequest ¶
type InfoRequest struct { DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` // contains filtered or unexported fields }
func (*InfoRequest) Descriptor
deprecated
func (*InfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.
func (*InfoRequest) GetDeploymentId ¶
func (x *InfoRequest) GetDeploymentId() string
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) ProtoReflect ¶
func (x *InfoRequest) ProtoReflect() protoreflect.Message
func (*InfoRequest) Reset ¶
func (x *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (x *InfoRequest) String() string
type InfoResponse ¶
type InfoResponse struct { Status DeploymentStatus `protobuf:"varint,1,opt,name=status,proto3,enum=sf.substreams.sink.service.v1.DeploymentStatus" json:"status,omitempty"` Services map[string]string `` /* 157-byte string literal not displayed */ Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` PackageInfo *PackageInfo `protobuf:"bytes,4,opt,name=package_info,json=packageInfo,proto3" json:"package_info,omitempty"` Progress *SinkProgress `protobuf:"bytes,5,opt,name=progress,proto3" json:"progress,omitempty"` Motd string `protobuf:"bytes,6,opt,name=motd,proto3" json:"motd,omitempty"` // contains filtered or unexported fields }
func (*InfoResponse) Descriptor
deprecated
func (*InfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
func (*InfoResponse) GetMotd ¶ added in v1.1.21
func (x *InfoResponse) GetMotd() string
func (*InfoResponse) GetPackageInfo ¶
func (x *InfoResponse) GetPackageInfo() *PackageInfo
func (*InfoResponse) GetProgress ¶
func (x *InfoResponse) GetProgress() *SinkProgress
func (*InfoResponse) GetReason ¶
func (x *InfoResponse) GetReason() string
func (*InfoResponse) GetServices ¶
func (x *InfoResponse) GetServices() map[string]string
func (*InfoResponse) GetStatus ¶
func (x *InfoResponse) GetStatus() DeploymentStatus
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) ProtoReflect ¶
func (x *InfoResponse) ProtoReflect() protoreflect.Message
func (*InfoResponse) Reset ¶
func (x *InfoResponse) Reset()
func (*InfoResponse) String ¶
func (x *InfoResponse) String() string
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Deployments []*DeploymentWithStatus `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetDeployments ¶
func (x *ListResponse) GetDeployments() []*DeploymentWithStatus
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type PackageInfo ¶
type PackageInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` OutputModuleName string `protobuf:"bytes,3,opt,name=output_module_name,json=outputModuleName,proto3" json:"output_module_name,omitempty"` OutputModuleHash string `protobuf:"bytes,4,opt,name=output_module_hash,json=outputModuleHash,proto3" json:"output_module_hash,omitempty"` // contains filtered or unexported fields }
func (*PackageInfo) Descriptor
deprecated
func (*PackageInfo) Descriptor() ([]byte, []int)
Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead.
func (*PackageInfo) GetName ¶
func (x *PackageInfo) GetName() string
func (*PackageInfo) GetOutputModuleHash ¶
func (x *PackageInfo) GetOutputModuleHash() string
func (*PackageInfo) GetOutputModuleName ¶
func (x *PackageInfo) GetOutputModuleName() string
func (*PackageInfo) GetVersion ¶
func (x *PackageInfo) GetVersion() string
func (*PackageInfo) ProtoMessage ¶
func (*PackageInfo) ProtoMessage()
func (*PackageInfo) ProtoReflect ¶
func (x *PackageInfo) ProtoReflect() protoreflect.Message
func (*PackageInfo) Reset ¶
func (x *PackageInfo) Reset()
func (*PackageInfo) String ¶
func (x *PackageInfo) String() string
type Parameter ¶ added in v1.1.21
type Parameter struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Parameter) Descriptor
deprecated
added in
v1.1.21
func (*Parameter) ProtoMessage ¶ added in v1.1.21
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶ added in v1.1.21
func (x *Parameter) ProtoReflect() protoreflect.Message
type PauseRequest ¶
type PauseRequest struct { DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` // contains filtered or unexported fields }
func (*PauseRequest) Descriptor
deprecated
func (*PauseRequest) Descriptor() ([]byte, []int)
Deprecated: Use PauseRequest.ProtoReflect.Descriptor instead.
func (*PauseRequest) GetDeploymentId ¶
func (x *PauseRequest) GetDeploymentId() string
func (*PauseRequest) ProtoMessage ¶
func (*PauseRequest) ProtoMessage()
func (*PauseRequest) ProtoReflect ¶
func (x *PauseRequest) ProtoReflect() protoreflect.Message
func (*PauseRequest) Reset ¶
func (x *PauseRequest) Reset()
func (*PauseRequest) String ¶
func (x *PauseRequest) String() string
type PauseResponse ¶
type PauseResponse struct { PreviousStatus DeploymentStatus `` /* 156-byte string literal not displayed */ NewStatus DeploymentStatus `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PauseResponse) Descriptor
deprecated
func (*PauseResponse) Descriptor() ([]byte, []int)
Deprecated: Use PauseResponse.ProtoReflect.Descriptor instead.
func (*PauseResponse) GetNewStatus ¶
func (x *PauseResponse) GetNewStatus() DeploymentStatus
func (*PauseResponse) GetPreviousStatus ¶
func (x *PauseResponse) GetPreviousStatus() DeploymentStatus
func (*PauseResponse) ProtoMessage ¶
func (*PauseResponse) ProtoMessage()
func (*PauseResponse) ProtoReflect ¶
func (x *PauseResponse) ProtoReflect() protoreflect.Message
func (*PauseResponse) Reset ¶
func (x *PauseResponse) Reset()
func (*PauseResponse) String ¶
func (x *PauseResponse) String() string
type ProviderClient ¶
type ProviderClient interface { Deploy(ctx context.Context, in *DeployRequest, opts ...grpc.CallOption) (*DeployResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Pause(ctx context.Context, in *PauseRequest, opts ...grpc.CallOption) (*PauseResponse, error) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) Resume(ctx context.Context, in *ResumeRequest, opts ...grpc.CallOption) (*ResumeResponse, error) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) }
ProviderClient is the client API for Provider 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 NewProviderClient ¶
func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient
type ProviderServer ¶
type ProviderServer interface { Deploy(context.Context, *DeployRequest) (*DeployResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Info(context.Context, *InfoRequest) (*InfoResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Pause(context.Context, *PauseRequest) (*PauseResponse, error) Stop(context.Context, *StopRequest) (*StopResponse, error) Resume(context.Context, *ResumeRequest) (*ResumeResponse, error) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) }
ProviderServer is the server API for Provider service. All implementations should embed UnimplementedProviderServer for forward compatibility
type RemoveRequest ¶
type RemoveRequest struct { DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveRequest) Descriptor
deprecated
func (*RemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.
func (*RemoveRequest) GetDeploymentId ¶
func (x *RemoveRequest) GetDeploymentId() string
func (*RemoveRequest) ProtoMessage ¶
func (*RemoveRequest) ProtoMessage()
func (*RemoveRequest) ProtoReflect ¶
func (x *RemoveRequest) ProtoReflect() protoreflect.Message
func (*RemoveRequest) Reset ¶
func (x *RemoveRequest) Reset()
func (*RemoveRequest) String ¶
func (x *RemoveRequest) String() string
type RemoveResponse ¶
type RemoveResponse struct { PreviousStatus DeploymentStatus `` /* 156-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RemoveResponse) Descriptor
deprecated
func (*RemoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.
func (*RemoveResponse) GetPreviousStatus ¶
func (x *RemoveResponse) GetPreviousStatus() DeploymentStatus
func (*RemoveResponse) ProtoMessage ¶
func (*RemoveResponse) ProtoMessage()
func (*RemoveResponse) ProtoReflect ¶
func (x *RemoveResponse) ProtoReflect() protoreflect.Message
func (*RemoveResponse) Reset ¶
func (x *RemoveResponse) Reset()
func (*RemoveResponse) String ¶
func (x *RemoveResponse) String() string
type ResumeRequest ¶
type ResumeRequest struct { DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` // contains filtered or unexported fields }
func (*ResumeRequest) Descriptor
deprecated
func (*ResumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResumeRequest.ProtoReflect.Descriptor instead.
func (*ResumeRequest) GetDeploymentId ¶
func (x *ResumeRequest) GetDeploymentId() string
func (*ResumeRequest) ProtoMessage ¶
func (*ResumeRequest) ProtoMessage()
func (*ResumeRequest) ProtoReflect ¶
func (x *ResumeRequest) ProtoReflect() protoreflect.Message
func (*ResumeRequest) Reset ¶
func (x *ResumeRequest) Reset()
func (*ResumeRequest) String ¶
func (x *ResumeRequest) String() string
type ResumeResponse ¶
type ResumeResponse struct { PreviousStatus DeploymentStatus `` /* 156-byte string literal not displayed */ NewStatus DeploymentStatus `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ResumeResponse) Descriptor
deprecated
func (*ResumeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResumeResponse.ProtoReflect.Descriptor instead.
func (*ResumeResponse) GetNewStatus ¶
func (x *ResumeResponse) GetNewStatus() DeploymentStatus
func (*ResumeResponse) GetPreviousStatus ¶
func (x *ResumeResponse) GetPreviousStatus() DeploymentStatus
func (*ResumeResponse) ProtoMessage ¶
func (*ResumeResponse) ProtoMessage()
func (*ResumeResponse) ProtoReflect ¶
func (x *ResumeResponse) ProtoReflect() protoreflect.Message
func (*ResumeResponse) Reset ¶
func (x *ResumeResponse) Reset()
func (*ResumeResponse) String ¶
func (x *ResumeResponse) String() string
type SinkProgress ¶
type SinkProgress struct { LastProcessedBlock uint64 `protobuf:"varint,1,opt,name=last_processed_block,json=lastProcessedBlock,proto3" json:"last_processed_block,omitempty"` // contains filtered or unexported fields }
func (*SinkProgress) Descriptor
deprecated
func (*SinkProgress) Descriptor() ([]byte, []int)
Deprecated: Use SinkProgress.ProtoReflect.Descriptor instead.
func (*SinkProgress) GetLastProcessedBlock ¶
func (x *SinkProgress) GetLastProcessedBlock() uint64
func (*SinkProgress) ProtoMessage ¶
func (*SinkProgress) ProtoMessage()
func (*SinkProgress) ProtoReflect ¶
func (x *SinkProgress) ProtoReflect() protoreflect.Message
func (*SinkProgress) Reset ¶
func (x *SinkProgress) Reset()
func (*SinkProgress) String ¶
func (x *SinkProgress) String() string
type StopRequest ¶
type StopRequest struct { DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` // contains filtered or unexported fields }
func (*StopRequest) Descriptor
deprecated
func (*StopRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.
func (*StopRequest) GetDeploymentId ¶
func (x *StopRequest) GetDeploymentId() string
func (*StopRequest) ProtoMessage ¶
func (*StopRequest) ProtoMessage()
func (*StopRequest) ProtoReflect ¶
func (x *StopRequest) ProtoReflect() protoreflect.Message
func (*StopRequest) Reset ¶
func (x *StopRequest) Reset()
func (*StopRequest) String ¶
func (x *StopRequest) String() string
type StopResponse ¶
type StopResponse struct { PreviousStatus DeploymentStatus `` /* 156-byte string literal not displayed */ NewStatus DeploymentStatus `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
func (*StopResponse) Descriptor
deprecated
func (*StopResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.
func (*StopResponse) GetNewStatus ¶
func (x *StopResponse) GetNewStatus() DeploymentStatus
func (*StopResponse) GetPreviousStatus ¶
func (x *StopResponse) GetPreviousStatus() DeploymentStatus
func (*StopResponse) ProtoMessage ¶
func (*StopResponse) ProtoMessage()
func (*StopResponse) ProtoReflect ¶
func (x *StopResponse) ProtoReflect() protoreflect.Message
func (*StopResponse) Reset ¶
func (x *StopResponse) Reset()
func (*StopResponse) String ¶
func (x *StopResponse) String() string
type UnimplementedProviderServer ¶
type UnimplementedProviderServer struct { }
UnimplementedProviderServer should be embedded to have forward compatible implementations.
func (UnimplementedProviderServer) Deploy ¶
func (UnimplementedProviderServer) Deploy(context.Context, *DeployRequest) (*DeployResponse, error)
func (UnimplementedProviderServer) Info ¶
func (UnimplementedProviderServer) Info(context.Context, *InfoRequest) (*InfoResponse, error)
func (UnimplementedProviderServer) List ¶
func (UnimplementedProviderServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedProviderServer) Pause ¶
func (UnimplementedProviderServer) Pause(context.Context, *PauseRequest) (*PauseResponse, error)
func (UnimplementedProviderServer) Remove ¶
func (UnimplementedProviderServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
func (UnimplementedProviderServer) Resume ¶
func (UnimplementedProviderServer) Resume(context.Context, *ResumeRequest) (*ResumeResponse, error)
func (UnimplementedProviderServer) Stop ¶
func (UnimplementedProviderServer) Stop(context.Context, *StopRequest) (*StopResponse, error)
func (UnimplementedProviderServer) Update ¶
func (UnimplementedProviderServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeProviderServer ¶
type UnsafeProviderServer interface {
// contains filtered or unexported methods
}
UnsafeProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { SubstreamsPackage *v1.Package `protobuf:"bytes,1,opt,name=substreams_package,json=substreamsPackage,proto3" json:"substreams_package,omitempty"` DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` Reset_ bool `protobuf:"varint,3,opt,name=reset,proto3" json:"reset,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetDeploymentId ¶
func (x *UpdateRequest) GetDeploymentId() string
func (*UpdateRequest) GetReset_ ¶
func (x *UpdateRequest) GetReset_() bool
func (*UpdateRequest) GetSubstreamsPackage ¶
func (x *UpdateRequest) GetSubstreamsPackage() *v1.Package
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { Status DeploymentStatus `protobuf:"varint,1,opt,name=status,proto3,enum=sf.substreams.sink.service.v1.DeploymentStatus" json:"status,omitempty"` Services map[string]string `` /* 157-byte string literal not displayed */ Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` Motd string `protobuf:"bytes,4,opt,name=motd,proto3" json:"motd,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetMotd ¶ added in v1.1.21
func (x *UpdateResponse) GetMotd() string
func (*UpdateResponse) GetReason ¶
func (x *UpdateResponse) GetReason() string
func (*UpdateResponse) GetServices ¶
func (x *UpdateResponse) GetServices() map[string]string
func (*UpdateResponse) GetStatus ¶
func (x *UpdateResponse) GetStatus() DeploymentStatus
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string