store

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package store provides local file storage for CLI data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireLock

func AcquireLock(lockPath string) (func(), error)

AcquireLock creates a lock file for concurrent access

func GetConfigDir

func GetConfigDir() (string, error)

GetConfigDir returns the configuration directory path

func GetDebugPath

func GetDebugPath(profile string) (string, error)

GetDebugPath returns the path to the debug config file.

func GetServerURLPath

func GetServerURLPath(profile string) (string, error)

GetServerURLPath returns the path to the server URL file

func GetTokenPath

func GetTokenPath(profile string) (string, error)

GetTokenPath returns the path to the token file

func LoadDebug

func LoadDebug(profile string) (bool, error)

LoadDebug loads the debug mode setting. Returns false if the setting has never been saved.

func LoadServerURL

func LoadServerURL(profile string) (string, error)

LoadServerURL loads the server URL

func LoadToken

func LoadToken(profile string) (string, error)

LoadToken loads the authentication token

func SaveDebug

func SaveDebug(enabled bool, profile string) error

SaveDebug saves the debug mode setting.

func SaveServerURL

func SaveServerURL(serverURL, profile string) error

SaveServerURL saves the server URL

func SaveToken

func SaveToken(token, profile string) error

SaveToken saves the authentication token

Types

This section is empty.

Jump to

Keyboard shortcuts

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