...
1 package ctrdtaskapi
2
3 import (
4 "github.com/containerd/typeurl"
5 )
6
7 func init() {
8 typeurl.Register(&PolicyFragment{}, "github.com/Microsoft/hcsshim/pkg/ctrdtaskapi", "PolicyFragment")
9 typeurl.Register(&ContainerMount{}, "github.com/Microsoft/hcsshim/pkg/ctrdtaskapi", "ContainerMount")
10 }
11
12 type PolicyFragment struct {
13
14
15
16
17 Fragment string `json:"fragment,omitempty"`
18 }
19
20 type ContainerMount struct {
21 HostPath string
22 ContainerPath string
23 ReadOnly bool
24 Type string
25 }
26
View as plain text