repo

package
v0.0.0-...-cf01e4d 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: 6 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) BundleArchive

func (r *CharmRepo) BundleArchive(dst, name string) *charm.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

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

BundleArchivePath returns the path to a new bundle archive file in the directory dst, created from the bundle directory named name.

func (*CharmRepo) BundleDir

func (r *CharmRepo) BundleDir(name string) *charm.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) *charm.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) *charm.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) ClonedURL

func (r *CharmRepo) ClonedURL(dst, series, name string) *charm.URL

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) 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