Documentation ¶
Index ¶
- func ComputeLeafHash(e *models.LogEntryAnon) ([]byte, error)
- func FindTLogEntriesByPayload(ctx context.Context, rekorClient *client.Rekor, payload []byte) (uuids []string, err error)
- func GetRekorServerURL() string
- func GetTlogEntry(ctx context.Context, rekorClient *rekorgenclient.Rekor, uuid string) (*models.LogEntryAnon, error)
- func SignBlob(blobPath string, keyPath, certPath *string, rekorURL string, ...) (map[string][]byte, error)
- func SignImage(resBundleRef string, keyPath, certPath *string, rekorURL string, ...) error
- func VerifyBlob(msgBytes, sigBytes, certBytes, bundleBytes []byte, pubkeyPath *string, ...) (bool, string, *int64, error)
- func VerifyImage(resBundleRef, pubkeyPath, certRef, certChain, rekorURL, oidcIssuer string, ...) (bool, string, *int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeLeafHash ¶ added in v0.4.1
func ComputeLeafHash(e *models.LogEntryAnon) ([]byte, error)
func FindTLogEntriesByPayload ¶ added in v0.5.0
func FindTLogEntriesByPayload(ctx context.Context, rekorClient *client.Rekor, payload []byte) (uuids []string, err error)
FindTLogEntriesByPayload is removed in cosign v2.x, so we implement it here
func GetRekorServerURL ¶
func GetRekorServerURL() string
func GetTlogEntry ¶ added in v0.4.0
func GetTlogEntry(ctx context.Context, rekorClient *rekorgenclient.Rekor, uuid string) (*models.LogEntryAnon, error)
cosign has a bug in GetTlogEntry() function as of v1.12.1, so use this instead here
func VerifyBlob ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.