auth

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetrcFilePath

func NetrcFilePath() (string, error)

func NewAuthenticatedHTTPClient

func NewAuthenticatedHTTPClient() *http.Client

func NewNetrcTransport

func NewNetrcTransport(underlying http.RoundTripper) http.RoundTripper

func ParseNetrc

func ParseNetrc() (*netrc.Netrc, error)

Types

type GitNetrcHTTPAuth

type GitNetrcHTTPAuth struct {
	// contains filtered or unexported fields
}

func NewGitNetrcHTTPAuth

func NewGitNetrcHTTPAuth() *GitNetrcHTTPAuth

func (GitNetrcHTTPAuth) Name

func (GitNetrcHTTPAuth) Name() string

func (GitNetrcHTTPAuth) SetAuth

func (g GitNetrcHTTPAuth) SetAuth(r *http.Request)

func (GitNetrcHTTPAuth) String

func (g GitNetrcHTTPAuth) String() string

type NetrcTransport

type NetrcTransport struct {
	Underlying http.RoundTripper
	// contains filtered or unexported fields
}

func (NetrcTransport) RoundTrip

func (n NetrcTransport) RoundTrip(request *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL