package egress import ( "context" "errors" ) // Sentinel prefixes the value a container sees in place of a proxy-managed // key, so it can tell a key is wired without ever holding it. const Sentinel = "archie-proxy-managed" // ErrUnbound reports that the run has no binding for a service. var ErrUnbound = errors.New("egress: credential not bound") // Resolver supplies a key's real value for the run a run credential names. // An implementation returns only secrets the run's identity is granted. type Resolver interface { Resolve(ctx context.Context, credential, service string) (string, error) }