cache

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildkitCache

type BuildkitCache interface {
	Name() string
	ToAttributes() map[string]string
}

BuildkitCache abstracts a BuildKit cache backend for import and export.

func BuildCacheFromConfig

func BuildCacheFromConfig(cfg *model.CacheConfig, cacheKey string) (BuildkitCache, error)

BuildCacheFromConfig creates a BuildkitCache from the hive.yml cache config, using the type field to discriminate between s3 and registry backends.

type RegistryCache

type RegistryCache struct {
	CacheRef string
	Insecure bool
}

RegistryCache implements BuildkitCache using a container registry as the cache backend.

func (RegistryCache) Name

func (r RegistryCache) Name() string

func (RegistryCache) ToAttributes

func (r RegistryCache) ToAttributes() map[string]string

type S3BuildKitCache

type S3BuildKitCache struct {
	EndpointUrl     string
	Bucket          string
	Region          string
	AccessKeyId     string
	SecretAccessKey string
	UsePathStyle    bool
	CacheKey        string
}

S3BuildKitCache implements BuildkitCache using an S3-compatible object store as the cache backend.

func (*S3BuildKitCache) Name

func (s *S3BuildKitCache) Name() string

func (*S3BuildKitCache) ToAttributes

func (s *S3BuildKitCache) ToAttributes() map[string]string

Jump to

Keyboard shortcuts

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