Debian Codegraph @

storage/2020-08-04/datalakestore/paths/helpers.go

raw symbols SCIP
1 package pathsscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2020-08-04/datalakestore/paths`/
2
3 import (
4 "fmtscip-go gomod github.com/golang/go/src go1.13 fmt/"
5 )
6
7 func parsePathResourcescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2020-08-04/datalakestore/paths`/parsePathResource().(input string) (PathResourcescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2020-08-04/datalakestore/paths`/PathResource#, error) {
8 switch input {
9 case "file":
10 return PathResourceFilescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2020-08-04/datalakestore/paths`/PathResourceFile., nil
11 case "directory":
12 return PathResourceDirectoryscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2020-08-04/datalakestore/paths`/PathResourceDirectory., nil
13 }
14 return "", fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("Unhandled path resource type %q", input)
15 }