Documentation ¶
Index ¶
- func DeleteFromUserCache(ctx context.Context, file string) error
- func DeleteIngressesFromUserCache(ctx context.Context) error
- func ExistsInCache(ctx context.Context, fileName string) (bool, error)
- func LoadFromUserCache(ctx context.Context, dest any, file string) error
- func LoadIngressesFromUserCache(ctx context.Context) (map[string]*manager.IngressInfo, error)
- func SaveIngressesToUserCache(ctx context.Context, ingresses map[string]*manager.IngressInfo) error
- func SaveToUserCache(ctx context.Context, object any, file string) error
- func WatchUserCache(ctx context.Context, subdir string, onChange func(context.Context) error, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteIngressesFromUserCache ¶
DeleteIngressesFromUserCache removes the ingresses cache if exists or returns an error. An attempt to remove a non-existing cache is a no-op and the function returns nil.
func ExistsInCache ¶ added in v2.11.0
func LoadIngressesFromUserCache ¶
LoadIngressesFromUserCache gets the ingresses from cache. An empty map is returned if the file does not exist. An error is returned if something goes wrong while loading or unmarshalling.
func SaveIngressesToUserCache ¶
SaveIngressesToUserCache saves the provided ingresses to user cache and returns an error if something goes wrong while marshalling or persisting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.