Documentation ¶
Index ¶
- type Client
- func (c *Client) GetAuditResult(id ResultID) (*auditAPI.Result, error)
- func (c *Client) ListAllAuditResultID() ([]ResultID, error)
- func (c *Client) ListAuditResultIDByCID(epoch uint64, cid *cid.ID) ([]ResultID, error)
- func (c *Client) ListAuditResultIDByEpoch(epoch uint64) ([]ResultID, error)
- func (c *Client) ListAuditResultIDByNode(epoch uint64, cid *cid.ID, nodeKey []byte) ([]ResultID, error)
- func (c *Client) PutAuditResult(p PutPrm) error
- type PutPrm
- type ResultID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper over StaticClient which makes calls with the names and arguments of the NeoFS Audit contract.
Working client must be created via constructor New. Using the Client that has been created with new(Client) expression (or just declaring a Client variable) is unsafe and can lead to panic.
func NewFromMorph ¶ added in v0.28.0
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...client.StaticClientOption) (*Client, error)
NewFromMorph returns the wrapper instance from the raw morph client.
func (*Client) GetAuditResult ¶
GetAuditResult returns audit result structure stored in audit contract.
func (*Client) ListAllAuditResultID ¶ added in v0.28.0
ListAllAuditResultID returns a list of all audit result IDs inside audit contract.
func (*Client) ListAuditResultIDByCID ¶ added in v0.28.0
ListAuditResultIDByCID returns a list of audit result IDs inside audit contract for specific epoch number and container ID.
func (*Client) ListAuditResultIDByEpoch ¶ added in v0.28.0
ListAuditResultIDByEpoch returns a list of audit result IDs inside audit contract for specific epoch number.
func (*Client) ListAuditResultIDByNode ¶ added in v0.28.0
func (c *Client) ListAuditResultIDByNode(epoch uint64, cid *cid.ID, nodeKey []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 (*Client) PutAuditResult ¶
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.28.0
type PutPrm struct { client.InvokePrmOptional // contains filtered or unexported fields }
PutPrm groups parameters of PutAuditResult operation.