v1sync

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackrestSyncStateService_GetPeerSyncStatesStream_FullMethodName = "/v1sync.BackrestSyncStateService/GetPeerSyncStatesStream"
	BackrestSyncStateService_SetRemoteClientConfig_FullMethodName   = "/v1sync.BackrestSyncStateService/SetRemoteClientConfig"
)
View Source
const (
	BackrestSyncService_Sync_FullMethodName = "/v1sync.BackrestSyncService/Sync"
)

Variables

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

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

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

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

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

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.

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

func (x ConnectionState) Enum() *ConnectionState

func (ConnectionState) EnumDescriptor deprecated

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

Deprecated: Use ConnectionState.Descriptor instead.

func (ConnectionState) Number

func (ConnectionState) String

func (x ConnectionState) String() string

func (ConnectionState) Type

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 (*GetOperationMetadataResponse) Reset

func (x *GetOperationMetadataResponse) Reset()

func (*GetOperationMetadataResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use PeerState.ProtoReflect.Descriptor instead.

func (*PeerState) GetKnownPlans

func (x *PeerState) GetKnownPlans() []*PlanMetadata

func (*PeerState) GetKnownRepos

func (x *PeerState) GetKnownRepos() []*RepoMetadata

func (*PeerState) GetLastHeartbeatMillis

func (x *PeerState) GetLastHeartbeatMillis() int64

func (*PeerState) GetPeerInstanceId

func (x *PeerState) GetPeerInstanceId() string

func (*PeerState) GetPeerKeyid

func (x *PeerState) GetPeerKeyid() string

func (*PeerState) GetRemoteConfig

func (x *PeerState) GetRemoteConfig() *RemoteConfig

func (*PeerState) GetState

func (x *PeerState) GetState() ConnectionState

func (*PeerState) GetStatusMessage

func (x *PeerState) GetStatusMessage() string

func (*PeerState) ProtoMessage

func (*PeerState) ProtoMessage()

func (*PeerState) ProtoReflect

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

func (*PeerState) Reset

func (x *PeerState) Reset()

func (*PeerState) String

func (x *PeerState) String() string

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 (*SetAvailableResourcesRequest) Reset

func (x *SetAvailableResourcesRequest) Reset()

func (*SetAvailableResourcesRequest) 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 (*SetRemoteClientConfigRequest) Reset added in v1.13.0

func (x *SetRemoteClientConfigRequest) Reset()

func (*SetRemoteClientConfigRequest) String added in v1.13.0

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 (*SetRemoteClientConfigResponse) Reset added in v1.13.0

func (x *SetRemoteClientConfigResponse) Reset()

func (*SetRemoteClientConfigResponse) String added in v1.13.0

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 (*SyncStreamItem) GetEstablishSharedSecret added in v1.13.0

func (x *SyncStreamItem) GetEstablishSharedSecret() *SyncStreamItem_SyncEstablishSharedSecret

func (*SyncStreamItem) GetHandshake

func (*SyncStreamItem) GetHeartbeat

func (*SyncStreamItem) GetOperationManifest added in v1.13.0

func (*SyncStreamItem) GetReceiveConfig

func (*SyncStreamItem) GetReceiveLogData

func (*SyncStreamItem) GetReceiveOperations

func (*SyncStreamItem) GetReceiveResources

func (*SyncStreamItem) GetRequestLog

func (*SyncStreamItem) GetRequestOperationData added in v1.13.0

func (x *SyncStreamItem) GetRequestOperationData() *SyncStreamItem_SyncActionRequestOperationData

func (*SyncStreamItem) GetRequestResources

func (*SyncStreamItem) GetSetConfig

func (*SyncStreamItem) GetSignedMessage

func (x *SyncStreamItem) GetSignedMessage() *v1.SignedMessage

func (*SyncStreamItem) GetThrottle

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 {
	EstablishSharedSecret *SyncStreamItem_SyncEstablishSharedSecret `protobuf:"bytes,2,opt,name=establish_shared_secret,json=establishSharedSecret,proto3,oneof"`
}

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

func (SyncStreamItem_RepoConnectionState) EnumDescriptor deprecated

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

Deprecated: Use SyncStreamItem_RepoConnectionState.Descriptor instead.

func (SyncStreamItem_RepoConnectionState) Number

func (SyncStreamItem_RepoConnectionState) String

func (SyncStreamItem_RepoConnectionState) Type

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 (*SyncStreamItem_SyncActionConnectRepo) ProtoMessage

func (*SyncStreamItem_SyncActionConnectRepo) ProtoMessage()

func (*SyncStreamItem_SyncActionConnectRepo) ProtoReflect

func (*SyncStreamItem_SyncActionConnectRepo) Reset

func (*SyncStreamItem_SyncActionConnectRepo) 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 (*SyncStreamItem_SyncActionEncrypted) Reset added in v1.13.0

func (*SyncStreamItem_SyncActionEncrypted) String added in v1.13.0

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 (*SyncStreamItem_SyncActionHandshake) Reset

func (*SyncStreamItem_SyncActionHandshake) 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 (*SyncStreamItem_SyncActionHeartbeat) Reset

func (*SyncStreamItem_SyncActionHeartbeat) 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

Deprecated: Use SyncStreamItem_SyncActionOperationManifest.ProtoReflect.Descriptor instead.

func (*SyncStreamItem_SyncActionOperationManifest) GetModnos added in v1.13.0

func (*SyncStreamItem_SyncActionOperationManifest) GetOpIds added in v1.13.0

func (*SyncStreamItem_SyncActionOperationManifest) ProtoMessage added in v1.13.0

func (*SyncStreamItem_SyncActionOperationManifest) ProtoReflect added in v1.13.0

func (*SyncStreamItem_SyncActionOperationManifest) Reset added in v1.13.0

func (*SyncStreamItem_SyncActionOperationManifest) String added in v1.13.0

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 (*SyncStreamItem_SyncActionReceiveConfig) ProtoMessage

func (*SyncStreamItem_SyncActionReceiveConfig) ProtoReflect

func (*SyncStreamItem_SyncActionReceiveConfig) Reset

func (*SyncStreamItem_SyncActionReceiveConfig) 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 (*SyncStreamItem_SyncActionReceiveLogData) GetErrorMessage

func (x *SyncStreamItem_SyncActionReceiveLogData) GetErrorMessage() string

func (*SyncStreamItem_SyncActionReceiveLogData) GetExpirationTsUnix

func (x *SyncStreamItem_SyncActionReceiveLogData) GetExpirationTsUnix() int64

func (*SyncStreamItem_SyncActionReceiveLogData) GetLogId

func (*SyncStreamItem_SyncActionReceiveLogData) GetOwnerOpid

func (*SyncStreamItem_SyncActionReceiveLogData) ProtoMessage

func (*SyncStreamItem_SyncActionReceiveLogData) ProtoReflect

func (*SyncStreamItem_SyncActionReceiveLogData) Reset

func (*SyncStreamItem_SyncActionReceiveLogData) 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

Deprecated: Use SyncStreamItem_SyncActionReceiveOperations.ProtoReflect.Descriptor instead.

func (*SyncStreamItem_SyncActionReceiveOperations) GetEvent

func (*SyncStreamItem_SyncActionReceiveOperations) ProtoMessage

func (*SyncStreamItem_SyncActionReceiveOperations) ProtoReflect

func (*SyncStreamItem_SyncActionReceiveOperations) Reset

func (*SyncStreamItem_SyncActionReceiveOperations) 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 (*SyncStreamItem_SyncActionReceiveResources) GetRepos

func (*SyncStreamItem_SyncActionReceiveResources) ProtoMessage

func (*SyncStreamItem_SyncActionReceiveResources) ProtoReflect

func (*SyncStreamItem_SyncActionReceiveResources) Reset

func (*SyncStreamItem_SyncActionReceiveResources) 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 (*SyncStreamItem_SyncActionRequestLog) ProtoMessage

func (*SyncStreamItem_SyncActionRequestLog) ProtoMessage()

func (*SyncStreamItem_SyncActionRequestLog) ProtoReflect

func (*SyncStreamItem_SyncActionRequestLog) Reset

func (*SyncStreamItem_SyncActionRequestLog) 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

Deprecated: Use SyncStreamItem_SyncActionRequestOperationData.ProtoReflect.Descriptor instead.

func (*SyncStreamItem_SyncActionRequestOperationData) GetOpIds added in v1.13.0

func (*SyncStreamItem_SyncActionRequestOperationData) ProtoMessage added in v1.13.0

func (*SyncStreamItem_SyncActionRequestOperationData) ProtoReflect added in v1.13.0

func (*SyncStreamItem_SyncActionRequestOperationData) Reset added in v1.13.0

func (*SyncStreamItem_SyncActionRequestOperationData) String added in v1.13.0

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

func (*SyncStreamItem_SyncActionRequestResources) Reset

func (*SyncStreamItem_SyncActionRequestResources) 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 (*SyncStreamItem_SyncActionSetConfig) Reset

func (*SyncStreamItem_SyncActionSetConfig) 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 (*SyncStreamItem_SyncActionThrottle) Reset

func (*SyncStreamItem_SyncActionThrottle) String

type SyncStreamItem_SyncEstablishSharedSecret

type SyncStreamItem_SyncEstablishSharedSecret struct {
	ProtocolVersion  uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`   // current: 1
	KemPublicKey     []byte `protobuf:"bytes,2,opt,name=kem_public_key,json=kemPublicKey,proto3" json:"kem_public_key,omitempty"`           // set by initiator
	KemEncapsulation []byte `protobuf:"bytes,3,opt,name=kem_encapsulation,json=kemEncapsulation,proto3" json:"kem_encapsulation,omitempty"` // set by responder
	// 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) ProtoReflect

func (*SyncStreamItem_SyncEstablishSharedSecret) Reset

func (*SyncStreamItem_SyncEstablishSharedSecret) 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.

func (UnimplementedBackrestSyncServiceServer) Sync

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) SetRemoteClientConfig added in v1.13.0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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