migration

package
v0.0.0-...-5327f33 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: AGPL-3.0 Imports: 10 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 GetMappingSchemas

func GetMappingSchemas() []model.TableMappingSchema

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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