Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderChecksumSha1 = "X-Checksum-Sha1" HeaderResultDetail = "X-Result-Detail" HeaderApiKey = "X-JFrog-Art-Api" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenAuth ¶
type AccessTokenAuth struct { AccessToken string Transport http.RoundTripper }
ApiKeyAuth exposes a HTTP Client which uses this transport. It authenticates via an Artifactory API token It also adds the correct headers to the request
func (*AccessTokenAuth) Client ¶
func (t *AccessTokenAuth) Client() *http.Client
Client returns a HTTP Client and injects the token auth transport
type ApiKeyAuth ¶
type ApiKeyAuth struct { ApiKey string Transport http.RoundTripper }
ApiKeyAuth exposes a HTTP Client which uses this transport. It authenticates via an Artifactory API token It also adds the correct headers to the request
func (*ApiKeyAuth) Client ¶
func (t *ApiKeyAuth) Client() *http.Client
Client returns a HTTP Client and injects the token auth transport
type BasicAuth ¶
type BasicAuth struct { Username string Password string Transport http.RoundTripper }
BasicAuth allows the construction of a HTTP Client that authenticates with basic auth It also adds the correct headers to the request
Click to show internal directories.
Click to hide internal directories.