Documentation ¶
Index ¶
- func Attest(nonce, userData, publicKey []byte) ([]byte, error)
- func DialContext(ctx context.Context, network, addr string) (net.Conn, error)
- func EnclaveHealthCheck(w http.ResponseWriter, r *http.Request)
- func NewProxyRoundTripper(ctx context.Context, addr string) http.RoundTripper
- func NewReverseProxyServer(addr string, upstreamURL string) (*http.Server, error)
- func ServeOpenProxy(ctx context.Context, port uint32, connectTimeout time.Duration) error
- type NotVsockAddrError
- type VsockLogServer
- type VsockWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attest ¶
Attest takes as input a nonce, user-provided data and a public key, and then asks the Nitro hypervisor to return a signed attestation document that contains all three values.
func DialContext ¶
DialContext is a net.Dial wrapper which additionally allows connecting to vsock networks
func EnclaveHealthCheck ¶
func EnclaveHealthCheck(w http.ResponseWriter, r *http.Request)
EnclaveHealthCheck - status check handler for nitro enclave service
func NewProxyRoundTripper ¶
func NewProxyRoundTripper(ctx context.Context, addr string) http.RoundTripper
NewProxyRoundTripper returns an http.RoundTripper which routes outgoing requests through the proxy addr
func NewReverseProxyServer ¶
NewReverseProxyServer returns an HTTP server acting as a reverse proxy for the upstream addr specified
Types ¶
type NotVsockAddrError ¶
type NotVsockAddrError struct{}
NotVsockAddrError indicates that the string does not have the correct structure for a vsock address
func (NotVsockAddrError) Error ¶
func (NotVsockAddrError) Error() string
type VsockLogServer ¶
type VsockLogServer struct {
// contains filtered or unexported fields
}
VsockLogServer - implementation of a log server over vsock
func NewVsockLogServer ¶
func NewVsockLogServer(ctx context.Context, port uint32) VsockLogServer
NewVsockLogServer - create a new VsockLogServer
type VsockWriter ¶
type VsockWriter struct {
// contains filtered or unexported fields
}
VsockWriter - structure definition of a vsock writer
func NewVsockWriter ¶
func NewVsockWriter(addr string) *VsockWriter
NewVsockWriter - create a new vsock writer
func (VsockWriter) Close ¶
func (w VsockWriter) Close() error
Close - interface implementation of closer for VsockWriter
func (*VsockWriter) Connect ¶
func (w *VsockWriter) Connect() error
Connect - interface implementation for connect method for VsockWriter