paths

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: GPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package paths 解析 sctl 的数据目录与派生路径(日志、配对密钥等)。 各平台的用户级应用数据目录可由 CLI --data-dir 覆盖。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrowsersFile added in v0.2.0

func BrowsersFile() string

BrowsersFile 返回已配对浏览器实例登记表(含每实例密钥)的落盘路径(0600)。

func ControlTokenFile

func ControlTokenFile() string

ControlTokenFile 返回本机内部控制通道凭据的落盘路径(0600)。daemon 绑定端口后写入, 同用户的前端(sctl mcp / CLI 动词)读取后作为控制 API 的鉴权凭据。

func DataDir

func DataDir() string

DataDir 返回 sctl 的数据目录。CLI 配置优先,否则使用平台默认目录。

func KeyFile

func KeyFile() string

KeyFile 返回扩展配对长期密钥的落盘路径(0600)。

func LogsDir

func LogsDir() string

LogsDir 返回日志目录 <dataDir>/logs。

func ScriptCatsFile added in v0.3.0

func ScriptCatsFile() string

ScriptCatsFile 返回已配对新版 ScriptCat 实例登记表(含每实例密钥)的落盘路径(0600)。

func SetDataDir

func SetDataDir(dir string)

SetDataDir configures the process-wide data directory before the daemon or a CLI client starts. An empty value restores platform-default path resolution.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL