Skip to content

Commit

Permalink
add doc comments
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
  • Loading branch information
wagoodman committed Nov 18, 2021
1 parent dfcb57a commit 3333709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syft/source/location.go
Expand Up @@ -29,6 +29,7 @@ func NewLocation(realPath string) Location {
}
}

// NewVirtualLocation creates a new location for a path accessed by a virtual path (a path with a symlink or hardlink somewhere in the path)
func NewVirtualLocation(realPath, virtualPath string) Location {
return Location{
Coordinates: Coordinates{
Expand All @@ -38,6 +39,7 @@ func NewVirtualLocation(realPath, virtualPath string) Location {
}
}

// NewLocationFromCoordinates creates a new location for the given Coordinates.
func NewLocationFromCoordinates(coordinates Coordinates) Location {
return Location{
Coordinates: coordinates,
Expand Down

0 comments on commit 3333709

Please sign in to comment.