Documentation
¶
Index ¶
- type ClientWrapper
- func (w *ClientWrapper) GetAuditResult(id ResultID) (*auditAPI.Result, error)
- func (w *ClientWrapper) ListAllAuditResultID() ([]ResultID, error)
- func (w *ClientWrapper) ListAuditResultIDByCID(epoch uint64, cid *cid.ID) ([]ResultID, error)
- func (w *ClientWrapper) ListAuditResultIDByEpoch(epoch uint64) ([]ResultID, error)
- func (w *ClientWrapper) ListAuditResultIDByNode(epoch uint64, cid *cid.ID, key []byte) ([]ResultID, error)
- func (w *ClientWrapper) PutAuditResult(result *auditAPI.Result) error
- type ResultID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWrapper ¶
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) (*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)
ListAuditResults returns a list of all audit result IDs inside audit contract.
func (*ClientWrapper) ListAuditResultIDByCID ¶
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(result *auditAPI.Result) error
PutAuditResult saves passed audit result structure in NeoFS system through Audit contract call.
Returns encountered error that caused the saving to interrupt.