config

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version          = "dev"
	Revision         = "unknown"
	CLIStableBaseURL = "https://github.com/getarcaneapp/arcane/releases/download"
	CLINextBaseURL   = "https://bucket.getarcane.app/bin/cli-next"
)

Functions

func AuthPath

func AuthPath() (string, error)

func BackupAuthFile

func BackupAuthFile(ctx context.Context) (backupPath string, moved bool, err error)

func BackupFile

func BackupFile(ctx context.Context) (backupPath string, moved bool, err error)

func ClearTokens

func ClearTokens(ctx context.Context, cfg *types.Config) error

func ConfigPath

func ConfigPath() (string, error)

func DefaultConfig

func DefaultConfig() *types.Config

func InitDefaultFile

func InitDefaultFile(ctx context.Context) (bool, error)

func Load

func Load(ctx context.Context) (*types.Config, error)

func Save

func Save(ctx context.Context, c *types.Config) error

func SaveTokens

func SaveTokens(ctx context.Context, cfg *types.Config) (err error)

func SetConfigPath

func SetConfigPath(path string) error

func SwitchServer

func SwitchServer(ctx context.Context, cfg *types.Config, serverURL string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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