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

Struct MockS3Client

go/internal/feast/registry/registry_test.go:122–125  ·  view source on GitHub ↗

MockS3Client is mock client for testing S3 registry store

Source from the content-addressed store, hash-verified

120
121// MockS3Client is mock client for testing S3 registry store
122type MockS3Client struct {
123 GetObjectFn func(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
124 DeleteObjectFn func(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)
125}
126
127func (m *MockS3Client) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error) {
128 if m.GetObjectFn != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected