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

Method Teardown

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

Source from the content-addressed store, hash-verified

91}
92
93func (g *GCSRegistryStore) Teardown() error {
94 bucket, object, err := g.parseGCSPath()
95 if err != nil {
96 return err
97 }
98
99 ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
100 defer cancel()
101
102 return g.client.DeleteObject(ctx, bucket, object)
103}
104
105func (g *GCSRegistryStore) parseGCSPath() (string, string, error) {
106 uri, err := url.Parse(g.registryPath)

Callers

nothing calls this directly

Calls 2

parseGCSPathMethod · 0.95
DeleteObjectMethod · 0.65

Tested by

no test coverage detected