Documentation ¶
Index ¶
- type ContextStorage
- type FakeTicket
- type FakeTracker
- type RealPaths
- func (p RealPaths) GetBaseDir() string
- func (p RealPaths) GetCharmDir() string
- func (p RealPaths) GetJujucClientSocket() sockets.Socket
- func (p RealPaths) GetJujucServerSocket() sockets.Socket
- func (p RealPaths) GetMetricsSpoolDir() string
- func (p RealPaths) GetResourcesDir() string
- func (p RealPaths) GetToolsDir() string
- type SecretsContextAccessor
- func (s SecretsContextAccessor) CreateSecretURIs(context.Context, int) ([]*secrets.URI, error)
- func (s SecretsContextAccessor) DeleteContent(_ context.Context, uri *secrets.URI, revision int) error
- func (s SecretsContextAccessor) SaveContent(_ context.Context, uri *secrets.URI, revision int, value secrets.SecretValue) (secrets.ValueRef, error)
- func (s SecretsContextAccessor) SecretMetadata(context.Context) ([]secrets.SecretOwnerMetadata, error)
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 (c *ContextStorage) Kind() storage.StorageKind
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 (RealPaths) GetBaseDir ¶
func (RealPaths) GetCharmDir ¶
func (RealPaths) GetJujucClientSocket ¶
func (RealPaths) GetJujucServerSocket ¶
func (RealPaths) GetMetricsSpoolDir ¶
func (RealPaths) GetResourcesDir ¶
func (RealPaths) GetToolsDir ¶
type SecretsContextAccessor ¶
type SecretsContextAccessor struct { api.SecretsAccessor jujusecrets.BackendsClient }
func (SecretsContextAccessor) CreateSecretURIs ¶
func (SecretsContextAccessor) DeleteContent ¶
func (SecretsContextAccessor) SaveContent ¶
func (SecretsContextAccessor) SecretMetadata ¶
func (s SecretsContextAccessor) SecretMetadata(context.Context) ([]secrets.SecretOwnerMetadata, error)
Click to show internal directories.
Click to hide internal directories.