Skip to content

Commit

Permalink
Rename internal/ to core/ - fixes #128
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalif committed Jan 9, 2025
1 parent fb6f349 commit cbaa374
Show file tree
Hide file tree
Showing 64 changed files with 93 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: env CGO_ENABLED=0 GOOS=windows go build -o geesefs-win-x64.exe -v

- name: Build tests
run: go test -c github.com/yandex-cloud/geesefs/internal -o geesefs-tests-linux-amd64
run: go test -c github.com/yandex-cloud/geesefs/core -o geesefs-tests-linux-amd64

- name: Publish to S3
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ install:

.PHONY: protoc
protoc:
protoc --go_out=. --experimental_allow_proto3_optional --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative internal/pb/*.proto
protoc --go_out=. --experimental_allow_proto3_optional --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative core/pb/*.proto
4 changes: 2 additions & 2 deletions internal/aws_test.go → core/aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"
. "gopkg.in/check.v1"

"fmt"
Expand Down
2 changes: 1 addition & 1 deletion internal/backend.go → core/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions internal/backend_adlv1.go → core/backend_adlv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"

"bytes"
"context"
Expand Down
4 changes: 2 additions & 2 deletions internal/backend_adlv2.go → core/backend_adlv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"

"context"
"encoding/base64"
Expand Down
4 changes: 2 additions & 2 deletions internal/backend_azblob.go → core/backend_azblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"

"bytes"
"context"
Expand Down
4 changes: 2 additions & 2 deletions internal/backend_gcs3.go → core/backend_gcs3.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"

"context"
"os"
Expand Down
4 changes: 2 additions & 2 deletions internal/backend_s3.go → core/backend_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"
"golang.org/x/sync/errgroup"

"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion internal/backend_test.go → core/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

type TestBackend struct {
StorageBackend
Expand Down
2 changes: 1 addition & 1 deletion internal/buffer_list.go → core/buffer_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion internal/buffer_list_test.go → core/buffer_list_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package internal
package core

import (
. "gopkg.in/check.v1"
Expand Down
4 changes: 2 additions & 2 deletions internal/buffer_pool.go → core/buffer_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"
"runtime"
"runtime/debug"
"sync"
Expand Down
2 changes: 1 addition & 1 deletion internal/buffer_pool_test.go → core/buffer_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion internal/buffer_queue.go → core/buffer_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"sync"
Expand Down
2 changes: 1 addition & 1 deletion internal/buffer_reader.go → core/buffer_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"io"
Expand Down
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.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/cgroup.go → core/cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"errors"
Expand Down
4 changes: 2 additions & 2 deletions internal/cluster_conn_pool.go → core/cluster_conn_pool.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// +build !windows

package internal
package core

import (
"context"
"fmt"
"sync"
"time"

"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"

"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
Expand Down
6 changes: 3 additions & 3 deletions internal/cluster_fs.go → core/cluster_fs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package internal
package core

import (
"context"
Expand All @@ -13,8 +13,8 @@ import (

"github.com/jacobsa/fuse/fuseops"
"github.com/jacobsa/fuse/fuseutil"
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/internal/pb"
"github.com/yandex-cloud/geesefs/core/cfg"
"github.com/yandex-cloud/geesefs/core/pb"
"google.golang.org/grpc"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/cluster_fs_fuse.go → core/cluster_fs_fuse.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package internal
package core

import (
"context"
Expand All @@ -9,11 +9,11 @@ import (
"syscall"
"sync/atomic"

"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"
"github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/fuseops"
"github.com/jacobsa/fuse/fuseutil"
"github.com/yandex-cloud/geesefs/internal/pb"
"github.com/yandex-cloud/geesefs/core/pb"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/protobuf/types/known/timestamppb"
Expand Down
4 changes: 2 additions & 2 deletions internal/cluster_fs_grpc.go → core/cluster_fs_grpc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package internal
package core

import (
"context"
Expand All @@ -10,7 +10,7 @@ import (
"time"

"github.com/jacobsa/fuse/fuseops"
"github.com/yandex-cloud/geesefs/internal/pb"
"github.com/yandex-cloud/geesefs/core/pb"
"google.golang.org/protobuf/types/known/timestamppb"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// +build !windows

package internal
package core

import (
"context"
"net"

"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/internal/pb"
"github.com/yandex-cloud/geesefs/core/cfg"
"github.com/yandex-cloud/geesefs/core/pb"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/reflection"
Expand Down
4 changes: 2 additions & 2 deletions internal/cluster_inode.go → core/cluster_inode.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// +build !windows

package internal
package core

import (
"fmt"
"io/fs"

"github.com/yandex-cloud/geesefs/internal/pb"
"github.com/yandex-cloud/geesefs/core/pb"
"google.golang.org/protobuf/types/known/timestamppb"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/cluster_recovery.go → core/cluster_recovery.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// +build !windows

package internal
package core

import (
"context"

"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/internal/pb"
"github.com/yandex-cloud/geesefs/core/cfg"
"github.com/yandex-cloud/geesefs/core/pb"
)

var recLog = cfg.GetLogger("rec")
Expand Down
4 changes: 2 additions & 2 deletions internal/dir.go → core/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"fmt"
Expand All @@ -27,7 +27,7 @@ import (

"github.com/jacobsa/fuse/fuseops"

"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"
)

type SlurpGap struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/dir_test.go → core/dir_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package internal
package core

import (
. "gopkg.in/check.v1"

"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"
)

type DirTest struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/fd_queue.go → core/fd_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"sync"
Expand Down
2 changes: 1 addition & 1 deletion internal/file.go → core/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions internal/goofys.go → core/goofys.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"

"context"
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions internal/goofys_common_test.go → core/goofys_common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

// Common test initialization routines

package internal
package core

import (
"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"

"bufio"
"bytes"
Expand Down
4 changes: 2 additions & 2 deletions internal/goofys_fs_test.go → core/goofys_fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// Tests for a mounted UNIX or Windows FS - suitable for both

package internal
package core

import (
"bytes"
Expand All @@ -32,7 +32,7 @@ import (

. "gopkg.in/check.v1"

"github.com/yandex-cloud/geesefs/internal/cfg"
"github.com/yandex-cloud/geesefs/core/cfg"
)

func (s *GoofysTest) mount(t *C, mountPoint string) {
Expand Down
Loading

0 comments on commit cbaa374

Please sign in to comment.