Documentation

Index

Constants

View Source
const (
	ImagesAnnKey = "kbld.k14s.io/images"
)

Variables

This section is empty.

Functions

func NewDefaultKbldCmd

func NewDefaultKbldCmd(ui *ui.ConfUI) *cobra.Command

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

type FileFlags struct {
	Files     []string
	Recursive bool
	Sort      bool
}

func (*FileFlags) AllResources

func (f *FileFlags) AllResources() ([]ctlres.Resource, error)

func (*FileFlags) ResourcesAndConfig

func (f *FileFlags) ResourcesAndConfig() ([]ctlres.Resource, ctlconf.Conf, error)

func (*FileFlags) Set

func (s *FileFlags) Set(cmd *cobra.Command)

type Image

type Image struct {
	URL   string
	Metas []ctlimg.ImageMeta // empty when deserialized
	// contains filtered or unexported fields

}

func (Image) Description

func (i Image) Description() string

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 Images

type Images []Image

func (Images) ForImage

func (imgs Images) ForImage(url string) (Image, bool)

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 (*ProcessedImages) FindByURL

func (i *ProcessedImages) FindByURL(unprocessedImageURL UnprocessedImageURL) (Image, bool)

type RegistryFlags

type RegistryFlags struct {
	CACertPaths []string
	VerifyCerts bool
	Insecure    bool
}

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

type UIFlags struct {
	TTY            bool
	Color          bool
	JSON           bool
	NonInteractive bool
	Columns        []string
}

func (*UIFlags) ConfigureUI

func (f *UIFlags) ConfigureUI(ui *ui.ConfUI)

func (*UIFlags) Set

func (f *UIFlags) Set(cmd *cobra.Command)

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 FindImages(allRs []ctlres.Resource, conf ctlconf.Conf) (*UnprocessedImageURLs, error)

func NewUnprocessedImageURLs

func NewUnprocessedImageURLs() *UnprocessedImageURLs

func (*UnprocessedImageURLs) Add

func (*UnprocessedImageURLs) All

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