internal

package
v0.0.0-...-79ba347 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

Jump to

Keyboard shortcuts

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