Documentation ¶
Index ¶
Constants ¶
View Source
const SigstorePublicServerURL = "https://fulcio.sigstore.dev"
SigstorePublicServerURL is the URL of Sigstore's public Fulcio service.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateRequest ¶ added in v0.2.0
type CertificateResponse ¶ added in v0.2.0
type ClientOption ¶ added in v0.2.0
type ClientOption func(*clientOptions)
ClientOption is a functional option for customizing static signatures.
func WithTimeout ¶ added in v0.2.0
func WithTimeout(timeout time.Duration) ClientOption
WithTimeout sets the request timeout for the client
func WithUserAgent ¶ added in v0.2.0
func WithUserAgent(userAgent string) ClientOption
WithUserAgent sets the media type of the signature.
type LegacyClient ¶ added in v0.4.0
type LegacyClient interface { // SigningCert sends the provided CertificateRequest to the /api/v1/signingCert // endpoint of a Fulcio API, authenticated with the provided bearer token. SigningCert(cr CertificateRequest, token string) (*CertificateResponse, error) // RootCert sends a request to get the current CA used by Fulcio. RootCert() (*RootResponse, error) }
LegacyClient is the interface for accessing the Fulcio API.
func NewClient ¶ added in v0.2.0
func NewClient(url *url.URL, opts ...ClientOption) LegacyClient
NewClient creates a new Fulcio API client talking to the provided URL.
type RootResponse ¶ added in v0.2.0
type RootResponse struct {
ChainPEM []byte
}
Click to show internal directories.
Click to hide internal directories.