MCPcopy Create free account
hub / github.com/openclaw/gogcli / ValidateID

Function ValidateID

internal/docsbatch/repository.go:354–363  ·  view source on GitHub ↗
(batchID string)

Source from the content-addressed store, hash-verified

352}
353
354func ValidateID(batchID string) error {
355 batchID = strings.TrimSpace(batchID)
356
357 parsed, err := uuid.Parse(batchID)
358 if err != nil || parsed.String() != batchID {
359 return fmt.Errorf("%w: %s", ErrInvalidID, batchID)
360 }
361
362 return nil
363}
364
365func ValidateIdentity(state *State, identity Identity) error {
366 switch {

Callers 6

validateDocsBatchIDArgFunction · 0.92
CreateMethod · 0.85
PathMethod · 0.85
readUnlockedMethod · 0.85
readPathUnlockedMethod · 0.85

Calls 2

ErrorfMethod · 0.80
StringMethod · 0.45

Tested by 1