mirror of
https://github.com/anchore/syft.git
synced 2025-11-19 17:33:18 +01:00
* migrate location structs to file package Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * replace source.Location refs with file package call Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * fix linting Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * remove hardlink test for file based catalogers Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * remove hardlink test for all-regular-files testing Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * migrate file resolver implementations to separate package Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * fix linting Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * [wip] migrate resolvers to internal Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * migrate resolvers to syft/internal Signed-off-by: Alex Goodman <alex.goodman@anchore.com> --------- Signed-off-by: Alex Goodman <alex.goodman@anchore.com> Signed-off-by: <>
16 lines
256 B
Go
16 lines
256 B
Go
package file
|
|
|
|
import "io"
|
|
|
|
type LocationReadCloser struct {
|
|
Location
|
|
io.ReadCloser
|
|
}
|
|
|
|
func NewLocationReadCloser(location Location, reader io.ReadCloser) LocationReadCloser {
|
|
return LocationReadCloser{
|
|
Location: location,
|
|
ReadCloser: reader,
|
|
}
|
|
}
|