dao

package
v0.0.0-...-e417875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func NewDAO

func NewDAO() DAO

NewDAO creates an instance of DAO

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL