Documentation
¶
Overview ¶
Package credentials resolves operator-configured secret references. It never stores secrets in project files or returns backend output in errors.
Index ¶
- Constants
- func Normalize(value string) (string, error)
- func ValidEnv(name string) bool
- func ValidName(name string) bool
- func Validate(name string, d Definition) error
- type Definition
- type Error
- type OSStore
- type Resolver
- func (r *Resolver) Delete(name string) error
- func (r *Resolver) Resolve(ctx context.Context, name string) (string, error)
- func (r *Resolver) Set(name, value string, replace bool) error
- func (r *Resolver) Status(ctx context.Context, name string, checkCommand bool) Status
- func (r *Resolver) StoreBackend() Store
- type Status
- type Store
Constants ¶
const MaxSecretBytes = 64 << 10
const Service = "skill-cli"
Variables ¶
This section is empty.
Functions ¶
func Normalize ¶
Normalize permits a trailing line ending from stdin or a secret manager, but rejects controls before any value reaches HTTP headers or child environments.
func Validate ¶
func Validate(name string, d Definition) error
Types ¶
type Definition ¶
type Resolver ¶
type Resolver struct {
Definitions map[string]Definition
// contains filtered or unexported fields
}
func (*Resolver) StoreBackend ¶
StoreBackend shares the trusted host's configured OS store with the separate OAuth session manager. It never exports credentials through CLI or gateway.