The ability to write oplog entries using a ticket based system to ensure serialization. Uses a go-kms-wrapper for encrypting/decrypting entries. Co-authored-by: Jim Lambert <jlm.lambert@gmail.com> Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com> Co-authored-by: Todd Knight <T.Alan.Knight@gmail.com> Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
26 lines
629 B
Protocol Buffer
26 lines
629 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
// define a test proto package
|
|
package hashicorp.watchtower.controller.oplog.test.v1;
|
|
option go_package = "github.com/hashicorp/watchtower/internal/oplog/oplog_test;oplog_test";
|
|
|
|
// TestUser for gorm test user model
|
|
message TestUser {
|
|
// @inject_tag: gorm:"primary_key"
|
|
uint32 id = 1;
|
|
string name = 4;
|
|
string phone_number = 5;
|
|
string email = 6;
|
|
}
|
|
// TestCar for gorm test car model
|
|
message TestCar {
|
|
// @inject_tag: gorm:"primary_key"
|
|
uint32 id = 1;
|
|
string model = 4;
|
|
int32 mpg = 5;
|
|
}
|
|
// TestRental for gorm test rental model
|
|
message TestRental {
|
|
uint32 user_id = 1;
|
|
uint32 car_id = 2;
|
|
} |