Defines error constants for broker core operations.
// Source: https://github.com/Infisical/agent-vault | License: MIT | Copyright 2022 Infisical Inc
// Provided via justclaw.it.com; keep this notice with the code.
package brokercore
import "errors"
var (
// ErrInvalidSession means the supplied session token is missing, unknown,
// or expired. The MITM ingress maps this to a 407 challenge.
ErrInvalidSession = errors.New("brokercore: invalid or expired session")
// ErrNoVaultContext means the session carries no vault scope and no hint
// was provided (e.g. an agent token with zero vault grants).
ErrNoVaultContext = errors.New("brokercore: session has no vault context")
// ErrAgentVaultAmbiguous means an instance-level agent token with access
// to multiple vaults did not specify which vault to use. Callers should
// tell the use
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key