Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDir ¶
DeleteDir deleted the temporary image cache that was created for testing purposes. DeleteDir will fail the test if an error occurs during its execution.
func MakeDir ¶
MakeDir creates a new temporary image cache directory in the directory basedir and returns the path of the new directory. If basedir is an empty string, MakeDir uses the default directory for temporary files (see os.TempDir). It is the caller's responsibility to call cache.InitHdl after calling MakeDir() in order to create a valid cache handle. It is also the caller's responsibility to remove the directory when no longer needed, which can be accomplished by calling DeleteDir. It's the caller's responsibility to create basedir before calling it.
Types ¶
This section is empty.