testcharms

package
v0.0.0-...-6dcaeb9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 10 Imported by: 44

Documentation

Overview

Package testcharms holds a corpus of charms for testing.

Index

Constants

This section is empty.

Variables

View Source
var Hub = repo.NewRepo(localCharmHub, defaultSeries)

Hub provides access to the test charmhub repository.

View Source
var Repo = repo.NewRepo(localCharmRepo, defaultSeries)

Repo provides access to the test charm repository.

Functions

func CharmRepo

func CharmRepo() *repo.CharmRepo

CharmRepo returns a new charm repository.

func CheckCharmReady

func CheckCharmReady(c *gc.C, charmArchive *charm.CharmArchive)

CheckCharmReady ensures that a desired charm archive exists and has some content.

func InjectFilesToCharmArchive

func InjectFilesToCharmArchive(pathToArchive string, fileContents map[string]string) error

InjectFilesToCharmArchive overwrites the contents of pathToArchive with a new archive containing the original files plus the ones provided in the fileContents map (key: file name, value: file contents).

func RepoForSeries

func RepoForSeries(series string) *repo.CharmRepo

RepoForSeries returns a new charm repository for the specified series. Note: this is a bit weird, as it ignores the series if it's NOT kubernetes and falls back to the default series, which makes this pretty pointless.

func RepoWithSeries

func RepoWithSeries(series string) *repo.CharmRepo

RepoWithSeries returns a new charm repository for the specified series.

Types

This section is empty.

Directories

Path Synopsis
charm-hub

Jump to

Keyboard shortcuts

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