Documentation
¶
Index ¶
- func IDEquals(info Info, id subnetid.ID) bool
- func IsOwner(info Info, id owner.ID) bool
- type Info
- func (x *Info) FromV2(msg subnet.Info)
- func (x *Info) Marshal() ([]byte, error)
- func (x Info) ReadID(id *subnetid.ID)
- func (x Info) ReadOwner(id *owner.ID)
- func (x *Info) SetID(id subnetid.ID)
- func (x *Info) SetOwner(id owner.ID)
- func (x *Info) Unmarshal(data []byte) error
- func (x Info) WriteToV2(msg *subnet.Info)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
Info represents information about NeoFS subnet.
The type is compatible with the corresponding message from NeoFS API V2 protocol.
Zero value and nil pointer to it represents zero subnet w/o an owner.
func (*Info) FromV2 ¶
FromV2 initializes Info from subnet.Info message structure. Must not be called on nil.
func (*Info) Marshal ¶
Marshal encodes Info into a binary format of NeoFS API V2 protocol (Protocol Buffers with direct field order).
func (Info) ReadID ¶
ReadID reads the identifier of the subnet that Info describes. Arg must not be nil.
func (Info) ReadOwner ¶
ReadOwner reads the identifier of the subnet that Info describes. Must be called only if owner is set (see HasOwner). Arg must not be nil.
Click to show internal directories.
Click to hide internal directories.