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 *container.ID) ([]ResultID, error)
- func (w *ClientWrapper) ListAuditResultIDByEpoch(epoch uint64) ([]ResultID, error)
- func (w *ClientWrapper) ListAuditResultIDByNode(epoch uint64, cid *container.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 WrapClient ¶
func WrapClient(c *audit.Client) *ClientWrapper
WrapClient wraps Audit contract client and returns ClientWrapper instance.
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 *container.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 calculated container identifier and any error encountered that caused the saving to interrupt.