func (ds *DockerSecrets) GetDir() string {
	return ds.secretsDir
}
GetDir returns the secretsDir
package secrets
import (
	"fmt"
	"github.com/mitchellh/mapstructure"
	"io/ioutil"
	"os"
	"path"
	"regexp"
	"strings"
)
type DockerSecrets struct {
	secretsDir string
	secrets    map[string]string
}
func NewDockerSecrets(secretsDir string) (*DockerSecrets, error) {
	if secretsDir == "" {
		secretsDir = "/run/secrets"
	}
	dockerSecrets := &DockerSecrets{secretsDir: secretsDir, secrets: map[string]string{}}
	err := dockerSecrets.readAll()
	return dockerSecrets, err
}