Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "identity", "Allocating and managing security identities", cell.Provide(newIdentityAllocator), cell.Config(defaultConfig), )
Cell provides the IdentityAllocator for allocating security identities
Functions ¶
This section is empty.
Types ¶
type CachingIdentityAllocator ¶
type CachingIdentityAllocator interface {
cache.IdentityAllocator
clustermesh.RemoteIdentityWatcher
InitIdentityAllocator(versioned.Interface, kvstore.Client) <-chan struct{}
// RestoreLocalIdentities reads in the checkpointed local allocator state
// from disk and allocates a reference to every previously existing identity.
//
// Once all identity-allocating objects are synchronized (e.g. network policies,
// remote nodes), call ReleaseRestoredIdentities to release the held references.
RestoreLocalIdentities() (map[identity.NumericIdentity]*identity.Identity, error)
// ReleaseRestoredIdentities releases any identities that were restored, reducing their reference
// count and cleaning up as necessary.
ReleaseRestoredIdentities()
Close()
LocalIdentityChanges() stream.Observable[cache.IdentityChange]
}
CachingIdentityAllocator provides an abstraction over the concrete type in pkg/identity/cache so that the underlying implementation can be mocked out in unit tests.
Click to show internal directories.
Click to hide internal directories.