imagepushop

package
v0.0.0-...-9331f55 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package imagepushop define imgpkg push command

Index

Constants

This section is empty.

Variables

View Source
var PublishImagesfromtarCmd = &cobra.Command{
	Use:   "upload-bundle",
	Short: "upload images/bundle to private repository from tar files that are stored in local disk.",
	Example: `
        # upload images/bundle from tar files that are stored in the relative directory ./tkg-images to a /tkg repository on a internal-registry.test mirror 
        tanzu isolated-cluster upload-bundle --destination-repo  internal-registry.test/tkg --source-directory ./tkg-images

        # upload images/bundle from tar files that are stored in the relative directory ./tkg-images to a /tkg repository on a internal-registry.test mirror without any TLS validation of the certificate
        tanzu isolated-cluster upload-bundle --destination-repo internal-registry.test/tkg --source-directory ./tkg-images --insecure

        # upload images/bundle from tar files that are stored in the relative directory ./tkg-images to a /tkg repository on a internal-registry.test mirror with a self-signed or internally approved CA Certificate.
        tanzu isolated-cluster upload-bundle --destination-repo  internal-registry.test/tkg --source-directory ./tkg-images  --ca-certificate registry.crt
`,

	RunE:         publishImagesFromTar,
	SilenceUsage: false,
}

Functions

This section is empty.

Types

type PublishImagesFromTarOptions

type PublishImagesFromTarOptions struct {
	TkgTarFilePath             string
	CustomImageRepoCertificate string
	PkgClient                  imgpkginterface.ImgpkgClient
	DestinationRepository      string
	Insecure                   bool
}

func (*PublishImagesFromTarOptions) PushImageToRepo

func (p *PublishImagesFromTarOptions) PushImageToRepo() error

Jump to

Keyboard shortcuts

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