2020-10-19 18:23:11 +00:00
|
|
|
package container
|
|
|
|
|
|
|
|
import (
|
2023-03-07 10:38:56 +00:00
|
|
|
container "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/container/grpc"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
2020-10-19 18:23:11 +00:00
|
|
|
)
|
|
|
|
|
2020-11-13 12:21:34 +00:00
|
|
|
func (a *Attribute) MarshalJSON() ([]byte, error) {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.MarshalJSON(a)
|
2020-10-19 18:23:11 +00:00
|
|
|
}
|
|
|
|
|
2020-11-13 12:21:34 +00:00
|
|
|
func (a *Attribute) UnmarshalJSON(data []byte) error {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.UnmarshalJSON(a, data, new(container.Container_Attribute))
|
2020-10-19 18:23:11 +00:00
|
|
|
}
|
2020-11-13 12:14:39 +00:00
|
|
|
|
2020-11-13 12:21:34 +00:00
|
|
|
func (c *Container) MarshalJSON() ([]byte, error) {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.MarshalJSON(c)
|
2020-11-13 12:14:39 +00:00
|
|
|
}
|
|
|
|
|
2020-11-13 12:21:34 +00:00
|
|
|
func (c *Container) UnmarshalJSON(data []byte) error {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.UnmarshalJSON(c, data, new(container.Container))
|
2020-11-13 12:14:39 +00:00
|
|
|
}
|