What would you like to be added:
Providing an option to mention tempDirectory instead of relying on tmp directory provided by os.TempDir when GetImage
|
func GetImage(ctx context.Context, imgStr string, options ...Option) (*image.Image, error) { |
Why is this needed:
We had a requirement where a customer wants to mention tempDirectory to be used by stereoscope while getting a docker image.
Additional context:
I examined the Stereoscope code to see if we could set a custom tempDir, but currently, that option isn’t available.
Here we are using global variable rootTempDirGenerator and not exposed to change.
|
var rootTempDirGenerator = file.NewTempDirGenerator("stereoscope") |
Can we provide an option to update rootLocation in TempDirGenerator
What would you like to be added:
Providing an option to mention tempDirectory instead of relying on tmp directory provided by os.TempDir when GetImage
stereoscope/client.go
Line 69 in e6d086e
Why is this needed:
We had a requirement where a customer wants to mention tempDirectory to be used by stereoscope while getting a docker image.
Additional context:
I examined the Stereoscope code to see if we could set a custom tempDir, but currently, that option isn’t available.
Here we are using global variable
rootTempDirGeneratorand not exposed to change.stereoscope/client.go
Line 19 in e6d086e
Can we provide an option to update rootLocation in TempDirGenerator
stereoscope/pkg/file/temp_dir_generator.go
Line 12 in e6d086e