Versions in this module Expand all Collapse all v0 v0.3.0 Oct 24, 2020 Changes in this version + type BinaryCacheReader interface + FileExists func(ctx context.Context, path string) (bool, error) + GetFile func(ctx context.Context, path string) (io.ReadCloser, error) + URL func() string + func NewBinaryCacheReader(ctx context.Context, storeURL string) (BinaryCacheReader, error) + type GCSBinaryCacheStore struct + func NewGCSBinaryCacheStore(ctx context.Context, u *url.URL) (*GCSBinaryCacheStore, error) + func (c GCSBinaryCacheStore) FileExists(ctx context.Context, path string) (bool, error) + func (c GCSBinaryCacheStore) GetFile(ctx context.Context, path string) (io.ReadCloser, error) + func (c GCSBinaryCacheStore) URL() string + type HTTPBinaryCacheStore struct + func DefaultCache() HTTPBinaryCacheStore + func NewHTTPBinaryCacheStore(u *url.URL) HTTPBinaryCacheStore + func (c HTTPBinaryCacheStore) FileExists(ctx context.Context, path string) (bool, error) + func (c HTTPBinaryCacheStore) GetFile(ctx context.Context, path string) (io.ReadCloser, error) + func (c HTTPBinaryCacheStore) URL() string + type NarInfo struct + CA string + Compression string + Deriver string + FileHash string + FileSize int + NarHash string + NarSize int + References []string + Signatures []string + StorePath string + System string + URL string + func ParseNarInfo(r io.Reader) (*NarInfo, error) + func (n NarInfo) ContentType() string + func (n NarInfo) String() string + type S3BinaryCacheStore struct + BucketName string + Client *s3.S3 + func NewS3BinaryCacheStore(u *url.URL) (*S3BinaryCacheStore, error) + func (c *S3BinaryCacheStore) FileExists(ctx context.Context, path string) (bool, error) + func (c *S3BinaryCacheStore) GetFile(ctx context.Context, path string) (io.ReadCloser, error) + func (c S3BinaryCacheStore) URL() string