Versions in this module Expand all Collapse all v0 v0.0.2 Dec 22, 2023 v0.0.1 Dec 19, 2023 Changes in this version + var CreateVidTable = ... + func InitDb(pgConn string) (db *sql.DB, err error) + type DbInterface interface + Exec func(query string, args ...interface{}) (sql.Result, error) + Query func(query string, args ...interface{}) (*sql.Rows, error) + QueryRow func(query string, args ...interface{}) *sql.Row + type Vid struct + func New(pgConn string) (vid *Vid, err error) + func (this *Vid) GetDeploymentId(vid string) (deploymentId string, exists bool, err error) + func (this *Vid) GetRelations() (byVid map[string]string, byDeploymentId map[string]string, err error) + func (this *Vid) GetVirtualId(deploymentId string) (vid string, exists bool, err error) + func (this *Vid) RemoveVidRelation(vid string, deploymentId string) (commit func() error, rollback func() error, err error) + func (this *Vid) SaveVidRelation(vid string, deploymentId string) (err error) + func (this *Vid) SetVid(element VidUpdateable) (err error) + func (this *Vid) VidExists(vid string) (exists bool, err error) + type VidUpdateable interface + GetDeploymentId func() (id string) + SetDeploymentId func(id string)