install

package
v0.0.0-...-553e66b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

* * Gosora MSSQL Interface * Copyright Azareal 2017 - 2018 *

* * Gosora MySQL Interface * Copyright Azareal 2017 - 2020 *

* * Gosora PostgreSQL Interface * Under heavy development * Copyright Azareal 2017 - 2019 *

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcryptGeneratePassword

func BcryptGeneratePassword(password string) (hash string, salt string, err error)

Generate a bcrypt hash Note: The salt is in the hash, therefore the salt value is blank

func GenerateSafeString

func GenerateSafeString(length int) (string, error)

Generate a cryptographically secure set of random bytes..

Types

type InstallAdapter

type InstallAdapter interface {
	Name() string
	DefaultPort() string
	SetConfig(dbHost, dbUsername, dbPassword, dbName, dbPort string)
	InitDatabase() error
	TableDefs() error
	InitialData() error
	CreateAdmin() error

	DBHost() string
	DBUsername() string
	DBPassword() string
	DBName() string
	DBPort() string
}

func Lookup

func Lookup(name string) (InstallAdapter, bool)

type MssqlInstaller

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

func (*MssqlInstaller) CreateAdmin

func (ins *MssqlInstaller) CreateAdmin() error

func (*MssqlInstaller) DBHost

func (ins *MssqlInstaller) DBHost() string

func (*MssqlInstaller) DBName

func (ins *MssqlInstaller) DBName() string

func (*MssqlInstaller) DBPassword

func (ins *MssqlInstaller) DBPassword() string

func (*MssqlInstaller) DBPort

func (ins *MssqlInstaller) DBPort() string

func (*MssqlInstaller) DBUsername

func (ins *MssqlInstaller) DBUsername() string

func (*MssqlInstaller) DefaultPort

func (ins *MssqlInstaller) DefaultPort() string

func (*MssqlInstaller) InitDatabase

func (ins *MssqlInstaller) InitDatabase() (err error)

func (*MssqlInstaller) InitialData

func (ins *MssqlInstaller) InitialData() (err error)

func (*MssqlInstaller) Name

func (ins *MssqlInstaller) Name() string

func (*MssqlInstaller) SetConfig

func (ins *MssqlInstaller) SetConfig(dbHost string, dbUsername string, dbPassword string, dbName string, dbPort string)

func (*MssqlInstaller) TableDefs

func (ins *MssqlInstaller) TableDefs() (err error)

type MysqlInstaller

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

func (*MysqlInstaller) CreateAdmin

func (ins *MysqlInstaller) CreateAdmin() error

func (*MysqlInstaller) DBHost

func (ins *MysqlInstaller) DBHost() string

func (*MysqlInstaller) DBName

func (ins *MysqlInstaller) DBName() string

func (*MysqlInstaller) DBPassword

func (ins *MysqlInstaller) DBPassword() string

func (*MysqlInstaller) DBPort

func (ins *MysqlInstaller) DBPort() string

func (*MysqlInstaller) DBUsername

func (ins *MysqlInstaller) DBUsername() string

func (*MysqlInstaller) DefaultPort

func (ins *MysqlInstaller) DefaultPort() string

func (*MysqlInstaller) InitDatabase

func (ins *MysqlInstaller) InitDatabase() (err error)

func (*MysqlInstaller) InitialData

func (ins *MysqlInstaller) InitialData() error

func (*MysqlInstaller) Name

func (ins *MysqlInstaller) Name() string

func (*MysqlInstaller) SetConfig

func (ins *MysqlInstaller) SetConfig(dbHost string, dbUsername string, dbPassword string, dbName string, dbPort string)

func (*MysqlInstaller) TableDefs

func (ins *MysqlInstaller) TableDefs() (err error)

type PgsqlInstaller

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

func (*PgsqlInstaller) CreateAdmin

func (ins *PgsqlInstaller) CreateAdmin() error

func (*PgsqlInstaller) DBHost

func (ins *PgsqlInstaller) DBHost() string

func (*PgsqlInstaller) DBName

func (ins *PgsqlInstaller) DBName() string

func (*PgsqlInstaller) DBPassword

func (ins *PgsqlInstaller) DBPassword() string

func (*PgsqlInstaller) DBPort

func (ins *PgsqlInstaller) DBPort() string

func (*PgsqlInstaller) DBUsername

func (ins *PgsqlInstaller) DBUsername() string

func (*PgsqlInstaller) DefaultPort

func (ins *PgsqlInstaller) DefaultPort() string

func (*PgsqlInstaller) InitDatabase

func (ins *PgsqlInstaller) InitDatabase() (err error)

func (*PgsqlInstaller) InitialData

func (ins *PgsqlInstaller) InitialData() (err error)

func (*PgsqlInstaller) Name

func (ins *PgsqlInstaller) Name() string

func (*PgsqlInstaller) SetConfig

func (ins *PgsqlInstaller) SetConfig(dbHost string, dbUsername string, dbPassword string, dbName string, dbPort string)

func (*PgsqlInstaller) TableDefs

func (ins *PgsqlInstaller) TableDefs() (err error)

Jump to

Keyboard shortcuts

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