Documentation
¶
Index ¶
- type CharmRepo
- func (r *CharmRepo) BundleArchive(dst, name string) *charm.BundleArchive
- func (r *CharmRepo) BundleArchivePath(dst, name string) string
- func (r *CharmRepo) BundleDir(name string) *charm.BundleDir
- func (r *CharmRepo) BundleDirPath(name string) string
- func (r *CharmRepo) CharmArchive(dst, name string) *charm.CharmArchive
- func (r *CharmRepo) CharmArchivePath(dst, name string) string
- func (r *CharmRepo) CharmDir(name string) *charm.CharmDir
- func (r *CharmRepo) CharmDirPath(name string) string
- func (r *CharmRepo) ClonedBundleDirPath(dst, name string) string
- func (r *CharmRepo) ClonedDir(dst, name string) *charm.CharmDir
- func (r *CharmRepo) ClonedDirPath(dst, name string) string
- func (r *CharmRepo) ClonedURL(dst, series, name string) *charm.URL
- func (r *CharmRepo) Path() string
- func (r *CharmRepo) RenamedClonedDirPath(dst, name, newName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharmRepo ¶
type CharmRepo struct {
// contains filtered or unexported fields
}
CharmRepo represents a charm repository used for testing.
func NewRepo ¶
NewRepo returns a new testing charm repository rooted at the given path, relative to the package directory of the calling package, using defaultSeries as the default series.
func (*CharmRepo) BundleArchive ¶
BundleArchive returns an actual charm.BundleArchive created from a new bundle archive file created from the bundle directory named name, in the directory dst.
func (*CharmRepo) BundleArchivePath ¶
BundleArchivePath returns the path to a new bundle archive file in the directory dst, created from the bundle directory named name.
func (*CharmRepo) BundleDirPath ¶
BundleDirPath returns the path to a bundle directory with the given name in the default series
func (*CharmRepo) CharmArchive ¶
CharmArchive returns an actual charm.CharmArchive created from a new charm archive file created from the charm directory named name, in the directory dst.
func (*CharmRepo) CharmArchivePath ¶
CharmArchivePath returns the path to a new charm archive file in the directory dst, created from the charm directory named name.
func (*CharmRepo) CharmDirPath ¶
CharmDirPath returns the path to a charm directory with the given name in the default series
func (*CharmRepo) ClonedBundleDirPath ¶
ClonedDirPath returns the path to a new copy of the default bundle directory named name.
func (*CharmRepo) ClonedDir ¶
ClonedDir returns an actual charm.CharmDir based on a new copy of the charm directory named name, in the directory dst.
func (*CharmRepo) ClonedDirPath ¶
ClonedDirPath returns the path to a new copy of the default charm directory named name.
func (*CharmRepo) ClonedURL ¶
ClonedURL makes a copy of the charm directory. It will create a directory with the series name if it does not exist, and then clone the charm named name into that directory. The return value is a URL pointing at the local charm.
func (*CharmRepo) RenamedClonedDirPath ¶
RenamedClonedDirPath returns the path to a new copy of the default charm directory named name, renamed to newName.