Skip to content

Commit

Permalink
chore: goimports -w *.go'
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijamt committed Feb 21, 2024
1 parent 828dccc commit 1825ae7
Show file tree
Hide file tree
Showing 21 changed files with 50 additions and 29 deletions.
5 changes: 3 additions & 2 deletions backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package gitlab

import (
"context"
"strings"
"sync"

"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/helper/locksutil"
"github.com/hashicorp/vault/sdk/logical"
"strings"
"sync"
)

const (
Expand Down
5 changes: 3 additions & 2 deletions backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package gitlab_test

import (
"context"
gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/require"
"reflect"
"testing"

gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/require"
)

func TestBackend(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion entry_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package gitlab

import (
"context"
"github.com/hashicorp/vault/sdk/logical"
"time"

"github.com/hashicorp/vault/sdk/logical"
)

type EntryConfig struct {
Expand Down
3 changes: 2 additions & 1 deletion entry_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package gitlab
import (
"context"
"fmt"
"github.com/hashicorp/vault/sdk/logical"
"time"

"github.com/hashicorp/vault/sdk/logical"
)

type entryRole struct {
Expand Down
1 change: 1 addition & 0 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"

"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
"google.golang.org/protobuf/types/known/structpb"
Expand Down
7 changes: 4 additions & 3 deletions gitlab_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package gitlab_test
import (
"encoding/json"
"fmt"
gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"net/http"
"net/http/httptest"
"os"
"testing"
"time"

gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestGitlabClient(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions path_config_rotate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package gitlab
import (
"context"
"fmt"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
"strconv"
"strings"
"time"

"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
)

func pathConfigTokenRotate(b *Backend) *framework.Path {
Expand Down
3 changes: 2 additions & 1 deletion path_config_rotate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package gitlab_test
import (
"context"
"fmt"
"testing"

"github.com/hashicorp/vault/sdk/logical"
gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/require"
"testing"
)

func TestPathConfigRotate(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions path_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package gitlab_test

import (
"context"
"testing"
"time"

"github.com/hashicorp/go-multierror"
"github.com/hashicorp/vault/sdk/logical"
gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
"time"
)

func TestPathConfig(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions path_config_token_autorotate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package gitlab_test

import (
"context"
"testing"
"time"

"github.com/hashicorp/vault/sdk/logical"
gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
"time"
)

func TestPathConfig_AutoRotate(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions path_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package gitlab
import (
"context"
"fmt"
"net/http"
"strings"
"time"

"github.com/hashicorp/go-multierror"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/helper/locksutil"
"github.com/hashicorp/vault/sdk/logical"
"golang.org/x/exp/slices"
"net/http"
"strings"
"time"
)

const (
Expand Down
5 changes: 3 additions & 2 deletions path_role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package gitlab_test
import (
"context"
"fmt"
"testing"
"time"

"github.com/hashicorp/go-multierror"
"github.com/hashicorp/vault/sdk/logical"
gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
"time"
)

func TestPathRolesList(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions path_token_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"context"
"crypto/rand"
"fmt"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/helper/locksutil"
"github.com/hashicorp/vault/sdk/logical"
"net/http"
"strconv"
"strings"
"time"

"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/helper/locksutil"
"github.com/hashicorp/vault/sdk/logical"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion path_token_role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package gitlab_test
import (
"context"
"fmt"
"testing"

"github.com/hashicorp/vault/sdk/logical"
gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/require"
"testing"
)

func TestPathTokenRoles(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion secret_access_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"context"
"errors"
"fmt"
"strconv"

"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
"strconv"
)

const (
Expand Down
1 change: 1 addition & 0 deletions type_access_level.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package gitlab
import (
"errors"
"fmt"

"github.com/xanzy/go-gitlab"
"golang.org/x/exp/slices"
)
Expand Down
3 changes: 2 additions & 1 deletion type_access_level_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gitlab_test

import (
"testing"

gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/assert"
"testing"
)

func TestAccessLevel(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions type_token_scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package gitlab
import (
"errors"
"fmt"

"golang.org/x/exp/slices"
)

Expand Down
3 changes: 2 additions & 1 deletion type_token_scope_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gitlab_test

import (
"testing"

gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/assert"
"testing"
)

func TestTokenScope(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions type_token_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package gitlab
import (
"errors"
"fmt"

"golang.org/x/exp/slices"
)

Expand Down
3 changes: 2 additions & 1 deletion type_token_type_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gitlab_test

import (
"testing"

gitlab "github.com/ilijamt/vault-plugin-secrets-gitlab"
"github.com/stretchr/testify/assert"
"testing"
)

func TestTokenType(t *testing.T) {
Expand Down

0 comments on commit 1825ae7

Please sign in to comment.