v1sync

package
v1.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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{},
	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)
}

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
	// 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 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_RequestOperations
	//	*SyncStreamItem_ReceiveOperations
	//	*SyncStreamItem_ReceiveConfig
	//	*SyncStreamItem_SetConfig
	//	*SyncStreamItem_RequestResources
	//	*SyncStreamItem_ReceiveResources
	//	*SyncStreamItem_RequestLog
	//	*SyncStreamItem_ReceiveLogData
	//	*SyncStreamItem_Throttle
	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) GetHandshake

func (*SyncStreamItem) GetHeartbeat

func (*SyncStreamItem) GetReceiveConfig

func (*SyncStreamItem) GetReceiveLogData

func (*SyncStreamItem) GetReceiveOperations

func (*SyncStreamItem) GetReceiveResources

func (*SyncStreamItem) GetRequestLog

func (*SyncStreamItem) GetRequestOperations

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_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_ReceiveConfig

type SyncStreamItem_ReceiveConfig struct {
	ReceiveConfig *SyncStreamItem_SyncActionReceiveConfig `protobuf:"bytes,22,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_RequestOperations

type SyncStreamItem_RequestOperations struct {
	RequestOperations *SyncStreamItem_SyncActionRequestOperations `protobuf:"bytes,20,opt,name=request_operations,json=requestOperations,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_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"`
	InstanceId      *v1.SignedMessage `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncStreamItem_SyncActionHandshake) Descriptor deprecated

func (*SyncStreamItem_SyncActionHandshake) Descriptor() ([]byte, []int)

Deprecated: Use SyncStreamItem_SyncActionHandshake.ProtoReflect.Descriptor instead.

func (*SyncStreamItem_SyncActionHandshake) GetInstanceId

func (*SyncStreamItem_SyncActionHandshake) GetProtocolVersion

func (x *SyncStreamItem_SyncActionHandshake) GetProtocolVersion() int64

func (*SyncStreamItem_SyncActionHandshake) GetPublicKey

func (x *SyncStreamItem_SyncActionHandshake) GetPublicKey() *v1.PublicKey

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_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_SyncActionRequestOperations

type SyncStreamItem_SyncActionRequestOperations struct {
	HighOpid  int64 `protobuf:"varint,1,opt,name=high_opid,json=highOpid,proto3" json:"high_opid,omitempty"`    // The highest operation ID the requester has.
	HighModno int64 `protobuf:"varint,2,opt,name=high_modno,json=highModno,proto3" json:"high_modno,omitempty"` // The highest modno the requester has.
	// contains filtered or unexported fields
}

func (*SyncStreamItem_SyncActionRequestOperations) Descriptor deprecated

Deprecated: Use SyncStreamItem_SyncActionRequestOperations.ProtoReflect.Descriptor instead.

func (*SyncStreamItem_SyncActionRequestOperations) GetHighModno

func (*SyncStreamItem_SyncActionRequestOperations) GetHighOpid

func (*SyncStreamItem_SyncActionRequestOperations) ProtoMessage

func (*SyncStreamItem_SyncActionRequestOperations) ProtoReflect

func (*SyncStreamItem_SyncActionRequestOperations) Reset

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

	// a one-time-use ed25519 public key with a matching unshared private key. Used to perform a key exchange.
	// See https://pkg.go.dev/crypto/ecdh#PrivateKey.ECDH .
	Ed25519 string `protobuf:"bytes,2,opt,name=ed25519,json=ed25519pub,proto3" json:"ed25519,omitempty"` // base64 encoded public key
	// contains filtered or unexported fields
}

func (*SyncStreamItem_SyncEstablishSharedSecret) Descriptor deprecated

func (*SyncStreamItem_SyncEstablishSharedSecret) Descriptor() ([]byte, []int)

Deprecated: Use SyncStreamItem_SyncEstablishSharedSecret.ProtoReflect.Descriptor instead.

func (*SyncStreamItem_SyncEstablishSharedSecret) GetEd25519

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

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