replication

package
v0.0.0-...-29bd094 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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