container

package
v0.22.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDelete

func ParseDelete(params []stackitem.Item) (event.Event, error)

ParseDelete from notification into container event structure.

Expects 3 stack items.

func ParsePut

func ParsePut(params []stackitem.Item) (event.Event, error)

ParsePut from notification into container event structure.

func ParseSetEACL added in v0.21.0

func ParseSetEACL(items []stackitem.Item) (event.Event, error)

ParseSetEACL parses SetEACL notification event from list of stack items.

Expects 4 stack items.

func ParseStartEstimation added in v0.15.0

func ParseStartEstimation(params []stackitem.Item) (event.Event, error)

ParseStartEstimation from notification into container event structure.

func ParseStopEstimation added in v0.15.0

func ParseStopEstimation(params []stackitem.Item) (event.Event, error)

ParseStopEstimation from notification into container event structure.

Types

type Delete

type Delete struct {
	// contains filtered or unexported fields
}

Delete structure of container.Delete notification from morph chain.

func (Delete) ContainerID

func (d Delete) ContainerID() []byte

Container is a marshalled container structure, defined in API.

func (Delete) MorphEvent

func (Delete) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Delete) SessionToken added in v0.21.0

func (d Delete) SessionToken() []byte

SessionToken returns binary token of the session within which the eACL was set.

func (Delete) Signature

func (d Delete) Signature() []byte

Signature of marshalled container by container owner.

type Put

type Put struct {
	// contains filtered or unexported fields
}

Put structure of container.Put notification from morph chain.

func (Put) Container

func (p Put) Container() []byte

Container is a marshalled container structure, defined in API.

func (Put) MorphEvent

func (Put) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Put) PublicKey

func (p Put) PublicKey() []byte

PublicKey of container owner.

func (Put) SessionToken added in v0.21.0

func (p Put) SessionToken() []byte

SessionToken returns binary token of the session within which the container was created.

func (Put) Signature

func (p Put) Signature() []byte

Signature of marshalled container by container owner.

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) PublicKey added in v0.21.0

func (x SetEACL) PublicKey() []byte

PublicKey returns public keys of container owner in a binary format.

func (SetEACL) SessionToken added in v0.21.0

func (x SetEACL) SessionToken() []byte

SessionToken returns binary token of the session within which the eACL was set.

func (SetEACL) Signature added in v0.21.0

func (x SetEACL) Signature() []byte

Signature returns signature of the binary table.

func (SetEACL) Table added in v0.21.0

func (x SetEACL) Table() []byte

Table returns returns eACL table in a binary NeoFS API format.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL