github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/subnet/grpc/types.go (about)

     1  package subnet
     2  
     3  import (
     4  	refs "github.com/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
     5  )
     6  
     7  // SetID returns identifier of the subnet. Nil arg is equivalent to zero subnet ID.
     8  func (x *SubnetInfo) SetID(id *refs.SubnetID) {
     9  	x.Id = id
    10  }
    11  
    12  // SetOwner sets subnet owner's ID in NeoFS system.
    13  func (x *SubnetInfo) SetOwner(id *refs.OwnerID) {
    14  	x.Owner = id
    15  }