Rename sbserver to server

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko 2023-10-12 15:46:57 -07:00
parent c5c94dc86c
commit 1b31993240
134 changed files with 104 additions and 104 deletions

View File

@ -24,8 +24,8 @@ import (
fuzz "github.com/AdaLogics/go-fuzz-headers" fuzz "github.com/AdaLogics/go-fuzz-headers"
runtime "k8s.io/cri-api/pkg/apis/runtime/v1" runtime "k8s.io/cri-api/pkg/apis/runtime/v1"
server "github.com/containerd/containerd/pkg/cri/sbserver" "github.com/containerd/containerd/pkg/cri/server"
"github.com/containerd/containerd/pkg/cri/sbserver/images" "github.com/containerd/containerd/pkg/cri/server/images"
containerstore "github.com/containerd/containerd/pkg/cri/store/container" containerstore "github.com/containerd/containerd/pkg/cri/store/container"
sandboxstore "github.com/containerd/containerd/pkg/cri/store/sandbox" sandboxstore "github.com/containerd/containerd/pkg/cri/store/sandbox"
) )

View File

@ -23,7 +23,7 @@ import (
"github.com/containerd/containerd" "github.com/containerd/containerd"
criconfig "github.com/containerd/containerd/pkg/cri/config" criconfig "github.com/containerd/containerd/pkg/cri/config"
"github.com/containerd/containerd/pkg/cri/sbserver" "github.com/containerd/containerd/pkg/cri/server"
) )
func FuzzCRISandboxServer(data []byte) int { func FuzzCRISandboxServer(data []byte) int {
@ -37,7 +37,7 @@ func FuzzCRISandboxServer(data []byte) int {
} }
defer client.Close() defer client.Close()
c, err := sbserver.NewCRIService(criconfig.Config{}, client, nil) c, err := server.NewCRIService(criconfig.Config{}, client, nil)
if err != nil { if err != nil {
panic(err) panic(err)
} }

View File

@ -23,7 +23,7 @@ import (
"github.com/containerd/containerd" "github.com/containerd/containerd"
criconfig "github.com/containerd/containerd/pkg/cri/config" criconfig "github.com/containerd/containerd/pkg/cri/config"
server "github.com/containerd/containerd/pkg/cri/sbserver" "github.com/containerd/containerd/pkg/cri/server"
) )
func FuzzCRIServer(data []byte) int { func FuzzCRIServer(data []byte) int {

View File

@ -38,7 +38,7 @@ import (
"github.com/containerd/containerd/leases" "github.com/containerd/containerd/leases"
"github.com/containerd/containerd/namespaces" "github.com/containerd/containerd/namespaces"
criconfig "github.com/containerd/containerd/pkg/cri/config" criconfig "github.com/containerd/containerd/pkg/cri/config"
criserver "github.com/containerd/containerd/pkg/cri/sbserver" criserver "github.com/containerd/containerd/pkg/cri/server"
"github.com/containerd/log" "github.com/containerd/log"
"github.com/containerd/log/logtest" "github.com/containerd/log/logtest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1" ocispec "github.com/opencontainers/image-spec/specs-go/v1"

View File

@ -41,7 +41,7 @@ import (
dialer "github.com/containerd/containerd/integration/remote/util" dialer "github.com/containerd/containerd/integration/remote/util"
criconfig "github.com/containerd/containerd/pkg/cri/config" criconfig "github.com/containerd/containerd/pkg/cri/config"
"github.com/containerd/containerd/pkg/cri/constants" "github.com/containerd/containerd/pkg/cri/constants"
server "github.com/containerd/containerd/pkg/cri/sbserver" "github.com/containerd/containerd/pkg/cri/server"
"github.com/containerd/containerd/pkg/cri/util" "github.com/containerd/containerd/pkg/cri/util"
"github.com/containerd/log" "github.com/containerd/log"
"github.com/opencontainers/selinux/go-selinux" "github.com/opencontainers/selinux/go-selinux"

View File

@ -35,7 +35,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
criapiv1 "k8s.io/cri-api/pkg/apis/runtime/v1" criapiv1 "k8s.io/cri-api/pkg/apis/runtime/v1"
"github.com/containerd/containerd/pkg/cri/sbserver/podsandbox" "github.com/containerd/containerd/pkg/cri/server/podsandbox"
"github.com/containerd/containerd/pkg/failpoint" "github.com/containerd/containerd/pkg/failpoint"
) )

View File

@ -23,7 +23,7 @@ import (
"github.com/containerd/containerd" "github.com/containerd/containerd"
"github.com/containerd/containerd/pkg/cri/nri" "github.com/containerd/containerd/pkg/cri/nri"
"github.com/containerd/containerd/pkg/cri/sbserver" "github.com/containerd/containerd/pkg/cri/server"
nriservice "github.com/containerd/containerd/pkg/nri" nriservice "github.com/containerd/containerd/pkg/nri"
"github.com/containerd/containerd/platforms" "github.com/containerd/containerd/platforms"
"github.com/containerd/containerd/plugin" "github.com/containerd/containerd/plugin"
@ -84,7 +84,7 @@ func initCRIService(ic *plugin.InitContext) (interface{}, error) {
return nil, fmt.Errorf("failed to create containerd client: %w", err) return nil, fmt.Errorf("failed to create containerd client: %w", err)
} }
s, err := sbserver.NewCRIService(c, client, getNRIAPI(ic)) s, err := server.NewCRIService(c, client, getNRIAPI(ic))
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to create CRI service: %w", err) return nil, fmt.Errorf("failed to create CRI service: %w", err)
} }

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"fmt" "fmt"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
func (c *criService) blockIOClassFromAnnotations(containerName string, containerAnnotations, podAnnotations map[string]string) (string, error) { func (c *criService) blockIOClassFromAnnotations(containerName string, containerAnnotations, podAnnotations map[string]string) (string, error) {
return "", nil return "", nil

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"bufio" "bufio"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
imagespec "github.com/opencontainers/image-spec/specs-go/v1" imagespec "github.com/opencontainers/image-spec/specs-go/v1"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"testing" "testing"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"strconv" "strconv"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"testing" "testing"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
runtime "k8s.io/cri-api/pkg/apis/runtime/v1" runtime "k8s.io/cri-api/pkg/apis/runtime/v1"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"testing" "testing"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"testing" "testing"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"
@ -22,7 +22,7 @@ import (
"fmt" "fmt"
"github.com/containerd/containerd/errdefs" "github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/pkg/cri/sbserver/images" "github.com/containerd/containerd/pkg/cri/server/images"
containerstore "github.com/containerd/containerd/pkg/cri/store/container" containerstore "github.com/containerd/containerd/pkg/cri/store/container"
runtimespec "github.com/opencontainers/runtime-spec/specs-go" runtimespec "github.com/opencontainers/runtime-spec/specs-go"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"testing" "testing"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"testing" "testing"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"github.com/docker/go-metrics" "github.com/docker/go-metrics"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
criconfig "github.com/containerd/containerd/pkg/cri/config" criconfig "github.com/containerd/containerd/pkg/cri/config"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"fmt" "fmt"

View File

@ -16,7 +16,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
func (c *criService) rdtClassFromAnnotations(containerName string, containerAnnotations, podAnnotations map[string]string) (string, error) { func (c *criService) rdtClassFromAnnotations(containerName string, containerAnnotations, podAnnotations map[string]string) (string, error) {
return "", nil return "", nil

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"
@ -29,7 +29,7 @@ import (
"github.com/containerd/containerd/errdefs" "github.com/containerd/containerd/errdefs"
containerdimages "github.com/containerd/containerd/images" containerdimages "github.com/containerd/containerd/images"
criconfig "github.com/containerd/containerd/pkg/cri/config" criconfig "github.com/containerd/containerd/pkg/cri/config"
"github.com/containerd/containerd/pkg/cri/sbserver/podsandbox" "github.com/containerd/containerd/pkg/cri/server/podsandbox"
"github.com/containerd/containerd/pkg/netns" "github.com/containerd/containerd/pkg/netns"
"github.com/containerd/containerd/platforms" "github.com/containerd/containerd/platforms"
"github.com/containerd/log" "github.com/containerd/log"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package sbserver package server
import ( import (
"context" "context"

Some files were not shown because too many files have changed in this diff Show More