Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
Dir is an Entry that allows directories to be created and verified. The Path field should use "/" as the path separator.
type Entries ¶
type Entries []Entry
Entries supplies convenience methods on Entry slices.
func (Entries) AsRemoveds ¶
AsRemoveds returns a slice of Removed entries whose paths correspond to those in e.
type Entry ¶
type Entry interface { // GetPath returns the slash-separated relative path that this // entry represents. GetPath() string // Create causes the entry to be created, relative to basePath. It returns // a copy of the receiver. Create(c *gc.C, basePath string) Entry // Check checks that the entry exists, relative to basePath, and matches // the entry that would be created by Create. It returns a copy of the // receiver. Check(c *gc.C, basePath string) Entry }
Entry represents a filesystem entity that can be created; and whose correctness can be verified.
type File ¶
File is an Entry that allows plain files to be created and verified. The Path field should use "/" as the path separator.
type Removed ¶
type Removed struct {
Path string
}
Removed is an Entry that indicates the absence of any entry. The Path field should use "/" as the path separator.
Click to show internal directories.
Click to hide internal directories.