Documentation
¶
Index ¶
- Constants
- func JoinCookies(key string, cookieList []*http.Cookie) (string, error)
- func MakeCookieMetadata(key, value string, flags ...string) ([]string, error)
- func SetTokenCookie(token string, baseHRef string, isSecure bool, w http.ResponseWriter) error
- func WithRetry(maxRetries int64, baseRetryBackoff time.Duration) transport.WrapperFunc
- type DebugTransport
- type TransportWithHeader
Constants ¶
View Source
const ( EnvRetryMax = "ARGOCD_K8SCLIENT_RETRY_MAX" EnvRetryBaseBackoff = "ARGOCD_K8SCLIENT_RETRY_BASE_BACKOFF" )
Variables ¶
This section is empty.
Functions ¶
func JoinCookies ¶
JoinCookies combines chunks of cookie based on key as prefix. It returns cookie value as string. cookieString is of format key1=value1; key2=value2; key3=value3 first chunk will be of format argocd.token=<numberOfChunks>:token; attributes
func MakeCookieMetadata ¶
MakeCookieMetadata generates a string representing a Web cookie. Yum!
func SetTokenCookie ¶ added in v3.3.0
Types ¶
type DebugTransport ¶
type DebugTransport struct {
T http.RoundTripper
}
DebugTransport is a HTTP Client Transport to enable debugging
type TransportWithHeader ¶
type TransportWithHeader struct {
RoundTripper http.RoundTripper
Header http.Header
}
TransportWithHeader is a HTTP Client Transport with default headers.
Click to show internal directories.
Click to hide internal directories.