IsReadOnly bool on builder

This commit is contained in:
markturansky
2015-06-29 12:54:43 -04:00
parent 124bb22f92
commit fae6759490
15 changed files with 118 additions and 6 deletions

View File

@@ -41,6 +41,9 @@ type Builder interface {
// directory path, which may or may not exist yet. This may be called
// more than once, so implementations must be idempotent.
SetUpAt(dir string) error
// IsReadOnly is a flag that gives the builder's ReadOnly attribute.
// All persistent volumes have a private readOnly flag in their builders.
IsReadOnly() bool
}
// Cleaner interface provides methods to cleanup/unmount the volumes.