github.com/apptainer/singularity@v3.1.1+incompatible/pkg/build/types/metadata.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 types
     7  
     8  // MetaData ...
     9  type MetaData struct {
    10  	// DefaultCommand is the process which should be executed by default when calling
    11  	// "singularity run ... "
    12  	DefaultCommand string `json:"defaultCommand"`
    13  
    14  	// Overridable sets whether or not the user supplied arguments to "singularity run ..."
    15  	// can override the default Command.
    16  	Overridable bool `json:"overridable"`
    17  
    18  	// DefaultArgs are the default arguments passed to the Command to run in the Container. These
    19  	// can *always* be overridden by arguments given to "singularity run ..."
    20  	DefaultArgs string `json:"defaultArgs"`
    21  
    22  	// BaseEnv provides the base environment variables of the container.
    23  	BaseEnv []string `json:"baseEnv"`
    24  
    25  	BuildHistory *BuildHistory `json:"buildHistory"`
    26  
    27  	//OverylayPartition string
    28  
    29  	//PartionBinds map[string][]string
    30  }
    31  
    32  // BuildHistory ...
    33  type BuildHistory struct {
    34  	DefinitionHash string `json:"definitionHash"`
    35  	Definition     `json:"definition"`
    36  	Parent         *BuildHistory `json:"parent"`
    37  }