Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBackrestSyncServiceServer(s grpc.ServiceRegistrar, srv BackrestSyncServiceServer)
- func RegisterBackrestSyncStateServiceServer(s grpc.ServiceRegistrar, srv BackrestSyncStateServiceServer)
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetInstanceId() *v1.SignedMessage
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthorizationToken
- func (*AuthorizationToken) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizationToken) GetInstanceId() *v1.SignedMessage
- func (x *AuthorizationToken) GetPublicKey() *v1.PublicKey
- func (*AuthorizationToken) ProtoMessage()
- func (x *AuthorizationToken) ProtoReflect() protoreflect.Message
- func (x *AuthorizationToken) Reset()
- func (x *AuthorizationToken) String() string
- type BackrestSyncServiceClient
- type BackrestSyncServiceServer
- type BackrestSyncService_SyncClient
- type BackrestSyncService_SyncServer
- type BackrestSyncStateServiceClient
- type BackrestSyncStateServiceServer
- type BackrestSyncStateService_GetPeerSyncStatesStreamClient
- type BackrestSyncStateService_GetPeerSyncStatesStreamServer
- type ConnectionState
- func (ConnectionState) Descriptor() protoreflect.EnumDescriptor
- func (x ConnectionState) Enum() *ConnectionState
- func (ConnectionState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConnectionState) Number() protoreflect.EnumNumber
- func (x ConnectionState) String() string
- func (ConnectionState) Type() protoreflect.EnumType
- type GetOperationMetadataResponse
- func (*GetOperationMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOperationMetadataResponse) GetModnos() []int64
- func (x *GetOperationMetadataResponse) GetOpIds() []int64
- func (*GetOperationMetadataResponse) ProtoMessage()
- func (x *GetOperationMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *GetOperationMetadataResponse) Reset()
- func (x *GetOperationMetadataResponse) String() string
- type LogDataEntry
- func (*LogDataEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LogDataEntry) GetChunk() []byte
- func (x *LogDataEntry) GetExpirationTsUnix() int64
- func (x *LogDataEntry) GetLogId() string
- func (x *LogDataEntry) GetOwnerOpid() int64
- func (*LogDataEntry) ProtoMessage()
- func (x *LogDataEntry) ProtoReflect() protoreflect.Message
- func (x *LogDataEntry) Reset()
- func (x *LogDataEntry) String() string
- type PeerState
- func (*PeerState) Descriptor() ([]byte, []int)deprecated
- func (x *PeerState) GetKnownPlans() []*PlanMetadata
- func (x *PeerState) GetKnownRepos() []*RepoMetadata
- func (x *PeerState) GetLastHeartbeatMillis() int64
- func (x *PeerState) GetPeerInstanceId() string
- func (x *PeerState) GetPeerKeyid() string
- func (x *PeerState) GetRemoteConfig() *RemoteConfig
- func (x *PeerState) GetState() ConnectionState
- func (x *PeerState) GetStatusMessage() string
- func (*PeerState) ProtoMessage()
- func (x *PeerState) ProtoReflect() protoreflect.Message
- func (x *PeerState) Reset()
- func (x *PeerState) String() string
- type PlanMetadata
- type RemoteConfig
- func (*RemoteConfig) Descriptor() ([]byte, []int)deprecated
- func (x *RemoteConfig) GetModno() int32
- func (x *RemoteConfig) GetPlans() []*v1.Plan
- func (x *RemoteConfig) GetRepos() []*v1.Repo
- func (x *RemoteConfig) GetVersion() int32
- func (*RemoteConfig) ProtoMessage()
- func (x *RemoteConfig) ProtoReflect() protoreflect.Message
- func (x *RemoteConfig) Reset()
- func (x *RemoteConfig) String() string
- type RepoMetadata
- func (*RepoMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RepoMetadata) GetGuid() string
- func (x *RepoMetadata) GetId() string
- func (*RepoMetadata) ProtoMessage()
- func (x *RepoMetadata) ProtoReflect() protoreflect.Message
- func (x *RepoMetadata) Reset()
- func (x *RepoMetadata) String() string
- type SetAvailableResourcesRequest
- func (*SetAvailableResourcesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetAvailableResourcesRequest) GetPlans() []*RepoMetadata
- func (x *SetAvailableResourcesRequest) GetRepos() []*PlanMetadata
- func (*SetAvailableResourcesRequest) ProtoMessage()
- func (x *SetAvailableResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *SetAvailableResourcesRequest) Reset()
- func (x *SetAvailableResourcesRequest) String() string
- type SetConfigRequest
- func (*SetConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetConfigRequest) GetPlans() []*v1.Plan
- func (x *SetConfigRequest) GetPlansToDelete() []string
- func (x *SetConfigRequest) GetRepos() []*v1.Repo
- func (x *SetConfigRequest) GetReposToDelete() []string
- func (*SetConfigRequest) ProtoMessage()
- func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
- func (x *SetConfigRequest) Reset()
- func (x *SetConfigRequest) String() string
- type SetRemoteClientConfigRequest
- func (*SetRemoteClientConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRemoteClientConfigRequest) GetPeerKeyid() string
- func (x *SetRemoteClientConfigRequest) GetPlans() []*v1.Plan
- func (x *SetRemoteClientConfigRequest) GetPlansToDelete() []string
- func (x *SetRemoteClientConfigRequest) GetRepos() []*v1.Repo
- func (x *SetRemoteClientConfigRequest) GetReposToDelete() []string
- func (*SetRemoteClientConfigRequest) ProtoMessage()
- func (x *SetRemoteClientConfigRequest) ProtoReflect() protoreflect.Message
- func (x *SetRemoteClientConfigRequest) Reset()
- func (x *SetRemoteClientConfigRequest) String() string
- type SetRemoteClientConfigResponse
- func (*SetRemoteClientConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (*SetRemoteClientConfigResponse) ProtoMessage()
- func (x *SetRemoteClientConfigResponse) ProtoReflect() protoreflect.Message
- func (x *SetRemoteClientConfigResponse) Reset()
- func (x *SetRemoteClientConfigResponse) String() string
- type SyncStateStreamRequest
- func (*SyncStateStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStateStreamRequest) GetSubscribe() bool
- func (*SyncStateStreamRequest) ProtoMessage()
- func (x *SyncStateStreamRequest) ProtoReflect() protoreflect.Message
- func (x *SyncStateStreamRequest) Reset()
- func (x *SyncStateStreamRequest) String() string
- type SyncStreamItem
- func (*SyncStreamItem) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem) GetAction() isSyncStreamItem_Action
- func (x *SyncStreamItem) GetEncrypted() *SyncStreamItem_SyncActionEncrypted
- func (x *SyncStreamItem) GetEstablishSharedSecret() *SyncStreamItem_SyncEstablishSharedSecret
- func (x *SyncStreamItem) GetHandshake() *SyncStreamItem_SyncActionHandshake
- func (x *SyncStreamItem) GetHeartbeat() *SyncStreamItem_SyncActionHeartbeat
- func (x *SyncStreamItem) GetOperationManifest() *SyncStreamItem_SyncActionOperationManifest
- func (x *SyncStreamItem) GetReceiveConfig() *SyncStreamItem_SyncActionReceiveConfig
- func (x *SyncStreamItem) GetReceiveLogData() *SyncStreamItem_SyncActionReceiveLogData
- func (x *SyncStreamItem) GetReceiveOperations() *SyncStreamItem_SyncActionReceiveOperations
- func (x *SyncStreamItem) GetReceiveResources() *SyncStreamItem_SyncActionReceiveResources
- func (x *SyncStreamItem) GetRequestLog() *SyncStreamItem_SyncActionRequestLog
- func (x *SyncStreamItem) GetRequestOperationData() *SyncStreamItem_SyncActionRequestOperationData
- func (x *SyncStreamItem) GetRequestResources() *SyncStreamItem_SyncActionRequestResources
- func (x *SyncStreamItem) GetSetConfig() *SyncStreamItem_SyncActionSetConfig
- func (x *SyncStreamItem) GetSignedMessage() *v1.SignedMessage
- func (x *SyncStreamItem) GetThrottle() *SyncStreamItem_SyncActionThrottle
- func (*SyncStreamItem) ProtoMessage()
- func (x *SyncStreamItem) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem) Reset()
- func (x *SyncStreamItem) String() string
- type SyncStreamItem_Encrypted
- type SyncStreamItem_EstablishSharedSecret
- type SyncStreamItem_Handshake
- type SyncStreamItem_Heartbeat
- type SyncStreamItem_OperationManifest
- type SyncStreamItem_ReceiveConfig
- type SyncStreamItem_ReceiveLogData
- type SyncStreamItem_ReceiveOperations
- type SyncStreamItem_ReceiveResources
- type SyncStreamItem_RepoConnectionState
- func (SyncStreamItem_RepoConnectionState) Descriptor() protoreflect.EnumDescriptor
- func (x SyncStreamItem_RepoConnectionState) Enum() *SyncStreamItem_RepoConnectionState
- func (SyncStreamItem_RepoConnectionState) EnumDescriptor() ([]byte, []int)deprecated
- func (x SyncStreamItem_RepoConnectionState) Number() protoreflect.EnumNumber
- func (x SyncStreamItem_RepoConnectionState) String() string
- func (SyncStreamItem_RepoConnectionState) Type() protoreflect.EnumType
- type SyncStreamItem_RequestLog
- type SyncStreamItem_RequestOperationData
- type SyncStreamItem_RequestResources
- type SyncStreamItem_SetConfig
- type SyncStreamItem_SignedMessage
- type SyncStreamItem_SyncActionConnectRepo
- func (*SyncStreamItem_SyncActionConnectRepo) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionConnectRepo) GetRepoId() string
- func (*SyncStreamItem_SyncActionConnectRepo) ProtoMessage()
- func (x *SyncStreamItem_SyncActionConnectRepo) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionConnectRepo) Reset()
- func (x *SyncStreamItem_SyncActionConnectRepo) String() string
- type SyncStreamItem_SyncActionEncrypted
- func (*SyncStreamItem_SyncActionEncrypted) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionEncrypted) GetCiphertext() []byte
- func (x *SyncStreamItem_SyncActionEncrypted) GetNonce() []byte
- func (*SyncStreamItem_SyncActionEncrypted) ProtoMessage()
- func (x *SyncStreamItem_SyncActionEncrypted) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionEncrypted) Reset()
- func (x *SyncStreamItem_SyncActionEncrypted) String() string
- type SyncStreamItem_SyncActionHandshake
- func (*SyncStreamItem_SyncActionHandshake) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionHandshake) GetInstanceId() string
- func (x *SyncStreamItem_SyncActionHandshake) GetPairingSecret() string
- func (x *SyncStreamItem_SyncActionHandshake) GetProtocolVersion() int64
- func (x *SyncStreamItem_SyncActionHandshake) GetPublicKey() *v1.PublicKey
- func (x *SyncStreamItem_SyncActionHandshake) GetSignature() []byte
- func (*SyncStreamItem_SyncActionHandshake) ProtoMessage()
- func (x *SyncStreamItem_SyncActionHandshake) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionHandshake) Reset()
- func (x *SyncStreamItem_SyncActionHandshake) String() string
- type SyncStreamItem_SyncActionHeartbeat
- func (*SyncStreamItem_SyncActionHeartbeat) Descriptor() ([]byte, []int)deprecated
- func (*SyncStreamItem_SyncActionHeartbeat) ProtoMessage()
- func (x *SyncStreamItem_SyncActionHeartbeat) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionHeartbeat) Reset()
- func (x *SyncStreamItem_SyncActionHeartbeat) String() string
- type SyncStreamItem_SyncActionOperationManifest
- func (*SyncStreamItem_SyncActionOperationManifest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionOperationManifest) GetModnos() []int64
- func (x *SyncStreamItem_SyncActionOperationManifest) GetOpIds() []int64
- func (*SyncStreamItem_SyncActionOperationManifest) ProtoMessage()
- func (x *SyncStreamItem_SyncActionOperationManifest) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionOperationManifest) Reset()
- func (x *SyncStreamItem_SyncActionOperationManifest) String() string
- type SyncStreamItem_SyncActionReceiveConfig
- func (*SyncStreamItem_SyncActionReceiveConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionReceiveConfig) GetConfig() *RemoteConfig
- func (*SyncStreamItem_SyncActionReceiveConfig) ProtoMessage()
- func (x *SyncStreamItem_SyncActionReceiveConfig) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionReceiveConfig) Reset()
- func (x *SyncStreamItem_SyncActionReceiveConfig) String() string
- type SyncStreamItem_SyncActionReceiveLogData
- func (*SyncStreamItem_SyncActionReceiveLogData) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionReceiveLogData) GetChunk() []byte
- func (x *SyncStreamItem_SyncActionReceiveLogData) GetErrorMessage() string
- func (x *SyncStreamItem_SyncActionReceiveLogData) GetExpirationTsUnix() int64
- func (x *SyncStreamItem_SyncActionReceiveLogData) GetLogId() string
- func (x *SyncStreamItem_SyncActionReceiveLogData) GetOwnerOpid() int64
- func (*SyncStreamItem_SyncActionReceiveLogData) ProtoMessage()
- func (x *SyncStreamItem_SyncActionReceiveLogData) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionReceiveLogData) Reset()
- func (x *SyncStreamItem_SyncActionReceiveLogData) String() string
- type SyncStreamItem_SyncActionReceiveOperations
- func (*SyncStreamItem_SyncActionReceiveOperations) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionReceiveOperations) GetEvent() *v1.OperationEvent
- func (*SyncStreamItem_SyncActionReceiveOperations) ProtoMessage()
- func (x *SyncStreamItem_SyncActionReceiveOperations) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionReceiveOperations) Reset()
- func (x *SyncStreamItem_SyncActionReceiveOperations) String() string
- type SyncStreamItem_SyncActionReceiveResources
- func (*SyncStreamItem_SyncActionReceiveResources) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionReceiveResources) GetPlans() []*PlanMetadata
- func (x *SyncStreamItem_SyncActionReceiveResources) GetRepos() []*RepoMetadata
- func (*SyncStreamItem_SyncActionReceiveResources) ProtoMessage()
- func (x *SyncStreamItem_SyncActionReceiveResources) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionReceiveResources) Reset()
- func (x *SyncStreamItem_SyncActionReceiveResources) String() string
- type SyncStreamItem_SyncActionRequestLog
- func (*SyncStreamItem_SyncActionRequestLog) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionRequestLog) GetLogId() string
- func (*SyncStreamItem_SyncActionRequestLog) ProtoMessage()
- func (x *SyncStreamItem_SyncActionRequestLog) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionRequestLog) Reset()
- func (x *SyncStreamItem_SyncActionRequestLog) String() string
- type SyncStreamItem_SyncActionRequestOperationData
- func (*SyncStreamItem_SyncActionRequestOperationData) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionRequestOperationData) GetOpIds() []int64
- func (*SyncStreamItem_SyncActionRequestOperationData) ProtoMessage()
- func (x *SyncStreamItem_SyncActionRequestOperationData) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionRequestOperationData) Reset()
- func (x *SyncStreamItem_SyncActionRequestOperationData) String() string
- type SyncStreamItem_SyncActionRequestResources
- func (*SyncStreamItem_SyncActionRequestResources) Descriptor() ([]byte, []int)deprecated
- func (*SyncStreamItem_SyncActionRequestResources) ProtoMessage()
- func (x *SyncStreamItem_SyncActionRequestResources) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionRequestResources) Reset()
- func (x *SyncStreamItem_SyncActionRequestResources) String() string
- type SyncStreamItem_SyncActionSetConfig
- func (*SyncStreamItem_SyncActionSetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionSetConfig) GetPlans() []*v1.Plan
- func (x *SyncStreamItem_SyncActionSetConfig) GetPlansToDelete() []string
- func (x *SyncStreamItem_SyncActionSetConfig) GetRepos() []*v1.Repo
- func (x *SyncStreamItem_SyncActionSetConfig) GetReposToDelete() []string
- func (*SyncStreamItem_SyncActionSetConfig) ProtoMessage()
- func (x *SyncStreamItem_SyncActionSetConfig) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionSetConfig) Reset()
- func (x *SyncStreamItem_SyncActionSetConfig) String() string
- type SyncStreamItem_SyncActionThrottle
- func (*SyncStreamItem_SyncActionThrottle) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncActionThrottle) GetDelayMs() int64
- func (*SyncStreamItem_SyncActionThrottle) ProtoMessage()
- func (x *SyncStreamItem_SyncActionThrottle) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncActionThrottle) Reset()
- func (x *SyncStreamItem_SyncActionThrottle) String() string
- type SyncStreamItem_SyncEstablishSharedSecret
- func (*SyncStreamItem_SyncEstablishSharedSecret) Descriptor() ([]byte, []int)deprecated
- func (x *SyncStreamItem_SyncEstablishSharedSecret) GetKemEncapsulation() []byte
- func (x *SyncStreamItem_SyncEstablishSharedSecret) GetKemPublicKey() []byte
- func (x *SyncStreamItem_SyncEstablishSharedSecret) GetProtocolVersion() uint32
- func (*SyncStreamItem_SyncEstablishSharedSecret) ProtoMessage()
- func (x *SyncStreamItem_SyncEstablishSharedSecret) ProtoReflect() protoreflect.Message
- func (x *SyncStreamItem_SyncEstablishSharedSecret) Reset()
- func (x *SyncStreamItem_SyncEstablishSharedSecret) String() string
- type SyncStreamItem_Throttle
- type UnimplementedBackrestSyncServiceServer
- type UnimplementedBackrestSyncStateServiceServer
- func (UnimplementedBackrestSyncStateServiceServer) GetPeerSyncStatesStream(*SyncStateStreamRequest, grpc.ServerStreamingServer[PeerState]) error
- func (UnimplementedBackrestSyncStateServiceServer) SetRemoteClientConfig(context.Context, *SetRemoteClientConfigRequest) (*SetRemoteClientConfigResponse, error)
- type UnsafeBackrestSyncServiceServer
- type UnsafeBackrestSyncStateServiceServer
Constants ¶
const ( BackrestSyncStateService_GetPeerSyncStatesStream_FullMethodName = "/v1sync.BackrestSyncStateService/GetPeerSyncStatesStream" BackrestSyncStateService_SetRemoteClientConfig_FullMethodName = "/v1sync.BackrestSyncStateService/SetRemoteClientConfig" )
const (
BackrestSyncService_Sync_FullMethodName = "/v1sync.BackrestSyncService/Sync"
)
Variables ¶
var ( ConnectionState_name = map[int32]string{ 0: "CONNECTION_STATE_UNKNOWN", 1: "CONNECTION_STATE_PENDING", 2: "CONNECTION_STATE_CONNECTED", 3: "CONNECTION_STATE_DISCONNECTED", 4: "CONNECTION_STATE_RETRY_WAIT", 10: "CONNECTION_STATE_ERROR_AUTH", 11: "CONNECTION_STATE_ERROR_PROTOCOL", 12: "CONNECTION_STATE_ERROR_INTERNAL", } ConnectionState_value = map[string]int32{ "CONNECTION_STATE_UNKNOWN": 0, "CONNECTION_STATE_PENDING": 1, "CONNECTION_STATE_CONNECTED": 2, "CONNECTION_STATE_DISCONNECTED": 3, "CONNECTION_STATE_RETRY_WAIT": 4, "CONNECTION_STATE_ERROR_AUTH": 10, "CONNECTION_STATE_ERROR_PROTOCOL": 11, "CONNECTION_STATE_ERROR_INTERNAL": 12, } )
Enum value maps for ConnectionState.
var ( SyncStreamItem_RepoConnectionState_name = map[int32]string{ 0: "CONNECTION_STATE_UNKNOWN", 1: "CONNECTION_STATE_PENDING", 2: "CONNECTION_STATE_CONNECTED", 3: "CONNECTION_STATE_UNAUTHORIZED", 4: "CONNECTION_STATE_NOT_FOUND", } SyncStreamItem_RepoConnectionState_value = map[string]int32{ "CONNECTION_STATE_UNKNOWN": 0, "CONNECTION_STATE_PENDING": 1, "CONNECTION_STATE_CONNECTED": 2, "CONNECTION_STATE_UNAUTHORIZED": 3, "CONNECTION_STATE_NOT_FOUND": 4, } )
Enum value maps for SyncStreamItem_RepoConnectionState.
var BackrestSyncService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1sync.BackrestSyncService", HandlerType: (*BackrestSyncServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Sync", Handler: _BackrestSyncService_Sync_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "v1sync/syncservice.proto", }
BackrestSyncService_ServiceDesc is the grpc.ServiceDesc for BackrestSyncService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var BackrestSyncStateService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1sync.BackrestSyncStateService", HandlerType: (*BackrestSyncStateServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetRemoteClientConfig", Handler: _BackrestSyncStateService_SetRemoteClientConfig_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetPeerSyncStatesStream", Handler: _BackrestSyncStateService_GetPeerSyncStatesStream_Handler, ServerStreams: true, }, }, Metadata: "v1sync/syncservice.proto", }
BackrestSyncStateService_ServiceDesc is the grpc.ServiceDesc for BackrestSyncStateService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1sync_syncservice_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBackrestSyncServiceServer ¶
func RegisterBackrestSyncServiceServer(s grpc.ServiceRegistrar, srv BackrestSyncServiceServer)
func RegisterBackrestSyncStateServiceServer ¶
func RegisterBackrestSyncStateServiceServer(s grpc.ServiceRegistrar, srv BackrestSyncStateServiceServer)
Types ¶
type AuthenticateRequest ¶
type AuthenticateRequest struct {
InstanceId *v1.SignedMessage `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // The ID of the peer instance.
// contains filtered or unexported fields
}
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetInstanceId ¶
func (x *AuthenticateRequest) GetInstanceId() *v1.SignedMessage
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
type AuthorizationToken ¶
type AuthorizationToken struct {
PublicKey *v1.PublicKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
InstanceId *v1.SignedMessage `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // The ID of the peer instance.
// contains filtered or unexported fields
}
func (*AuthorizationToken) Descriptor
deprecated
func (*AuthorizationToken) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizationToken.ProtoReflect.Descriptor instead.
func (*AuthorizationToken) GetInstanceId ¶
func (x *AuthorizationToken) GetInstanceId() *v1.SignedMessage
func (*AuthorizationToken) GetPublicKey ¶
func (x *AuthorizationToken) GetPublicKey() *v1.PublicKey
func (*AuthorizationToken) ProtoMessage ¶
func (*AuthorizationToken) ProtoMessage()
func (*AuthorizationToken) ProtoReflect ¶
func (x *AuthorizationToken) ProtoReflect() protoreflect.Message
func (*AuthorizationToken) Reset ¶
func (x *AuthorizationToken) Reset()
func (*AuthorizationToken) String ¶
func (x *AuthorizationToken) String() string
type BackrestSyncServiceClient ¶
type BackrestSyncServiceClient interface {
Sync(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SyncStreamItem, SyncStreamItem], error)
}
BackrestSyncServiceClient is the client API for BackrestSyncService 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.
BackrestSyncService provides methods to sync data between backrest instances. This service provides its own authentication and authorization.
func NewBackrestSyncServiceClient ¶
func NewBackrestSyncServiceClient(cc grpc.ClientConnInterface) BackrestSyncServiceClient
type BackrestSyncServiceServer ¶
type BackrestSyncServiceServer interface {
Sync(grpc.BidiStreamingServer[SyncStreamItem, SyncStreamItem]) error
// contains filtered or unexported methods
}
BackrestSyncServiceServer is the server API for BackrestSyncService service. All implementations must embed UnimplementedBackrestSyncServiceServer for forward compatibility.
BackrestSyncService provides methods to sync data between backrest instances. This service provides its own authentication and authorization.
type BackrestSyncService_SyncClient ¶
type BackrestSyncService_SyncClient = grpc.BidiStreamingClient[SyncStreamItem, SyncStreamItem]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type BackrestSyncService_SyncServer ¶
type BackrestSyncService_SyncServer = grpc.BidiStreamingServer[SyncStreamItem, SyncStreamItem]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type BackrestSyncStateServiceClient ¶
type BackrestSyncStateServiceClient interface {
GetPeerSyncStatesStream(ctx context.Context, in *SyncStateStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[PeerState], error)
// SetRemoteClientConfig pushes a config change to a connected authorized client peer.
SetRemoteClientConfig(ctx context.Context, in *SetRemoteClientConfigRequest, opts ...grpc.CallOption) (*SetRemoteClientConfigResponse, error)
}
BackrestSyncStateServiceClient is the client API for BackrestSyncStateService 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.
BackrestSyncStateService provides methods to query the sync state of known hosts and clients. This service should be served behind authentication and authorization.
func NewBackrestSyncStateServiceClient ¶
func NewBackrestSyncStateServiceClient(cc grpc.ClientConnInterface) BackrestSyncStateServiceClient
type BackrestSyncStateServiceServer ¶
type BackrestSyncStateServiceServer interface {
GetPeerSyncStatesStream(*SyncStateStreamRequest, grpc.ServerStreamingServer[PeerState]) error
// SetRemoteClientConfig pushes a config change to a connected authorized client peer.
SetRemoteClientConfig(context.Context, *SetRemoteClientConfigRequest) (*SetRemoteClientConfigResponse, error)
// contains filtered or unexported methods
}
BackrestSyncStateServiceServer is the server API for BackrestSyncStateService service. All implementations must embed UnimplementedBackrestSyncStateServiceServer for forward compatibility.
BackrestSyncStateService provides methods to query the sync state of known hosts and clients. This service should be served behind authentication and authorization.
type BackrestSyncStateService_GetPeerSyncStatesStreamClient ¶
type BackrestSyncStateService_GetPeerSyncStatesStreamClient = grpc.ServerStreamingClient[PeerState]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type BackrestSyncStateService_GetPeerSyncStatesStreamServer ¶
type BackrestSyncStateService_GetPeerSyncStatesStreamServer = grpc.ServerStreamingServer[PeerState]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ConnectionState ¶
type ConnectionState int32
const ( ConnectionState_CONNECTION_STATE_UNKNOWN ConnectionState = 0 ConnectionState_CONNECTION_STATE_PENDING ConnectionState = 1 ConnectionState_CONNECTION_STATE_CONNECTED ConnectionState = 2 ConnectionState_CONNECTION_STATE_DISCONNECTED ConnectionState = 3 ConnectionState_CONNECTION_STATE_RETRY_WAIT ConnectionState = 4 ConnectionState_CONNECTION_STATE_ERROR_AUTH ConnectionState = 10 ConnectionState_CONNECTION_STATE_ERROR_PROTOCOL ConnectionState = 11 ConnectionState_CONNECTION_STATE_ERROR_INTERNAL ConnectionState = 12 )
func (ConnectionState) Descriptor ¶
func (ConnectionState) Descriptor() protoreflect.EnumDescriptor
func (ConnectionState) Enum ¶
func (x ConnectionState) Enum() *ConnectionState
func (ConnectionState) EnumDescriptor
deprecated
func (ConnectionState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConnectionState.Descriptor instead.
func (ConnectionState) Number ¶
func (x ConnectionState) Number() protoreflect.EnumNumber
func (ConnectionState) String ¶
func (x ConnectionState) String() string
func (ConnectionState) Type ¶
func (ConnectionState) Type() protoreflect.EnumType
type GetOperationMetadataResponse ¶
type GetOperationMetadataResponse struct {
OpIds []int64 `protobuf:"varint,1,rep,packed,name=op_ids,json=opIds,proto3" json:"op_ids,omitempty"` // The IDs of the operations.
Modnos []int64 `protobuf:"varint,2,rep,packed,name=modnos,proto3" json:"modnos,omitempty"` // The modnos of the operations.
// contains filtered or unexported fields
}
func (*GetOperationMetadataResponse) Descriptor
deprecated
func (*GetOperationMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOperationMetadataResponse.ProtoReflect.Descriptor instead.
func (*GetOperationMetadataResponse) GetModnos ¶
func (x *GetOperationMetadataResponse) GetModnos() []int64
func (*GetOperationMetadataResponse) GetOpIds ¶
func (x *GetOperationMetadataResponse) GetOpIds() []int64
func (*GetOperationMetadataResponse) ProtoMessage ¶
func (*GetOperationMetadataResponse) ProtoMessage()
func (*GetOperationMetadataResponse) ProtoReflect ¶
func (x *GetOperationMetadataResponse) ProtoReflect() protoreflect.Message
func (*GetOperationMetadataResponse) Reset ¶
func (x *GetOperationMetadataResponse) Reset()
func (*GetOperationMetadataResponse) String ¶
func (x *GetOperationMetadataResponse) String() string
type LogDataEntry ¶
type LogDataEntry struct {
LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` // The ID of the log, only used for the first message in a log data stream.
OwnerOpid int64 `protobuf:"varint,2,opt,name=owner_opid,json=ownerOpid,proto3" json:"owner_opid,omitempty"` // The operation ID of the operation that owns this log data.
ExpirationTsUnix int64 `protobuf:"varint,3,opt,name=expiration_ts_unix,json=expirationTsUnix,proto3" json:"expiration_ts_unix,omitempty"` // Unix timestamp in seconds when the log data expires.
Chunk []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"` // The log data chunk, can be sent repeatedly, must be terminated by a packet with size = 0.
// contains filtered or unexported fields
}
func (*LogDataEntry) Descriptor
deprecated
func (*LogDataEntry) Descriptor() ([]byte, []int)
Deprecated: Use LogDataEntry.ProtoReflect.Descriptor instead.
func (*LogDataEntry) GetChunk ¶
func (x *LogDataEntry) GetChunk() []byte
func (*LogDataEntry) GetExpirationTsUnix ¶
func (x *LogDataEntry) GetExpirationTsUnix() int64
func (*LogDataEntry) GetLogId ¶
func (x *LogDataEntry) GetLogId() string
func (*LogDataEntry) GetOwnerOpid ¶
func (x *LogDataEntry) GetOwnerOpid() int64
func (*LogDataEntry) ProtoMessage ¶
func (*LogDataEntry) ProtoMessage()
func (*LogDataEntry) ProtoReflect ¶
func (x *LogDataEntry) ProtoReflect() protoreflect.Message
func (*LogDataEntry) Reset ¶
func (x *LogDataEntry) Reset()
func (*LogDataEntry) String ¶
func (x *LogDataEntry) String() string
type PeerState ¶
type PeerState struct {
PeerInstanceId string `protobuf:"bytes,1,opt,name=peer_instance_id,json=peerInstanceId,proto3" json:"peer_instance_id,omitempty"`
PeerKeyid string `protobuf:"bytes,2,opt,name=peer_keyid,json=peerKeyid,proto3" json:"peer_keyid,omitempty"`
State ConnectionState `protobuf:"varint,3,opt,name=state,proto3,enum=v1sync.ConnectionState" json:"state,omitempty"`
StatusMessage string `protobuf:"bytes,4,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
KnownPlans []*PlanMetadata `protobuf:"bytes,5,rep,name=known_plans,json=knownPlans,proto3" json:"known_plans,omitempty"` // List of plan IDs that the peer has.
KnownRepos []*RepoMetadata `protobuf:"bytes,6,rep,name=known_repos,json=knownRepos,proto3" json:"known_repos,omitempty"` // List of repo IDs that the peer has.
RemoteConfig *RemoteConfig `protobuf:"bytes,7,opt,name=remote_config,json=remoteConfig,proto3" json:"remote_config,omitempty"` // The remote config of the peer, if available.
LastHeartbeatMillis int64 `protobuf:"varint,8,opt,name=last_heartbeat_millis,json=lastHeartbeatMillis,proto3" json:"last_heartbeat_millis,omitempty"` // The last time the peer sent a heartbeat, in milliseconds since epoch.
// contains filtered or unexported fields
}
func (*PeerState) Descriptor
deprecated
func (*PeerState) GetKnownPlans ¶
func (x *PeerState) GetKnownPlans() []*PlanMetadata
func (*PeerState) GetKnownRepos ¶
func (x *PeerState) GetKnownRepos() []*RepoMetadata
func (*PeerState) GetLastHeartbeatMillis ¶
func (*PeerState) GetPeerInstanceId ¶
func (*PeerState) GetPeerKeyid ¶
func (*PeerState) GetRemoteConfig ¶
func (x *PeerState) GetRemoteConfig() *RemoteConfig
func (*PeerState) GetState ¶
func (x *PeerState) GetState() ConnectionState
func (*PeerState) GetStatusMessage ¶
func (*PeerState) ProtoMessage ¶
func (*PeerState) ProtoMessage()
func (*PeerState) ProtoReflect ¶
func (x *PeerState) ProtoReflect() protoreflect.Message
type PlanMetadata ¶
type PlanMetadata struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*PlanMetadata) Descriptor
deprecated
func (*PlanMetadata) Descriptor() ([]byte, []int)
Deprecated: Use PlanMetadata.ProtoReflect.Descriptor instead.
func (*PlanMetadata) GetId ¶
func (x *PlanMetadata) GetId() string
func (*PlanMetadata) ProtoMessage ¶
func (*PlanMetadata) ProtoMessage()
func (*PlanMetadata) ProtoReflect ¶
func (x *PlanMetadata) ProtoReflect() protoreflect.Message
func (*PlanMetadata) Reset ¶
func (x *PlanMetadata) Reset()
func (*PlanMetadata) String ¶
func (x *PlanMetadata) String() string
type RemoteConfig ¶
type RemoteConfig struct {
Modno int32 `protobuf:"varint,1,opt,name=modno,proto3" json:"modno,omitempty"` // The modno of the config.
Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // The storage version of the config.
Repos []*v1.Repo `protobuf:"bytes,3,rep,name=repos,proto3" json:"repos,omitempty"`
Plans []*v1.Plan `protobuf:"bytes,4,rep,name=plans,proto3" json:"plans,omitempty"`
// contains filtered or unexported fields
}
func (*RemoteConfig) Descriptor
deprecated
func (*RemoteConfig) Descriptor() ([]byte, []int)
Deprecated: Use RemoteConfig.ProtoReflect.Descriptor instead.
func (*RemoteConfig) GetModno ¶
func (x *RemoteConfig) GetModno() int32
func (*RemoteConfig) GetPlans ¶
func (x *RemoteConfig) GetPlans() []*v1.Plan
func (*RemoteConfig) GetRepos ¶
func (x *RemoteConfig) GetRepos() []*v1.Repo
func (*RemoteConfig) GetVersion ¶
func (x *RemoteConfig) GetVersion() int32
func (*RemoteConfig) ProtoMessage ¶
func (*RemoteConfig) ProtoMessage()
func (*RemoteConfig) ProtoReflect ¶
func (x *RemoteConfig) ProtoReflect() protoreflect.Message
func (*RemoteConfig) Reset ¶
func (x *RemoteConfig) Reset()
func (*RemoteConfig) String ¶
func (x *RemoteConfig) String() string
type RepoMetadata ¶
type RepoMetadata struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Guid string `protobuf:"bytes,2,opt,name=guid,proto3" json:"guid,omitempty"`
// contains filtered or unexported fields
}
func (*RepoMetadata) Descriptor
deprecated
func (*RepoMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RepoMetadata.ProtoReflect.Descriptor instead.
func (*RepoMetadata) GetGuid ¶
func (x *RepoMetadata) GetGuid() string
func (*RepoMetadata) GetId ¶
func (x *RepoMetadata) GetId() string
func (*RepoMetadata) ProtoMessage ¶
func (*RepoMetadata) ProtoMessage()
func (*RepoMetadata) ProtoReflect ¶
func (x *RepoMetadata) ProtoReflect() protoreflect.Message
func (*RepoMetadata) Reset ¶
func (x *RepoMetadata) Reset()
func (*RepoMetadata) String ¶
func (x *RepoMetadata) String() string
type SetAvailableResourcesRequest ¶
type SetAvailableResourcesRequest struct {
Repos []*PlanMetadata `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"` // The repos that are available.
Plans []*RepoMetadata `protobuf:"bytes,2,rep,name=plans,proto3" json:"plans,omitempty"` // The plans that are available.
// contains filtered or unexported fields
}
func (*SetAvailableResourcesRequest) Descriptor
deprecated
func (*SetAvailableResourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetAvailableResourcesRequest.ProtoReflect.Descriptor instead.
func (*SetAvailableResourcesRequest) GetPlans ¶
func (x *SetAvailableResourcesRequest) GetPlans() []*RepoMetadata
func (*SetAvailableResourcesRequest) GetRepos ¶
func (x *SetAvailableResourcesRequest) GetRepos() []*PlanMetadata
func (*SetAvailableResourcesRequest) ProtoMessage ¶
func (*SetAvailableResourcesRequest) ProtoMessage()
func (*SetAvailableResourcesRequest) ProtoReflect ¶
func (x *SetAvailableResourcesRequest) ProtoReflect() protoreflect.Message
func (*SetAvailableResourcesRequest) Reset ¶
func (x *SetAvailableResourcesRequest) Reset()
func (*SetAvailableResourcesRequest) String ¶
func (x *SetAvailableResourcesRequest) String() string
type SetConfigRequest ¶
type SetConfigRequest struct {
Plans []*v1.Plan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"` // The plans to set.
Repos []*v1.Repo `protobuf:"bytes,2,rep,name=repos,proto3" json:"repos,omitempty"` // The repos to set.
ReposToDelete []string `protobuf:"bytes,3,rep,name=repos_to_delete,json=reposToDelete,proto3" json:"repos_to_delete,omitempty"` // The repo IDs to delete.
PlansToDelete []string `protobuf:"bytes,4,rep,name=plans_to_delete,json=plansToDelete,proto3" json:"plans_to_delete,omitempty"` // The plan IDs to delete.
// contains filtered or unexported fields
}
func (*SetConfigRequest) Descriptor
deprecated
func (*SetConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.
func (*SetConfigRequest) GetPlans ¶
func (x *SetConfigRequest) GetPlans() []*v1.Plan
func (*SetConfigRequest) GetPlansToDelete ¶
func (x *SetConfigRequest) GetPlansToDelete() []string
func (*SetConfigRequest) GetRepos ¶
func (x *SetConfigRequest) GetRepos() []*v1.Repo
func (*SetConfigRequest) GetReposToDelete ¶
func (x *SetConfigRequest) GetReposToDelete() []string
func (*SetConfigRequest) ProtoMessage ¶
func (*SetConfigRequest) ProtoMessage()
func (*SetConfigRequest) ProtoReflect ¶
func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
func (*SetConfigRequest) Reset ¶
func (x *SetConfigRequest) Reset()
func (*SetConfigRequest) String ¶
func (x *SetConfigRequest) String() string
type SetRemoteClientConfigRequest ¶ added in v1.13.0
type SetRemoteClientConfigRequest struct {
PeerKeyid string `protobuf:"bytes,1,opt,name=peer_keyid,json=peerKeyid,proto3" json:"peer_keyid,omitempty"` // The key ID of the connected peer to push config to.
Repos []*v1.Repo `protobuf:"bytes,2,rep,name=repos,proto3" json:"repos,omitempty"` // Repos to create or update on the peer.
Plans []*v1.Plan `protobuf:"bytes,3,rep,name=plans,proto3" json:"plans,omitempty"` // Plans to create or update on the peer.
ReposToDelete []string `protobuf:"bytes,4,rep,name=repos_to_delete,json=reposToDelete,proto3" json:"repos_to_delete,omitempty"` // Repo IDs to delete on the peer.
PlansToDelete []string `protobuf:"bytes,5,rep,name=plans_to_delete,json=plansToDelete,proto3" json:"plans_to_delete,omitempty"` // Plan IDs to delete on the peer.
// contains filtered or unexported fields
}
func (*SetRemoteClientConfigRequest) Descriptor
deprecated
added in
v1.13.0
func (*SetRemoteClientConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRemoteClientConfigRequest.ProtoReflect.Descriptor instead.
func (*SetRemoteClientConfigRequest) GetPeerKeyid ¶ added in v1.13.0
func (x *SetRemoteClientConfigRequest) GetPeerKeyid() string
func (*SetRemoteClientConfigRequest) GetPlans ¶ added in v1.13.0
func (x *SetRemoteClientConfigRequest) GetPlans() []*v1.Plan
func (*SetRemoteClientConfigRequest) GetPlansToDelete ¶ added in v1.13.0
func (x *SetRemoteClientConfigRequest) GetPlansToDelete() []string
func (*SetRemoteClientConfigRequest) GetRepos ¶ added in v1.13.0
func (x *SetRemoteClientConfigRequest) GetRepos() []*v1.Repo
func (*SetRemoteClientConfigRequest) GetReposToDelete ¶ added in v1.13.0
func (x *SetRemoteClientConfigRequest) GetReposToDelete() []string
func (*SetRemoteClientConfigRequest) ProtoMessage ¶ added in v1.13.0
func (*SetRemoteClientConfigRequest) ProtoMessage()
func (*SetRemoteClientConfigRequest) ProtoReflect ¶ added in v1.13.0
func (x *SetRemoteClientConfigRequest) ProtoReflect() protoreflect.Message
func (*SetRemoteClientConfigRequest) Reset ¶ added in v1.13.0
func (x *SetRemoteClientConfigRequest) Reset()
func (*SetRemoteClientConfigRequest) String ¶ added in v1.13.0
func (x *SetRemoteClientConfigRequest) String() string
type SetRemoteClientConfigResponse ¶ added in v1.13.0
type SetRemoteClientConfigResponse struct {
// contains filtered or unexported fields
}
func (*SetRemoteClientConfigResponse) Descriptor
deprecated
added in
v1.13.0
func (*SetRemoteClientConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetRemoteClientConfigResponse.ProtoReflect.Descriptor instead.
func (*SetRemoteClientConfigResponse) ProtoMessage ¶ added in v1.13.0
func (*SetRemoteClientConfigResponse) ProtoMessage()
func (*SetRemoteClientConfigResponse) ProtoReflect ¶ added in v1.13.0
func (x *SetRemoteClientConfigResponse) ProtoReflect() protoreflect.Message
func (*SetRemoteClientConfigResponse) Reset ¶ added in v1.13.0
func (x *SetRemoteClientConfigResponse) Reset()
func (*SetRemoteClientConfigResponse) String ¶ added in v1.13.0
func (x *SetRemoteClientConfigResponse) String() string
type SyncStateStreamRequest ¶
type SyncStateStreamRequest struct {
Subscribe bool `protobuf:"varint,1,opt,name=subscribe,proto3" json:"subscribe,omitempty"` // If true, the stream will continue to send updates until cancelled.
// contains filtered or unexported fields
}
func (*SyncStateStreamRequest) Descriptor
deprecated
func (*SyncStateStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncStateStreamRequest.ProtoReflect.Descriptor instead.
func (*SyncStateStreamRequest) GetSubscribe ¶
func (x *SyncStateStreamRequest) GetSubscribe() bool
func (*SyncStateStreamRequest) ProtoMessage ¶
func (*SyncStateStreamRequest) ProtoMessage()
func (*SyncStateStreamRequest) ProtoReflect ¶
func (x *SyncStateStreamRequest) ProtoReflect() protoreflect.Message
func (*SyncStateStreamRequest) Reset ¶
func (x *SyncStateStreamRequest) Reset()
func (*SyncStateStreamRequest) String ¶
func (x *SyncStateStreamRequest) String() string
type SyncStreamItem ¶
type SyncStreamItem struct {
// Types that are valid to be assigned to Action:
//
// *SyncStreamItem_SignedMessage
// *SyncStreamItem_Handshake
// *SyncStreamItem_Heartbeat
// *SyncStreamItem_OperationManifest
// *SyncStreamItem_ReceiveOperations
// *SyncStreamItem_RequestOperationData
// *SyncStreamItem_ReceiveConfig
// *SyncStreamItem_SetConfig
// *SyncStreamItem_RequestResources
// *SyncStreamItem_ReceiveResources
// *SyncStreamItem_RequestLog
// *SyncStreamItem_ReceiveLogData
// *SyncStreamItem_Throttle
// *SyncStreamItem_EstablishSharedSecret
// *SyncStreamItem_Encrypted
Action isSyncStreamItem_Action `protobuf_oneof:"action"`
// contains filtered or unexported fields
}
func (*SyncStreamItem) Descriptor
deprecated
func (*SyncStreamItem) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem.ProtoReflect.Descriptor instead.
func (*SyncStreamItem) GetAction ¶
func (x *SyncStreamItem) GetAction() isSyncStreamItem_Action
func (*SyncStreamItem) GetEncrypted ¶ added in v1.13.0
func (x *SyncStreamItem) GetEncrypted() *SyncStreamItem_SyncActionEncrypted
func (*SyncStreamItem) GetEstablishSharedSecret ¶ added in v1.13.0
func (x *SyncStreamItem) GetEstablishSharedSecret() *SyncStreamItem_SyncEstablishSharedSecret
func (*SyncStreamItem) GetHandshake ¶
func (x *SyncStreamItem) GetHandshake() *SyncStreamItem_SyncActionHandshake
func (*SyncStreamItem) GetHeartbeat ¶
func (x *SyncStreamItem) GetHeartbeat() *SyncStreamItem_SyncActionHeartbeat
func (*SyncStreamItem) GetOperationManifest ¶ added in v1.13.0
func (x *SyncStreamItem) GetOperationManifest() *SyncStreamItem_SyncActionOperationManifest
func (*SyncStreamItem) GetReceiveConfig ¶
func (x *SyncStreamItem) GetReceiveConfig() *SyncStreamItem_SyncActionReceiveConfig
func (*SyncStreamItem) GetReceiveLogData ¶
func (x *SyncStreamItem) GetReceiveLogData() *SyncStreamItem_SyncActionReceiveLogData
func (*SyncStreamItem) GetReceiveOperations ¶
func (x *SyncStreamItem) GetReceiveOperations() *SyncStreamItem_SyncActionReceiveOperations
func (*SyncStreamItem) GetReceiveResources ¶
func (x *SyncStreamItem) GetReceiveResources() *SyncStreamItem_SyncActionReceiveResources
func (*SyncStreamItem) GetRequestLog ¶
func (x *SyncStreamItem) GetRequestLog() *SyncStreamItem_SyncActionRequestLog
func (*SyncStreamItem) GetRequestOperationData ¶ added in v1.13.0
func (x *SyncStreamItem) GetRequestOperationData() *SyncStreamItem_SyncActionRequestOperationData
func (*SyncStreamItem) GetRequestResources ¶
func (x *SyncStreamItem) GetRequestResources() *SyncStreamItem_SyncActionRequestResources
func (*SyncStreamItem) GetSetConfig ¶
func (x *SyncStreamItem) GetSetConfig() *SyncStreamItem_SyncActionSetConfig
func (*SyncStreamItem) GetSignedMessage ¶
func (x *SyncStreamItem) GetSignedMessage() *v1.SignedMessage
func (*SyncStreamItem) GetThrottle ¶
func (x *SyncStreamItem) GetThrottle() *SyncStreamItem_SyncActionThrottle
func (*SyncStreamItem) ProtoMessage ¶
func (*SyncStreamItem) ProtoMessage()
func (*SyncStreamItem) ProtoReflect ¶
func (x *SyncStreamItem) ProtoReflect() protoreflect.Message
func (*SyncStreamItem) Reset ¶
func (x *SyncStreamItem) Reset()
func (*SyncStreamItem) String ¶
func (x *SyncStreamItem) String() string
type SyncStreamItem_Encrypted ¶ added in v1.13.0
type SyncStreamItem_Encrypted struct {
Encrypted *SyncStreamItem_SyncActionEncrypted `protobuf:"bytes,5,opt,name=encrypted,proto3,oneof"`
}
type SyncStreamItem_EstablishSharedSecret ¶ added in v1.13.0
type SyncStreamItem_EstablishSharedSecret struct {
}
type SyncStreamItem_Handshake ¶
type SyncStreamItem_Handshake struct {
Handshake *SyncStreamItem_SyncActionHandshake `protobuf:"bytes,3,opt,name=handshake,proto3,oneof"` // note: mostly deprecated, sent through headers rather than stream.
}
type SyncStreamItem_Heartbeat ¶
type SyncStreamItem_Heartbeat struct {
Heartbeat *SyncStreamItem_SyncActionHeartbeat `protobuf:"bytes,4,opt,name=heartbeat,proto3,oneof"`
}
type SyncStreamItem_OperationManifest ¶ added in v1.13.0
type SyncStreamItem_OperationManifest struct {
OperationManifest *SyncStreamItem_SyncActionOperationManifest `protobuf:"bytes,20,opt,name=operation_manifest,json=operationManifest,proto3,oneof"`
}
type SyncStreamItem_ReceiveConfig ¶
type SyncStreamItem_ReceiveConfig struct {
ReceiveConfig *SyncStreamItem_SyncActionReceiveConfig `protobuf:"bytes,23,opt,name=receive_config,json=receiveConfig,proto3,oneof"`
}
type SyncStreamItem_ReceiveLogData ¶
type SyncStreamItem_ReceiveLogData struct {
ReceiveLogData *SyncStreamItem_SyncActionReceiveLogData `protobuf:"bytes,31,opt,name=receive_log_data,json=receiveLogData,proto3,oneof"`
}
type SyncStreamItem_ReceiveOperations ¶
type SyncStreamItem_ReceiveOperations struct {
ReceiveOperations *SyncStreamItem_SyncActionReceiveOperations `protobuf:"bytes,21,opt,name=receive_operations,json=receiveOperations,proto3,oneof"`
}
type SyncStreamItem_ReceiveResources ¶
type SyncStreamItem_ReceiveResources struct {
ReceiveResources *SyncStreamItem_SyncActionReceiveResources `protobuf:"bytes,26,opt,name=receive_resources,json=receiveResources,proto3,oneof"` // receiving a list of available resources.
}
type SyncStreamItem_RepoConnectionState ¶
type SyncStreamItem_RepoConnectionState int32
const ( SyncStreamItem_CONNECTION_STATE_UNKNOWN SyncStreamItem_RepoConnectionState = 0 SyncStreamItem_CONNECTION_STATE_PENDING SyncStreamItem_RepoConnectionState = 1 // queried, response not yet received. SyncStreamItem_CONNECTION_STATE_CONNECTED SyncStreamItem_RepoConnectionState = 2 SyncStreamItem_CONNECTION_STATE_UNAUTHORIZED SyncStreamItem_RepoConnectionState = 3 SyncStreamItem_CONNECTION_STATE_NOT_FOUND SyncStreamItem_RepoConnectionState = 4 )
func (SyncStreamItem_RepoConnectionState) Descriptor ¶
func (SyncStreamItem_RepoConnectionState) Descriptor() protoreflect.EnumDescriptor
func (SyncStreamItem_RepoConnectionState) Enum ¶
func (x SyncStreamItem_RepoConnectionState) Enum() *SyncStreamItem_RepoConnectionState
func (SyncStreamItem_RepoConnectionState) EnumDescriptor
deprecated
func (SyncStreamItem_RepoConnectionState) EnumDescriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_RepoConnectionState.Descriptor instead.
func (SyncStreamItem_RepoConnectionState) Number ¶
func (x SyncStreamItem_RepoConnectionState) Number() protoreflect.EnumNumber
func (SyncStreamItem_RepoConnectionState) String ¶
func (x SyncStreamItem_RepoConnectionState) String() string
func (SyncStreamItem_RepoConnectionState) Type ¶
func (SyncStreamItem_RepoConnectionState) Type() protoreflect.EnumType
type SyncStreamItem_RequestLog ¶
type SyncStreamItem_RequestLog struct {
RequestLog *SyncStreamItem_SyncActionRequestLog `protobuf:"bytes,30,opt,name=request_log,json=requestLog,proto3,oneof"`
}
type SyncStreamItem_RequestOperationData ¶ added in v1.13.0
type SyncStreamItem_RequestOperationData struct {
RequestOperationData *SyncStreamItem_SyncActionRequestOperationData `protobuf:"bytes,22,opt,name=request_operation_data,json=requestOperationData,proto3,oneof"`
}
type SyncStreamItem_RequestResources ¶
type SyncStreamItem_RequestResources struct {
RequestResources *SyncStreamItem_SyncActionRequestResources `protobuf:"bytes,25,opt,name=request_resources,json=requestResources,proto3,oneof"` // request a list of available resources. Only used by the server.
}
type SyncStreamItem_SetConfig ¶
type SyncStreamItem_SetConfig struct {
SetConfig *SyncStreamItem_SyncActionSetConfig `protobuf:"bytes,24,opt,name=set_config,json=setConfig,proto3,oneof"`
}
type SyncStreamItem_SignedMessage ¶
type SyncStreamItem_SignedMessage struct {
SignedMessage *v1.SignedMessage `protobuf:"bytes,1,opt,name=signed_message,json=signedMessage,proto3,oneof"`
}
type SyncStreamItem_SyncActionConnectRepo ¶
type SyncStreamItem_SyncActionConnectRepo struct {
RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionConnectRepo) Descriptor
deprecated
func (*SyncStreamItem_SyncActionConnectRepo) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionConnectRepo.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionConnectRepo) GetRepoId ¶
func (x *SyncStreamItem_SyncActionConnectRepo) GetRepoId() string
func (*SyncStreamItem_SyncActionConnectRepo) ProtoMessage ¶
func (*SyncStreamItem_SyncActionConnectRepo) ProtoMessage()
func (*SyncStreamItem_SyncActionConnectRepo) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionConnectRepo) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionConnectRepo) Reset ¶
func (x *SyncStreamItem_SyncActionConnectRepo) Reset()
func (*SyncStreamItem_SyncActionConnectRepo) String ¶
func (x *SyncStreamItem_SyncActionConnectRepo) String() string
type SyncStreamItem_SyncActionEncrypted ¶ added in v1.13.0
type SyncStreamItem_SyncActionEncrypted struct {
Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // 12-byte GCM nonce
Ciphertext []byte `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` // AES-256-GCM(serialized SyncStreamItem)
// contains filtered or unexported fields
}
SyncActionEncrypted wraps an encrypted SyncStreamItem. After the post-quantum KEM handshake, all subsequent messages are sent inside this envelope.
func (*SyncStreamItem_SyncActionEncrypted) Descriptor
deprecated
added in
v1.13.0
func (*SyncStreamItem_SyncActionEncrypted) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionEncrypted.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionEncrypted) GetCiphertext ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionEncrypted) GetCiphertext() []byte
func (*SyncStreamItem_SyncActionEncrypted) GetNonce ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionEncrypted) GetNonce() []byte
func (*SyncStreamItem_SyncActionEncrypted) ProtoMessage ¶ added in v1.13.0
func (*SyncStreamItem_SyncActionEncrypted) ProtoMessage()
func (*SyncStreamItem_SyncActionEncrypted) ProtoReflect ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionEncrypted) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionEncrypted) Reset ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionEncrypted) Reset()
func (*SyncStreamItem_SyncActionEncrypted) String ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionEncrypted) String() string
type SyncStreamItem_SyncActionHandshake ¶
type SyncStreamItem_SyncActionHandshake struct {
ProtocolVersion int64 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
PublicKey *v1.PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // sender's long-term ed25519 identity
InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // covered by signature below
PairingSecret string `protobuf:"bytes,4,opt,name=pairing_secret,json=pairingSecret,proto3" json:"pairing_secret,omitempty"` // optional pairing token; covered by signature below
Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // ed25519(public_key, H(handshake bind input))
// contains filtered or unexported fields
}
SyncActionHandshake is the first message sent by each peer over the post-quantum encrypted channel. It carries the sender's long-term ed25519 identity, its instance ID, and a single signature that binds the identity to *this* transport session.
The signature covers a domain-separated hash of:
"backrest-sync-handshake/v1\x00" || protocol_version (8 bytes BE) || LP(instance_id) || LP(pairing_secret) || LP(transport transcript)
where LP(x) = 4-byte BE length prefix || x, and the transport transcript is cryptoutil.TransportSession.Transcript() — a hash that commits to the ephemeral KEM messages of this connection.
The transcript binding is what defeats a MITM that completes a separate KEM with each side: each leg has a different transcript, and the legitimate peer's signature only commits to its own transcript, so the attacker cannot forward a usable signature to either side.
Receivers MUST recompute the transcript locally from their TransportSession and reject the handshake if the signature does not verify against public_key. There is no timestamp because freshness is provided by the ephemeral KEM, not by clock comparison.
func (*SyncStreamItem_SyncActionHandshake) Descriptor
deprecated
func (*SyncStreamItem_SyncActionHandshake) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionHandshake.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionHandshake) GetInstanceId ¶
func (x *SyncStreamItem_SyncActionHandshake) GetInstanceId() string
func (*SyncStreamItem_SyncActionHandshake) GetPairingSecret ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionHandshake) GetPairingSecret() string
func (*SyncStreamItem_SyncActionHandshake) GetProtocolVersion ¶
func (x *SyncStreamItem_SyncActionHandshake) GetProtocolVersion() int64
func (*SyncStreamItem_SyncActionHandshake) GetPublicKey ¶
func (x *SyncStreamItem_SyncActionHandshake) GetPublicKey() *v1.PublicKey
func (*SyncStreamItem_SyncActionHandshake) GetSignature ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionHandshake) GetSignature() []byte
func (*SyncStreamItem_SyncActionHandshake) ProtoMessage ¶
func (*SyncStreamItem_SyncActionHandshake) ProtoMessage()
func (*SyncStreamItem_SyncActionHandshake) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionHandshake) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionHandshake) Reset ¶
func (x *SyncStreamItem_SyncActionHandshake) Reset()
func (*SyncStreamItem_SyncActionHandshake) String ¶
func (x *SyncStreamItem_SyncActionHandshake) String() string
type SyncStreamItem_SyncActionHeartbeat ¶
type SyncStreamItem_SyncActionHeartbeat struct {
// contains filtered or unexported fields
}
SyncActionHeartbeat is sent periodically to keep the connection alive.
func (*SyncStreamItem_SyncActionHeartbeat) Descriptor
deprecated
func (*SyncStreamItem_SyncActionHeartbeat) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionHeartbeat.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionHeartbeat) ProtoMessage ¶
func (*SyncStreamItem_SyncActionHeartbeat) ProtoMessage()
func (*SyncStreamItem_SyncActionHeartbeat) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionHeartbeat) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionHeartbeat) Reset ¶
func (x *SyncStreamItem_SyncActionHeartbeat) Reset()
func (*SyncStreamItem_SyncActionHeartbeat) String ¶
func (x *SyncStreamItem_SyncActionHeartbeat) String() string
type SyncStreamItem_SyncActionOperationManifest ¶ added in v1.13.0
type SyncStreamItem_SyncActionOperationManifest struct {
OpIds []int64 `protobuf:"varint,1,rep,packed,name=op_ids,json=opIds,proto3" json:"op_ids,omitempty"`
Modnos []int64 `protobuf:"varint,2,rep,packed,name=modnos,proto3" json:"modnos,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionOperationManifest) Descriptor
deprecated
added in
v1.13.0
func (*SyncStreamItem_SyncActionOperationManifest) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionOperationManifest.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionOperationManifest) GetModnos ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionOperationManifest) GetModnos() []int64
func (*SyncStreamItem_SyncActionOperationManifest) GetOpIds ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionOperationManifest) GetOpIds() []int64
func (*SyncStreamItem_SyncActionOperationManifest) ProtoMessage ¶ added in v1.13.0
func (*SyncStreamItem_SyncActionOperationManifest) ProtoMessage()
func (*SyncStreamItem_SyncActionOperationManifest) ProtoReflect ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionOperationManifest) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionOperationManifest) Reset ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionOperationManifest) Reset()
func (*SyncStreamItem_SyncActionOperationManifest) String ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionOperationManifest) String() string
type SyncStreamItem_SyncActionReceiveConfig ¶
type SyncStreamItem_SyncActionReceiveConfig struct {
Config *RemoteConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionReceiveConfig) Descriptor
deprecated
func (*SyncStreamItem_SyncActionReceiveConfig) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionReceiveConfig.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionReceiveConfig) GetConfig ¶
func (x *SyncStreamItem_SyncActionReceiveConfig) GetConfig() *RemoteConfig
func (*SyncStreamItem_SyncActionReceiveConfig) ProtoMessage ¶
func (*SyncStreamItem_SyncActionReceiveConfig) ProtoMessage()
func (*SyncStreamItem_SyncActionReceiveConfig) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionReceiveConfig) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionReceiveConfig) Reset ¶
func (x *SyncStreamItem_SyncActionReceiveConfig) Reset()
func (*SyncStreamItem_SyncActionReceiveConfig) String ¶
func (x *SyncStreamItem_SyncActionReceiveConfig) String() string
type SyncStreamItem_SyncActionReceiveLogData ¶
type SyncStreamItem_SyncActionReceiveLogData struct {
LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
// Required only for first message in a log data stream.
OwnerOpid int64 `protobuf:"varint,2,opt,name=owner_opid,json=ownerOpid,proto3" json:"owner_opid,omitempty"` // The operation ID of the operation that owns this log data.
ExpirationTsUnix int64 `protobuf:"varint,3,opt,name=expiration_ts_unix,json=expirationTsUnix,proto3" json:"expiration_ts_unix,omitempty"` // Unix timestamp in seconds when the log data expires.
// Can be sent repeatedly, must be terminated by a packet with size = 0.
Chunk []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"`
// If set, indicates an error occurred while fetching the log data.
ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionReceiveLogData) Descriptor
deprecated
func (*SyncStreamItem_SyncActionReceiveLogData) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionReceiveLogData.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionReceiveLogData) GetChunk ¶
func (x *SyncStreamItem_SyncActionReceiveLogData) GetChunk() []byte
func (*SyncStreamItem_SyncActionReceiveLogData) GetErrorMessage ¶
func (x *SyncStreamItem_SyncActionReceiveLogData) GetErrorMessage() string
func (*SyncStreamItem_SyncActionReceiveLogData) GetExpirationTsUnix ¶
func (x *SyncStreamItem_SyncActionReceiveLogData) GetExpirationTsUnix() int64
func (*SyncStreamItem_SyncActionReceiveLogData) GetLogId ¶
func (x *SyncStreamItem_SyncActionReceiveLogData) GetLogId() string
func (*SyncStreamItem_SyncActionReceiveLogData) GetOwnerOpid ¶
func (x *SyncStreamItem_SyncActionReceiveLogData) GetOwnerOpid() int64
func (*SyncStreamItem_SyncActionReceiveLogData) ProtoMessage ¶
func (*SyncStreamItem_SyncActionReceiveLogData) ProtoMessage()
func (*SyncStreamItem_SyncActionReceiveLogData) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionReceiveLogData) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionReceiveLogData) Reset ¶
func (x *SyncStreamItem_SyncActionReceiveLogData) Reset()
func (*SyncStreamItem_SyncActionReceiveLogData) String ¶
func (x *SyncStreamItem_SyncActionReceiveLogData) String() string
type SyncStreamItem_SyncActionReceiveOperations ¶
type SyncStreamItem_SyncActionReceiveOperations struct {
Event *v1.OperationEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionReceiveOperations) Descriptor
deprecated
func (*SyncStreamItem_SyncActionReceiveOperations) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionReceiveOperations.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionReceiveOperations) GetEvent ¶
func (x *SyncStreamItem_SyncActionReceiveOperations) GetEvent() *v1.OperationEvent
func (*SyncStreamItem_SyncActionReceiveOperations) ProtoMessage ¶
func (*SyncStreamItem_SyncActionReceiveOperations) ProtoMessage()
func (*SyncStreamItem_SyncActionReceiveOperations) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionReceiveOperations) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionReceiveOperations) Reset ¶
func (x *SyncStreamItem_SyncActionReceiveOperations) Reset()
func (*SyncStreamItem_SyncActionReceiveOperations) String ¶
func (x *SyncStreamItem_SyncActionReceiveOperations) String() string
type SyncStreamItem_SyncActionReceiveResources ¶
type SyncStreamItem_SyncActionReceiveResources struct {
Repos []*RepoMetadata `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"`
Plans []*PlanMetadata `protobuf:"bytes,2,rep,name=plans,proto3" json:"plans,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionReceiveResources) Descriptor
deprecated
func (*SyncStreamItem_SyncActionReceiveResources) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionReceiveResources.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionReceiveResources) GetPlans ¶
func (x *SyncStreamItem_SyncActionReceiveResources) GetPlans() []*PlanMetadata
func (*SyncStreamItem_SyncActionReceiveResources) GetRepos ¶
func (x *SyncStreamItem_SyncActionReceiveResources) GetRepos() []*RepoMetadata
func (*SyncStreamItem_SyncActionReceiveResources) ProtoMessage ¶
func (*SyncStreamItem_SyncActionReceiveResources) ProtoMessage()
func (*SyncStreamItem_SyncActionReceiveResources) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionReceiveResources) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionReceiveResources) Reset ¶
func (x *SyncStreamItem_SyncActionReceiveResources) Reset()
func (*SyncStreamItem_SyncActionReceiveResources) String ¶
func (x *SyncStreamItem_SyncActionReceiveResources) String() string
type SyncStreamItem_SyncActionRequestLog ¶
type SyncStreamItem_SyncActionRequestLog struct {
LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionRequestLog) Descriptor
deprecated
func (*SyncStreamItem_SyncActionRequestLog) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionRequestLog.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionRequestLog) GetLogId ¶
func (x *SyncStreamItem_SyncActionRequestLog) GetLogId() string
func (*SyncStreamItem_SyncActionRequestLog) ProtoMessage ¶
func (*SyncStreamItem_SyncActionRequestLog) ProtoMessage()
func (*SyncStreamItem_SyncActionRequestLog) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionRequestLog) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionRequestLog) Reset ¶
func (x *SyncStreamItem_SyncActionRequestLog) Reset()
func (*SyncStreamItem_SyncActionRequestLog) String ¶
func (x *SyncStreamItem_SyncActionRequestLog) String() string
type SyncStreamItem_SyncActionRequestOperationData ¶ added in v1.13.0
type SyncStreamItem_SyncActionRequestOperationData struct {
OpIds []int64 `protobuf:"varint,1,rep,packed,name=op_ids,json=opIds,proto3" json:"op_ids,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionRequestOperationData) Descriptor
deprecated
added in
v1.13.0
func (*SyncStreamItem_SyncActionRequestOperationData) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionRequestOperationData.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionRequestOperationData) GetOpIds ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionRequestOperationData) GetOpIds() []int64
func (*SyncStreamItem_SyncActionRequestOperationData) ProtoMessage ¶ added in v1.13.0
func (*SyncStreamItem_SyncActionRequestOperationData) ProtoMessage()
func (*SyncStreamItem_SyncActionRequestOperationData) ProtoReflect ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionRequestOperationData) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionRequestOperationData) Reset ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionRequestOperationData) Reset()
func (*SyncStreamItem_SyncActionRequestOperationData) String ¶ added in v1.13.0
func (x *SyncStreamItem_SyncActionRequestOperationData) String() string
type SyncStreamItem_SyncActionRequestResources ¶
type SyncStreamItem_SyncActionRequestResources struct {
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionRequestResources) Descriptor
deprecated
func (*SyncStreamItem_SyncActionRequestResources) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionRequestResources.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionRequestResources) ProtoMessage ¶
func (*SyncStreamItem_SyncActionRequestResources) ProtoMessage()
func (*SyncStreamItem_SyncActionRequestResources) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionRequestResources) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionRequestResources) Reset ¶
func (x *SyncStreamItem_SyncActionRequestResources) Reset()
func (*SyncStreamItem_SyncActionRequestResources) String ¶
func (x *SyncStreamItem_SyncActionRequestResources) String() string
type SyncStreamItem_SyncActionSetConfig ¶
type SyncStreamItem_SyncActionSetConfig struct {
Repos []*v1.Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"`
Plans []*v1.Plan `protobuf:"bytes,2,rep,name=plans,proto3" json:"plans,omitempty"`
ReposToDelete []string `protobuf:"bytes,3,rep,name=repos_to_delete,json=reposToDelete,proto3" json:"repos_to_delete,omitempty"`
PlansToDelete []string `protobuf:"bytes,4,rep,name=plans_to_delete,json=plansToDelete,proto3" json:"plans_to_delete,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionSetConfig) Descriptor
deprecated
func (*SyncStreamItem_SyncActionSetConfig) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionSetConfig.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionSetConfig) GetPlans ¶
func (x *SyncStreamItem_SyncActionSetConfig) GetPlans() []*v1.Plan
func (*SyncStreamItem_SyncActionSetConfig) GetPlansToDelete ¶
func (x *SyncStreamItem_SyncActionSetConfig) GetPlansToDelete() []string
func (*SyncStreamItem_SyncActionSetConfig) GetRepos ¶
func (x *SyncStreamItem_SyncActionSetConfig) GetRepos() []*v1.Repo
func (*SyncStreamItem_SyncActionSetConfig) GetReposToDelete ¶
func (x *SyncStreamItem_SyncActionSetConfig) GetReposToDelete() []string
func (*SyncStreamItem_SyncActionSetConfig) ProtoMessage ¶
func (*SyncStreamItem_SyncActionSetConfig) ProtoMessage()
func (*SyncStreamItem_SyncActionSetConfig) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionSetConfig) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionSetConfig) Reset ¶
func (x *SyncStreamItem_SyncActionSetConfig) Reset()
func (*SyncStreamItem_SyncActionSetConfig) String ¶
func (x *SyncStreamItem_SyncActionSetConfig) String() string
type SyncStreamItem_SyncActionThrottle ¶
type SyncStreamItem_SyncActionThrottle struct {
DelayMs int64 `protobuf:"varint,1,opt,name=delay_ms,json=delayMs,proto3" json:"delay_ms,omitempty"`
// contains filtered or unexported fields
}
func (*SyncStreamItem_SyncActionThrottle) Descriptor
deprecated
func (*SyncStreamItem_SyncActionThrottle) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncActionThrottle.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncActionThrottle) GetDelayMs ¶
func (x *SyncStreamItem_SyncActionThrottle) GetDelayMs() int64
func (*SyncStreamItem_SyncActionThrottle) ProtoMessage ¶
func (*SyncStreamItem_SyncActionThrottle) ProtoMessage()
func (*SyncStreamItem_SyncActionThrottle) ProtoReflect ¶
func (x *SyncStreamItem_SyncActionThrottle) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncActionThrottle) Reset ¶
func (x *SyncStreamItem_SyncActionThrottle) Reset()
func (*SyncStreamItem_SyncActionThrottle) String ¶
func (x *SyncStreamItem_SyncActionThrottle) String() string
type SyncStreamItem_SyncEstablishSharedSecret ¶
type SyncStreamItem_SyncEstablishSharedSecret struct {
// contains filtered or unexported fields
}
SyncEstablishSharedSecret is exchanged immediately after the connection is opened. The initiator (client) sends kem_public_key. The responder (server) replies with kem_encapsulation. Both sides then derive a shared AES-256-GCM session key via the HPKE Export interface. All subsequent messages must be wrapped in SyncActionEncrypted.
The KEM is the post-quantum hybrid ML-KEM-1024 + ECDH-P384 (HPKE ciphersuite ML-KEM-1024-P384 / KEM ID 0x0050, RFC 9180 + the IETF hybrid KEM drafts). KDF is HKDF-SHA256, AEAD is AES-256-GCM. Peers must use protocol_version=1; mismatched versions abort the connection.
func (*SyncStreamItem_SyncEstablishSharedSecret) Descriptor
deprecated
func (*SyncStreamItem_SyncEstablishSharedSecret) Descriptor() ([]byte, []int)
Deprecated: Use SyncStreamItem_SyncEstablishSharedSecret.ProtoReflect.Descriptor instead.
func (*SyncStreamItem_SyncEstablishSharedSecret) GetKemEncapsulation ¶ added in v1.13.0
func (x *SyncStreamItem_SyncEstablishSharedSecret) GetKemEncapsulation() []byte
func (*SyncStreamItem_SyncEstablishSharedSecret) GetKemPublicKey ¶ added in v1.13.0
func (x *SyncStreamItem_SyncEstablishSharedSecret) GetKemPublicKey() []byte
func (*SyncStreamItem_SyncEstablishSharedSecret) GetProtocolVersion ¶ added in v1.13.0
func (x *SyncStreamItem_SyncEstablishSharedSecret) GetProtocolVersion() uint32
func (*SyncStreamItem_SyncEstablishSharedSecret) ProtoMessage ¶
func (*SyncStreamItem_SyncEstablishSharedSecret) ProtoMessage()
func (*SyncStreamItem_SyncEstablishSharedSecret) ProtoReflect ¶
func (x *SyncStreamItem_SyncEstablishSharedSecret) ProtoReflect() protoreflect.Message
func (*SyncStreamItem_SyncEstablishSharedSecret) Reset ¶
func (x *SyncStreamItem_SyncEstablishSharedSecret) Reset()
func (*SyncStreamItem_SyncEstablishSharedSecret) String ¶
func (x *SyncStreamItem_SyncEstablishSharedSecret) String() string
type SyncStreamItem_Throttle ¶
type SyncStreamItem_Throttle struct {
Throttle *SyncStreamItem_SyncActionThrottle `protobuf:"bytes,1000,opt,name=throttle,proto3,oneof"`
}
type UnimplementedBackrestSyncServiceServer ¶
type UnimplementedBackrestSyncServiceServer struct{}
UnimplementedBackrestSyncServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
type UnimplementedBackrestSyncStateServiceServer ¶
type UnimplementedBackrestSyncStateServiceServer struct{}
UnimplementedBackrestSyncStateServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedBackrestSyncStateServiceServer) GetPeerSyncStatesStream ¶
func (UnimplementedBackrestSyncStateServiceServer) GetPeerSyncStatesStream(*SyncStateStreamRequest, grpc.ServerStreamingServer[PeerState]) error
func (UnimplementedBackrestSyncStateServiceServer) SetRemoteClientConfig ¶ added in v1.13.0
func (UnimplementedBackrestSyncStateServiceServer) SetRemoteClientConfig(context.Context, *SetRemoteClientConfigRequest) (*SetRemoteClientConfigResponse, error)
type UnsafeBackrestSyncServiceServer ¶
type UnsafeBackrestSyncServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBackrestSyncServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackrestSyncServiceServer will result in compilation errors.
type UnsafeBackrestSyncStateServiceServer ¶
type UnsafeBackrestSyncStateServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBackrestSyncStateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackrestSyncStateServiceServer will result in compilation errors.