MCPcopy Index your code
hub / github.com/redspread/spread / kindFromPath

Function kindFromPath

pkg/deploy/object.go:67–73  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

65}
66
67func kindFromPath(path string) (string, error) {
68 parts := strings.Split(path, "/")
69 if len(parts) != 4 {
70 return "", fmt.Errorf("path wrong length (is %d, expected 5)", len(parts))
71 }
72 return parts[2], nil
73}

Callers 1

KubeObjectFromDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected