Documentation ¶
Index ¶
- Constants
- Variables
- type ReplicationState
- func (r *ReplicationState) AddState(flag ReplicationState)
- func (r *ReplicationState) ClearState(flag ReplicationState)
- func (r ReplicationState) GetDRString() string
- func (r ReplicationState) GetPerformanceString() string
- func (r ReplicationState) HasState(flag ReplicationState) bool
- func (r ReplicationState) String() string
- func (r *ReplicationState) ToggleState(flag ReplicationState)
Constants ¶
View Source
const ( // ExpirationRestoreWorkerCount specifies the numer 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 ReplicationDisabled ReplicationState = 0 ReplicationPerformancePrimary ReplicationState = 1 << iota ReplicationPerformanceSecondary ReplicationBootstrapping ReplicationDRPrimary ReplicationDRSecondary )
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) String ¶
func (r ReplicationState) String() string
func (*ReplicationState) ToggleState ¶ added in v0.8.2
func (r *ReplicationState) ToggleState(flag ReplicationState)
Click to show internal directories.
Click to hide internal directories.