forked from TrueCloudLab/frostfs-api-go
Alex Vanin
f69d2ad83c
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
22 lines
597 B
Go
22 lines
597 B
Go
package container
|
|
|
|
import (
|
|
container "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/container/grpc"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
|
)
|
|
|
|
func (a *Attribute) MarshalJSON() ([]byte, error) {
|
|
return message.MarshalJSON(a)
|
|
}
|
|
|
|
func (a *Attribute) UnmarshalJSON(data []byte) error {
|
|
return message.UnmarshalJSON(a, data, new(container.Container_Attribute))
|
|
}
|
|
|
|
func (c *Container) MarshalJSON() ([]byte, error) {
|
|
return message.MarshalJSON(c)
|
|
}
|
|
|
|
func (c *Container) UnmarshalJSON(data []byte) error {
|
|
return message.UnmarshalJSON(c, data, new(container.Container))
|
|
}
|