Documentation ¶
Overview ¶
Package crd provides the store interface to config resources stored as kubernetes custom resource definitions (CRDs).
Index ¶
- func NewStore(u *url.URL) (store.Backend, error)
- func Register(builders map[string]store.Builder)
- func ToBackEndResource(uns *unstructured.Unstructured) *store.BackEndResource
- type Store
- func (s *Store) Get(key store.Key) (*store.BackEndResource, error)
- func (s *Store) Init(kinds []string) error
- func (s *Store) List() map[store.Key]*store.BackEndResource
- func (s *Store) OnAdd(obj interface{})
- func (s *Store) OnDelete(obj interface{})
- func (s *Store) OnUpdate(oldObj, newObj interface{})
- func (s *Store) Stop()
- func (s *Store) Watch() (<-chan store.BackendEvent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register registers this module as a StoreBackend. Do not use 'init()' for automatic registration; linker will drop the whole module because it looks unused.
func ToBackEndResource ¶
func ToBackEndResource(uns *unstructured.Unstructured) *store.BackEndResource
ToBackEndResource converts an unstructured k8s resource into a mixer backend resource.
Types ¶
type Store ¶
Store offers store.StoreBackend interface through kubernetes custom resource definitions.
func (*Store) List ¶
func (s *Store) List() map[store.Key]*store.BackEndResource
List implements store.Backend interface.
func (*Store) OnAdd ¶
func (s *Store) OnAdd(obj interface{})
OnAdd implements cache.ResourceEventHandler interface.
func (*Store) OnDelete ¶
func (s *Store) OnDelete(obj interface{})
OnDelete implements cache.ResourceEventHandler interface.
Click to show internal directories.
Click to hide internal directories.