Skip to content

Commit

Permalink
feat: super go mod openim.cc
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
  • Loading branch information
cubxxw committed Sep 5, 2023
1 parent 711759e commit c09c0e3
Show file tree
Hide file tree
Showing 140 changed files with 323 additions and 323 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ linters-settings:
# put imports beginning with prefix after 3rd-party packages;
# only support one prefix
# if not set, use goimports.local-prefixes
prefix: github.com/openim-sigs/component-base
prefix: openim.cc/component-base
gocognit:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 30
Expand Down
2 changes: 1 addition & 1 deletion cli/flag/ciphersuites_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"crypto/tls"
"fmt"

"github.com/openim-sigs/component-base/util/sets"
"openim.cc/component-base/util/sets"
)

// ciphers maps strings into tls package cipher constants in
Expand Down
2 changes: 1 addition & 1 deletion cli/globalflag/globalflags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/spf13/pflag"

cliflag "github.com/openim-sigs/component-base/cli/flag"
cliflag "openim.cc/component-base/cli/flag"
)

func TestAddGlobalFlags(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion fields/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

// Package fields implements a simple field system, parsing and matching
// selectors with sets of fields.
package fields // import "github.com/openim-sigs/component-base/fields"
package fields // import "openim.cc/component-base/fields"
2 changes: 1 addition & 1 deletion fields/requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package fields

import "github.com/openim-sigs/component-base/selection"
import "openim.cc/component-base/selection"

// Requirements is AND of all requirements.
type Requirements []Requirement
Expand Down
2 changes: 1 addition & 1 deletion fields/selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sort"
"strings"

"github.com/openim-sigs/component-base/selection"
"openim.cc/component-base/selection"
)

// Selector represents a field selector.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/openim-sigs/component-base
module openim.cc/component-base

go 1.20.0

Expand Down
2 changes: 1 addition & 1 deletion labels/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

// Package labels implements a simple label system, parsing and matching
// selectors with sets of labels.
package labels // import "github.com/openim-sigs/component-base/labels"
package labels // import "openim.cc/component-base/labels"
6 changes: 3 additions & 3 deletions labels/selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"strconv"
"strings"

"github.com/openim-sigs/component-base/selection"
"github.com/openim-sigs/component-base/util/sets"
"github.com/openim-sigs/component-base/validation"
"openim.cc/component-base/selection"
"openim.cc/component-base/util/sets"
"openim.cc/component-base/validation"
)

// Requirements is AND of all requirements.
Expand Down
4 changes: 2 additions & 2 deletions labels/selector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"testing"

"github.com/openim-sigs/component-base/selection"
"github.com/openim-sigs/component-base/util/sets"
"openim.cc/component-base/selection"
"openim.cc/component-base/util/sets"
)

func TestSelectorParse(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion meta/v1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
//
// In the future, we will probably move these categories of objects into
// separate packages.
package v1 // import "github.com/openim-sigs/component-base/meta/v1"
package v1 // import "openim.cc/component-base/meta/v1"
2 changes: 1 addition & 1 deletion meta/v1/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package v1
import (
"time"

"github.com/openim-sigs/component-base/scheme"
"openim.cc/component-base/scheme"
)

type ObjectMetaAccessor interface {
Expand Down
2 changes: 1 addition & 1 deletion meta/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package v1
import (
"time"

"github.com/openim-sigs/component-base/json"
"gorm.io/gorm"
"openim.cc/component-base/json"
)

// Extend defines a new type used to store extended fields.
Expand Down
2 changes: 1 addition & 1 deletion pkg/conversion/deep_equal.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package conversion

import (
"github.com/openim-sigs/component-base/third_party/forked/golang/reflect"
"openim.cc/component-base/third_party/forked/golang/reflect"
)

// The code for this type must be located in third_party, since it forks from
Expand Down
2 changes: 1 addition & 1 deletion pkg/conversion/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
// but for the fields which did not change, copying is automated. This makes it
// easy to modify the structures you use in memory without affecting the format
// you store on disk or respond to in your external API calls.
package conversion // import "github.com/openim-sigs/component-base/pkg/conversion"
package conversion // import "openim.cc/component-base/pkg/conversion"
6 changes: 3 additions & 3 deletions pkg/conversion/queryparams/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"
"time"

metav1 "github.com/openim-sigs/component-base/pkg/apis/meta/v1"
"github.com/openim-sigs/component-base/pkg/conversion/queryparams"
"github.com/openim-sigs/component-base/pkg/runtime/schema"
metav1 "openim.cc/component-base/pkg/apis/meta/v1"
"openim.cc/component-base/pkg/conversion/queryparams"
"openim.cc/component-base/pkg/runtime/schema"
)

type namedString string
Expand Down
2 changes: 1 addition & 1 deletion pkg/conversion/queryparams/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

// Package queryparams provides conversion from versioned
// runtime objects to URL query values
package queryparams // import "github.com/openim-sigs/component-base/pkg/conversion/queryparams"
package queryparams // import "openim.cc/component-base/pkg/conversion/queryparams"
2 changes: 1 addition & 1 deletion pkg/fields/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

// Package fields implements a simple field system, parsing and matching
// selectors with sets of fields.
package fields // import "github.com/openim-sigs/component-base/pkg/fields"
package fields // import "openim.cc/component-base/pkg/fields"
2 changes: 1 addition & 1 deletion pkg/fields/requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package fields

import "github.com/openim-sigs/component-base/pkg/selection"
import "openim.cc/component-base/pkg/selection"

// Requirements is AND of all requirements.
type Requirements []Requirement
Expand Down
2 changes: 1 addition & 1 deletion pkg/fields/selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sort"
"strings"

"github.com/openim-sigs/component-base/pkg/selection"
"openim.cc/component-base/pkg/selection"
)

// Selector represents a field selector.
Expand Down
2 changes: 1 addition & 1 deletion pkg/labels/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

// Package labels implements a simple label system, parsing and matching
// selectors with sets of labels.
package labels // import "github.com/openim-sigs/component-base/pkg/labels"
package labels // import "openim.cc/component-base/pkg/labels"
2 changes: 1 addition & 1 deletion pkg/labels/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sort"
"strings"

"github.com/openim-sigs/component-base/pkg/util/validation/field"
"openim.cc/component-base/pkg/util/validation/field"
)

// Labels allows you to present labels independently from their storage.
Expand Down
8 changes: 4 additions & 4 deletions pkg/labels/selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"strconv"
"strings"

"github.com/openim-sigs/component-base/pkg/selection"
"github.com/openim-sigs/component-base/pkg/util/sets"
"github.com/openim-sigs/component-base/pkg/util/validation"
"github.com/openim-sigs/component-base/pkg/util/validation/field"
"k8s.io/klog/v2"
stringslices "k8s.io/utils/strings/slices"
"openim.cc/component-base/pkg/selection"
"openim.cc/component-base/pkg/util/sets"
"openim.cc/component-base/pkg/util/validation"
"openim.cc/component-base/pkg/util/validation/field"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions pkg/labels/selector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/openim-sigs/component-base/pkg/selection"
"github.com/openim-sigs/component-base/pkg/util/sets"
"github.com/openim-sigs/component-base/pkg/util/validation/field"
"openim.cc/component-base/pkg/selection"
"openim.cc/component-base/pkg/util/sets"
"openim.cc/component-base/pkg/util/validation/field"
)

var (
Expand Down
18 changes: 9 additions & 9 deletions pkg/test/api_meta_help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (
"github.com/google/go-cmp/cmp"
fuzz "github.com/google/gofuzz"

"github.com/openim-sigs/component-base/pkg/api/meta"
metafuzzer "github.com/openim-sigs/component-base/pkg/apis/meta/fuzzer"
metav1 "github.com/openim-sigs/component-base/pkg/apis/meta/v1"
"github.com/openim-sigs/component-base/pkg/apis/meta/v1/unstructured"
"github.com/openim-sigs/component-base/pkg/apis/testapigroup"
v1 "github.com/openim-sigs/component-base/pkg/apis/testapigroup/v1"
"github.com/openim-sigs/component-base/pkg/runtime"
"github.com/openim-sigs/component-base/pkg/runtime/schema"
"github.com/openim-sigs/component-base/pkg/runtime/serializer"
"openim.cc/component-base/pkg/api/meta"
metafuzzer "openim.cc/component-base/pkg/apis/meta/fuzzer"
metav1 "openim.cc/component-base/pkg/apis/meta/v1"
"openim.cc/component-base/pkg/apis/meta/v1/unstructured"
"openim.cc/component-base/pkg/apis/testapigroup"
v1 "openim.cc/component-base/pkg/apis/testapigroup/v1"
"openim.cc/component-base/pkg/runtime"
"openim.cc/component-base/pkg/runtime/schema"
"openim.cc/component-base/pkg/runtime/serializer"
)

func TestIsList(t *testing.T) {
Expand Down
16 changes: 8 additions & 8 deletions pkg/test/api_meta_meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"testing"

fuzz "github.com/google/gofuzz"
"github.com/openim-sigs/component-base/pkg/api/meta"
metafuzzer "github.com/openim-sigs/component-base/pkg/apis/meta/fuzzer"
metav1 "github.com/openim-sigs/component-base/pkg/apis/meta/v1"
"github.com/openim-sigs/component-base/pkg/apis/testapigroup"
"github.com/openim-sigs/component-base/pkg/runtime"
"github.com/openim-sigs/component-base/pkg/runtime/schema"
"github.com/openim-sigs/component-base/pkg/runtime/serializer"
"github.com/openim-sigs/component-base/pkg/types"
"openim.cc/component-base/pkg/api/meta"
metafuzzer "openim.cc/component-base/pkg/apis/meta/fuzzer"
metav1 "openim.cc/component-base/pkg/apis/meta/v1"
"openim.cc/component-base/pkg/apis/testapigroup"
"openim.cc/component-base/pkg/runtime"
"openim.cc/component-base/pkg/runtime/schema"
"openim.cc/component-base/pkg/runtime/serializer"
"openim.cc/component-base/pkg/types"
)

func TestAPIObjectMeta(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions pkg/test/apis_meta_v1_unstructed_unstructure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import (
"testing"
"time"

apitesting "github.com/openim-sigs/component-base/pkg/api/apitesting"
metav1 "github.com/openim-sigs/component-base/pkg/apis/meta/v1"
"github.com/openim-sigs/component-base/pkg/apis/meta/v1/unstructured"
"github.com/openim-sigs/component-base/pkg/apis/testapigroup"
"github.com/openim-sigs/component-base/pkg/runtime"
"github.com/openim-sigs/component-base/pkg/runtime/schema"
"github.com/openim-sigs/component-base/pkg/types"
apitesting "openim.cc/component-base/pkg/api/apitesting"
metav1 "openim.cc/component-base/pkg/apis/meta/v1"
"openim.cc/component-base/pkg/apis/meta/v1/unstructured"
"openim.cc/component-base/pkg/apis/testapigroup"
"openim.cc/component-base/pkg/runtime"
"openim.cc/component-base/pkg/runtime/schema"
"openim.cc/component-base/pkg/types"
)

func TestDecodeUnstructured(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions pkg/test/runtime_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ package test
import (
"testing"

apitesting "github.com/openim-sigs/component-base/pkg/api/apitesting"
metav1 "github.com/openim-sigs/component-base/pkg/apis/meta/v1"
"github.com/openim-sigs/component-base/pkg/apis/testapigroup"
"github.com/openim-sigs/component-base/pkg/runtime"
apitesting "openim.cc/component-base/pkg/api/apitesting"
metav1 "openim.cc/component-base/pkg/apis/meta/v1"
"openim.cc/component-base/pkg/apis/testapigroup"
"openim.cc/component-base/pkg/runtime"
)

func TestDecodeList(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions pkg/test/runtime_serializer_protobuf_protobuf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/stretchr/testify/require"

apiequality "github.com/openim-sigs/component-base/pkg/api/equality"
metav1 "github.com/openim-sigs/component-base/pkg/apis/meta/v1"
v1 "github.com/openim-sigs/component-base/pkg/apis/testapigroup/v1"
"github.com/openim-sigs/component-base/pkg/runtime"
"github.com/openim-sigs/component-base/pkg/runtime/schema"
"github.com/openim-sigs/component-base/pkg/runtime/serializer/protobuf"
apiequality "openim.cc/component-base/pkg/api/equality"
metav1 "openim.cc/component-base/pkg/apis/meta/v1"
v1 "openim.cc/component-base/pkg/apis/testapigroup/v1"
"openim.cc/component-base/pkg/runtime"
"openim.cc/component-base/pkg/runtime/schema"
"openim.cc/component-base/pkg/runtime/serializer/protobuf"
)

type testObject struct {
Expand Down
8 changes: 4 additions & 4 deletions pkg/test/runtime_unversioned_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (

// TODO: Ideally we should create the necessary package structure in e.g.,
// pkg/conversion/test/... instead of importing pkg/api here.
apitesting "github.com/openim-sigs/component-base/pkg/api/apitesting"
metav1 "github.com/openim-sigs/component-base/pkg/apis/meta/v1"
"github.com/openim-sigs/component-base/pkg/runtime"
"github.com/openim-sigs/component-base/pkg/runtime/schema"
apitesting "openim.cc/component-base/pkg/api/apitesting"
metav1 "openim.cc/component-base/pkg/apis/meta/v1"
"openim.cc/component-base/pkg/runtime"
"openim.cc/component-base/pkg/runtime/schema"
)

func TestV1EncodeDecodeStatus(t *testing.T) {
Expand Down
18 changes: 9 additions & 9 deletions pkg/test/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
package test

import (
metav1 "github.com/openim-sigs/component-base/pkg/apis/meta/v1"
"github.com/openim-sigs/component-base/pkg/apis/testapigroup"
v1 "github.com/openim-sigs/component-base/pkg/apis/testapigroup/v1"
"github.com/openim-sigs/component-base/pkg/runtime"
"github.com/openim-sigs/component-base/pkg/runtime/schema"
apiserializer "github.com/openim-sigs/component-base/pkg/runtime/serializer"
utilruntime "github.com/openim-sigs/component-base/pkg/util/runtime"
metav1 "openim.cc/component-base/pkg/apis/meta/v1"
"openim.cc/component-base/pkg/apis/testapigroup"
v1 "openim.cc/component-base/pkg/apis/testapigroup/v1"
"openim.cc/component-base/pkg/runtime"
"openim.cc/component-base/pkg/runtime/schema"
apiserializer "openim.cc/component-base/pkg/runtime/serializer"
utilruntime "openim.cc/component-base/pkg/util/runtime"
)

// List and ListV1 should be kept in sync with k8s.io/kubernetes/pkg/api#List
// and k8s.io/api/core/v1#List.
//
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=github.com/openim-sigs/component-base/pkg/runtime.Object
// +k8s:deepcopy-gen:interfaces=openim.cc/component-base/pkg/runtime.Object
type List struct {
metav1.TypeMeta
metav1.ListMeta
Expand All @@ -27,7 +27,7 @@ type List struct {
}

// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=github.com/openim-sigs/component-base/pkg/runtime.Object
// +k8s:deepcopy-gen:interfaces=openim.cc/component-base/pkg/runtime.Object
type ListV1 struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/types/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// license that can be found in the LICENSE file.

// Package types implements various generic types used throughout kubernetes.
package types // import "github.com/openim-sigs/component-base/pkg/types"
package types // import "openim.cc/component-base/pkg/types"
2 changes: 1 addition & 1 deletion pkg/util/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"text/tabwriter"

"github.com/google/go-cmp/cmp"
"github.com/openim-sigs/component-base/pkg/util/dump"
"openim.cc/component-base/pkg/util/dump"
)

func legacyDiff(a, b interface{}) string {
Expand Down
Loading

0 comments on commit c09c0e3

Please sign in to comment.