Documentation
Index ¶
- Constants
- func NewDefaultKbldCmd(ui *ui.ConfUI) *cobra.Command
- func NewInspectCmd(o *InspectOptions) *cobra.Command
- func NewKbldCmd(o *KbldOptions) *cobra.Command
- func NewPackageCmd(o *PackageOptions) *cobra.Command
- func NewRelocateCmd(o *RelocateOptions) *cobra.Command
- func NewResolveCmd(o *ResolveOptions) *cobra.Command
- func NewUnpackageCmd(o *UnpackageOptions) *cobra.Command
- func NewVersionCmd(o *VersionOptions) *cobra.Command
- type FileFlags
- type Image
- type ImageQueue
- type ImageSet
- func (o ImageSet) Export(foundImages *UnprocessedImageURLs, registry ctlreg.Registry) (*imagedesc.ImageRefDescriptors, error)
- func (o *ImageSet) Import(imgOrIndexes []imagedesc.ImageOrIndex, importRepo regname.Repository, ...) (*ProcessedImages, error)
- func (o ImageSet) Relocate(foundImages *UnprocessedImageURLs, importRepo regname.Repository, ...) (*ProcessedImages, error)
- type Images
- type InspectOptions
- type KbldOptions
- type PackageOptions
- type ProcessedImageItem
- type ProcessedImages
- type RegistryFlags
- type RelocateOptions
- type ResolveOptions
- type ResourceWithImages
- type TarImageSet
- type UIFlags
- type UnpackageOptions
- type UnprocessedImageURL
- type UnprocessedImageURLs
- type VersionOptions
Constants ¶
View Source
const ( ImagesAnnKey = "kbld.k14s.io/images" )
Variables ¶
This section is empty.
Functions ¶
func NewInspectCmd ¶
func NewInspectCmd(o *InspectOptions) *cobra.Command
func NewKbldCmd ¶
func NewKbldCmd(o *KbldOptions) *cobra.Command
func NewPackageCmd ¶
func NewPackageCmd(o *PackageOptions) *cobra.Command
func NewRelocateCmd ¶
func NewRelocateCmd(o *RelocateOptions) *cobra.Command
func NewResolveCmd ¶
func NewResolveCmd(o *ResolveOptions) *cobra.Command
func NewUnpackageCmd ¶
func NewUnpackageCmd(o *UnpackageOptions) *cobra.Command
func NewVersionCmd ¶
func NewVersionCmd(o *VersionOptions) *cobra.Command
Types ¶
type FileFlags ¶
func (*FileFlags) ResourcesAndConfig ¶
type Image ¶
type Image struct { URL string Metas []ctlimg.ImageMeta // empty when deserialized // contains filtered or unexported fields }
func (Image) Description ¶
TODO only works after deserialization
type ImageQueue ¶
type ImageQueue struct {
// contains filtered or unexported fields
}
func NewImageQueue ¶
func NewImageQueue(imgFactory ctlimg.Factory) *ImageQueue
func (*ImageQueue) Run ¶
func (b *ImageQueue) Run(unprocessedImageURLs *UnprocessedImageURLs, numWorkers int) (*ProcessedImages, error)
type ImageSet ¶
type ImageSet struct {
// contains filtered or unexported fields
}
func (ImageSet) Export ¶
func (o ImageSet) Export(foundImages *UnprocessedImageURLs, registry ctlreg.Registry) (*imagedesc.ImageRefDescriptors, error)
func (*ImageSet) Import ¶
func (o *ImageSet) Import(imgOrIndexes []imagedesc.ImageOrIndex, importRepo regname.Repository, registry ctlreg.Registry) (*ProcessedImages, error)
func (ImageSet) Relocate ¶
func (o ImageSet) Relocate(foundImages *UnprocessedImageURLs, importRepo regname.Repository, registry ctlreg.Registry) (*ProcessedImages, error)
type InspectOptions ¶
type InspectOptions struct { FileFlags FileFlags RegistryFlags RegistryFlags // contains filtered or unexported fields }
func NewInspectOptions ¶
func NewInspectOptions(ui ui.UI) *InspectOptions
func (*InspectOptions) Run ¶
func (o *InspectOptions) Run() error
type KbldOptions ¶
type KbldOptions struct { UIFlags UIFlags // contains filtered or unexported fields }
func NewKbldOptions ¶
func NewKbldOptions(ui *ui.ConfUI) *KbldOptions
type PackageOptions ¶
type PackageOptions struct { FileFlags FileFlags RegistryFlags RegistryFlags OutputPath string Concurrency int // contains filtered or unexported fields }
func NewPackageOptions ¶
func NewPackageOptions(ui ui.UI) *PackageOptions
func (*PackageOptions) Run ¶
func (o *PackageOptions) Run() error
type ProcessedImageItem ¶
type ProcessedImageItem struct { UnprocessedImageURL Image }
type ProcessedImages ¶
type ProcessedImages struct {
// contains filtered or unexported fields
}
func NewProcessedImages ¶
func NewProcessedImages() *ProcessedImages
func (*ProcessedImages) Add ¶
func (i *ProcessedImages) Add(unprocessedImageURL UnprocessedImageURL, img Image)
func (*ProcessedImages) All ¶
func (i *ProcessedImages) All() []ProcessedImageItem
func (*ProcessedImages) FindByURL ¶
func (i *ProcessedImages) FindByURL(unprocessedImageURL UnprocessedImageURL) (Image, bool)
type RegistryFlags ¶
func (*RegistryFlags) AsRegistryOpts ¶
func (s *RegistryFlags) AsRegistryOpts() ctlreg.RegistryOpts
func (*RegistryFlags) Set ¶
func (s *RegistryFlags) Set(cmd *cobra.Command)
type RelocateOptions ¶
type RelocateOptions struct { FileFlags FileFlags RegistryFlags RegistryFlags Repository string LockOutput string Concurrency int // contains filtered or unexported fields }
func NewRelocateOptions ¶
func NewRelocateOptions(ui ui.UI) *RelocateOptions
func (*RelocateOptions) Run ¶
func (o *RelocateOptions) Run() error
type ResolveOptions ¶
type ResolveOptions struct { FileFlags FileFlags RegistryFlags RegistryFlags BuildConcurrency int ImagesAnnotation bool ImageMapFile string LockOutput string ImgpkgLockOutput string // contains filtered or unexported fields }
func NewResolveOptions ¶
func NewResolveOptions(ui ui.UI) *ResolveOptions
func (*ResolveOptions) Run ¶
func (o *ResolveOptions) Run() error
type ResourceWithImages ¶
type ResourceWithImages struct {
// contains filtered or unexported fields
}
func NewResourceWithImages ¶
func NewResourceWithImages(contents map[string]interface{}, images []Image) ResourceWithImages
func (ResourceWithImages) Bytes ¶
func (r ResourceWithImages) Bytes() ([]byte, error)
func (ResourceWithImages) Images ¶
func (r ResourceWithImages) Images() ([]Image, error)
type TarImageSet ¶
type TarImageSet struct {
// contains filtered or unexported fields
}
func (TarImageSet) Export ¶
func (o TarImageSet) Export(foundImages *UnprocessedImageURLs, outputPath string, registry ctlreg.Registry) error
func (*TarImageSet) Import ¶
func (o *TarImageSet) Import(path string, importRepo regname.Repository, registry ctlreg.Registry) (*ProcessedImages, error)
type UIFlags ¶
func (*UIFlags) ConfigureUI ¶
type UnpackageOptions ¶
type UnpackageOptions struct { FileFlags FileFlags RegistryFlags RegistryFlags InputPath string Repository string LockOutput string Concurrency int // contains filtered or unexported fields }
func NewUnpackageOptions ¶
func NewUnpackageOptions(ui ui.UI) *UnpackageOptions
func (*UnpackageOptions) Run ¶
func (o *UnpackageOptions) Run() error
type UnprocessedImageURL ¶
type UnprocessedImageURL struct { URL string }
type UnprocessedImageURLs ¶
type UnprocessedImageURLs struct {
// contains filtered or unexported fields
}
func FindImages ¶
func NewUnprocessedImageURLs ¶
func NewUnprocessedImageURLs() *UnprocessedImageURLs
func (*UnprocessedImageURLs) Add ¶
func (i *UnprocessedImageURLs) Add(url UnprocessedImageURL)
func (*UnprocessedImageURLs) All ¶
func (i *UnprocessedImageURLs) All() []UnprocessedImageURL
type VersionOptions ¶
type VersionOptions struct {
// contains filtered or unexported fields
}
func NewVersionOptions ¶
func NewVersionOptions(ui ui.UI) *VersionOptions
func (*VersionOptions) Run ¶
func (o *VersionOptions) Run() error