MCPcopy Create free account
hub / github.com/AdRoll/baker / isValidScheme

Function isValidScheme

input/inpututils/s3.go:119–121  ·  view source on GitHub ↗

Check if scheme is s3 or s3a or s3n

(scheme string)

Source from the content-addressed store, hash-verified

117
118// Check if scheme is s3 or s3a or s3n
119func isValidScheme(scheme string) (bool, error) {
120 return regexp.MatchString(`^s3[an]?$`, scheme)
121}
122
123// errUnsupportedURLScheme is the error indicating a path has an invalid or
124// unsupported URL scheme for the S3Input.

Callers 2

ProcessDirectoryMethod · 0.85
choosePathComponentsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected