Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReaderOpt ¶
type ReaderOpt func(*Reader)
func WithEKSAUserAgent ¶ added in v0.15.0
WithEKSAUserAgent sets the user agent for a particular eks-a component and version. component should be something like "cli", "controller", "e2e", etc. version should generally be a semver, but when not available, any string is valid.
func WithEmbedFS ¶
func WithNonCachedProxyConfig ¶ added in v0.15.1
func WithNonCachedProxyConfig() ReaderOpt
WithNonCachedProxyConfig configures the HTTP client to read the Proxy configuration from the environment on every request instead of relying on the default package level cache (implemented in the http package with envProxyFuncValue), which is only read once. If Proxy is not configured in the client's transport, nothing is changed. This is only for testing.
func WithRootCACerts ¶ added in v0.15.1
func WithRootCACerts(certs []*x509.Certificate) ReaderOpt
WithRootCACerts configures the HTTP client's trusted CAs. Note that this will overwrite the defaults so the host's trust will be ignored. This option is only for testing.