Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential struct {
Type string `json:"type"` // "token", "basic", "header"
Token string `json:"token,omitempty"`
User string `json:"user,omitempty"`
Pass string `json:"pass,omitempty"`
Key string `json:"key,omitempty"`
Value string `json:"value,omitempty"`
}
Credential represents stored auth credentials for an endpoint.
func (*Credential) AuthHeaders ¶
func (c *Credential) AuthHeaders() map[string]string
AuthHeaders returns HTTP headers for this credential.
func (*Credential) String ¶
func (c *Credential) String() string
String returns a display-safe summary (no secrets).
type Store ¶
type Store struct{}
Store manages credential persistence. Primary: OS keyring. Fallback: config file (insecure).
Click to show internal directories.
Click to hide internal directories.