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

     1  package container
     2  
     3  import (
     4  	netmap "github.com/TrueCloudLab/frostfs-api-go/v2/netmap/grpc"
     5  	refs "github.com/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
     6  )
     7  
     8  // SetKey sets key to the container attribute.
     9  func (m *Container_Attribute) SetKey(v string) {
    10  	m.Key = v
    11  }
    12  
    13  // SetValue sets value of the container attribute.
    14  func (m *Container_Attribute) SetValue(v string) {
    15  	m.Value = v
    16  }
    17  
    18  // SetOwnerId sets identifier of the container owner,
    19  func (m *Container) SetOwnerId(v *refs.OwnerID) {
    20  	m.OwnerId = v
    21  }
    22  
    23  // SetNonce sets nonce of the container structure.
    24  func (m *Container) SetNonce(v []byte) {
    25  	m.Nonce = v
    26  }
    27  
    28  // SetBasicAcl sets basic ACL of the container.
    29  func (m *Container) SetBasicAcl(v uint32) {
    30  	m.BasicAcl = v
    31  }
    32  
    33  // SetAttributes sets list of the container attributes.
    34  func (m *Container) SetAttributes(v []*Container_Attribute) {
    35  	m.Attributes = v
    36  }
    37  
    38  // SetPlacementPolicy sets placement policy of the container.
    39  func (m *Container) SetPlacementPolicy(v *netmap.PlacementPolicy) {
    40  	m.PlacementPolicy = v
    41  }
    42  
    43  // SetVersion sets version of the container.
    44  func (m *Container) SetVersion(v *refs.Version) {
    45  	m.Version = v
    46  }