testing

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

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

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextStorage

type ContextStorage struct {
	CTag      names.StorageTag
	CKind     storage.StorageKind
	CLocation string
}

func (*ContextStorage) Kind

func (*ContextStorage) Location

func (c *ContextStorage) Location() string

func (*ContextStorage) Tag

func (c *ContextStorage) Tag() names.StorageTag

type FakeTracker

type FakeTracker struct {
	leadership.Tracker
}

func (FakeTracker) ApplicationName

func (FakeTracker) ApplicationName() string

type RealPaths

type RealPaths struct {
	// contains filtered or unexported fields
}

RealPaths implements Paths for tests that do touch the filesystem.

func NewRealPaths

func NewRealPaths(c *gc.C) RealPaths

func (RealPaths) ComponentDir

func (p RealPaths) ComponentDir(name string) string

func (RealPaths) GetCharmDir

func (p RealPaths) GetCharmDir() string

func (RealPaths) GetJujucSocket

func (p RealPaths) GetJujucSocket() string

func (RealPaths) GetMetricsSpoolDir

func (p RealPaths) GetMetricsSpoolDir() string

func (RealPaths) GetToolsDir

func (p RealPaths) GetToolsDir() string

type StorageContextAccessor

type StorageContextAccessor struct {
	CStorage map[names.StorageTag]*ContextStorage
}

func (*StorageContextAccessor) Storage

func (s *StorageContextAccessor) Storage(tag names.StorageTag) (jujuc.ContextStorageAttachment, error)

func (*StorageContextAccessor) StorageTags

func (s *StorageContextAccessor) StorageTags() ([]names.StorageTag, error)

Jump to

Keyboard shortcuts

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