Documentation
¶
Index ¶
- Constants
- func ParseAnnounceLoadNotary(ne event.NotaryEvent) (event.Event, error)
- func ParseDeleteNotary(ne event.NotaryEvent) (event.Event, error)
- func ParseDeleteSuccess(e *state.ContainedNotificationEvent) (event.Event, error)
- func ParseObjectPut(e event.NotaryEvent) (event.Event, error)
- func ParsePutNamedNotary(ne event.NotaryEvent) (event.Event, error)
- func ParsePutNotary(ne event.NotaryEvent) (event.Event, error)
- func ParsePutSuccess(e *state.ContainedNotificationEvent) (event.Event, error)
- func ParseSetEACLNotary(ne event.NotaryEvent) (event.Event, error)
- func ParseStartEstimation(e *state.ContainedNotificationEvent) (event.Event, error)
- func ParseStopEstimation(e *state.ContainedNotificationEvent) (event.Event, error)
- func RestoreCreateContainerRequest(notaryReq event.NotaryEvent) (event.Event, error)
- func RestoreCreated(notifEvent *state.ContainedNotificationEvent) (event.Event, error)
- func RestorePutContainerEACLRequest(notaryReq event.NotaryEvent) (event.Event, error)
- func RestoreRemoveContainerRequest(notaryReq event.NotaryEvent) (event.Event, error)
- func RestoreRemoved(notifEvent *state.ContainedNotificationEvent) (event.Event, error)
- type AnnounceLoad
- type CreateContainerRequest
- type Created
- type Delete
- type DeleteSuccess
- type ObjectPut
- type Put
- type PutContainerEACLRequest
- type PutNamed
- type PutSuccess
- type RemoveContainerRequest
- type Removed
- type SetEACL
- type StartEstimation
- type StopEstimation
Constants ¶
const ( // PutNotaryEvent is method name for container put operations // in `Container` contract. Is used as identificator for notary // put container requests. PutNotaryEvent = "put" // PutNamedNotaryEvent is an ID of notary "put named container" notification. PutNamedNotaryEvent = "putNamed" )
const ( // AnnounceLoadNotaryEvent is method name for announce load estimation operation // in `Container` contract. Is used as identificator for notary // announce load estimation requests. AnnounceLoadNotaryEvent = "putContainerSize" )
const ( // DeleteNotaryEvent is method name for container delete operations // in `Container` contract. Is used as identificator for notary // delete container requests. DeleteNotaryEvent = "delete" )
const ( // ObjectPutNotaryEvent is method name for object submission operations // in `Container` contract. Is used as identificator for notary object // creation requests. ObjectPutNotaryEvent = "submitObjectPut" )
const ( // SetEACLNotaryEvent is method name for container EACL operations // in `Container` contract. Is used as identificator for notary // EACL changing requests. SetEACLNotaryEvent = "setEACL" )
Variables ¶
This section is empty.
Functions ¶
func ParseAnnounceLoadNotary ¶ added in v0.45.0
func ParseAnnounceLoadNotary(ne event.NotaryEvent) (event.Event, error)
ParseAnnounceLoadNotary from NotaryEvent into container event structure.
func ParseDeleteNotary ¶ added in v0.25.0
func ParseDeleteNotary(ne event.NotaryEvent) (event.Event, error)
ParseDeleteNotary from NotaryEvent into container event structure.
func ParseDeleteSuccess ¶ added in v0.32.0
func ParseDeleteSuccess(e *state.ContainedNotificationEvent) (event.Event, error)
ParseDeleteSuccess decodes notification event thrown by Container contract into DeleteSuccess and returns it as event.Event.
func ParseObjectPut ¶ added in v0.46.0
func ParseObjectPut(e event.NotaryEvent) (event.Event, error)
ParseObjectPut decodes notification event thrown by Container contract into ObjectPut and returns it as event.Event.
func ParsePutNamedNotary ¶ added in v0.26.0
func ParsePutNamedNotary(ne event.NotaryEvent) (event.Event, error)
ParsePutNamedNotary parses PutNamed event structure from generic event.NotaryEvent.
func ParsePutNotary ¶ added in v0.25.0
func ParsePutNotary(ne event.NotaryEvent) (event.Event, error)
ParsePutNotary from NotaryEvent into container event structure.
func ParsePutSuccess ¶ added in v0.32.0
func ParsePutSuccess(e *state.ContainedNotificationEvent) (event.Event, error)
ParsePutSuccess decodes notification event thrown by Container contract into PutSuccess and returns it as event.Event.
func ParseSetEACLNotary ¶ added in v0.25.0
func ParseSetEACLNotary(ne event.NotaryEvent) (event.Event, error)
ParseSetEACLNotary from NotaryEvent into container event structure.
func ParseStartEstimation ¶ added in v0.15.0
func ParseStartEstimation(e *state.ContainedNotificationEvent) (event.Event, error)
ParseStartEstimation from notification into container event structure.
func ParseStopEstimation ¶ added in v0.15.0
func ParseStopEstimation(e *state.ContainedNotificationEvent) (event.Event, error)
ParseStopEstimation from notification into container event structure.
func RestoreCreateContainerRequest ¶ added in v0.46.0
func RestoreCreateContainerRequest(notaryReq event.NotaryEvent) (event.Event, error)
RestoreCreateContainerRequest restores CreateContainerRequest from the notary one.
func RestoreCreated ¶ added in v0.46.0
func RestoreCreated(notifEvent *state.ContainedNotificationEvent) (event.Event, error)
RestoreCreated restores Created event from the notification one.
func RestorePutContainerEACLRequest ¶ added in v0.46.0
func RestorePutContainerEACLRequest(notaryReq event.NotaryEvent) (event.Event, error)
RestorePutContainerEACLRequest restores PutContainerEACLRequest from the notary one.
func RestoreRemoveContainerRequest ¶ added in v0.46.0
func RestoreRemoveContainerRequest(notaryReq event.NotaryEvent) (event.Event, error)
RestoreRemoveContainerRequest restores RemoveContainerRequest from the notary one.
func RestoreRemoved ¶ added in v0.46.0
func RestoreRemoved(notifEvent *state.ContainedNotificationEvent) (event.Event, error)
RestoreRemoved restores Removed event from the notification one.
Types ¶
type AnnounceLoad ¶ added in v0.45.0
type AnnounceLoad struct {
// contains filtered or unexported fields
}
AnnounceLoad structure of container.AnnounceLoad notification from morph chain.
func (AnnounceLoad) ContainerID ¶ added in v0.45.0
func (al AnnounceLoad) ContainerID() []byte
ContainerID returns container ID for which the amount of data is estimated.
func (AnnounceLoad) Epoch ¶ added in v0.45.0
func (al AnnounceLoad) Epoch() uint64
Epoch returns epoch when estimation of the container data size was calculated.
func (AnnounceLoad) Key ¶ added in v0.45.0
func (al AnnounceLoad) Key() []byte
Key returns a public key of the reporter.
func (AnnounceLoad) MorphEvent ¶ added in v0.45.0
func (AnnounceLoad) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
func (AnnounceLoad) NotaryRequest ¶ added in v0.45.0
func (al AnnounceLoad) NotaryRequest() *payload.P2PNotaryRequest
NotaryRequest returns raw notary request if notification was received via notary service. Otherwise, returns nil.
func (AnnounceLoad) Value ¶ added in v0.45.0
func (al AnnounceLoad) Value() uint64
Value returns estimated amount of data (in bytes) in the specified container.
type CreateContainerRequest ¶ added in v0.46.0
type CreateContainerRequest struct {
event.Event
MainTransaction transaction.Transaction
fschaincontracts.CreateContainerParams
}
CreateContainerRequest wraps container creation request to provide app-internal event.
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
Delete structure of container.Delete notification from morph chain.
func (Delete) ContainerID ¶
ContainerID is a marshalled container structure, defined in API.
func (Delete) MorphEvent ¶
func (Delete) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
func (Delete) NotaryRequest ¶ added in v0.25.0
func (d Delete) NotaryRequest() *payload.P2PNotaryRequest
NotaryRequest returns raw notary request if notification was received via notary service. Otherwise, returns nil.
func (Delete) SessionToken ¶ added in v0.21.0
SessionToken returns binary token of the session within which the eACL was set.
type DeleteSuccess ¶ added in v0.32.0
DeleteSuccess structures notification event of successful container removal thrown by Container contract.
func (DeleteSuccess) MorphEvent ¶ added in v0.32.0
func (DeleteSuccess) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
type ObjectPut ¶ added in v0.46.0
type ObjectPut struct {
// contains filtered or unexported fields
}
ObjectPut structure of container.SubmitObjectPut notification from FS chain.
func (ObjectPut) ContainerID ¶ added in v0.46.0
ContainerID returns created object's container ID.
func (ObjectPut) MorphEvent ¶ added in v0.46.0
func (ObjectPut) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
func (ObjectPut) NotaryRequest ¶ added in v0.46.0
func (op ObjectPut) NotaryRequest() *payload.P2PNotaryRequest
NotaryRequest returns raw notary request if notification was received via notary service.
type Put ¶
type Put struct {
// contains filtered or unexported fields
}
Put structure of container.Put notification from morph chain.
func (Put) NotaryRequest ¶ added in v0.25.0
func (p Put) NotaryRequest() *payload.P2PNotaryRequest
NotaryRequest returns raw notary request if notification was received via notary service. Otherwise, returns nil.
func (Put) SessionToken ¶ added in v0.21.0
SessionToken returns binary token of the session within which the container was created.
type PutContainerEACLRequest ¶ added in v0.46.0
type PutContainerEACLRequest struct {
event.Event
MainTransaction transaction.Transaction
fschaincontracts.PutContainerEACLParams
}
PutContainerEACLRequest wraps container EACL setting request to provide app-internal event.
type PutNamed ¶ added in v0.26.0
type PutNamed struct {
Put
// contains filtered or unexported fields
}
PutNamed represents notification event spawned by PutNamed method from Container contract of NeoFS Morph chain.
type PutSuccess ¶ added in v0.32.0
PutSuccess structures notification event of successful container creation thrown by Container contract.
func (PutSuccess) MorphEvent ¶ added in v0.32.0
func (PutSuccess) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
type RemoveContainerRequest ¶ added in v0.46.0
type RemoveContainerRequest struct {
event.Event
MainTransaction transaction.Transaction
fschaincontracts.RemoveContainerParams
}
RemoveContainerRequest wraps container removal request to provide app-internal event.
type SetEACL ¶ added in v0.21.0
type SetEACL struct {
// contains filtered or unexported fields
}
SetEACL represents structure of notification about modified eACL table coming from NeoFS Container contract.
func (SetEACL) MorphEvent ¶ added in v0.21.0
func (SetEACL) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
func (SetEACL) NotaryRequest ¶ added in v0.25.0
func (x SetEACL) NotaryRequest() *payload.P2PNotaryRequest
NotaryRequest returns raw notary request if notification was received via notary service. Otherwise, returns nil.
func (SetEACL) PublicKey ¶ added in v0.21.0
PublicKey returns public keys of container owner in a binary format.
func (SetEACL) SessionToken ¶ added in v0.21.0
SessionToken returns binary token of the session within which the eACL was set.
type StartEstimation ¶ added in v0.15.0
type StartEstimation struct {
// contains filtered or unexported fields
}
StartEstimation structure of container.StartEstimation notification from morph chain.
func (StartEstimation) Epoch ¶ added in v0.15.0
func (s StartEstimation) Epoch() uint64
Epoch returns epoch value for which to start container size estimation.
func (StartEstimation) MorphEvent ¶ added in v0.15.0
func (StartEstimation) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
type StopEstimation ¶ added in v0.15.0
type StopEstimation struct {
// contains filtered or unexported fields
}
StopEstimation structure of container.StopEstimation notification from morph chain.
func (StopEstimation) Epoch ¶ added in v0.15.0
func (s StopEstimation) Epoch() uint64
Epoch returns epoch value for which to stop container size estimation.
func (StopEstimation) MorphEvent ¶ added in v0.15.0
func (StopEstimation) MorphEvent()
MorphEvent implements Neo:Morph Event interface.