Documentation
¶
Index ¶
- Constants
- type Signer
- type Verifier
- func (v *Verifier) VerifyBundle(bundlePath string) (*verify.VerificationResult, error)
- func (v *Verifier) VerifyInlineBundle(bundleContents []byte, fnOpts ...options.VerifierOptFunc) (*verify.VerificationResult, error)
- func (v *Verifier) VerifyParsedBundle(bndl *sbundle.Bundle, fnOpts ...options.VerifierOptFunc) (*verify.VerificationResult, error)
Constants ¶
View Source
const GitHubTimeStamperURL = "https://timestamp.githubapp.com/api/v1/timestamp"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
func (*Signer) SignMessage ¶
SignMessage signs a payload as a message digest and returns a sigstore bundle.
func (*Signer) SignStatement ¶
SignStatement signs an in-toto attestation using the configured options and returns a sigstore bundle. The signing process will try to obtain the signer identity in this order:
- Try the configured ambient credentials providers (currently only the GitHub actions plugin is supported).
- If a terminal is detected, it will start the sigstore oidc flow in a browser.
- If no terminal is detected, it will start the sigstore device flow.
type Verifier ¶
func NewVerifier ¶
func NewVerifier() *Verifier
func (*Verifier) VerifyBundle ¶
func (v *Verifier) VerifyBundle(bundlePath string) (*verify.VerificationResult, error)
VerifyBundle verifies a signed bundle containing a dsse envelope
func (*Verifier) VerifyInlineBundle ¶
func (v *Verifier) VerifyInlineBundle(bundleContents []byte, fnOpts ...options.VerifierOptFunc) (*verify.VerificationResult, error)
VerifyBundle verifies a signed bundle containing a dsse envelope
func (*Verifier) VerifyParsedBundle ¶
func (v *Verifier) VerifyParsedBundle(bndl *sbundle.Bundle, fnOpts ...options.VerifierOptFunc) (*verify.VerificationResult, error)
VerifyParsedBundle verifies a sigstore bundle with the provided options
Directories
¶
| Path | Synopsis |
|---|---|
|
_examples
|
|
|
attestation
command
|
|
|
message
command
|
|
|
bundlefakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
|
internal
|
|
|
sts/providers/github
Package github implements a client to requesta short lived token from github actions.
|
Package github implements a client to requesta short lived token from github actions. |
Click to show internal directories.
Click to hide internal directories.