Documentation
¶
Index ¶
- type CharmRepo
- func (r *CharmRepo) BundleDir(name string) *charmtesting.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) *charmtesting.CharmDir
- func (r *CharmRepo) CharmDirPath(name string) string
- func (r *CharmRepo) ClonedBundleDirPath(dst, name string) string
- func (r *CharmRepo) ClonedDir(dst, name string) *charmtesting.CharmDir
- func (r *CharmRepo) ClonedDirPath(dst, name string) string
- 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) BundleDir ¶
func (r *CharmRepo) BundleDir(name string) *charmtesting.BundleDir
BundleDir returns the actual charm.BundleDir named name.
func (*CharmRepo) BundleDirPath ¶
BundleDirPath returns the path to a bundle directory with the given name in the default series
func (*CharmRepo) CharmArchive ¶
func (r *CharmRepo) CharmArchive(dst, name string) *charm.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) CharmDir ¶
func (r *CharmRepo) CharmDir(name string) *charmtesting.CharmDir
CharmDir returns the actual charm.CharmDir 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 ¶
func (r *CharmRepo) ClonedDir(dst, name string) *charmtesting.CharmDir
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) RenamedClonedDirPath ¶
RenamedClonedDirPath returns the path to a new copy of the default charm directory named name, renamed to newName.