github.com/apptainer/singularity@v3.1.1+incompatible/internal/pkg/runtime/engines/singularity/config/config_linux.go (about)

     1  // Copyright (c) 2019, Sylabs Inc. All rights reserved.
     2  // This software is licensed under a 3-clause BSD license. Please consult the
     3  // LICENSE.md file distributed with the sources of this project regarding your
     4  // rights to use or distribute this software.
     5  
     6  package singularity
     7  
     8  import (
     9  	"github.com/sylabs/singularity/internal/pkg/cgroups"
    10  	"github.com/sylabs/singularity/internal/pkg/runtime/engines/config/oci"
    11  	"github.com/sylabs/singularity/pkg/network"
    12  )
    13  
    14  // EngineConfig stores both the JSONConfig and the FileConfig
    15  type EngineConfig struct {
    16  	JSON      *JSONConfig      `json:"jsonConfig"`
    17  	OciConfig *oci.Config      `json:"ociConfig"`
    18  	File      *FileConfig      `json:"-"`
    19  	Network   *network.Setup   `json:"-"`
    20  	Cgroups   *cgroups.Manager `json:"-"`
    21  }