consts

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExpirationRestoreWorkerCount specifies the number of workers to use while
	// restoring leases into the expiration manager
	ExpirationRestoreWorkerCount = 64
)

Variables

View Source
var (
	// ErrSealed is returned if an operation is performed on a sealed barrier.
	// No operation is expected to succeed before unsealing
	ErrSealed = errors.New("Vault is sealed")

	// ErrStandby is returned if an operation is performed on a standby Vault.
	// No operation is expected to succeed until active.
	ErrStandby = errors.New("Vault is in standby mode")

	// Used when .. is used in a path
	ErrPathContainsParentReferences = errors.New("path cannot contain parent references")
)

Functions

This section is empty.

Types

type ReplicationState

type ReplicationState uint32
const (
	OldReplicationPrimary ReplicationState
	OldReplicationSecondary
	OldReplicationBootstrapping

	ReplicationUnknown            ReplicationState = 0
	ReplicationPerformancePrimary ReplicationState = 1 << iota
	ReplicationPerformanceSecondary
	OldSplitReplicationBootstrapping
	ReplicationDRPrimary
	ReplicationDRSecondary
	ReplicationPerformanceBootstrapping
	ReplicationDRBootstrapping
	ReplicationPerformanceDisabled
	ReplicationDRDisabled
)

func (*ReplicationState) AddState added in v0.8.2

func (r *ReplicationState) AddState(flag ReplicationState)

func (*ReplicationState) ClearState added in v0.8.2

func (r *ReplicationState) ClearState(flag ReplicationState)

func (ReplicationState) GetDRString added in v0.9.0

func (r ReplicationState) GetDRString() string

func (ReplicationState) GetPerformanceString added in v0.9.0

func (r ReplicationState) GetPerformanceString() string

func (ReplicationState) HasState added in v0.8.2

func (r ReplicationState) HasState(flag ReplicationState) bool

func (*ReplicationState) ToggleState added in v0.8.2

func (r *ReplicationState) ToggleState(flag ReplicationState)

Jump to

Keyboard shortcuts

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