drone-cache-lib

module
v0.0.0-...-848f105 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0

README

drone-cache-lib

Build Status Go Doc Go Report

A Go client library for creating cache plugins.

Usage

Download the packe
go get -d github.com/ecmchow/drone-cache-lib
Import the package
import "github.com/ecmchow/drone-cache-lib/cache"
Create a Cache object
cache, err := cache.New(storage)
To rebuild the cache
err := cache.Rebuild(src, dst)
To restore the cache
err := cache.Restore(src)
Supported archive formats
  • .tar
  • .tar.gz
  • .tar.lz4
  • .tar.zst

Directories

Path Synopsis
s2
tar
tgz

Jump to

Keyboard shortcuts

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