frostfs-sdk-go/apiv2/container/json.go
Pavel Pogodaev 397123a810
Some checks failed
Tests and linters / Tests (pull_request) Failing after 42s
DCO / DCO (pull_request) Failing after 59s
Tests and linters / Lint (pull_request) Failing after 1m1s
[] Merge repo with frostfs-api-go
Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
2024-10-08 13:34:42 +03:00

22 lines
603 B
Go

package container
import (
container "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/apiv2/container/grpc"
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/apiv2/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))
}