MCPcopy
hub / github.com/NVIDIA/aistore / parseChecksumFlags

Function parseChecksumFlags

cmd/cli/commands/utils.go:1243–1251  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

1241}
1242
1243func parseChecksumFlags(c *cli.Context) []*cos.Cksum {
1244 cksums := []*cos.Cksum{}
1245 for _, ckflag := range supportedCksumFlags {
1246 if flagIsSet(c, ckflag) {
1247 cksums = append(cksums, cos.NewCksum(ckflag.GetName(), parseStrFlag(c, ckflag)))
1248 }
1249 }
1250 return cksums
1251}
1252
1253func flattenXactStats(snap *xact.SnapExt) []*prop {
1254 props := make([]*prop, 0)

Callers 1

putSingleObjectFunction · 0.85

Calls 3

NewCksumFunction · 0.92
flagIsSetFunction · 0.85
parseStrFlagFunction · 0.85

Tested by

no test coverage detected