Documentation
¶
Index ¶
- Variables
- func InitDb(pgConn string) (db *sql.DB, err error)
- type DbInterface
- type Vid
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateVidTable = `` /* 260-byte string literal not displayed */
Functions ¶
Types ¶
type DbInterface ¶
type Vid ¶
type Vid struct {
// contains filtered or unexported fields
}
func (*Vid) GetDeploymentId ¶
returns deploymentId related to vid
func (*Vid) GetRelations ¶
func (*Vid) GetVirtualId ¶
returns vid related to deploymentId
func (*Vid) RemoveVidRelation ¶
func (this *Vid) RemoveVidRelation(vid string, deploymentId string) (commit func() error, rollback func() error, err error)
remove relation between vid (command.Id) and deploymentId
func (*Vid) SaveVidRelation ¶
saves relation between vid (command.Id) and deploymentId
func (*Vid) SetVid ¶
func (this *Vid) SetVid(element VidUpdateable) (err error)
replaces deployment ids in element with vid from database
type VidUpdateable ¶
Click to show internal directories.
Click to hide internal directories.