Skip to content

Commit

Permalink
Move /internal/b to /b (#659)
Browse files Browse the repository at this point in the history
The API is unchanged and is suitable to be made public.
  • Loading branch information
kegsay authored Oct 4, 2023
1 parent 67a1cce commit 765746a
Show file tree
Hide file tree
Showing 110 changed files with 103 additions and 103 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/tidwall/gjson"
"maunium.net/go/mautrix/crypto/olm"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
)

// TestLike is an interface that testing.T satisfies. All client functions accept a TestLike interface,
Expand Down
2 changes: 1 addition & 1 deletion cmd/account-snapshot/internal/blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"regexp"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/tidwall/gjson"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/account-snapshot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log"
"os"

"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/cmd/account-snapshot/internal"
"github.com/matrix-org/complement/internal/b"
)

/*
Expand Down
8 changes: 4 additions & 4 deletions cmd/homerunner/route_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/docker"
"github.com/matrix-org/util"
)
Expand All @@ -22,9 +22,9 @@ type ResCreate struct {
}

// RouteCreate handles creating blueprint deployments. There are 3 supported types of requests:
// - A: Creating a blueprint from the static ones in `internal/b` : This is what Complement does.
// - B: Creating an in-line blueprint where the blueprint is in the request.
// - C: Creating a deployment from a pre-made blueprint image, e.g using account-snapshot.
// - A: Creating a blueprint from the static ones in `internal/b` : This is what Complement does.
// - B: Creating an in-line blueprint where the blueprint is in the request.
// - C: Creating a deployment from a pre-made blueprint image, e.g using account-snapshot.
func RouteCreate(ctx context.Context, rt *Runtime, rc *ReqCreate) util.JSONResponse {
// Use case A: if the blueprint name is given, check for static ones
knownBlueprint, ok := b.KnownBlueprints[rc.BlueprintName]
Expand Down
2 changes: 1 addition & 1 deletion cmd/homerunner/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/sirupsen/logrus"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/docker"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/perftest/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/url"
"time"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/docker"
"github.com/matrix-org/complement/internal/instruction"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/docker/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/docker/docker/pkg/stdcopy"
"github.com/docker/go-connections/nat"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/config"
"github.com/matrix-org/complement/internal/instruction"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/docker/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/docker/docker/api/types/filters"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
)

// label returns a filter for the presence of certain labels ("complement_context") or a match of
Expand Down
2 changes: 1 addition & 1 deletion internal/federation/server_room.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/matrix-org/gomatrixserverlib"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
)

type Event struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/instruction/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/tidwall/gjson"
"maunium.net/go/mautrix/crypto/olm"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
)

// An instruction for the runner to run.
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/account_change_password_pushers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"

Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/account_change_password_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/docker"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/account_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package csapi_tests
import (
"testing"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/account_deactivate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/data"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_device_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_logout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/tidwall/gjson"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_presence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_profile_avatar_url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_profile_displayname_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_register_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_request_encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_room_alias_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_room_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_room_forget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_room_history_visibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_room_members_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_room_receipts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/docker"
"github.com/tidwall/gjson"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_room_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_server_capabilities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"testing"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/apidoc_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/tidwall/gjson"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/device_lists_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/docker"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/e2e_key_backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/ignored_users_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/invalid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
"github.com/matrix-org/complement/runtime"
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/keychanges_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/sirupsen/logrus"

"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/config"
"github.com/matrix-org/complement/internal/docker"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/media_misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/data"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
Expand Down
2 changes: 1 addition & 1 deletion tests/csapi/power_levels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/tidwall/gjson"

"github.com/matrix-org/complement/client"
"github.com/matrix-org/complement/internal/b"
"github.com/matrix-org/complement/b"
"github.com/matrix-org/complement/internal/match"
"github.com/matrix-org/complement/internal/must"
)
Expand Down
Loading

0 comments on commit 765746a

Please sign in to comment.