forked from TrueCloudLab/frostfs-api-go
Move api-v2 files into v2 subdir
This subdir contains generated proto files and small wrappers.
This commit is contained in:
parent
0ee1c3653d
commit
1f143e54bd
48 changed files with 1479 additions and 1515 deletions
36
v2/refs/types.go
Normal file
36
v2/refs/types.go
Normal file
|
@ -0,0 +1,36 @@
|
|||
package refs
|
||||
|
||||
// SetValue sets container identifier in a binary format.
|
||||
func (m *ContainerID) SetValue(v []byte) {
|
||||
if m != nil {
|
||||
m.Value = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetValue sets object identifier in a binary format.
|
||||
func (m *ObjectID) SetValue(v []byte) {
|
||||
if m != nil {
|
||||
m.Value = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetValue sets owner identifier in a binary format.
|
||||
func (m *OwnerID) SetValue(v []byte) {
|
||||
if m != nil {
|
||||
m.Value = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetContainerId sets container identifier of the address.
|
||||
func (m *Address) SetContainerId(v *ContainerID) {
|
||||
if m != nil {
|
||||
m.ContainerId = v
|
||||
}
|
||||
}
|
||||
|
||||
// SetObjectId sets object identifier of the address.
|
||||
func (m *Address) SetObjectId(v *ObjectID) {
|
||||
if m != nil {
|
||||
m.ObjectId = v
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue