mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
7a8f418d0f
Closes issue #1475 The command line tool that uses this endpoint -> https://github.com/kolide/configimporter * Added support for atomic imports and dry run imports * Added code so that imports are idempotent
17 lines
241 B
Go
17 lines
241 B
Go
package kolide
|
|
|
|
type Transactions interface {
|
|
Begin() (Transaction, error)
|
|
}
|
|
|
|
type Transaction interface {
|
|
Commit() error
|
|
Rollback() error
|
|
}
|
|
|
|
func HasTransaction(tx Transaction) OptionalArg {
|
|
return func() interface{} {
|
|
return tx
|
|
}
|
|
}
|