Documentation ¶
Index ¶
- type MergeOperation
- type Merger
- func (m *Merger) Close() error
- func (m *Merger) Create(ctx context.Context, obj interface{}) error
- func (m *Merger) Delete(ctx context.Context, obj interface{}) error
- func (m *Merger) Diff(source interface{}, target interface{}, res models.Diff)
- func (m *Merger) LoadAndDiffACLs(ctx context.Context) (*models.ACLDiff, error)
- func (m *Merger) LoadAndDiffConfig(ctx context.Context) (*models.ConfigDiff, error)
- func (m *Merger) LoadAndDiffRoles(ctx context.Context, params map[string]interface{}) (*models.RoleDiff, error)
- func (m *Merger) LoadAndDiffShares(ctx context.Context, params map[string]interface{}) (*models.ShareDiff, error)
- func (m *Merger) LoadAndDiffUsers(ctx context.Context, progress chan float32) (*models.UserDiff, *models.RoleDiff, error)
- func (m *Merger) Save(ctx context.Context, diff models.Diff, progress chan MergeOperation)
- func (m *Merger) SaveShares(ctx context.Context, diff *models.ShareDiff, progress chan MergeOperation, ...)
- func (m *Merger) SaveUsers(ctx context.Context, userDiff *models.UserDiff, roleDiff *models.RoleDiff, ...)
- func (m *Merger) Update(ctx context.Context, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MergeOperation ¶
type Merger ¶
type Merger struct { Source models.ReadableStore Target models.WritableStore Options *models.MergeOptions }
func NewMerger ¶
func NewMerger(source models.ReadableStore, target models.WritableStore, options *models.MergeOptions) *Merger
func (*Merger) LoadAndDiffACLs ¶
func (*Merger) LoadAndDiffConfig ¶
func (*Merger) LoadAndDiffRoles ¶
func (*Merger) LoadAndDiffShares ¶
func (*Merger) LoadAndDiffUsers ¶
func (*Merger) SaveShares ¶
Click to show internal directories.
Click to hide internal directories.