github.com/portworx/docker@v1.12.1/image/rootfs.go (about) 1 package image 2 3 import "github.com/docker/docker/layer" 4 5 // TypeLayers is used for RootFS.Type for filesystems organized into layers. 6 const TypeLayers = "layers" 7 8 // NewRootFS returns empty RootFS struct 9 func NewRootFS() *RootFS { 10 return &RootFS{Type: TypeLayers} 11 } 12 13 // Append appends a new diffID to rootfs 14 func (r *RootFS) Append(id layer.DiffID) { 15 r.DiffIDs = append(r.DiffIDs, id) 16 }