func (c *Configuration) Allocations() Allocations {
	c.mu.RLock()
	defer c.mu.RUnlock()
	return c.settings.Allocations
}
Returns the allocations associated with this environment.
package environment
import (
	"sync"
)
type Settings struct {
	Mounts      []Mount
	Allocations Allocations
	Limits      Limits
}
type Configuration struct {
	mu sync.RWMutex
	environmentVariables []string
	settings             Settings
}
func NewConfiguration(s Settings, envVars []string) *Configuration {
	return &Configuration{
		environmentVariables: envVars,
		settings:             s,
	}
}
func (c *Configuration) SetSettings(s Settings) {
	c.mu.Lock()
	c.settings = s
	c.mu.Unlock()
}
func (c *Configuration) SetEnvironmentVariables(ev []string) {
	c.mu.Lock()
	c.environmentVariables = ev
	c.mu.Unlock()
}
func (c *Configuration) Limits() Limits {
	c.mu.RLock()
	defer c.mu.RUnlock()
	return c.settings.Limits
}