github.com/tri-adam/singularity@v3.1.1+incompatible/internal/pkg/runtime/engines/config/config.go (about)

     1  // Copyright (c) 2018, 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 config
     7  
     8  // Common provides the basis for all engine configs. Anything that can not be
     9  // properly described through the OCI config can be stored as generic JSON []byte
    10  type Common struct {
    11  	EngineName  string `json:"engineName"`
    12  	ContainerID string `json:"containerID"`
    13  	// EngineConfig is the raw JSON representation of the Engine's underlying config
    14  	EngineConfig EngineConfig `json:"engineConfig"`
    15  }
    16  
    17  // EngineConfig is a generic interface to represent the implementations of an EngineConfig
    18  type EngineConfig interface{}