Documentation ¶
Index ¶
- func ResourceID(namespace, name string) string
- type MemoryStore
- func (s *MemoryStore) Add(resource *Resource)
- func (s *MemoryStore) Delete(resourceID string)
- func (s *MemoryStore) Get(resourceID string) (*Resource, error)
- func (s *MemoryStore) List(namespace string) []*Resource
- func (s *MemoryStore) UpSert(resource *Resource)
- func (s *MemoryStore) Update(resource *Resource) error
- func (s *MemoryStore) UpdateStatus(resource *Resource) error
- type Resource
- type ResourceStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceID ¶
Types ¶
type MemoryStore ¶
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Add ¶
func (s *MemoryStore) Add(resource *Resource)
func (*MemoryStore) Delete ¶
func (s *MemoryStore) Delete(resourceID string)
func (*MemoryStore) List ¶
func (s *MemoryStore) List(namespace string) []*Resource
func (*MemoryStore) UpSert ¶
func (s *MemoryStore) UpSert(resource *Resource)
func (*MemoryStore) Update ¶
func (s *MemoryStore) Update(resource *Resource) error
func (*MemoryStore) UpdateStatus ¶
func (s *MemoryStore) UpdateStatus(resource *Resource) error
type Resource ¶
type Resource struct { Source string ResourceID string ResourceVersion int64 Namespace string DeletionTimestamp *metav1.Time Spec unstructured.Unstructured Status ResourceStatus }
func NewResource ¶
func (*Resource) GetDeletionTimestamp ¶
func (*Resource) GetResourceVersion ¶
type ResourceStatus ¶
Click to show internal directories.
Click to hide internal directories.