mirror of
https://github.com/kopia/kopia.git
synced 2026-01-31 01:33:12 -05:00
22 lines
485 B
Go
22 lines
485 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
|
|
"github.com/kopia/kopia/internal/serverapi"
|
|
)
|
|
|
|
func (s *Server) handleStatus(ctx context.Context, r *http.Request) (interface{}, *apiError) {
|
|
bf := s.rep.Content.Format
|
|
bf.HMACSecret = nil
|
|
bf.MasterKey = nil
|
|
|
|
return &serverapi.StatusResponse{
|
|
ConfigFile: s.rep.ConfigFile,
|
|
CacheDir: s.rep.Content.CachingOptions.CacheDirectory,
|
|
BlockFormatting: bf,
|
|
Storage: s.rep.Blobs.ConnectionInfo().Type,
|
|
}, nil
|
|
}
|