migration

package
Version: v0.0.0-...-1f1ddb2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion(dataRootDBSession *gorm.DB) (int, error)

func CreateHomerConfigTables

func CreateHomerConfigTables(configDBSession *gorm.DB, homerDBconfig string, typeAction bool, showUpgrade bool)

func CreateHomerDB

func CreateHomerDB(dataRootDBSession *gorm.DB, dbname *string, user *string)

func CreateHomerRole

func CreateHomerRole(dataRootDBSession *gorm.DB, dataHomeDBSession *gorm.DB, user *string, homerDBconfig *string, homerDBdata *string)

func CreateNewUser

func CreateNewUser(dataRootDBSession *gorm.DB, user *string, password *string)

func DeleteNewUser

func DeleteNewUser(dataRootDBSession *gorm.DB, user *string)

func GetDataRootDBSession

func GetDataRootDBSession(user *string, password *string, dbname *string, host *string, port *int, sslmode *string) (*gorm.DB, error)

getSession creates a new root session and panics if connection error occurs

func PopulateHomerConfigTables

func PopulateHomerConfigTables(configDBSession *gorm.DB, homerDBconfig string, force bool, tablesPopulate []string, password string)

func RevokeHomerRole

func RevokeHomerRole(dataRootDBSession *gorm.DB, user *string, homerDBconfig *string, homerDBdata *string)

func ShowUsers

func ShowUsers(dataRootDBSession *gorm.DB)

func UpdateHomerUser

func UpdateHomerUser(configDBSession *gorm.DB, homerDBconfig string, userName string, userPassword string) error

Types

type RollesTable

type RollesTable struct {
	Username   string `json:"Username"`
	Attributes string `json:"Attributes"`
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL