filepaths

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: AGPL-3.0 Imports: 14 Imported by: 12

Documentation

Index

Constants

View Source
const (
	WorkspaceModDir             = "mods"
	WorkspaceModShadowDirPrefix = ".mods."
	WorkspaceConfigFileName     = "workspace.spc"
	WorkspaceLockFileName       = ".mod.cache.json"
)

mod related constants

Variables

View Source
var DefaultPipesInstallDir = ""

PipesInstallDir is the location of config files common between pipelings this must be set by the application at startup

View Source
var PipesInstallDir = ""

Functions

func AvailableVersionsFilePath

func AvailableVersionsFilePath() string

AvailableVersionsFilePath returns the path of the json file used to store cache available versions of installed plugins and the CLI

func BackupsDir

func BackupsDir() string

BackupsDir returns the path to the backups directory

func CleanupPidTempDirs added in v2.6.2

func CleanupPidTempDirs(dir string)

CleanupPidTempDirs cleans up the temporary directories passed to it

func CleanupPluginTempDirs added in v2.6.2

func CleanupPluginTempDirs()

CleanupPluginTempDirs removes orphaned temporary directories from failed plugin installations

func ConnectionStatePath

func ConnectionStatePath() string

ConnectionStatePath returns the path of the connections state file

func DashboardServiceStateFilePath

func DashboardServiceStateFilePath() string

func DatabaseVersionFilePath

func DatabaseVersionFilePath() string

DatabaseVersionFilePath returns the plugin version file path

func DefaultVarsFilePath

func DefaultVarsFilePath(workspacePath string) string

func EnsureBackupsDir

func EnsureBackupsDir() string

EnsureBackupsDir returns the path to the backups directory (creates if missing)

func EnsureConfigDir

func EnsureConfigDir() string

EnsureConfigDir returns the path to the config directory (creates if missing)

func EnsureControlTemplateDir

func EnsureControlTemplateDir() string

EnsureControlTemplateDir returns the path to the templates directory (creates if missing)

func EnsureDashboardAssetsDir

func EnsureDashboardAssetsDir() string

func EnsureDataDir

func EnsureDataDir() string

EnsureDataDir returns the path to the data directory (creates if missing)

func EnsureDatabaseDir

func EnsureDatabaseDir() string

EnsureDatabaseDir returns the path to the db directory (creates if missing)

func EnsureDetectionTemplateDir

func EnsureDetectionTemplateDir() string

EnsureDetectionTemplateDir returns the path to the detection templates directory (creates if missing)

func EnsureInternalDir

func EnsureInternalDir() string

EnsureInternalDir returns the path to the internal directory (creates if missing)

func EnsureLogDir

func EnsureLogDir() string

EnsureLogDir returns the path to the db log directory (creates if missing)

func EnsurePidTempDir added in v2.6.2

func EnsurePidTempDir(parent string) string

EnsurePidTempDir creates a temporary directory with the current process ID as the name, it returns the path to the temporary directory

func EnsurePipesDuckDbExtensionsDir

func EnsurePipesDuckDbExtensionsDir() string

EnsurePipesDuckDbExtensionsDir returns the path to the pipes duckdb extensions directory (creates if missing)

func EnsurePipesInternalDir

func EnsurePipesInternalDir() string

EnsurePipesInternalDir returns the path to the pipes internal directory (creates if missing)

func EnsurePluginDir

func EnsurePluginDir() string

EnsurePluginDir returns the path to the plugins directory (creates if missing)

func EnsurePluginInstallDir

func EnsurePluginInstallDir(pluginImageDisplayRef string) string

func EnsurePluginTempDir added in v2.6.2

func EnsurePluginTempDir() string

When we install the plugin all the files go under ~/.tailpipe/plugins/temp/<pid> folder

func FindPluginFolder

func FindPluginFolder(remoteSchema string) (string, error)

FindPluginFolder searches for a folder which when hashed would match the schema

func GetDataDir

func GetDataDir() string

GetDataDir returns the path to the data directory

func GetInternalDir

func GetInternalDir() string

GetInternalDir returns the path to the internal directory

func GetPluginPath

func GetPluginPath(pluginImageRef, pluginAlias string) (string, error)

func IsDirEmpty added in v2.6.2

func IsDirEmpty(dir string) (bool, error)

isDirEmpty checks if a directory is empty.

func IsModInstallShadowPath

func IsModInstallShadowPath(dirName string) bool

func LegacyDefaultVarsFilePath

func LegacyDefaultVarsFilePath(workspacePath string) string

func LegacyNotificationsFilePath

func LegacyNotificationsFilePath() string

LegacyNotificationsFilePath returns the path of the (legacy) notifications.json file used to store update notifications

func LegacyVersionFilePath

func LegacyVersionFilePath() string

LegacyVersionFilePath returns the legacy version file path

func LocalPluginPath

func LocalPluginPath() string

LocalPluginPath returns the path to locally installed plugins

func PipesInternalDir

func PipesInternalDir() string

PipesInternalDir returns the path to the pipes internal directory (creates if missing)

func PluginAliasToLongName

func PluginAliasToLongName(pluginName string) string

func PluginAliasToShortName

func PluginAliasToShortName(pluginName string) string

func PluginBinaryPath

func PluginBinaryPath(pluginImageDisplayRef, pluginAlias string) string

func PluginInstallDir

func PluginInstallDir(pluginImageDisplayRef string) string

func PluginManagerStateFilePath

func PluginManagerStateFilePath() string

func PluginVersionFilePath

func PluginVersionFilePath() string

PluginVersionFilePath returns the plugin version file path

func RemoveDirAndEmptyParents added in v2.6.2

func RemoveDirAndEmptyParents(tempDir string)

RemoveDirAndEmptyParents deletes the redundant 'temp' directory passed to it if it is empty

func ReportAssetsVersionFilePath

func ReportAssetsVersionFilePath() string

ReportAssetsVersionFilePath returns the report assets version file path

func RunningInfoFilePath

func RunningInfoFilePath() string

func StateFileName

func StateFileName() string

func StateFilePath

func StateFilePath() string

StateFilePath returns the path of the update_check.json state file

func WorkspaceLockPath

func WorkspaceLockPath(workspacePath string) string

func WorkspaceModPath

func WorkspaceModPath(workspacePath string) string

func WorkspaceModShadowPath

func WorkspaceModShadowPath(workspacePath string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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