Documentation
¶
Index ¶
- Constants
- func CheckIntegrity(sysCfg *sys.Config) error
- func ConfigFileUpdateEntry(configFile string, key string, value string) error
- func Configure(env *buildenv.Info, sysCfg *sys.Config, extraArgs []string) error
- func CreateMPIConfigFile() (string, error)
- func GetImageURL(mpiCfg *implem.Info, sysCfg *sys.Config) string
- func GetPathToSyMPIConfigFile() string
- func GetSIFArchs(imgPath string, sysCfg *sys.Config) ([]string, error)
- func GetVersion(sysCfg *sys.Config) string
- func IsSudoCmd(cmd string, sysCfg *sys.Config) bool
- func LoadMPIConfigFile() ([]kv.KV, error)
- func LoadSingularityReleaseConf(sysCfg *sys.Config) ([]kv.KV, error)
- func LookupConfig(sysCfg *sys.Config) (sys.Config, error)
- type MPIToolConfig
Constants ¶
const ( // BuildPrivilegeKey is the key used in the tool's configuration file to specify if the tool can create images on the platform BuildPrivilegeKey = "build_privilege" // NoPrivKey is the key used to specify whether Singularity should be executed without any privilege NoPrivKey = "force_unprivileged" // SudoCmdsKey is the key used to specify which Singularity commands need to be executed with sudo SudoCmdsKey = "singularity_sudo_cmds" )
Variables ¶
This section is empty.
Functions ¶
func CheckIntegrity ¶
CheckIntegrity checks if the installation of Singularity has been compromised
func ConfigFileUpdateEntry ¶
ConfigFileUpdateEntry updates the value of a key in the tool's configuration file
func CreateMPIConfigFile ¶
CreateMPIConfigFile ensures that the configuration file of the tool is correctly created
func GetImageURL ¶
GetImageURL returns the URL to pull an image for a given distro/MPI/test
func GetPathToSyMPIConfigFile ¶
func GetPathToSyMPIConfigFile() string
GetPathToSyMPIConfigFile returns the path to the tool's configuration file
func GetSIFArchs ¶
GetSIFArchs returns the list of hardware architectures supported by a given image.
Note that we can have multiple partitions and these partitions can support different hardware architectures
func GetVersion ¶
GetVersion returned the version of Singularity that is currently used
func IsSudoCmd ¶
IsSudoCnd checks whether a command needs to be executed with sudo based on data from the tool's configuration file
func LoadMPIConfigFile ¶
LoadMPIConfigFile loads the tool's configuration file into a slice of key/value pairs
func LoadSingularityReleaseConf ¶
LoadSingularityReleaseConf loads from the configuration file the list of supported Singularity releases that are supported
Types ¶
type MPIToolConfig ¶
type MPIToolConfig struct { // BuildPrivilege specifies whether or not we can build images on the platform BuildPrivilege bool // NoPriv specifies whether or not we need to use the '-u' flag with singularity commands NoPriv bool }
MPIToolConfig is the structure hosting the data from the tool's configuration file (~/.singularity/singularity-mpi.conf)