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(prm PutPrm) error
- type PutPrm
- type ResultID
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 ¶
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.