cache

package
v0.28.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindCache added in v0.28.0

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

func NewBindCache added in v0.28.0

func NewBindCache(cacheType CacheInfo, dockerClient client.CommonAPIClient) *BindCache

func (*BindCache) Clear added in v0.28.0

func (c *BindCache) Clear(ctx context.Context) error

func (*BindCache) Name added in v0.28.0

func (c *BindCache) Name() string

func (*BindCache) Type added in v0.28.0

func (c *BindCache) Type() Type

type CacheInfo added in v0.28.0

type CacheInfo struct {
	Format Format
	Source string
}

func (*CacheInfo) SourceName added in v0.28.0

func (c *CacheInfo) SourceName() string

type CacheOpts added in v0.28.0

type CacheOpts struct {
	Build  CacheInfo
	Launch CacheInfo
}

func (*CacheOpts) Set added in v0.28.0

func (c *CacheOpts) Set(value string) error

func (*CacheOpts) String added in v0.28.0

func (c *CacheOpts) String() string

func (*CacheOpts) Type added in v0.28.0

func (c *CacheOpts) Type() string

type Format added in v0.28.0

type Format int
const (
	CacheVolume Format = iota
	CacheImage
	CacheBind
)

func (Format) String added in v0.28.0

func (f Format) String() string

type ImageCache

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

func NewImageCache

func NewImageCache(imageRef name.Reference, dockerClient client.CommonAPIClient) *ImageCache

func (*ImageCache) Clear

func (c *ImageCache) Clear(ctx context.Context) error

func (*ImageCache) Name

func (c *ImageCache) Name() string

func (*ImageCache) Type added in v0.16.0

func (c *ImageCache) Type() Type

type Type added in v0.16.0

type Type int
const (
	Image Type = iota
	Volume
	Bind
)

type VolumeCache

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

func NewVolumeCache

func NewVolumeCache(imageRef name.Reference, cacheType CacheInfo, suffix string, dockerClient client.CommonAPIClient) *VolumeCache

func (*VolumeCache) Clear

func (c *VolumeCache) Clear(ctx context.Context) error

func (*VolumeCache) Name

func (c *VolumeCache) Name() string

func (*VolumeCache) Type added in v0.16.0

func (c *VolumeCache) Type() Type

Jump to

Keyboard shortcuts

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