Documentation
¶
Index ¶
- func AuditDetails(m map[string]any) string
- type LoginRequest
- type PinKeyRequest
- type RemotePairRequest
- type ScheduleRequest
- type Server
- func (s *Server) ApplyInstaller(ctx context.Context, raw []byte, check bool) (applysetup.Report, error)
- func (s *Server) CloseSearch() error
- func (s *Server) EditorConfigurationError() error
- func (s *Server) RunBlobSealing(ctx context.Context)
- func (s *Server) RunEditorRevocations(ctx context.Context)
- func (s *Server) RunRetention(ctx context.Context)
- func (s *Server) RunSearchIndex(ctx context.Context)
- func (s *Server) RunSuiteGroups(ctx context.Context)
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) StartKyPost(ctx context.Context)
- func (s *Server) StopBackupCollection()
- func (s *Server) WaitDetached()
- type ThemeUpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditDetails ¶
AuditDetails flattens the lib's details map into the bounded audit column. Locally derived fields go first so a long remote error cannot displace the useful facts.
Types ¶
type LoginRequest ¶
type PinKeyRequest ¶
type RemotePairRequest ¶
type ScheduleRequest ¶
type ScheduleRequest struct {
IntervalSec int64 `json:"interval_sec"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ApplyInstaller ¶
func (s *Server) ApplyInstaller(ctx context.Context, raw []byte, check bool) (applysetup.Report, error)
ApplyInstaller compares desired configuration with the server's immutable startup snapshot. A committed configuration awaiting restart stays pending.
func (*Server) CloseSearch ¶ added in v0.4.3
CloseSearch closes the index; call it after RunSearchIndex has returned.
func (*Server) EditorConfigurationError ¶
EditorConfigurationError is checked by the CLI before serving requests.
func (*Server) RunBlobSealing ¶
RunBlobSealing encrypts blobs written before sealing existed and rewrites KYB1 blobs as KYB2, now and then hourly. Each pass first finishes swaps an earlier run committed but did not clean up.
func (*Server) RunEditorRevocations ¶
func (*Server) RunRetention ¶
RunRetention applies retention, sweeps orphaned blobs, expires upload sessions and prunes the change log now and then hourly. Blobs are removed after their metadata commits; a failed removal leaves an unreferenced file, never a dangling version.
func (*Server) RunSearchIndex ¶ added in v0.4.3
RunSearchIndex keeps the index in step with the drive until ctx ends: it reconciles at start and hourly, and every few seconds queues changed files and indexes those due, throttled to about two thirds of a core.
func (*Server) RunSuiteGroups ¶ added in v0.6.1
RunSuiteGroups reconciles KyIdentity's suite groups into workspaces every suiteGroupsPoll until ctx ends. cmd/server starts it.
func (*Server) StartKyPost ¶ added in v0.6.1
StartKyPost pairs KyPost through KyIdentity when the environment names none, then keeps the link fresh until ctx ends. cmd/server calls it before serving.
func (*Server) StopBackupCollection ¶
func (s *Server) StopBackupCollection()
StopBackupCollection cancels detached deposits still collecting their payload, so shutdown waits only for those sealing or uploading.
func (*Server) WaitDetached ¶
func (s *Server) WaitDetached()
WaitDetached blocks until every request that detached from its connection has finished. It is called after http.Server.Shutdown and before the store is closed: pairing, the key pin and a deposit all keep writing after their connection is gone, and a closed store under them leaves a key pinned on disk with no row recording it.
type ThemeUpdateRequest ¶
type ThemeUpdateRequest struct {
Theme string `json:"theme"`
}
Source Files
¶
- app_passwords.go
- auth_handlers.go
- backup_handlers.go
- dav.go
- devices.go
- devicesig.go
- document_text.go
- drive_changes.go
- drive_documents.go
- drive_handlers.go
- drive_preview.go
- drive_retention.go
- drive_revocation.go
- drive_shares.go
- drive_uploads.go
- drive_zip.go
- editor_page.go
- guest.go
- installer.go
- kypost.go
- kypost_view.go
- mcp.go
- office_thumbs.go
- password_handlers.go
- search_index.go
- server.go
- settings_handlers.go
- sso_handlers.go
- step_up.go
- suite_apps.go
- suite_groups.go
- suite_pick.go
- tls_pin.go