Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CacheName = "wasme-cache"
CacheNamespace = "wasme"
CacheImageRepository = "quay.io/solo-io/wasme"
CacheImageTag = func() string {
if version.Version == version.DevVersion {
return "0.0.1"
}
return version.Version
}()
ImagesKey = "images"
DefaultCacheArgs = []string{
"cache",
"--directory",
"/var/local/lib/wasme-cache",
"--ref-file",
"/etc/wasme-cache/images.txt",
}
)
Functions ¶
func NewDeployer ¶
func NewDeployer(kube kubernetes.Interface, namespace, name string, imageRepo, imageTag string, args []string) *deployer
Types ¶
type Cache ¶
type Cache interface {
// adds the image retrieve the digest for the image.
// the digest will be cached if it is the initial Get
Add(ctx context.Context, image string) (digest.Digest, error)
// retrieve the wasm file from the image
Get(ctx context.Context, digest digest.Digest) (model.Filter, error)
http.Handler
}
Cache stores digests and image contents in memory
type CacheImpl ¶
type CacheImpl struct {
Puller pull.ImagePuller
// contains filtered or unexported fields
}
func (*CacheImpl) Add ¶
func (c *CacheImpl) Add(ctx context.Context, ref string) (digest.Digest, error)
Click to show internal directories.
Click to hide internal directories.