Documentation
¶
Overview ¶
Package gitcred is the seam between the mirror and the source of the password that it gives to a git remote. The mirror owns the interface. passwordfile reads a file that an operator keeps, and forgeapp exchanges the key of a forge application for a short-lived token.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential interface {
// Use returns the credential for one git run, and a function that removes any file that Use made. A caller calls the function
// when the run ends. The password stays in a file that the askpass helper reads, never in an argument.
Use(ctx context.Context) (gitremote.Cred, func(), error)
}
Credential supplies the password of one remote.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package credtest is the conformance suite of gitcred.Credential.
|
Package credtest is the conformance suite of gitcred.Credential. |
|
Package forgeapp is the gitcred.Credential of a GitHub App installation.
|
Package forgeapp is the gitcred.Credential of a GitHub App installation. |
|
Package passwordfile is the gitcred.Credential of a password or token that an operator keeps in a file.
|
Package passwordfile is the gitcred.Credential of a password or token that an operator keeps in a file. |