Documentation ¶
Index ¶
- func FormatImages(images []string) (res []string)
- func GetLayerMountInfo(baseLayers []v1.Layer) (mount.Service, error)
- func NewBuildImageByKubefile(kubefileName string, platform v1.Platform) (*v1.Image, []v1.Layer, error)
- type Context
- type Differ
- type Executor
- type ImageSaver
- type ImageSection
- type ImageSetter
- type MiddlewarePuller
- type SaveOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatImages ¶
func GetLayerMountInfo ¶
GetLayerMountInfo to get rootfs mount info.if not mounted will mount it via base layers. 1, already mount: runtime docker registry mount info,just get related mount info. 2, already mount: if exec build cmd failed and return ,need to collect related old mount info 3, new mount: just mount and return related info.
Types ¶
type Differ ¶
type Differ interface { // Process :diff changes by build-in handler and save to dst,like pull docker image from manifests or helm charts //diff Metadata file changes save to the base layer.generally dst is the rootfs. Process(srcPath, rootfs string) error }
func NewMetadataDiffer ¶
func NewMetadataDiffer() Differ
func NewMiddlewarePuller ¶
func NewRegistryDiffer ¶
type Executor ¶
type ImageSaver ¶
type ImageSaver interface { // Save with image attribute,and register to image metadata. Save(image *v1.Image) error }
func NewImageSaver ¶
func NewImageSaver(platform v1.Platform) (ImageSaver, error)
type ImageSection ¶ added in v0.8.1
type ImageSetter ¶
type ImageSetter interface { // Set :fill up v1.image struct, like image annotations, platform and so on. Set(*v1.Image) error }
func NewAnnotationSetter ¶
func NewAnnotationSetter() ImageSetter
type MiddlewarePuller ¶
type MiddlewarePuller struct {
// contains filtered or unexported fields
}
func (MiddlewarePuller) Process ¶
func (m MiddlewarePuller) Process(context, rootfs string) error
Click to show internal directories.
Click to hide internal directories.