2015-11-18 22:18:07 +00:00
|
|
|
package image
|
|
|
|
|
|
|
|
import "github.com/docker/docker/layer"
|
|
|
|
|
2016-03-29 01:14:05 +00:00
|
|
|
// TypeLayers is used for RootFS.Type for filesystems organized into layers.
|
|
|
|
const TypeLayers = "layers"
|
|
|
|
|
|
|
|
// NewRootFS returns empty RootFS struct
|
|
|
|
func NewRootFS() *RootFS {
|
|
|
|
return &RootFS{Type: TypeLayers}
|
|
|
|
}
|
|
|
|
|
2015-11-18 22:18:07 +00:00
|
|
|
// Append appends a new diffID to rootfs
|
|
|
|
func (r *RootFS) Append(id layer.DiffID) {
|
|
|
|
r.DiffIDs = append(r.DiffIDs, id)
|
|
|
|
}
|