client

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 28

Documentation

Index

Constants

View Source
const (
	// DefaultRetryCount is the default number of retries.
	DefaultRetryCount = 3
)

Variables

This section is empty.

Functions

func GetRekorClient

func GetRekorClient(rekorServerURL string, opts ...Option) (*client.Rekor, error)

Types

type Option added in v0.4.0

type Option func(*options)

Option is a functional option for customizing static signatures.

func WithInsecureTLS added in v1.1.0

func WithInsecureTLS(enabled bool) Option

func WithLogger added in v1.0.0

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 WithRetryCount added in v1.0.0

func WithRetryCount(retryCount uint) Option

WithRetryCount sets the number of retries.

func WithUserAgent added in v0.4.0

func WithUserAgent(userAgent string) Option

WithUserAgent sets the media type of the signature.

Jump to

Keyboard shortcuts

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