github.com/blend/go-sdk@v1.20220411.3/configutil/constants.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package configutil
     9  
    10  const (
    11  	// EnvVarConfigPath is the env var for configs.
    12  	EnvVarConfigPath = "CONFIG_PATH"
    13  	// ExtensionJSON is a file extension.
    14  	ExtensionJSON = ".json"
    15  	// ExtensionYAML is a file extension.
    16  	ExtensionYAML = ".yaml"
    17  	// ExtensionYML is a file extension.
    18  	ExtensionYML = ".yml"
    19  )
    20  
    21  var (
    22  	// DefaultPaths are default path locations.
    23  	// They are tested and read in order, so the later
    24  	// paths will override data found in the earlier ones.
    25  	DefaultPaths = []string{
    26  		"/var/secrets/config.yml",
    27  		"/var/secrets/config.yaml",
    28  		"/var/secrets/config.json",
    29  		"./_config/config.yml",
    30  		"./_config/config.yaml",
    31  		"./_config/config.json",
    32  		"./config.yml",
    33  		"./config.yaml",
    34  		"./config.json",
    35  	}
    36  )