Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // Count returns the count of replication policies according to the query Count(ctx context.Context, query *q.Query) (count int64, err error) // List the 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) }
DAO defines the DAO operations of replication policy
Click to show internal directories.
Click to hide internal directories.