mocks

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol added in v0.5.10

type Protocol struct {
	WriteStartFn            func(req entities.StartRequest) error
	ReadAttestationDocFn    func() ([]byte, error)
	ReadRunResultsFn        func() (*cli.RunResult, error)
	WriteBinaryFn           func(b []byte) error
	WriteFunctionInfoFn     func(name string, public bool) error
	ReadDeploymentResultsFn func() (*entities.SetDeploymentIDRequest, error)
}

func (Protocol) ReadAttestationDoc added in v0.5.10

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

func (Protocol) ReadDeploymentResults added in v0.5.10

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

func (Protocol) ReadRunResults added in v0.5.10

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

func (Protocol) WriteBinary added in v0.5.10

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

func (Protocol) WriteFunctionInfo added in v0.5.10

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

func (Protocol) WriteStart added in v0.5.10

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

type Verifier added in v0.5.10

type Verifier struct {
	VerifyFn func(attestation []byte, nonce []byte) (*attest.AttestationDoc, error)
}

func (Verifier) Verify added in v0.5.10

func (v Verifier) Verify(attestation []byte, nonce []byte) (*attest.AttestationDoc, error)

Jump to

Keyboard shortcuts

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