First steps.

Change-Id: I85f24bcca91afa4060bc0f0b0799ba8abbb8abdb
This commit is contained in:
Patrick Jones 2021-01-12 12:47:06 -08:00
parent 01de73cf58
commit d2fc13d268
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ type CredentialSource struct {
func (c *Config) parse() baseCredentialSource {
if c.CredentialSource.File != "" {
return fileCredentialSource{File: c.CredentialSource.File, Format: c.CredentialSource.Format}
} else if c.CredentialSource.URL != "" {
return urlCredentialSource{URL: c.CredentialSource.URL, Format: c.CredentialSource.Format}
}
return nil
}