From f63dc9102c519390c135754e783795aeab8ba47e Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Mon, 9 Sep 2024 12:45:08 -0700 Subject: [PATCH] client,types: fix doc comment lint (#120) --- client/setec/client.go | 4 ++-- types/api/api.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/setec/client.go b/client/setec/client.go index 48dc97e..286b833 100644 --- a/client/setec/client.go +++ b/client/setec/client.go @@ -120,8 +120,8 @@ func (c Client) GetIfChanged(ctx context.Context, name string, oldVersion api.Se }) } -// Get fetches a secret value by name and version. If version == 0, GetVersion -// retrieves the current active version. +// GetVersion fetches a secret value by name and version. If version == 0, +// GetVersion retrieves the current active version. // // Access requirement: "get" func (c Client) GetVersion(ctx context.Context, name string, version api.SecretVersion) (*api.SecretValue, error) { diff --git a/types/api/api.go b/types/api/api.go index fc8c04e..b43d0a9 100644 --- a/types/api/api.go +++ b/types/api/api.go @@ -42,7 +42,7 @@ func (v SecretVersion) String() string { // translates this to the version marked active. const SecretVersionDefault SecretVersion = 0 -// Secret is a secret value and its associated version. +// SecretValue is a secret value and its associated version. type SecretValue struct { Value []byte Version SecretVersion