repo

package
v0.0.0-...-f88c608 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

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

func NewRepo(path, defaultSeries string) *CharmRepo

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

func (r *CharmRepo) BundleDirPath(name string) string

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

func (r *CharmRepo) CharmArchivePath(dst, name string) string

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

func (r *CharmRepo) CharmDirPath(name string) string

CharmDirPath returns the path to a charm directory with the given name in the default series

func (*CharmRepo) ClonedBundleDirPath

func (r *CharmRepo) ClonedBundleDirPath(dst, name string) string

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

func (r *CharmRepo) ClonedDirPath(dst, name string) string

ClonedDirPath returns the path to a new copy of the default charm directory named name.

func (*CharmRepo) Path

func (r *CharmRepo) Path() string

func (*CharmRepo) RenamedClonedDirPath

func (r *CharmRepo) RenamedClonedDirPath(dst, name, newName string) string

RenamedClonedDirPath returns the path to a new copy of the default charm directory named name, renamed to newName.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL