diff --git a/internal/libvault/vault.go b/internal/libvault/vault.go index b529ba0..070c8cc 100644 --- a/internal/libvault/vault.go +++ b/internal/libvault/vault.go @@ -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") diff --git a/vaultv1/v1.go b/vaultv1/v1.go index 42dc64a..c33aeed 100644 --- a/vaultv1/v1.go +++ b/vaultv1/v1.go @@ -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, "") } diff --git a/vaultv2/v2.go b/vaultv2/v2.go index 9d7f404..7b53efd 100644 --- a/vaultv2/v2.go +++ b/vaultv2/v2.go @@ -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, "") }