MCPcopy Create free account
hub / github.com/entireio/git-sync / validateOperationMode

Function validateOperationMode

client.go:247–254  ·  view source on GitHub ↗
(mode OperationMode)

Source from the content-addressed store, hash-verified

245}
246
247func validateOperationMode(mode OperationMode) error {
248 switch mode {
249 case "", ModeSync, ModeReplicate:
250 return nil
251 default:
252 return fmt.Errorf("unsupported operation mode %q", mode)
253 }
254}
255
256func ptr[T any](v T) *T {
257 return &v

Callers 2

ValidateMethod · 0.85
ValidateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected