Documentation ¶
Overview ¶
Package subnet collects functionality related to the FrostFS subnets.
Subnet of a particular FrostFS network consists of a subset of the storage nodes of that network. Subnet of the whole network is called zero. Info type acts as a subnet descriptor. Each subnet is owned by the user who created it. Information about all subnets is stored in the Subnet contract of the FrostFS Sidechain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertOwnership ¶
AssertOwnership checks if the given info describes the subnet owned by the given user.
Types ¶
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
Info represents information about FrostFS subnet.
Instances can be created using built-in var declaration.
func (Info) Marshal ¶
Marshal encodes Info into a binary format of the FrostFS API protocol (Protocol Buffers with direct field order).
See also Unmarshal.
func (Info) Owner ¶
Owner returns subnet owner set using SetOwner.
Zero Info has no owner which is incorrect according to the FrostFS API protocol.
Directories ¶
Path | Synopsis |
---|---|
Package subnetid provides primitives to work with subnet identification in FrostFS.
|
Package subnetid provides primitives to work with subnet identification in FrostFS. |
test
Package subnetidtest provides functions for convenient testing of subnetid package API.
|
Package subnetidtest provides functions for convenient testing of subnetid package API. |
Package subnettest provides functions for convenient testing of subnet package API.
|
Package subnettest provides functions for convenient testing of subnet package API. |