Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
    const ( // MountSpecDev is used for character devices MountSpecDev = MountSpecType("dev") // MountSpecDir is used for directories MountSpecDir = MountSpecType("dir") // MountSpecLib is used for libraries or regular files MountSpecLib = MountSpecType("lib") // MountSpecSym is used for symlinks. MountSpecSym = MountSpecType("sym") )
      View Source
      
  
const (
	// DefaultMountSpecPath is default location of CSV files that define the modifications required to the OCI spec
	DefaultMountSpecPath = "/etc/nvidia-container-runtime/host-files-for-container.d"
)
    Variables ¶
This section is empty.
Functions ¶
func BaseFilesOnly ¶
BaseFilesOnly filters out non-base CSV files from the list of CSV files.
func DefaultFileList ¶
func DefaultFileList() []string
DefaultFileList returns the list of CSV files that are used by default.
func GetFileList ¶
GetFileList returns the (non-recursive) list of CSV files in the specified folder
Types ¶
type MountSpec ¶
type MountSpec struct {
	Type MountSpecType
	Path string
}
    MountSpec represents a Jetson mount consisting of a type and a path.
func NewMountSpec ¶
NewMountSpec creates a MountSpec with the specified type and path. An error is returned if the type is invalid.
func NewMountSpecFromLine ¶
NewMountSpecFromLine parses the specified line and returns the MountSpec or an error if the line is malformed
type MountSpecType ¶
type MountSpecType string
MountSpecType defines the mount types allowed in a CSV file
 Click to show internal directories. 
   Click to hide internal directories.