Documentation
¶
Overview ¶
Package githubauth provides an HTTP transport that mints repository-scoped GitHub App installation tokens from the in-cluster token broker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// BrokerURL is the base URL of the token broker. Empty disables the broker
// and makes the transport use FallbackToken.
BrokerURL string
// TokenFile contains the caller ServiceAccount token. Defaults to the
// in-cluster projected token path.
TokenFile string
// FallbackToken is used when the broker is disabled, the request is not
// repository-scoped, or the broker denies the request. It may be empty.
FallbackToken string
// Base is the transport used for GitHub API requests. Broker requests use
// the default transport.
Base http.RoundTripper
}
Config controls the broker-backed transport.
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport adds a repository-scoped GitHub token to outgoing API requests.
func NewTransport ¶
NewTransport returns a transport configured from cfg.
Click to show internal directories.
Click to hide internal directories.