consts

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: MPL-2.0 Imports: 2 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

	// NamespaceHeaderName is the header set to specify which namespace the
	// request is indented for.
	NamespaceHeaderName = "X-Vault-Namespace"

	// AuthHeaderName is the name of the header containing the token.
	AuthHeaderName = "X-Vault-Token"
)

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")
)
View Source
var ReplicationStaleReadTimeout = 2 * time.Second

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
	ReplicationPerformanceStandby
)

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