local

package
v0.3.102 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Home

type Home struct {
	Path        string
	Db          *sqlx.DB
	InstanceURL string
	Profile     Profile
	// contains filtered or unexported fields
}

Home is the local home directory object of dbio

func GetHome

func GetHome() (homeObj *Home, err error)

GetHome initializes the home folder

func (*Home) APIKey

func (home *Home) APIKey() (key string)

APIKey returns the API key

func (*Home) Authenticate

func (home *Home) Authenticate(url string) (err error)

Authenticate authenticates to a dbio instance

func (*Home) CloneRepo

func (home *Home) CloneRepo(URL string) (path string, err error)

CloneRepo clones a Git repository from. Returns the repo local path

type Profile

type Profile struct {
	Connections map[string]map[string]interface{} `yaml:"connections"`
}

Profile is the yaml file for profile

func (*Profile) ListConnections

func (p *Profile) ListConnections(includeEnv bool) (cArr []connection.Connection, err error)

ListConnections returns an array of connections

Jump to

Keyboard shortcuts

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