Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoryRunCache ¶
type StoryRunCache struct {
// contains filtered or unexported fields
}
StoryRunCache is a simple thread-safe in-memory cache for StoryRun objects.
func NewStoryRunCache ¶
func NewStoryRunCache() *StoryRunCache
NewStoryRunCache creates a new StoryRunCache.
func (*StoryRunCache) AddOrUpdate ¶
func (c *StoryRunCache) AddOrUpdate(srun *runsv1alpha1.StoryRun)
AddOrUpdate adds or updates a StoryRun in the cache.
func (*StoryRunCache) Delete ¶
func (c *StoryRunCache) Delete(name types.NamespacedName)
Delete removes a StoryRun from the cache.
func (*StoryRunCache) Get ¶
func (c *StoryRunCache) Get(name types.NamespacedName) (*runsv1alpha1.StoryRun, bool)
Get retrieves a StoryRun from the cache.
Click to show internal directories.
Click to hide internal directories.