Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v1.10.13 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(stager Stager, log *libbuildpack.Logger, yaml YAML) (*Cache, error)

func (*Cache) Metadata

func (c *Cache) Metadata() *Metadata

func (*Cache) Restore

func (c *Cache) Restore() error

func (*Cache) Save

func (c *Cache) Save() error

type Metadata

type Metadata struct {
	Stack         string
	SecretKeyBase string
}

type Stager

type Stager interface {
	BuildDir() string
	CacheDir() string
	DepDir() string
}

type YAML

type YAML interface {
	Load(file string, obj interface{}) error
	Write(dest string, obj interface{}) error
}

Jump to

Keyboard shortcuts

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