Documentation
¶
Index ¶
- Constants
- type GuessedRefParts
- type Imgpkg
- func (t *Imgpkg) FetchBundle(imageRef, destination string) (string, error)
- func (t *Imgpkg) FetchBundleRecursively(imageRef, destination string) (string, error)
- func (t *Imgpkg) FetchImage(imageRef, destination string) (string, error)
- func (t *Imgpkg) RegistryOpts() (registry.Opts, error)
- func (t *Imgpkg) Tags(repo string) ([]string, error)
- type ImgpkgOpts
- type Logger
- type Sync
Constants ¶
const ( ImgpkgBundleArtifactType = "imgpkgBundle" ImageArtifactType = "image" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuessedRefParts ¶ added in v0.22.0
GuessedRefParts represents an image ref that was guessed from a string. it may not be an accurate representation since imgpkg parses ref itself. (Did not want to use go-containerregistry to avoid taking extra dep)
func NewGuessedRefParts ¶ added in v0.22.0
func NewGuessedRefParts(ref string) GuessedRefParts
type Imgpkg ¶ added in v0.22.0
type Imgpkg struct {
// contains filtered or unexported fields
}
func NewImgpkg ¶ added in v0.22.0
func NewImgpkg(opts ImgpkgOpts, refFetcher ctlfetch.RefFetcher, c ctlcache.Cache) *Imgpkg
func (*Imgpkg) FetchBundle ¶ added in v0.31.0
FetchBundle Downloads the Bundle to the provided destination
func (*Imgpkg) FetchBundleRecursively ¶ added in v0.31.0
FetchBundleRecursively Download the Bundle and all the nested Bundles to the provided destination
func (*Imgpkg) FetchImage ¶ added in v0.31.0
FetchImage Downloads the OCI Image to the provided destination
func (*Imgpkg) RegistryOpts ¶ added in v0.32.0
type ImgpkgOpts ¶ added in v0.22.0
type ImgpkgOpts struct { SecretRef *ctlconf.DirectoryContentsLocalRef DangerousSkipTLSVerify bool EnvironFunc func() []string }
type Logger ¶ added in v0.31.0
type Logger struct {
// contains filtered or unexported fields
}
Logger provided to the imgpkg API calls This logger does write to the buffer debug and trace message. If we want to provide such a mechanism we should provide a way to define what is the level of messages that we want to have present in the buffer