Documentation
¶
Index ¶
- func AcquireMaintenance(ctx context.Context, home string) (func() error, error)
- func AppendLog(ctx context.Context, db *sql.DB, event LogEvent) (string, error)
- func Backup(ctx context.Context, db *sql.DB, destination string) (err error)
- func BackupExisting(ctx context.Context, source, destination string) error
- func CaptureText(ctx context.Context, db *sql.DB, path string) ([]byte, error)
- func CollectArtifacts(ctx context.Context, home string) (int, error)
- func HasText(ctx context.Context, db *sql.DB, path string) (bool, error)
- func Open(ctx context.Context, home string, kind Kind) (*sql.DB, error)
- func OpenReadOnly(ctx context.Context, path string) (*sql.DB, error)
- func Path(home string, kind Kind) (string, error)
- func ReadArtifact(home, id string) ([]byte, error)
- func ReleaseDataPool(home string) error
- func RestoreBackup(ctx context.Context, destination, source string) error
- func RestoreText(ctx context.Context, db *sql.DB, path string) error
- func RunArtifactCollection(ctx context.Context, home string)
- func StoreArtifact(home string, content []byte) (string, error)
- func WriteFilePosition(ctx context.Context, home, projectID, path, view string, position FilePosition) error
- func WriteFolderState(ctx context.Context, home, projectID, panel string, state FolderState) error
- func WritePDFPreferences(ctx context.Context, home, projectID string, prefs PDFPreferences) error
- type FilePosition
- type FolderState
- type Kind
- type Lease
- type LogEvent
- type PDFPreferences
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireMaintenance ¶
func ReadArtifact ¶
func ReleaseDataPool ¶
func RunArtifactCollection ¶
func WriteFilePosition ¶ added in v2026.1201.0
func WriteFilePosition(ctx context.Context, home, projectID, path, view string, position FilePosition) error
func WriteFolderState ¶ added in v2026.1201.0
func WriteFolderState(ctx context.Context, home, projectID, panel string, state FolderState) error
func WritePDFPreferences ¶ added in v2026.1201.0
func WritePDFPreferences(ctx context.Context, home, projectID string, prefs PDFPreferences) error
Types ¶
type FilePosition ¶ added in v2026.1201.0
type FilePosition struct {
Top float64 `json:"top"`
Left float64 `json:"left"`
Anchor int `json:"anchor"`
Head int `json:"head"`
ScrollAnchor *int `json:"scrollAnchor,omitempty"`
ScrollOffset *float64 `json:"scrollOffset,omitempty"`
Page int `json:"page,omitempty"`
Layout string `json:"layout,omitempty"`
}
func ReadFilePosition ¶ added in v2026.1201.0
func ReadFilePosition(ctx context.Context, home, projectID, path, view string) (*FilePosition, error)
type FolderState ¶ added in v2026.1201.0
type FolderState struct {
Expanded []string `json:"expanded"`
RootCollapsed bool `json:"rootCollapsed"`
}
func ReadFolderState ¶ added in v2026.1201.0
func ReadFolderState(ctx context.Context, home, projectID, panel string) (*FolderState, error)
type PDFPreferences ¶ added in v2026.1201.0
type PDFPreferences struct {
Continuous bool `json:"continuous"`
Direction string `json:"direction"`
TwoPages bool `json:"twoPages"`
Zoom float64 `json:"zoom"`
FitMode *string `json:"fitMode"`
}
func ReadPDFPreferences ¶ added in v2026.1201.0
func ReadPDFPreferences(ctx context.Context, home, projectID string) (*PDFPreferences, error)
Click to show internal directories.
Click to hide internal directories.