buildimage

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatImages

func FormatImages(images []string) (res []string)

func ParseContainerImageList added in v0.9.1

func ParseContainerImageList(srcPath string) ([]*v12.ContainerImage, error)

func ParseContainerImageSlice added in v0.9.1

func ParseContainerImageSlice(srcPath string) ([]string, error)

func WrapParseContainerImageList2StringSlice added in v0.9.1

func WrapParseContainerImageList2StringSlice(parseFunc parseContainerImageListFunc) func(srcPath string) ([]string, error)

func WrapParseStringSlice2ContainerImageList added in v0.9.1

func WrapParseStringSlice2ContainerImageList(parseFunc parseContainerImageStringSliceFunc) func(srcPath string) ([]*v12.ContainerImage, error)

Types

type ImageSection

type ImageSection struct {
	Registry string   `json:"registry,omitempty"`
	Username string   `json:"username,omitempty"`
	Password string   `json:"password,omitempty"`
	Images   []string `json:"images,omitempty"`
}

type MiddlewarePuller

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

func NewMiddlewarePuller

func NewMiddlewarePuller(platform v1.Platform) MiddlewarePuller

func (MiddlewarePuller) PullWithImageSection added in v0.9.1

func (m MiddlewarePuller) PullWithImageSection(rootfs string, imageSectionList []ImageSection) error

type Registry added in v0.9.1

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

func NewRegistry added in v0.9.1

func NewRegistry(platform v1.Platform) *Registry

func (*Registry) SaveImages added in v0.9.1

func (r *Registry) SaveImages(rootfs string, containerImages []string) error

Jump to

Keyboard shortcuts

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