netmapcontract

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPeer

func AddPeer(nodeInfo []byte) bool

func Config

func Config(key []byte) interface{}

func Epoch

func Epoch() int

func Init

func Init(keys [][]byte)

Init function sets up initial list of inner ring public keys and should be invoked once at neofs infrastructure setup.

func InitConfig

func InitConfig(args [][]byte) bool

func InnerRingList

func InnerRingList() []irNode

func ListConfig

func ListConfig() []record

func Netmap

func Netmap() []storageNode

func NewEpoch

func NewEpoch(epochNum int) bool

func SetConfig

func SetConfig(id, key, val []byte) bool

func Snapshot

func Snapshot(diff int) []storageNode

func SnapshotByEpoch added in v0.3.1

func SnapshotByEpoch(epoch int) []storageNode

func UpdateInnerRing

func UpdateInnerRing(keys [][]byte) bool

func UpdateState

func UpdateState(state int, publicKey []byte) bool

func Version

func Version() int

Types

This section is empty.

Jump to

Keyboard shortcuts

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