
Also add new dependencies on github.com/xeipuuv/gojson* (brought up by new runtime-tools) and adapt the containerd/cri code to replace the APIs that were removed by runtime-tools. In particular, add new helpers to handle the capabilities, since runtime-tools now split them into separate sets of functions for each capability set. Replace g.Spec() with g.Config since g.Spec() has been deprecated in the runtime-tools API. Signed-off-by: Filipe Brandenburger <filbranden@google.com>
10 lines
216 B
Go
10 lines
216 B
Go
package filepath
|
|
|
|
import "strings"
|
|
|
|
// Join is an explicit-OS version of path/filepath's Join.
|
|
func Join(os string, elem ...string) string {
|
|
sep := Separator(os)
|
|
return Clean(os, strings.Join(elem, string(sep)))
|
|
}
|