frostfs-sdk-go/apiv2/ape/string.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

18 lines
317 B
Go

package ape
import (
apegrpc "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/apiv2/ape/grpc"
)
func (tt TargetType) String() string {
return TargetTypeToGRPCField(tt).String()
}
func (tt *TargetType) FromString(s string) bool {
i, ok := apegrpc.TargetType_value[s]
if ok {
*tt = TargetType(i)
}
return ok
}