protocol

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hybrid

type Hybrid interface {
	Decrypt(input []byte, contextInfo []byte) ([]byte, error)
}

type Protocol

type Protocol struct {
	Websocket *websocket.Conn
	Hybrid    Hybrid
}

func (Protocol) Error

func (p Protocol) Error(err error) error

func (Protocol) ReadAttestationDoc

func (p Protocol) ReadAttestationDoc() ([]byte, error)

func (Protocol) ReadDeploymentResults

func (p Protocol) ReadDeploymentResults() (*entities.SetDeploymentIDRequest, error)

func (Protocol) ReadFunctionInfo added in v0.2.1

func (p Protocol) ReadFunctionInfo() (*entities.FunctionInfo, error)

func (Protocol) ReadRunResults

func (p Protocol) ReadRunResults() (*cli.RunResult, error)

func (Protocol) ReadStart

func (p Protocol) ReadStart() (*entities.StartRequest, error)

func (Protocol) UserInput

func (p Protocol) UserInput() ([]byte, error)

func (Protocol) WriteAttestationDoc

func (p Protocol) WriteAttestationDoc(doc []byte) error

func (Protocol) WriteBinary

func (p Protocol) WriteBinary(b []byte) error

func (Protocol) WriteDeploymentResults

func (p Protocol) WriteDeploymentResults(res entities.SetDeploymentIDRequest) error

TODO -- `SetDeploymentIDRequest` is not a good type name they should be renamed to `DeploymentResponse` or something similar

func (Protocol) WriteFunctionInfo added in v0.2.1

func (p Protocol) WriteFunctionInfo(name string, public bool) error

func (Protocol) WriteRunResults

func (p Protocol) WriteRunResults(results cli.RunResult) error

func (Protocol) WriteStart

func (p Protocol) WriteStart(request entities.StartRequest) error

Jump to

Keyboard shortcuts

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