Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func CreateEmptyImageLayoutAtPath(path string) (layout.Path, error)
 - func FillLayoutsWithBasicDeckhouseImages(mirrorCtx *contexts.PullContext, layouts *ImageLayouts, ...)
 - func FindDeckhouseModulesImages(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
 - func FindImageByTag(l layout.Path, tag string) (v1.Image, error)
 - func NopTagToDigestMappingFunc(_ string) *v1.Hash
 - func PullDeckhouseImages(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
 - func PullDeckhouseReleaseChannels(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
 - func PullImageSet(pullCtx *contexts.PullContext, targetLayout layout.Path, ...) error
 - func PullInstallers(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
 - func PullModules(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
 - func PullStandaloneInstallers(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
 - func PullTrivyVulnerabilityDatabasesImages(pullCtx *contexts.PullContext, layouts *ImageLayouts) error
 - func PushLayoutToRepo(imagesLayout layout.Path, registryRepo string, ...) error
 - func WithAllowMissingTags(allow bool) func(opts *pullImageSetOptions)
 - func WithTagToDigestMapper(fn TagToDigestMappingFunc) func(opts *pullImageSetOptions)
 - type ImageLayouts
 - type ModuleImageLayout
 - type TagToDigestMappingFunc
 - type TagsResolver
 - func (r *TagsResolver) GetTagDigest(imageRef string) *v1.Hash
 - func (r *TagsResolver) ResolveTagsDigestsForImageLayouts(mirrorCtx *contexts.BaseContext, layouts *ImageLayouts) error
 - func (r *TagsResolver) ResolveTagsDigestsFromImageSet(imageSet map[string]struct{}, authProvider authn.Authenticator, ...) error
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ErrEmptyLayout = errors.New("No images in layout")
    Functions ¶
func FillLayoutsWithBasicDeckhouseImages ¶
func FillLayoutsWithBasicDeckhouseImages( mirrorCtx *contexts.PullContext, layouts *ImageLayouts, deckhouseVersions []semver.Version, )
func FindDeckhouseModulesImages ¶
func FindDeckhouseModulesImages(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
func NopTagToDigestMappingFunc ¶
TODO no-op must be the default, this should not exist
func PullDeckhouseImages ¶
func PullDeckhouseImages(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
func PullDeckhouseReleaseChannels ¶
func PullDeckhouseReleaseChannels(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
func PullImageSet ¶
func PullInstallers ¶
func PullInstallers(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
func PullModules ¶
func PullModules(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
func PullStandaloneInstallers ¶ added in v0.3.4
func PullStandaloneInstallers(mirrorCtx *contexts.PullContext, layouts *ImageLayouts) error
func PullTrivyVulnerabilityDatabasesImages ¶
func PullTrivyVulnerabilityDatabasesImages( pullCtx *contexts.PullContext, layouts *ImageLayouts, ) error
func PushLayoutToRepo ¶
func WithAllowMissingTags ¶
func WithAllowMissingTags(allow bool) func(opts *pullImageSetOptions)
func WithTagToDigestMapper ¶
func WithTagToDigestMapper(fn TagToDigestMappingFunc) func(opts *pullImageSetOptions)
Types ¶
type ImageLayouts ¶
type ImageLayouts struct {
	Deckhouse       layout.Path
	DeckhouseImages map[string]struct{}
	Install       layout.Path
	InstallImages map[string]struct{}
	InstallStandalone       layout.Path
	InstallStandaloneImages map[string]struct{}
	ReleaseChannel       layout.Path
	ReleaseChannelImages map[string]struct{}
	TrivyDB           layout.Path
	TrivyDBImages     map[string]struct{}
	TrivyBDU          layout.Path
	TrivyBDUImages    map[string]struct{}
	TrivyJavaDB       layout.Path
	TrivyJavaDBImages map[string]struct{}
	TrivyChecks       layout.Path
	TrivyChecksImages map[string]struct{}
	Modules map[string]ModuleImageLayout
	TagsResolver *TagsResolver
}
    func CreateOCIImageLayoutsForDeckhouse ¶
func CreateOCIImageLayoutsForDeckhouse( rootFolder string, modules []modules.Module, ) (*ImageLayouts, error)
type ModuleImageLayout ¶
type TagToDigestMappingFunc ¶
type TagsResolver ¶
type TagsResolver struct {
	// contains filtered or unexported fields
}
    func NewTagsResolver ¶
func NewTagsResolver() *TagsResolver
func (*TagsResolver) GetTagDigest ¶
func (r *TagsResolver) GetTagDigest(imageRef string) *v1.Hash
func (*TagsResolver) ResolveTagsDigestsForImageLayouts ¶
func (r *TagsResolver) ResolveTagsDigestsForImageLayouts(mirrorCtx *contexts.BaseContext, layouts *ImageLayouts) error
func (*TagsResolver) ResolveTagsDigestsFromImageSet ¶
func (r *TagsResolver) ResolveTagsDigestsFromImageSet( imageSet map[string]struct{}, authProvider authn.Authenticator, insecure, skipTLSVerification bool, ) error
 Click to show internal directories. 
   Click to hide internal directories.