filepaths

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: AGPL-3.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

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

mod related constants

View Source
const (
	PipesComponentInternal = "internal"
)

Variables

This section is empty.

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 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 EnsureDashboardAssetsDir

func EnsureDashboardAssetsDir() string

func EnsureDatabaseDir

func EnsureDatabaseDir() string

EnsureDatabaseDir returns the path to the db 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 EnsurePluginDir

func EnsurePluginDir() string

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

func EnsureTemplateDir

func EnsureTemplateDir() string

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

func FindPluginFolder

func FindPluginFolder(remoteSchema string) (string, error)

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

func GetPluginPath

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

func IsModInstallShadowPath

func IsModInstallShadowPath(dirName string) bool

func LegacyDashboardAssetsDir

func LegacyDashboardAssetsDir() string

LegacyDashboardAssetsDir returns the path to the legacy report assets folder

func LegacyNotificationsFilePath

func LegacyNotificationsFilePath() string

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

func LegacyStateFilePath

func LegacyStateFilePath() string

LegacyStateFilePath returns the path of the legacy update-check.json state file

func LegacyVersionFilePath

func LegacyVersionFilePath() string

LegacyVersionFilePath returns the legacy version file path

func ModFilePath

func ModFilePath(modFolder string) string

func PluginManagerStateFilePath

func PluginManagerStateFilePath() string

func PluginVersionFilePath

func PluginVersionFilePath() string

PluginVersionFilePath returns the plugin version file path

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