Skip to content

Commit

Permalink
chore: fix hound warning
Browse files Browse the repository at this point in the history
Signed-off-by: James Strachan <james.strachan@gmail.com>
  • Loading branch information
jstrachan committed Jun 19, 2019
1 parent 0f136a3 commit 8b4585d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/secreturl/localvault/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (c *FileSystemClient) WriteObject(secretName string, secret interface{}) (m
return c.Read(secretName)
}

// ReplaceURIs will replace any local: URIs in a string
func (c *FileSystemClient) ReplaceURIs(s string) (string, error) {
return secreturl.ReplaceURIs(s, c, localURIRegex, "local:")
}
Expand Down
1 change: 1 addition & 0 deletions pkg/vault/vault_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (v *client) Config() (vaultURL url.URL, vaultToken string, err error) {
return *parsed, v.client.Token(), err
}

// ReplaceURIs will replace any vault: URIs in a string (or whatever URL scheme the secret URL client supports
func (v *client) ReplaceURIs(s string) (string, error) {
return secreturl.ReplaceURIs(s, v, vaultURIRegex, "vault:")
}

0 comments on commit 8b4585d

Please sign in to comment.