Documentation
¶
Index ¶
- Variables
- type EnclaveState
- type Response
- type SecureClient
- func (s *SecureClient) Get(url string, headers map[string]string) (*Response, error)
- func (s *SecureClient) HTTPClient() (*http.Client, error)
- func (s *SecureClient) Post(url string, headers map[string]string, body []byte) (*Response, error)
- func (s *SecureClient) VerificationState() *EnclaveState
- func (s *SecureClient) Verify() (*EnclaveState, error)
- type TLSBoundRoundTripper
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EnclaveState ¶
type SecureClient ¶
type SecureClient struct {
// contains filtered or unexported fields
}
func NewSecureClient ¶
func NewSecureClient(enclave, repo string) *SecureClient
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) VerificationState ¶
func (s *SecureClient) VerificationState() *EnclaveState
VerificationState returns the last verified enclave state
func (*SecureClient) Verify ¶
func (s *SecureClient) Verify() (*EnclaveState, error)
Verify verifies the enclave against the latest code release
Click to show internal directories.
Click to hide internal directories.