fix: harden desktop release OSS uploads
This commit is contained in:
@@ -49,6 +49,15 @@ func (c *ReloadableClient) GetBytes(ctx context.Context, objectKey string) ([]by
|
||||
return c.snapshot().GetBytes(ctx, objectKey)
|
||||
}
|
||||
|
||||
func (c *ReloadableClient) GetReader(ctx context.Context, objectKey string) (io.ReadCloser, error) {
|
||||
client := c.snapshot()
|
||||
readerClient, ok := client.(ObjectReaderClient)
|
||||
if !ok {
|
||||
return nil, ErrNotConfigured
|
||||
}
|
||||
return readerClient.GetReader(ctx, objectKey)
|
||||
}
|
||||
|
||||
func (c *ReloadableClient) Exists(ctx context.Context, objectKey string) (bool, error) {
|
||||
return c.snapshot().Exists(ctx, objectKey)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user