settings

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CanStoreConnection = checkKeyring()

CanStoreConnection indicates whether a keyring backend is available to store MongoDB connection data.

Functions

func GetConnectionURI

func GetConnectionURI(key string) (string, error)

GetConnectionURI gets the connectionURI specified by the passed key of the secret store of the current OS

func GetConnections

func GetConnections() ([]string, error)

GetConnections gets the stored connections of the secret store of the current OS

func InitCommandLineArgs

func InitCommandLineArgs(connection *models.Connection)

InitCommandLineArgs initializes the command line arguments. Currently, it is just -c to set a connection URI to connect to a MongoDB instance directly after application start.

func StoreConnection

func StoreConnection(key string, connectionURI string) error

StoreConnection stores the passed connectionURI under the passed key into the secret store of the current OS

Types

type Command added in v0.2.0

type Command struct {
	Key         tcell.Key
	Description string
}

Command defines the command shortcuts and the command description.

func GetCommands added in v0.2.0

func GetCommands() []Command

GetCommands returns the defined application commands.

Jump to

Keyboard shortcuts

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