Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DB is public so other packages can do selects on it DB *sql.DB // Tables is public so other packages can range over it Tables = []string{"baremetal", "cluster", "config", "document", "image", "phase", "secret"} )
Functions ¶
Types ¶
type Transaction ¶
type Transaction struct { Table configs.WsComponentType SubComponent configs.WsSubComponentType User *string ActionType *string Target *string Started int64 Recordable bool }
Transaction will record the details of the CTL transaction and record them to the DB
func NewTransaction ¶
func NewTransaction(user *string, request configs.WsMessage) *Transaction
NewTransaction establishes the transaction which will record
func (*Transaction) Complete ¶
func (transaction *Transaction) Complete(errorMessageNotPresent bool)
Complete will put an entry into the statistics database for the transaction
Click to show internal directories.
Click to hide internal directories.