-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor configuration functionality (#687)
* reduced config file * updated tests * fixed tests after merge * fixed fmt * minor fix
- Loading branch information
1 parent
a23aa1c
commit 93c8904
Showing
10 changed files
with
125 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
package backends | ||
|
||
import ( | ||
util "github.com/kelseyhightower/confd/util" | ||
) | ||
|
||
type Config struct { | ||
AuthToken string | ||
AuthType string | ||
Backend string | ||
BasicAuth bool | ||
ClientCaKeys string | ||
ClientCert string | ||
ClientKey string | ||
BackendNodes []string | ||
Password string | ||
Scheme string | ||
Table string | ||
Separator string | ||
Username string | ||
AppID string | ||
UserID string | ||
RoleID string | ||
SecretID string | ||
YAMLFile []string | ||
Filter string | ||
AuthToken string `toml:"auth_token"` | ||
AuthType string `toml:"auth_type"` | ||
Backend string `toml:"backend"` | ||
BasicAuth bool `toml:"basic_auth"` | ||
ClientCaKeys string `toml:"client_cakeys"` | ||
ClientCert string `toml:"client_cert"` | ||
ClientKey string `toml:"client_key"` | ||
BackendNodes util.Nodes `toml:"nodes"` | ||
Password string `toml:"password"` | ||
Scheme string `toml:"scheme"` | ||
Table string `toml:"table"` | ||
Separator string `toml:"separator"` | ||
Username string `toml:"username"` | ||
AppID string `toml:"app_id"` | ||
UserID string `toml:"user_id"` | ||
RoleID string `toml:"role_id"` | ||
SecretID string `toml:"secret_id"` | ||
YAMLFile util.Nodes `toml:"file"` | ||
Filter string `toml:"filter"` | ||
Role string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.