Skip to content

Commit

Permalink
Move responses to internal (#30)
Browse files Browse the repository at this point in the history
The responses package function is to define the broker responses to PAM,
so it should be a subpackage of internal/brokers.

UDENG-1179
  • Loading branch information
denisonbarbosa authored Sep 12, 2023
2 parents 729fb0c + bb3e4f9 commit 9ed2935
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/brokers/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"sync"

"github.com/godbus/dbus/v5"
"github.com/ubuntu/authd/internal/brokers/responses"
"github.com/ubuntu/authd/internal/log"
"github.com/ubuntu/authd/internal/responses"
"github.com/ubuntu/decorate"
"golang.org/x/exp/slices"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/brokers/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/stretchr/testify/require"
"github.com/ubuntu/authd/internal/brokers"
"github.com/ubuntu/authd/internal/responses"
"github.com/ubuntu/authd/internal/brokers/responses"
"github.com/ubuntu/authd/internal/testutils"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/brokers/examplebroker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"

"github.com/google/uuid"
"github.com/ubuntu/authd/internal/responses"
"github.com/ubuntu/authd/internal/brokers/responses"
"golang.org/x/exp/slices"
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pam/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/ubuntu/authd"
"github.com/ubuntu/authd/internal/brokers/responses"
"github.com/ubuntu/authd/internal/log"
"github.com/ubuntu/authd/internal/responses"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down

0 comments on commit 9ed2935

Please sign in to comment.