policy

package
v1.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller added in v1.8.0

type Controller interface {
	// Create new policy
	Create(*model.Policy) (int64, error)
	// List the policies, returns the total count, policy list and error
	List(...*model.PolicyQuery) (int64, []*model.Policy, error)
	// Get policy with specified ID
	Get(int64) (*model.Policy, error)
	// Get policy by the name
	GetByName(string) (*model.Policy, error)
	// Update the specified policy
	Update(policy *model.Policy) error
	// Remove the specified policy
	Remove(int64) error
}

Controller controls the replication policies

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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