mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-11 07:13:47 +00:00
Currently we sometimes pass it as a pointer and other times not. As a result, the view of sandbox across virtcontainers may not be the same and it costs extra memory copy each time we pass it by value. Fix it by ensuring sandbox is always passed by pointers. Fixes: #262 Signed-off-by: Peng Tao <bergwolf@gmail.com>
16 lines
403 B
Go
16 lines
403 B
Go
// Copyright (c) 2018 HyperHQ Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package virtcontainers
|
|
|
|
type kataBuiltInShim struct{}
|
|
|
|
// start is the kataBuiltInShim start implementation for kata builtin shim.
|
|
// It does nothing. The shim functionality is provided by the virtcontainers
|
|
// library.
|
|
func (s *kataBuiltInShim) start(sandbox *Sandbox, params ShimParams) (int, error) {
|
|
return -1, nil
|
|
}
|