23
23
// openArchive is used to turn the current charm or bundle implementations
24
24
// into readers for their corresponding archive.
26
27
func openArchive(entity interface{}) (r ReadSeekCloser, hash string, size int64, err error) {
28
29
switch entity := entity.(type) {