Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IgnoreErrNotFound ¶
Types ¶
type HasLabels ¶
type HasLabels []string
func (HasLabels) ApplyToList ¶
func (h HasLabels) ApplyToList(o *ListOptions)
type IndexerFunc ¶
type ListOption ¶
type ListOption interface {
ApplyToList(*ListOptions)
}
type ListOptions ¶
type MatchingFields ¶
func (MatchingFields) ApplyToList ¶
func (m MatchingFields) ApplyToList(o *ListOptions)
type MatchingLabels ¶
func (MatchingLabels) ApplyToList ¶
func (m MatchingLabels) ApplyToList(o *ListOptions)
type Store ¶
type Store[E api.Object] interface { Create(ctx context.Context, obj E) (E, error) Get(ctx context.Context, id string) (E, error) Update(ctx context.Context, obj E) (E, error) Delete(ctx context.Context, id string) error List(ctx context.Context, opts ...ListOption) ([]E, error) Watch(ctx context.Context, opts ...ListOption) (Watch[E], error) }
type Watch ¶
type Watch[E api.Object] interface { Stop() Events() <-chan WatchEvent[E] }
type WatchEvent ¶
type WatchEvent[E api.Object] struct { Type WatchEventType Object E }
type WatchEventType ¶
type WatchEventType string
const ( WatchEventTypeCreated WatchEventType = "Created" WatchEventTypeUpdated WatchEventType = "Updated" WatchEventTypeDeleted WatchEventType = "Deleted" )
Click to show internal directories.
Click to hide internal directories.