Skip to content

Commit

Permalink
feat: rename scheduler/resource to scheduler/resource/standard (#…
Browse files Browse the repository at this point in the history
…3542)

Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi authored Sep 29, 2024
1 parent 9cd6f41 commit 688b9d7
Show file tree
Hide file tree
Showing 56 changed files with 86 additions and 86 deletions.
2 changes: 1 addition & 1 deletion client/daemon/rpcserver/rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import (
schedulerclient "d7y.io/dragonfly/v2/pkg/rpc/scheduler/client"
"d7y.io/dragonfly/v2/pkg/safe"
"d7y.io/dragonfly/v2/pkg/source"
"d7y.io/dragonfly/v2/scheduler/resource"
resource "d7y.io/dragonfly/v2/scheduler/resource/standard"
)

type Server interface {
Expand Down
2 changes: 1 addition & 1 deletion client/daemon/rpcserver/rpcserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import (
dfdaemonclient "d7y.io/dragonfly/v2/pkg/rpc/dfdaemon/client"
dfdaemonserver "d7y.io/dragonfly/v2/pkg/rpc/dfdaemon/server"
schedulerclientmocks "d7y.io/dragonfly/v2/pkg/rpc/scheduler/client/mocks"
"d7y.io/dragonfly/v2/scheduler/resource"
resource "d7y.io/dragonfly/v2/scheduler/resource/standard"
)

func TestServer_New(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion manager/job/sync_peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"d7y.io/dragonfly/v2/manager/config"
"d7y.io/dragonfly/v2/manager/models"
"d7y.io/dragonfly/v2/pkg/idgen"
"d7y.io/dragonfly/v2/scheduler/resource"
resource "d7y.io/dragonfly/v2/scheduler/resource/standard"
)

// SyncPeers is an interface for sync peers.
Expand Down
2 changes: 1 addition & 1 deletion scheduler/job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import (
"d7y.io/dragonfly/v2/pkg/idgen"
dfdaemonclient "d7y.io/dragonfly/v2/pkg/rpc/dfdaemon/client"
"d7y.io/dragonfly/v2/scheduler/config"
"d7y.io/dragonfly/v2/scheduler/resource"
resource "d7y.io/dragonfly/v2/scheduler/resource/standard"
)

// Job is an interface for job.
Expand Down
10 changes: 5 additions & 5 deletions scheduler/networktopology/mocks/network_topology_mock.go

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

2 changes: 1 addition & 1 deletion scheduler/networktopology/network_topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"d7y.io/dragonfly/v2/pkg/container/set"
pkgredis "d7y.io/dragonfly/v2/pkg/redis"
"d7y.io/dragonfly/v2/scheduler/config"
"d7y.io/dragonfly/v2/scheduler/resource"
resource "d7y.io/dragonfly/v2/scheduler/resource/standard"
"d7y.io/dragonfly/v2/scheduler/storage"
)

Expand Down
2 changes: 1 addition & 1 deletion scheduler/networktopology/network_topology_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"d7y.io/dragonfly/v2/pkg/cache"
"d7y.io/dragonfly/v2/pkg/container/set"
pkgredis "d7y.io/dragonfly/v2/pkg/redis"
"d7y.io/dragonfly/v2/scheduler/resource"
resource "d7y.io/dragonfly/v2/scheduler/resource/standard"
storagemocks "d7y.io/dragonfly/v2/scheduler/storage/mocks"
)

Expand Down
2 changes: 1 addition & 1 deletion scheduler/networktopology/probes.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"d7y.io/dragonfly/v2/pkg/cache"
pkgredis "d7y.io/dragonfly/v2/pkg/redis"
"d7y.io/dragonfly/v2/scheduler/config"
"d7y.io/dragonfly/v2/scheduler/resource"
resource "d7y.io/dragonfly/v2/scheduler/resource/standard"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion scheduler/networktopology/probes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
pkgredis "d7y.io/dragonfly/v2/pkg/redis"
"d7y.io/dragonfly/v2/pkg/types"
"d7y.io/dragonfly/v2/scheduler/config"
"d7y.io/dragonfly/v2/scheduler/resource"
resource "d7y.io/dragonfly/v2/scheduler/resource/standard"
)

var (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

//go:generate mockgen -destination host_manager_mock.go -source host_manager.go -package resource
//go:generate mockgen -destination host_manager_mock.go -source host_manager.go -package standard

package resource
package standard

import (
"sync"
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

//go:generate mockgen -destination peer_manager_mock.go -source peer_manager.go -package resource
//go:generate mockgen -destination peer_manager_mock.go -source peer_manager.go -package standard

package resource
package standard

import (
"context"
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

//go:generate mockgen -destination resource_mock.go -source resource.go -package resource
//go:generate mockgen -destination resource_mock.go -source resource.go -package standard

package resource
package standard

import (
"github.com/redis/go-redis/v9"
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

//go:generate mockgen -destination seed_peer_mock.go -source seed_peer.go -package resource
//go:generate mockgen -destination seed_peer_mock.go -source seed_peer.go -package standard

package resource
package standard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

//go:generate mockgen -destination seed_peer_client_mock.go -source seed_peer_client.go -package resource
//go:generate mockgen -destination seed_peer_client_mock.go -source seed_peer_client.go -package standard

package resource
package standard

import (
"context"
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"errors"
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

//go:generate mockgen -destination task_manager_mock.go -source task_manager.go -package resource
//go:generate mockgen -destination task_manager_mock.go -source task_manager.go -package standard

package resource
package standard

import (
"sync"
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package resource
package standard

import (
"errors"
Expand Down
Loading

0 comments on commit 688b9d7

Please sign in to comment.