...

Source file src/github.com/Microsoft/hcsshim/pkg/ctrdtaskapi/update.go

Documentation: github.com/Microsoft/hcsshim/pkg/ctrdtaskapi

     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  	// Fragment is used by containerd to pass additional security policy
    14  	// constraint fragments as part of shim task Update request.
    15  	// The value is a base64 encoded COSE_Sign1 document that contains the
    16  	// fragment and any additional information required for validation.
    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