mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 11:39:32 +02:00
add ChangeSet.GetUpdates
This commit is contained in:
parent
b616e42768
commit
24f9f4d549
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,11 @@ func (cs *ChangeSet) Upsert(record *Record) {
|
|||
})
|
||||
}
|
||||
|
||||
// Updates returns the change set's updates.
|
||||
func (cs *ChangeSet) Updates() []*Record {
|
||||
return cs.updates
|
||||
}
|
||||
|
||||
// ApplyChanges applies the changes to the databroker.
|
||||
func ApplyChanges(ctx context.Context, client DataBrokerServiceClient, changes *ChangeSet) error {
|
||||
updates := OptimumPutRequestsFromRecords(changes.updates)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue