MCPcopy
hub / github.com/feast-dev/feast / parseGCSPath

Method parseGCSPath

go/internal/feast/registry/gcs.go:105–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105func (g *GCSRegistryStore) parseGCSPath() (string, string, error) {
106 uri, err := url.Parse(g.registryPath)
107 if err != nil {
108 return "", "", errors.New("invalid GCS registry path format")
109 }
110 bucket := uri.Host
111 object := strings.TrimPrefix(uri.Path, "/")
112 return bucket, object, nil
113}

Callers 2

GetRegistryProtoMethod · 0.95
TeardownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected