Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncOptions ¶
SyncOptions controls sync behavior.
func DefaultSyncOptions ¶
func DefaultSyncOptions() SyncOptions
DefaultSyncOptions returns the default sync options.
type SyncResult ¶
type SyncResult struct {
TotalRoutes int
PermissionsCreated int
PermissionsUpdated int
PermissionsDeprecated int
APICreated int
APIUpdated int
APIDeleted int
MappingCreated int
MappingDeleted int
CreatedRoutes []string
UpdatedRoutes []string
DeletedRoutes []string
}
SyncResult summarizes a sync run.
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
Syncer syncs permission snapshots into the database.
func (*Syncer) SyncSnapshot ¶
func (s *Syncer) SyncSnapshot(ctx context.Context, snapshot frameperm.Snapshot, opts SyncOptions) (*SyncResult, error)
SyncSnapshot syncs a permission snapshot to the database.
Click to show internal directories.
Click to hide internal directories.