Documentation
¶
Overview ¶
Package store provides a self-managing CRD store and implements background CRD discovery. It can provide the last known good state of a store related to a specific module at any time. Information can change in subsequent calls as more schemas are discovered.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the CRD store.
func New ¶
New creates a new store. The onNoCRDSources callback is called when no CRD sources are found for a directory. It may be nil.
func (*Store) GetSchema ¶
GetSchema returns the known schema related to the specified module directory.
func (*Store) ProcessFile ¶
ProcessFile processes an added or changed file.
func (*Store) ProcessNewDir ¶
ProcessNewDir reprocesses the cache when a new directory is created, since it may be a new source root that the user introduced.
func (*Store) ProcessPathDeletion ¶
ProcessPathDeletion processes file or directory deletion events at the supplied path.
func (*Store) RegisterOpenDir ¶
RegisterOpenDir registers a module directory as a candidate for schema discovery.