Documentation
¶
Index ¶
- Constants
- func CopyAirgapImages(opts imagetypes.ProcessImageOptions, log *logger.CLILogger) error
- func CopyImage(opts types.CopyImageOptions) error
- func CopyImageWithGC(ctx context.Context, destRef, srcRef containerstypes.ImageReference, ...) ([]byte, error)
- func CopyOnlineImages(opts imagetypes.ProcessImageOptions, images []string, ...) error
- func ExtractAppAirgapArchive(archive string, destDir string, excludeImages bool, progressWriter io.Writer) error
- func FindImagesInDir(dir string) ([]string, error)
- func GetMinioImage(clientset kubernetes.Interface, kotsadmNamespace string) (string, error)
- func IsPrivateImage(image string, dockerHubRegistry dockerregistrytypes.RegistryOptions) (bool, error)
- func PushImagesFromDockerArchiveBundle(airgapBundle string, options imagetypes.PushImagesOptions) error
- func PushImagesFromDockerArchivePath(airgapRootDir string, options imagetypes.PushImagesOptions) error
- func PushImagesFromTempRegistry(airgapRootDir string, imageList []string, options imagetypes.PushImagesOptions) error
- func RewritePrivateImage(srcRegistry dockerregistrytypes.RegistryOptions, image string, appSlug string) (string, error)
- func TagAndPushImagesFromBundle(airgapBundle string, options imagetypes.PushImagesOptions) error
- func TagAndPushImagesFromPath(airgapRootDir string, options imagetypes.PushImagesOptions) error
- func UpdateInstallationImages(opts UpdateInstallationImagesOptions) error
- func WriteProgressLine(progressWriter io.Writer, line string)
- type ProgressImage
- type ProgressReport
- type UpdateInstallationImagesOptions
Constants ¶
View Source
const ( Minio = "kotsadm/minio:0.20231220.010002-r2" Rqlite = "kotsadm/rqlite:8.18.6-r0" Dex = "kotsadm/dex:2.38.0-r0" Schemahero = "schemahero/schemahero:0.17.4" Lvp = "replicated/local-volume-provider:v0.6.0" )
Variables ¶
This section is empty.
Functions ¶
func CopyAirgapImages ¶ added in v1.106.0
func CopyAirgapImages(opts imagetypes.ProcessImageOptions, log *logger.CLILogger) error
CopyAirgapImages pushes images found in the airgap bundle/airgap root to the configured registry.
func CopyImage ¶ added in v1.82.0
func CopyImage(opts types.CopyImageOptions) error
func CopyImageWithGC ¶
func CopyImageWithGC(ctx context.Context, destRef, srcRef containerstypes.ImageReference, options *copy.Options) ([]byte, error)
func CopyOnlineImages ¶ added in v1.106.0
func CopyOnlineImages(opts imagetypes.ProcessImageOptions, images []string, kotsKinds *kotsutil.KotsKinds, license *kotsv1beta1.License, dockerHubRegistryCreds registry.Credentials, log *logger.CLILogger) error
func ExtractAppAirgapArchive ¶ added in v1.106.0
func FindImagesInDir ¶ added in v1.106.0
func GetMinioImage ¶
func GetMinioImage(clientset kubernetes.Interface, kotsadmNamespace string) (string, error)
MinioImage looks through the nodes in the cluster and finds nodes that have already pulled Minio, and then finds the latest image tag listed
func IsPrivateImage ¶
func IsPrivateImage(image string, dockerHubRegistry dockerregistrytypes.RegistryOptions) (bool, error)
if dockerHubRegistry is provided, its credentials will be used for DockerHub images to increase the rate limit.
func PushImagesFromDockerArchiveBundle ¶ added in v1.107.0
func PushImagesFromDockerArchiveBundle(airgapBundle string, options imagetypes.PushImagesOptions) error
func PushImagesFromDockerArchivePath ¶ added in v1.107.0
func PushImagesFromDockerArchivePath(airgapRootDir string, options imagetypes.PushImagesOptions) error
func PushImagesFromTempRegistry ¶ added in v1.107.0
func PushImagesFromTempRegistry(airgapRootDir string, imageList []string, options imagetypes.PushImagesOptions) error
func RewritePrivateImage ¶
func RewritePrivateImage(srcRegistry dockerregistrytypes.RegistryOptions, image string, appSlug string) (string, error)
func TagAndPushImagesFromBundle ¶ added in v1.107.0
func TagAndPushImagesFromBundle(airgapBundle string, options imagetypes.PushImagesOptions) error
func TagAndPushImagesFromPath ¶ added in v1.107.0
func TagAndPushImagesFromPath(airgapRootDir string, options imagetypes.PushImagesOptions) error
func UpdateInstallationImages ¶ added in v1.106.0
func UpdateInstallationImages(opts UpdateInstallationImagesOptions) error
func WriteProgressLine ¶ added in v1.106.0
Types ¶
type ProgressImage ¶ added in v1.106.0
type ProgressImage struct { // image name and tag, "nginx:latest" DisplayName string `json:"displayName"` // image upload status: queued, uploading, uploaded, failed Status string `json:"status"` // error string set when status is failed Error string `json:"error"` // amount currently uploaded (currently number of layers) Current int64 `json:"current"` // total amount that needs to be uploaded (currently number of layers) Total int64 `json:"total"` // time when image started uploading StartTime time.Time `json:"startTime"` // time when image finished uploading EndTime time.Time `json:"endTime"` }
type ProgressReport ¶ added in v1.106.0
type ProgressReport struct { // set to "progressReport" Type string `json:"type"` // the same progress text that used to be sent in unstructured message CompatibilityMessage string `json:"compatibilityMessage"` // all images found in archive Images []ProgressImage `json:"images"` }
type UpdateInstallationImagesOptions ¶ added in v1.106.0
Click to show internal directories.
Click to hide internal directories.