Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultRetryCount is the default number of retries.
DefaultRetryCount = 3
)
Variables ¶
This section is empty.
Functions ¶
func GenerateTransparencyLogEntry ¶ added in v1.2.0
func GenerateTransparencyLogEntry(anon models.LogEntryAnon) (*rekor_pb.TransparencyLogEntry, error)
GenerateTransparencyLogEntry returns a sigstore/protobuf-specs compliant message containing a TransparencyLogEntry as defined at https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_rekor.proto
func GetRekorClient ¶
func MarshalTLEToJSON ¶ added in v1.2.0
func MarshalTLEToJSON(tle *rekor_pb.TransparencyLogEntry) ([]byte, error)
MarshalTLEToJSON marshals a TransparencyLogEntry message to JSON according to the protobuf JSON encoding rules
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 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
WithRetryCount sets the number of retries.
func WithUserAgent ¶ added in v0.4.0
WithUserAgent sets the media type of the signature.
Click to show internal directories.
Click to hide internal directories.