Documentation ¶
Overview ¶
Package inmemory provides an in-memory implementation of a secret store suitable for unit testing.
Index ¶
Constants ¶
View Source
const ( // MockStoreType is a bucket where Connect and Close calls are recorded. MockStoreType = "mock-store" // SecretType is a bucket for the actual secrets. // This avoids a circular import, this const should really be defined in cnab-go... SecretType = "secret" // ConnectCount records the number of times Connect has been called. ConnectCount = "connect-count" // CloseCount records the number of times Close has been called. CloseCount = "close-count" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store implements an in-memory secrets store for testing.
func (*Store) GetCloseCount ¶
GetCloseCount is for tests to safely read the Close call count without accidentally triggering it by using Read.
func (*Store) GetConnectCount ¶
GetConnectCount is for tests to safely read the Connect call count without accidentally triggering it by using Read.
Click to show internal directories.
Click to hide internal directories.