Skip to content

Commit 5377e14

Browse files
committed
Add non-Linux stub implementation for devboxSnapshotterOpts
Signed-off-by: Yun Pan <dinoallo@netc.it>
1 parent 10565ac commit 5377e14

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//go:build !linux
2+
3+
/*
4+
Copyright The containerd Authors.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
18+
19+
package server
20+
21+
import (
22+
"github.com/containerd/containerd/snapshots"
23+
runtime "k8s.io/cri-api/pkg/apis/runtime/v1"
24+
)
25+
26+
// devboxSnapshotterOpts is a no-op stub on non-Linux platforms. The real
27+
// implementation is platform-specific and provided in
28+
// container_create_linux.go. This stub exists so Windows and other non-Linux
29+
// builds that reference devboxSnapshotterOpts compile successfully.
30+
func devboxSnapshotterOpts(snapshotterName string, config *runtime.PodSandboxConfig) (snapshots.Opt, error) {
31+
return nil, nil
32+
}

0 commit comments

Comments
 (0)