Documentation
¶
Index ¶
- Variables
- type GroundTruth
- type Response
- type SecureClient
- func (s *SecureClient) Get(url string, headers map[string]string) (*Response, error)
- func (s *SecureClient) GroundTruth() *GroundTruth
- func (s *SecureClient) HTTPClient() (*http.Client, error)
- func (s *SecureClient) Post(url string, headers map[string]string, body []byte) (*Response, error)
- func (s *SecureClient) Verify() (*GroundTruth, error)
- type TLSBoundRoundTripper
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GroundTruth ¶ added in v0.0.17
GroundTruth represents the "known good" verified of the enclave
type SecureClient ¶
type SecureClient struct {
// contains filtered or unexported fields
}
func NewSecureClient ¶
func NewSecureClient(enclave, repo string) *SecureClient
func (*SecureClient) GroundTruth ¶ added in v0.0.17
func (s *SecureClient) GroundTruth() *GroundTruth
GroundTruth returns the last verified enclave state
func (*SecureClient) HTTPClient ¶
func (s *SecureClient) HTTPClient() (*http.Client, error)
HTTPClient returns an HTTP client that only accepts TLS connections to the verified enclave
func (*SecureClient) Verify ¶
func (s *SecureClient) Verify() (*GroundTruth, error)
Verify fetches the latest verification information from GitHub and Sigstore and stores the ground truth results in the client
Click to show internal directories.
Click to hide internal directories.