Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDockerfile ¶
func ParseDockerfile(opts *config.WarmerOptions) ([]string, error)
Types ¶
type FetchLocalSource ¶
FetchLocalSource retrieves a Docker image manifest from a local source. github.com/GoogleContainerTools/kaniko/cache.LocalSource can be used as this type.
type FetchRemoteImage ¶
type FetchRemoteImage func(image string, opts config.RegistryOptions, customPlatform string) (v1.Image, error)
FetchRemoteImage retrieves a Docker image manifest from a remote source. github.com/GoogleContainerTools/kaniko/image/remote.RetrieveRemoteImage can be used as this type.
type OciWarmer ¶
type OciWarmer struct {
Remote FetchRemoteImage
Local FetchLocalSource
TmpDir string
}
func (*OciWarmer) Resolve ¶ added in v1.27.6
func (w *OciWarmer) Resolve(image string, opts *config.WarmerOptions) (name.Reference, v1.Image, v1.Hash, error)
Resolve fetches the image manifest and resolves its digest, short-circuiting with AlreadyCachedErr if the local cache already holds it.
type Warmer ¶
type Warmer struct {
Remote FetchRemoteImage
Local FetchLocalSource
TarWriter io.Writer
ManifestWriter io.Writer
}
Warmer is used to prepopulate the cache with a Docker image
func (*Warmer) Resolve ¶ added in v1.27.6
func (w *Warmer) Resolve(image string, opts *config.WarmerOptions) (name.Reference, v1.Image, v1.Hash, error)
Resolve fetches the image manifest and resolves its digest, short-circuiting with AlreadyCachedErr if the local cache already holds it.