Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mgr is the global replication policy manager instance Mgr = NewManager() )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Count returns the count of replication policies according to the query Count(ctx context.Context, query *q.Query) (count int64, err error) // List replication policies according to the query List(ctx context.Context, query *q.Query) (policies []*model.Policy, err error) // Get the replication policy specified by ID Get(ctx context.Context, id int64) (policy *model.Policy, err error) // Create the replication policy Create(ctx context.Context, policy *model.Policy) (id int64, err error) // Update the specified replication policy Update(ctx context.Context, policy *model.Policy, props ...string) (err error) // Delete the replication policy specified by ID Delete(ctx context.Context, id int64) (err error) }
Manager defines the replication policy related operations
func NewManager ¶
func NewManager() Manager
NewManager creates an instance of replication policy manager
Click to show internal directories.
Click to hide internal directories.