Skip to content

Commit 313ece8

Browse files
committed
add some code documentation
Signed-off-by: Geoffroy Vallee <[email protected]>
1 parent 9e5da8a commit 313ece8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/pkg/distro/distro.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/sylabs/singularity-mpi/internal/pkg/sys"
1515
)
1616

17+
// ID represents a Linux distribution
1718
type ID struct {
1819
// Name is the name of the Linux distribution, e.g., ubuntu
1920
Name string
@@ -25,6 +26,7 @@ type ID struct {
2526
Codename string
2627
}
2728

29+
// GetBaseImageLibraryURL returns the library URL to use as base image (when possible)
2830
func GetBaseImageLibraryURL(linuxDistro ID, sysCfg *sys.Config) string {
2931
configFile := filepath.Join(sysCfg.EtcDir, "sympi_"+linuxDistro.Name+".conf")
3032

0 commit comments

Comments
 (0)