2023-03-15 16:00:52 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2017-02-16 20:15:02 +00:00
|
|
|
package consts
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
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")
|
|
|
|
|
2021-10-26 16:11:24 +00:00
|
|
|
// ErrAPILocked is returned if an operation is performed when the API is
|
|
|
|
// locked for the request namespace.
|
|
|
|
ErrAPILocked = errors.New("API access to this namespace has been locked by an administrator")
|
|
|
|
|
2017-02-16 20:15:02 +00:00
|
|
|
// 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")
|
2017-05-12 17:52:33 +00:00
|
|
|
|
2019-07-05 21:15:14 +00:00
|
|
|
// ErrPathContainsParentReferences is returned when a path contains parent
|
|
|
|
// references.
|
2017-05-12 17:52:33 +00:00
|
|
|
ErrPathContainsParentReferences = errors.New("path cannot contain parent references")
|
2019-07-05 21:15:14 +00:00
|
|
|
|
|
|
|
// ErrInvalidWrappingToken is returned when checking for the validity of
|
|
|
|
// a wrapping token that turns out to be invalid.
|
|
|
|
ErrInvalidWrappingToken = errors.New("wrapping token is not valid or does not exist")
|
2017-02-16 20:15:02 +00:00
|
|
|
)
|