2021-01-13 13:46:39 +00:00
|
|
|
package control
|
2021-01-13 12:48:33 +00:00
|
|
|
|
|
|
|
// SetBody sets health check request body.
|
2021-01-15 07:39:03 +00:00
|
|
|
func (x *HealthCheckRequest) SetBody(v *HealthCheckRequest_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
2021-01-13 12:48:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-03 16:58:09 +00:00
|
|
|
// SetNetmapStatus sets status of the storage node in FrostFS network map.
|
2021-01-15 09:42:31 +00:00
|
|
|
func (x *HealthCheckResponse_Body) SetNetmapStatus(v NetmapStatus) {
|
2021-01-15 07:39:03 +00:00
|
|
|
if x != nil {
|
2021-01-15 09:42:31 +00:00
|
|
|
x.NetmapStatus = v
|
2021-01-13 12:48:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-15 10:18:03 +00:00
|
|
|
// SetHealthStatus sets health status of the storage node application.
|
|
|
|
func (x *HealthCheckResponse_Body) SetHealthStatus(v HealthStatus) {
|
|
|
|
if x != nil {
|
|
|
|
x.HealthStatus = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-13 12:48:33 +00:00
|
|
|
// SetBody sets health check response body.
|
2021-01-15 07:39:03 +00:00
|
|
|
func (x *HealthCheckResponse) SetBody(v *HealthCheckResponse_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
2021-01-13 12:48:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-03 16:58:09 +00:00
|
|
|
// SetStatus sets new storage node status in FrostFS network map.
|
2021-01-15 11:51:15 +00:00
|
|
|
func (x *SetNetmapStatusRequest_Body) SetStatus(v NetmapStatus) {
|
|
|
|
if x != nil {
|
|
|
|
x.Status = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-18 15:42:14 +00:00
|
|
|
// SetForceMaintenance sets force_maintenance flag in the message.
|
|
|
|
func (x *SetNetmapStatusRequest_Body) SetForceMaintenance() {
|
|
|
|
x.ForceMaintenance = true
|
|
|
|
}
|
|
|
|
|
2021-01-15 11:51:15 +00:00
|
|
|
// SetBody sets body of the set netmap status request .
|
|
|
|
func (x *SetNetmapStatusRequest) SetBody(v *SetNetmapStatusRequest_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets set body of the netmap status response.
|
|
|
|
func (x *SetNetmapStatusResponse) SetBody(v *SetNetmapStatusResponse_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-03 16:58:09 +00:00
|
|
|
// SetAddressList sets list of objects to be removed in FrostFS API binary format.
|
2021-02-21 08:30:32 +00:00
|
|
|
func (x *DropObjectsRequest_Body) SetAddressList(v [][]byte) {
|
|
|
|
if x != nil {
|
|
|
|
x.AddressList = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the set "Drop objects" request.
|
|
|
|
func (x *DropObjectsRequest) SetBody(v *DropObjectsRequest_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets set body of the "Drop objects" response.
|
|
|
|
func (x *DropObjectsResponse) SetBody(v *DropObjectsResponse_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 15:23:05 +00:00
|
|
|
// SetBody sets list shards request body.
|
|
|
|
func (x *ListShardsRequest) SetBody(v *ListShardsRequest_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetShards sets shards of the storage node.
|
|
|
|
func (x *ListShardsResponse_Body) SetShards(v []*ShardInfo) {
|
|
|
|
if x != nil {
|
|
|
|
x.Shards = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets list shards response body.
|
|
|
|
func (x *ListShardsResponse) SetBody(v *ListShardsResponse_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-10 17:54:14 +00:00
|
|
|
// SetShardIDList sets shard ID whose mode is requested to be set.
|
|
|
|
func (x *SetShardModeRequest_Body) SetShardIDList(v [][]byte) {
|
2021-12-27 16:07:12 +00:00
|
|
|
if v != nil {
|
|
|
|
x.Shard_ID = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMode sets mode of the shard.
|
|
|
|
func (x *SetShardModeRequest_Body) SetMode(v ShardMode) {
|
|
|
|
x.Mode = v
|
|
|
|
}
|
|
|
|
|
2022-01-31 15:15:33 +00:00
|
|
|
// ClearErrorCounter sets flag signifying whether error counter for shard should be cleared.
|
|
|
|
func (x *SetShardModeRequest_Body) ClearErrorCounter(reset bool) {
|
|
|
|
x.ResetErrorCounter = reset
|
|
|
|
}
|
|
|
|
|
2021-12-27 16:07:12 +00:00
|
|
|
// SetBody sets request body.
|
|
|
|
func (x *SetShardModeRequest) SetBody(v *SetShardModeRequest_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the set shard mode response.
|
|
|
|
func (x *SetShardModeResponse) SetBody(v *SetShardModeResponse_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-24 10:13:37 +00:00
|
|
|
// SetShardID sets shard ID for the dump shard request.
|
|
|
|
func (x *DumpShardRequest_Body) SetShardID(id []byte) {
|
|
|
|
x.Shard_ID = id
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFilepath sets filepath for the dump shard request.
|
|
|
|
func (x *DumpShardRequest_Body) SetFilepath(p string) {
|
|
|
|
x.Filepath = p
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetIgnoreErrors sets ignore errors flag for the dump shard request.
|
|
|
|
func (x *DumpShardRequest_Body) SetIgnoreErrors(ignore bool) {
|
|
|
|
x.IgnoreErrors = ignore
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets request body.
|
|
|
|
func (x *DumpShardRequest) SetBody(v *DumpShardRequest_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets response body.
|
|
|
|
func (x *DumpShardResponse) SetBody(v *DumpShardResponse_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-25 11:54:35 +00:00
|
|
|
// SetShardID sets shard ID for the restore shard request.
|
|
|
|
func (x *RestoreShardRequest_Body) SetShardID(id []byte) {
|
|
|
|
x.Shard_ID = id
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFilepath sets filepath for the restore shard request.
|
|
|
|
func (x *RestoreShardRequest_Body) SetFilepath(p string) {
|
|
|
|
x.Filepath = p
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetIgnoreErrors sets ignore errors flag for the restore shard request.
|
|
|
|
func (x *RestoreShardRequest_Body) SetIgnoreErrors(ignore bool) {
|
|
|
|
x.IgnoreErrors = ignore
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets request body.
|
|
|
|
func (x *RestoreShardRequest) SetBody(v *RestoreShardRequest_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets response body.
|
|
|
|
func (x *RestoreShardResponse) SetBody(v *RestoreShardResponse_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
2022-05-16 16:31:50 +00:00
|
|
|
|
|
|
|
// SetBody sets list shards request body.
|
|
|
|
func (x *SynchronizeTreeRequest) SetBody(v *SynchronizeTreeRequest_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets list shards response body.
|
|
|
|
func (x *SynchronizeTreeResponse) SetBody(v *SynchronizeTreeResponse_Body) {
|
|
|
|
if x != nil {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
}
|