Documentation ¶
Index ¶
- Variables
- func StringifySubnetClientGroupID(id *SubnetClientGroupID) string
- type SubnetClientGroupID
- func (*SubnetClientGroupID) Descriptor() ([]byte, []int)deprecated
- func (x *SubnetClientGroupID) GetValue() uint32
- func (x *SubnetClientGroupID) Marshal() ([]byte, error)
- func (x *SubnetClientGroupID) MarshalText() ([]byte, error)
- func (*SubnetClientGroupID) ProtoMessage()
- func (x *SubnetClientGroupID) ProtoReflect() protoreflect.Message
- func (x *SubnetClientGroupID) Reset()
- func (x *SubnetClientGroupID) SetNumber(num uint32)
- func (x *SubnetClientGroupID) String() string
- func (x *SubnetClientGroupID) Unmarshal(data []byte) error
- func (x *SubnetClientGroupID) UnmarshalText(txt []byte) error
Constants ¶
This section is empty.
Variables ¶
var File_cmd_frostfs_adm_internal_modules_morph_internal_types_proto protoreflect.FileDescriptor
Functions ¶
func StringifySubnetClientGroupID ¶
func StringifySubnetClientGroupID(id *SubnetClientGroupID) string
StringifySubnetClientGroupID returns string representation of SubnetClientGroupID using MarshalText. Returns a string with a message on error.
Types ¶
type SubnetClientGroupID ¶
type SubnetClientGroupID struct { // 4-byte integer identifier of the subnet client group. Value uint32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Client group identifier in the FrostFS subnet.
String representation of a value is base-10 integer.
JSON representation is an object containing single `value` number field.
func (*SubnetClientGroupID) Descriptor
deprecated
func (*SubnetClientGroupID) Descriptor() ([]byte, []int)
Deprecated: Use SubnetClientGroupID.ProtoReflect.Descriptor instead.
func (*SubnetClientGroupID) GetValue ¶
func (x *SubnetClientGroupID) GetValue() uint32
func (*SubnetClientGroupID) Marshal ¶
func (x *SubnetClientGroupID) Marshal() ([]byte, error)
Marshal encodes the SubnetClientGroupID into a binary format of FrostFS API V2 protocol (Protocol Buffers with direct field order).
func (*SubnetClientGroupID) MarshalText ¶
func (x *SubnetClientGroupID) MarshalText() ([]byte, error)
MarshalText encodes SubnetClientGroupID into text format according to FrostFS API V2 protocol: value in base-10 integer string format.
It implements encoding.TextMarshaler.
func (*SubnetClientGroupID) ProtoMessage ¶
func (*SubnetClientGroupID) ProtoMessage()
func (*SubnetClientGroupID) ProtoReflect ¶
func (x *SubnetClientGroupID) ProtoReflect() protoreflect.Message
func (*SubnetClientGroupID) Reset ¶
func (x *SubnetClientGroupID) Reset()
func (*SubnetClientGroupID) SetNumber ¶
func (x *SubnetClientGroupID) SetNumber(num uint32)
SetNumber sets SubnetClientGroupID value in uint32 format. Must not be called on nil. By default, number is 0.
func (*SubnetClientGroupID) String ¶
func (x *SubnetClientGroupID) String() string
func (*SubnetClientGroupID) Unmarshal ¶
func (x *SubnetClientGroupID) Unmarshal(data []byte) error
Unmarshal decodes the SubnetClientGroupID from FrostFS API V2 binary format (see Marshal). Must not be called on nil.
func (*SubnetClientGroupID) UnmarshalText ¶
func (x *SubnetClientGroupID) UnmarshalText(txt []byte) error
UnmarshalText decodes the SubnetID from the text according to FrostFS API V2 protocol: should be base-10 integer string format with bitsize = 32.
Returns strconv.ErrRange if integer overflows uint32.
Must not be called on nil.
Implements encoding.TextUnmarshaler.