Documentation ¶
Index ¶
- type Authenticator
- type Server
- func (s *Server) AddRepo(ctx context.Context, req *connect.Request[v1.Repo]) (*connect.Response[v1.Config], error)
- func (s *Server) Backup(ctx context.Context, req *connect.Request[types.StringValue]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) Cancel(ctx context.Context, req *connect.Request[types.Int64Value]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) ClearHistory(ctx context.Context, req *connect.Request[v1.ClearHistoryRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) Forget(ctx context.Context, req *connect.Request[types.StringValue]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) GetConfig(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[v1.Config], error)
- func (s *Server) GetOperationEvents(ctx context.Context, req *connect.Request[emptypb.Empty], ...) error
- func (s *Server) GetOperations(ctx context.Context, req *connect.Request[v1.GetOperationsRequest]) (*connect.Response[v1.OperationList], error)
- func (s *Server) IndexSnapshots(ctx context.Context, req *connect.Request[types.StringValue]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) ListSnapshotFiles(ctx context.Context, req *connect.Request[v1.ListSnapshotFilesRequest]) (*connect.Response[v1.ListSnapshotFilesResponse], error)
- func (s *Server) ListSnapshots(ctx context.Context, req *connect.Request[v1.ListSnapshotsRequest]) (*connect.Response[v1.ResticSnapshotList], error)
- func (s *Server) PathAutocomplete(ctx context.Context, path *connect.Request[types.StringValue]) (*connect.Response[types.StringList], error)
- func (s *Server) Prune(ctx context.Context, req *connect.Request[types.StringValue]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) Restore(ctx context.Context, req *connect.Request[v1.RestoreSnapshotRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *Server) SetConfig(ctx context.Context, req *connect.Request[v1.Config]) (*connect.Response[v1.Config], error)
- func (s *Server) Unlock(ctx context.Context, req *connect.Request[types.StringValue]) (*connect.Response[emptypb.Empty], error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶ added in v0.8.0
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶ added in v0.8.0
func NewAuthenticator(users []*v1.User) *Authenticator
func (*Authenticator) Authenticate ¶ added in v0.8.0
func (a *Authenticator) Authenticate(username, password string) (*User, bool)
type Server ¶
type Server struct { v1connect.UnimplementedBackrestHandler // contains filtered or unexported fields }
func NewServer ¶
func NewServer(config config.ConfigStore, orchestrator *orchestrator.Orchestrator, oplog *oplog.OpLog) *Server
func (*Server) AddRepo ¶
func (s *Server) AddRepo(ctx context.Context, req *connect.Request[v1.Repo]) (*connect.Response[v1.Config], error)
AddRepo implements POST /v1/config/repo, it includes validation that the repo can be initialized.
func (*Server) ClearHistory ¶
func (*Server) GetConfig ¶
func (s *Server) GetConfig(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[v1.Config], error)
GetConfig implements GET /v1/config
func (*Server) GetOperationEvents ¶
func (s *Server) GetOperationEvents(ctx context.Context, req *connect.Request[emptypb.Empty], resp *connect.ServerStream[v1.OperationEvent]) error
GetOperationEvents implements GET /v1/events/operations
func (*Server) GetOperations ¶
func (*Server) IndexSnapshots ¶ added in v0.9.0
func (*Server) ListSnapshotFiles ¶
func (*Server) ListSnapshots ¶
func (s *Server) ListSnapshots(ctx context.Context, req *connect.Request[v1.ListSnapshotsRequest]) (*connect.Response[v1.ResticSnapshotList], error)
ListSnapshots implements POST /v1/snapshots
func (*Server) PathAutocomplete ¶
Click to show internal directories.
Click to hide internal directories.