Documentation ¶
Index ¶
- type MemoryStore
- func (s *MemoryStore) Add(resource *api.Resource)
- func (s *MemoryStore) Delete(resourceID string)
- func (s *MemoryStore) Get(resourceID string) (*api.Resource, error)
- func (s *MemoryStore) List(namespace string) []*api.Resource
- func (s *MemoryStore) ListAll() []*api.Resource
- func (s *MemoryStore) MarkAsDeleting(resourceID string)
- func (s *MemoryStore) UpSert(resource *api.Resource)
- func (s *MemoryStore) Update(resource *api.Resource) error
- func (s *MemoryStore) UpdateStatus(resource *api.Resource) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Add ¶
func (s *MemoryStore) Add(resource *api.Resource)
func (*MemoryStore) Delete ¶
func (s *MemoryStore) Delete(resourceID string)
func (*MemoryStore) ListAll ¶
func (s *MemoryStore) ListAll() []*api.Resource
func (*MemoryStore) MarkAsDeleting ¶
func (s *MemoryStore) MarkAsDeleting(resourceID string)
func (*MemoryStore) UpSert ¶
func (s *MemoryStore) UpSert(resource *api.Resource)
func (*MemoryStore) UpdateStatus ¶
func (s *MemoryStore) UpdateStatus(resource *api.Resource) error
type Store ¶
type Store interface { // Add adds a resource to the store Add(resource *api.Resource) // Get retrieves a resource from the store Get(resourceID string) (*api.Resource, error) // Update updates a resource in the store Update(resource *api.Resource) error // UpSert updates or inserts a resource into the store UpSert(resource *api.Resource) // UpdateStatus updates the status of a resource in the store UpdateStatus(resource *api.Resource) error // MarkAsDeleting marks a resource as deleting in the store MarkAsDeleting(resourceID string) // Delete deletes a resource from the store Delete(resourceID string) // List lists all resources in the store List(namespace string) []*api.Resource // ListAll lists all resources in the store ListAll() []*api.Resource }
Click to show internal directories.
Click to hide internal directories.