package backend import "context" // Vault is the phase-3 HashiCorp Vault backend (KV v2 + AppRole via the // official Go api package, MPL-2.0, vendored). v0 ships the interface // slot ONLY: it resolves nothing and returns an explicit // not-implemented error naming the ref and backend, so the connector is // a drop-in behind the same interface later and misconfigured rollouts // fail loudly today. type Vault struct{} // NewVault returns the vault stub. func NewVault() *Vault { return &Vault{} } // Name implements Backend. func (v *Vault) Name() string { return "vault" } // Resolve implements Backend. func (v *Vault) Resolve(ctx context.Context, ref Ref) (string, error) { return "", Err(ref, v.Name(), ReasonNotImplemented) }