mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Run make fmt. (#29053)
This commit is contained in:
@@ -14,14 +14,13 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
gocache "github.com/patrickmn/go-cache"
|
|
||||||
|
|
||||||
oktaold "github.com/chrismalek/oktasdk-go/okta"
|
oktaold "github.com/chrismalek/oktasdk-go/okta"
|
||||||
"github.com/hashicorp/go-cleanhttp"
|
"github.com/hashicorp/go-cleanhttp"
|
||||||
"github.com/hashicorp/vault/sdk/framework"
|
"github.com/hashicorp/vault/sdk/framework"
|
||||||
"github.com/hashicorp/vault/sdk/helper/tokenutil"
|
"github.com/hashicorp/vault/sdk/helper/tokenutil"
|
||||||
"github.com/hashicorp/vault/sdk/logical"
|
"github.com/hashicorp/vault/sdk/logical"
|
||||||
oktanew "github.com/okta/okta-sdk-golang/v5/okta"
|
oktanew "github.com/okta/okta-sdk-golang/v5/okta"
|
||||||
|
gocache "github.com/patrickmn/go-cache"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ package issuing
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/hashicorp/vault/sdk/logical"
|
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
ctx509 "github.com/google/certificate-transparency-go/x509"
|
ctx509 "github.com/google/certificate-transparency-go/x509"
|
||||||
"github.com/hashicorp/vault/sdk/helper/certutil"
|
"github.com/hashicorp/vault/sdk/helper/certutil"
|
||||||
|
"github.com/hashicorp/vault/sdk/logical"
|
||||||
)
|
)
|
||||||
|
|
||||||
// disableVerifyCertificateEnvVar is an environment variable that can be used to disable the
|
// disableVerifyCertificateEnvVar is an environment variable that can be used to disable the
|
||||||
|
|||||||
@@ -6,10 +6,9 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
|
||||||
|
|
||||||
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/generate"
|
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/generate"
|
||||||
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
|
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
|
||||||
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
// skipVersionsDefault are versions that we skip by default. This list can grow as necessary.
|
// skipVersionsDefault are versions that we skip by default. This list can grow as necessary.
|
||||||
|
|||||||
@@ -8,9 +8,8 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
|
||||||
|
|
||||||
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
|
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
|
||||||
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
var listReleaseVersionsReq = &releases.ListVersionsReq{
|
var listReleaseVersionsReq = &releases.ListVersionsReq{
|
||||||
|
|||||||
@@ -13,12 +13,11 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
|
|
||||||
"github.com/Masterminds/semver"
|
"github.com/Masterminds/semver"
|
||||||
slogctx "github.com/veqryn/slog-context"
|
|
||||||
|
|
||||||
"github.com/hashicorp/hcl/v2/gohcl"
|
"github.com/hashicorp/hcl/v2/gohcl"
|
||||||
"github.com/hashicorp/hcl/v2/hclwrite"
|
"github.com/hashicorp/hcl/v2/hclwrite"
|
||||||
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/metadata"
|
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/metadata"
|
||||||
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
|
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
|
||||||
|
slogctx "github.com/veqryn/slog-context"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EnosDynamicConfigReq is a request to generate dynamic enos configuration
|
// EnosDynamicConfigReq is a request to generate dynamic enos configuration
|
||||||
|
|||||||
@@ -10,9 +10,8 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
|
||||||
|
|
||||||
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
|
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
var testAPIVersions = []string{
|
var testAPIVersions = []string{
|
||||||
|
|||||||
@@ -11,11 +11,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Masterminds/semver"
|
"github.com/Masterminds/semver"
|
||||||
slogctx "github.com/veqryn/slog-context"
|
|
||||||
|
|
||||||
"github.com/hashicorp/releases-api/pkg/api"
|
"github.com/hashicorp/releases-api/pkg/api"
|
||||||
"github.com/hashicorp/releases-api/pkg/client"
|
"github.com/hashicorp/releases-api/pkg/client"
|
||||||
"github.com/hashicorp/releases-api/pkg/models"
|
"github.com/hashicorp/releases-api/pkg/models"
|
||||||
|
slogctx "github.com/veqryn/slog-context"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client is an api.releases.hashicorp.com API client.
|
// Client is an api.releases.hashicorp.com API client.
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/Masterminds/semver"
|
"github.com/Masterminds/semver"
|
||||||
|
|
||||||
"github.com/hashicorp/releases-api/pkg/models"
|
"github.com/hashicorp/releases-api/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,8 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
|
|
||||||
"github.com/Masterminds/semver"
|
"github.com/Masterminds/semver"
|
||||||
slogctx "github.com/veqryn/slog-context"
|
|
||||||
|
|
||||||
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/metadata"
|
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/metadata"
|
||||||
|
slogctx "github.com/veqryn/slog-context"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ListVersionsReq is a request to list versions from the releases API.
|
// ListVersionsReq is a request to list versions from the releases API.
|
||||||
|
|||||||
Reference in New Issue
Block a user