api

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 14

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 CertificateRequest struct {
	// +optional
	PublicKey Key `json:"publicKey"`

	// +optional
	SignedEmailAddress []byte `json:"signedEmailAddress"`

	// +optional
	CertificateSigningRequest []byte `json:"certificateSigningRequest"`
}

type CertificateResponse added in v0.2.0

type CertificateResponse struct {
	CertPEM  []byte
	ChainPEM []byte
	SCT      []byte
}

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 Key added in v0.2.0

type Key struct {
	// +required
	Content   []byte `json:"content"`
	Algorithm string `json:"algorithm,omitempty"`
}

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
}

Jump to

Keyboard shortcuts

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