setup

package
v0.0.0-...-86ca01b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(q string, pscanner *bufio.Reader) bool

func CreateRestToken

func CreateRestToken(dbhost string, dbname string, dblogin string, dbbytePassword []byte, token string, id int64) error

func CreateUser

func CreateUser(dbhost string, dbname string, dblogin string, dbbytePassword []byte, userPasswordByte []byte) (error, int64)

func DownloadSoftware

func DownloadSoftware(target string) error

func DownloadSoftwareGithub

func DownloadSoftwareGithub(repo string, target string) error

func Exec

func Exec(donemsg string, cmd *exec.Cmd)

func ResetPassword

func ResetPassword(dbhost string, dbname string, dblogin string, dbbytePassword []byte, userPasswordByte []byte) error

func ResetWizard

func ResetWizard() error

func Setup

func Setup(dbhost string, dbname string, dblogin string, dbbytePassword []byte) error

func SetupWizard

func SetupWizard() error

Types

type GithubRelease

type GithubRelease struct {
	Name       string    `json:"name"`
	TagName    string    `json:"tag_name"`
	ID         int       `json:"id"`
	Prerelease bool      `json:"prerelease"`
	Created    time.Time `json:"created_at"`
	Published  time.Time `json:"published_at"`
	Zipball    string    `json:"zipball_url"`
}

type NamedQuery

type NamedQuery struct {
	// contains filtered or unexported fields
}

func GetCreateStatements

func GetCreateStatements() []NamedQuery

Jump to

Keyboard shortcuts

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