database

package
v0.0.0-...-537ddf9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddServer

func AddServer(name, ip, username, password, sshKeyPath string) error

func DeleteServer

func DeleteServer(id int) error

func InitDB

func InitDB(dbPath string) error

func OpenDB

func OpenDB(dbPath string) error

Types

type Server

type Server struct {
	ID         int
	Name       string
	IP         string
	Username   string
	Password   string
	SSHKeyPath string
}

func ListServers

func ListServers() ([]Server, error)

Jump to

Keyboard shortcuts

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