testing

package
v0.0.0-...-3d086f3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: AGPL-3.0 Imports: 11 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 FakeTicket

type FakeTicket struct {
	WaitResult bool
}

func (*FakeTicket) Ready

func (ft *FakeTicket) Ready() <-chan struct{}

func (*FakeTicket) Wait

func (ft *FakeTicket) Wait() bool

type FakeTracker

type FakeTracker struct {
	leadership.Tracker
	worker.Worker

	AllowClaimLeader bool
}

func (*FakeTracker) ApplicationName

func (t *FakeTracker) ApplicationName() string

func (*FakeTracker) ClaimLeader

func (t *FakeTracker) ClaimLeader() leadership.Ticket

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

func (p RealPaths) GetBaseDir() string

func (RealPaths) GetCharmDir

func (p RealPaths) GetCharmDir() string

func (RealPaths) GetJujucClientSocket

func (p RealPaths) GetJujucClientSocket(remote bool) sockets.Socket

func (RealPaths) GetJujucServerSocket

func (p RealPaths) GetJujucServerSocket(remote bool) sockets.Socket

func (RealPaths) GetMetricsSpoolDir

func (p RealPaths) GetMetricsSpoolDir() string

func (RealPaths) GetResourcesDir

func (p RealPaths) GetResourcesDir() string

func (RealPaths) GetToolsDir

func (p RealPaths) GetToolsDir() string

type SecretsContextAccessor

type SecretsContextAccessor struct {
	context.SecretsAccessor
	jujusecrets.BackendsClient
}

func (SecretsContextAccessor) CreateSecretURIs

func (s SecretsContextAccessor) CreateSecretURIs(int) ([]*secrets.URI, error)

func (SecretsContextAccessor) DeleteContent

func (s SecretsContextAccessor) DeleteContent(uri *secrets.URI, revision int) error

func (SecretsContextAccessor) SaveContent

func (s SecretsContextAccessor) SaveContent(uri *secrets.URI, revision int, value secrets.SecretValue) (secrets.ValueRef, error)

func (SecretsContextAccessor) SecretMetadata

func (s SecretsContextAccessor) SecretMetadata() ([]secrets.SecretOwnerMetadata, error)

Jump to

Keyboard shortcuts

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