Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeaugrand committed Jul 26, 2024
1 parent 2b7be14 commit e7b834b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/libvault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func CreateClientWithAppRole(roleID, secretID string) (*vault.Client, error) {
return client, nil
}

func GetTokenTtlLeft(client *vault.Client) (int, error) {
func GetTokenTTLLeft(client *vault.Client) (int, error) {
secret, err := client.Auth().Token().LookupSelf()
if err != nil {
return 0, errors.Wrap(err, "failed to lookup token")
Expand Down
4 changes: 2 additions & 2 deletions vaultv1/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func CreateClientWithAppRole(roleID, secretID string) (*Client, error) {
}, nil
}

func GetTokenTtlLeft(client *Client) (int, error) {
timeLeft, err := libvault.GetTokenTtlLeft(client.Client)
func GetTokenTTLLeft(client *Client) (int, error) {
timeLeft, err := libvault.GetTokenTTLLeft(client.Client)
if err != nil {
return 0, errors.Wrapf(err, "")
}
Expand Down
4 changes: 2 additions & 2 deletions vaultv2/v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func CreateClientWithAppRole(roleID, secretID string) (*Client, error) {
}, nil
}

func GetTokenTtlLeft(client *Client) (int, error) {
timeLeft, err := libvault.GetTokenTtlLeft(client.Client)
func GetTokenTTLLeft(client *Client) (int, error) {
timeLeft, err := libvault.GetTokenTTLLeft(client.Client)
if err != nil {
return 0, errors.Wrapf(err, "")
}
Expand Down

0 comments on commit e7b834b

Please sign in to comment.