Documentation ¶
Index ¶
- Constants
- func IsNotBundleError(err error) bool
- type Bundle
- func (o *Bundle) AllImagesRefs(concurrency int, ui util.UIWithLevels) ([]*Bundle, ImageRefs, error)
- func (o *Bundle) DigestRef() string
- func (o *Bundle) IsBundle() (bool, error)
- func (o *Bundle) NoteCopy(processedImages *imageset.ProcessedImages, reg ImagesMetadataWriter, ...) error
- func (o *Bundle) Pull(outputPath string, ui goui.UI, pullNestedBundles bool) error
- func (o *Bundle) Repo() string
- func (o *Bundle) Tag() string
- type Contents
- type ImageLocation
- type ImageLocationsConfig
- type ImageRef
- type ImageRefLocationsConfig
- type ImageRefs
- func (i *ImageRefs) AddImagesRef(refs ...ImageRef)
- func (i *ImageRefs) Find(ref string) (ImageRef, bool)
- func (i ImageRefs) ImageRefs() []ImageRef
- func (i ImageRefs) ImagesLock() lockconfig.ImagesLock
- func (i *ImageRefs) LocalizeToRepo(relativeToRepo string)
- func (i *ImageRefs) MarkAsBundle(image string, isBundle bool)
- func (i *ImageRefs) UpdateRelativeToRepo(imgRetriever ImagesMetadata, relativeToRepo string) (bool, error)
- type ImagesLockReader
- type ImagesMetadata
- type ImagesMetadataWriter
- type InfoLog
- type LocationImageReader
- type LocationsConfig
- type LocationsConfigs
- type LocationsNotFound
Constants ¶
View Source
const ( ImgpkgDir = ".imgpkg" BundlesDir = "bundles" ImagesLockFile = "images.yml" )
View Source
const ( LocationFilepath = "image-locations.yml" ImageLocationsKind = "ImageLocations" LocationAPIVersion = "imgpkg.carvel.dev/v1alpha1" )
View Source
const (
BundleConfigLabel = "dev.carvel.imgpkg.bundle"
)
Variables ¶
This section is empty.
Functions ¶
func IsNotBundleError ¶
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func NewBundle ¶
func NewBundle(ref string, imagesMetadata ImagesMetadata) *Bundle
func NewBundleFromPlainImage ¶
func NewBundleFromPlainImage(plainImg *plainimg.PlainImage, imagesMetadata ImagesMetadata) *Bundle
func NewBundleWithReader ¶
func NewBundleWithReader(ref string, imagesMetadata ImagesMetadata, imagesLockReader ImagesLockReader) *Bundle
func (*Bundle) AllImagesRefs ¶
AllImagesRefs returns a flat list of nested bundles and every image reference for a specific bundle
func (*Bundle) NoteCopy ¶
func (o *Bundle) NoteCopy(processedImages *imageset.ProcessedImages, reg ImagesMetadataWriter, ui util.UIWithLevels) error
NoteCopy writes an image-location representing the bundle / images that have been copied
type Contents ¶
type Contents struct {
// contains filtered or unexported fields
}
func NewContents ¶
func (Contents) PresentsAsBundle ¶
type ImageLocation ¶
type ImageLocationsConfig ¶
type ImageLocationsConfig struct { APIVersion string `json:"apiVersion"` // This generated yaml, but due to lib we need to use `json` Kind string `json:"kind"` // This generated yaml, but due to lib we need to use `json` Images []ImageLocation `json:"images"` // This generated yaml, but due to lib we need to use `json` }
func NewLocationConfigFromBytes ¶
func NewLocationConfigFromBytes(data []byte) (ImageLocationsConfig, error)
func NewLocationConfigFromPath ¶
func NewLocationConfigFromPath(path string) (ImageLocationsConfig, error)
func (ImageLocationsConfig) AsBytes ¶
func (c ImageLocationsConfig) AsBytes() ([]byte, error)
func (ImageLocationsConfig) Validate ¶
func (c ImageLocationsConfig) Validate() error
func (ImageLocationsConfig) WriteToPath ¶
func (c ImageLocationsConfig) WriteToPath(path string) error
type ImageRef ¶
type ImageRef struct { lockconfig.ImageRef IsBundle *bool }
func NewImageRef ¶
func NewImageRef(imgRef lockconfig.ImageRef, isBundle bool) ImageRef
type ImageRefLocationsConfig ¶
type ImageRefLocationsConfig interface {
Config() (ImageLocationsConfig, error)
}
type ImageRefs ¶
type ImageRefs struct {
// contains filtered or unexported fields
}
func NewImageRefs ¶
func NewImageRefs() ImageRefs
func NewImageRefsFromImagesLock ¶
func NewImageRefsFromImagesLock(imagesLock lockconfig.ImagesLock, imageRefsLocationConfig ImageRefLocationsConfig) (ImageRefs, error)
func (*ImageRefs) AddImagesRef ¶
func (ImageRefs) ImagesLock ¶
func (i ImageRefs) ImagesLock() lockconfig.ImagesLock
func (*ImageRefs) LocalizeToRepo ¶
func (*ImageRefs) MarkAsBundle ¶
func (*ImageRefs) UpdateRelativeToRepo ¶
func (i *ImageRefs) UpdateRelativeToRepo(imgRetriever ImagesMetadata, relativeToRepo string) (bool, error)
type ImagesLockReader ¶
type ImagesLockReader interface {
Read(img regv1.Image) (lockconfig.ImagesLock, error)
}
type ImagesMetadata ¶
type ImagesMetadataWriter ¶
type LocationImageReader ¶
type LocationImageReader interface {
Read(img regv1.Image) (ImageLocationsConfig, error)
}
type LocationsConfig ¶
type LocationsConfig struct {
// contains filtered or unexported fields
}
func (LocationsConfig) Config ¶
func (l LocationsConfig) Config() (ImageLocationsConfig, error)
type LocationsConfigs ¶
type LocationsConfigs struct {
// contains filtered or unexported fields
}
func NewLocations ¶
func NewLocations(ui util.UIWithLevels) *LocationsConfigs
NewLocations constructor for creating a LocationsConfigs
func NewLocationsWithReader ¶
func NewLocationsWithReader(reader LocationImageReader, ui util.UIWithLevels) *LocationsConfigs
NewLocationsWithReader constructor for LocationsConfigs
func (LocationsConfigs) Fetch ¶
func (r LocationsConfigs) Fetch(registry ImagesMetadata, bundleRef name.Digest) (ImageLocationsConfig, error)
func (LocationsConfigs) Save ¶
func (r LocationsConfigs) Save(reg ImagesMetadataWriter, bundleRef name.Digest, config ImageLocationsConfig, ui ui.UI) error
type LocationsNotFound ¶
type LocationsNotFound struct {
// contains filtered or unexported fields
}
func (LocationsNotFound) Error ¶
func (n LocationsNotFound) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.