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 ¶
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 ¶
func NewGuessedRefParts(ref string) GuessedRefParts
type Imgpkg ¶
type Imgpkg struct {
// contains filtered or unexported fields
}
func NewImgpkg ¶
func NewImgpkg(opts ImgpkgOpts, refFetcher ctlfetch.RefFetcher, c ctlcache.Cache) *Imgpkg
func (*Imgpkg) FetchBundle ¶
FetchBundle Downloads the Bundle to the provided destination
func (*Imgpkg) FetchBundleRecursively ¶
FetchBundleRecursively Download the Bundle and all the nested Bundles to the provided destination
func (*Imgpkg) FetchImage ¶
FetchImage Downloads the OCI Image to the provided destination
type ImgpkgOpts ¶
type ImgpkgOpts struct { SecretRef *ctlconf.DirectoryContentsLocalRef DangerousSkipTLSVerify bool ResponseHeaderTimeout int EnvironFunc func() []string }
type Logger ¶
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