Documentation
¶
Index ¶
- Constants
- func GetRekorClient(rekorServerURL string, opts ...Option) (*client.Rekor, error)
- type Option
- func WithHeaders(h map[string][]string) Option
- func WithInsecureTLS(enabled bool) Option
- func WithLogger(logger interface{}) Option
- func WithNoDisableKeepalives(noDisableKeepalives bool) Option
- func WithRetryCount(retryCount uint) Option
- func WithRetryWaitMax(t time.Duration) Option
- func WithRetryWaitMin(t time.Duration) Option
- func WithUserAgent(userAgent string) Option
Constants ¶
View Source
const (
// DefaultRetryCount is the default number of retries.
DefaultRetryCount = 3
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option is a functional option for customizing static signatures.
func WithHeaders ¶
WithHeaders sets default headers for every client request.
func WithInsecureTLS ¶
WithInsecureTLS disables TLS verification.
func WithLogger ¶
func WithLogger(logger interface{}) Option
WithLogger sets the logger; it must implement either retryablehttp.Logger or retryablehttp.LeveledLogger; if not, this will not take effect.
func WithNoDisableKeepalives ¶
WithNoDisableKeepalives unsets the default DisableKeepalives setting.
func WithRetryCount ¶
WithRetryCount sets the number of retries.
func WithRetryWaitMax ¶
WithRetryWaitMax sets the minimum length of time to wait between retries.
func WithRetryWaitMin ¶
WithRetryWaitMin sets the minimum length of time to wait between retries.
func WithUserAgent ¶
WithUserAgent sets the media type of the signature.
Click to show internal directories.
Click to hide internal directories.