config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfNameExists

func CheckIfNameExists(name string) bool

CheckIfNameExists checks if a connection with the given name already exists.

func DeleteAllConnections

func DeleteAllConnections() error

DeleteAllConnections removes all stored connections.

func DeleteAllConnectionsByType

func DeleteAllConnectionsByType(connectionType string) error

func DeleteConnectionByName

func DeleteConnectionByName(connectionName string) error

DeleteConnectionByName removes a connection by its name.

func GetAllConnections

func GetAllConnections() ([]conn.Connection, error)

GetAllConnections retrieves all stored connections.

func GetConnectionByName

func GetConnectionByName(connectionName string) (conn.Connection, error)

GetConnectionByName retrieves a connection by its name.

func GetConnectionsByType

func GetConnectionsByType(connectionType string) ([]conn.Connection, error)

GetConnectionsByType retrieves connections filtered by their type.

func SaveConnection

func SaveConnection(conn conn.Connection) error

SaveConnection saves a new connection or updates an existing one based on the connection name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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