go-cache-plugin

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2024 License: BSD-3-Clause

README

go-cache-plugin

GoDoc CI

This repository defines a tool implementing a GOCACHEPROG plugin backed by Amazon S3.

Installation

go install github.com/tailscale/go-cache-plugin/cmd/go-cache-plugin@latest

Usage Outline

export GOCACHEPROG="go-cache-plugin --cache-dir=/tmp/gocache --bucket=some-s3-bucket"
go test ./...

Using the plugin requires a Go toolchain built with GOEXPERIMENT=cacheprog enabled. However, you do not need the experiment enabled to build the plugin itself.

References

Directories

Path Synopsis
cmd
go-cache-plugin
Program gocache implements the experimental GOCACHEPROG protocol over an S3 bucket, for use in builder and CI workers.
Program gocache implements the experimental GOCACHEPROG protocol over an S3 bucket, for use in builder and CI workers.
internal
s3util
Package s3util defines some helpful utilities for working with S3.
Package s3util defines some helpful utilities for working with S3.
Package s3cache implements callbacks for a gocache.Server that store data into an S3 bucket through a local directory.
Package s3cache implements callbacks for a gocache.Server that store data into an S3 bucket through a local directory.
Package s3proxy implements components of a Go module proxy that caches files locally on disk, backed by objects in an S3 bucket.
Package s3proxy implements components of a Go module proxy that caches files locally on disk, backed by objects in an S3 bucket.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL