Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
Local stores and retrieves xpkg.ParsedPackages in a filesystem-backed cache in a thread-safe manner.
func (*Local) Get ¶
func (c *Local) Get(k v1beta1.Dependency) (*xpkg.ParsedPackage, error)
Get retrieves an image from the LocalCache.
func (*Local) Store ¶
func (c *Local) Store(k v1beta1.Dependency, v *xpkg.ParsedPackage) error
Store saves an image to the LocalCache. If a file currently exists at that location, we overwrite the current file.
type Option ¶
type Option func(*Local)
Option represents an option that can be applied to Local.
func WithLogger ¶
WithLogger defines the logger that is configured for Local.
func WithWatchInterval ¶
WithWatchInterval overrides the default watchInterval for Local.
type XpkgMarshaler ¶
XpkgMarshaler defines the API contract for working marshaling xpkg.ParsedPackage's from a directory.
Click to show internal directories.
Click to hide internal directories.