audit

package
v0.27.7 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWrapper

type ClientWrapper struct {
	internal.StaticClient
	// contains filtered or unexported fields
}

ClientWrapper is a wrapper over Audit contract client which implements storage of audit results.

func NewFromMorph added in v0.21.0

func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...client.StaticClientOption) (*ClientWrapper, error)

NewFromMorph returns the wrapper instance from the raw morph client.

func (*ClientWrapper) GetAuditResult

func (w *ClientWrapper) GetAuditResult(id ResultID) (*auditAPI.Result, error)

GetAuditResult returns audit result structure stored in audit contract.

func (*ClientWrapper) ListAllAuditResultID

func (w *ClientWrapper) ListAllAuditResultID() ([]ResultID, error)

ListAllAuditResultID returns a list of all audit result IDs inside audit contract.

func (*ClientWrapper) ListAuditResultIDByCID

func (w *ClientWrapper) ListAuditResultIDByCID(epoch uint64, cid *cid.ID) ([]ResultID, error)

ListAuditResultIDByCID returns a list of audit result IDs inside audit contract for specific epoch number and container ID.

func (*ClientWrapper) ListAuditResultIDByEpoch

func (w *ClientWrapper) ListAuditResultIDByEpoch(epoch uint64) ([]ResultID, error)

ListAuditResultIDByEpoch returns a list of audit result IDs inside audit contract for specific epoch number.

func (*ClientWrapper) ListAuditResultIDByNode

func (w *ClientWrapper) ListAuditResultIDByNode(epoch uint64, cid *cid.ID, key []byte) ([]ResultID, error)

ListAuditResultIDByNode returns a list of audit result IDs inside audit contract for specific epoch number, container ID and inner ring public key.

func (*ClientWrapper) PutAuditResult

func (w *ClientWrapper) PutAuditResult(prm PutPrm) error

PutAuditResult saves passed audit result structure in NeoFS system through Audit contract call.

Returns encountered error that caused the saving to interrupt.

type PutPrm added in v0.27.0

type PutPrm struct {
	client.InvokePrmOptional
	// contains filtered or unexported fields
}

PutPrm groups parameters of PutAuditResult operation.

func (*PutPrm) SetResult added in v0.27.0

func (p *PutPrm) SetResult(result *auditAPI.Result)

SetResult sets audit result.

type ResultID

type ResultID []byte

ResultID is an identity of audit result inside audit contract.

Jump to

Keyboard shortcuts

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