Documentation
¶
Index ¶
- func ImageLogProcessStyle(isArtifact bool) color.Style
- func ImageLogTagStyle(isArtifact bool) color.Style
- type BaseImageType
- type CommonImageOptions
- type Conveyor
- type Image
- func (i *Image) FetchBaseImage(ctx context.Context) error
- func (i *Image) GetBaseImageReference() string
- func (i *Image) GetBaseStageImage() *stage.StageImage
- func (i *Image) GetContentDigest() string
- func (i *Image) GetLastNonEmptyStage() stage.Interface
- func (i *Image) GetLogName() string
- func (i *Image) GetName() string
- func (i *Image) GetRebuilt() bool
- func (i *Image) GetStage(name stage.StageName) stage.Interface
- func (i *Image) GetStageID() string
- func (i *Image) GetStages() []stage.Interface
- func (i *Image) LogDetailedName() string
- func (i *Image) LogName() string
- func (i *Image) LogProcessStyle() color.Style
- func (i *Image) LogTagStyle() color.Style
- func (i *Image) SetContentDigest(digest string)
- func (i *Image) SetLastNonEmptyStage(stg stage.Interface)
- func (i *Image) SetRebuilt(rebuilt bool)
- func (i *Image) SetStages(stages []stage.Interface)
- func (i *Image) SetupBaseImage()
- type ImageOptions
- type ImagesSets
- type ImagesSetsBuilder
- type ImagesTree
- type ImagesTreeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageLogProcessStyle ¶
func ImageLogTagStyle ¶
Types ¶
type BaseImageType ¶
type BaseImageType string
const ( ImageFromRegistryAsBaseImage BaseImageType = "ImageFromRegistryBaseImage" StageAsBaseImage BaseImageType = "StageBaseImage" NoBaseImage BaseImageType = "NoBaseImage" )
type CommonImageOptions ¶
type CommonImageOptions struct { Conveyor Conveyor GiterminismManager giterminism_manager.Interface ContainerBackend container_backend.ContainerBackend StorageManager manager.StorageManagerInterface ProjectDir string ProjectName string ContainerWerfDir string TmpDir string }
type Conveyor ¶
type Conveyor interface { stage.Conveyor GetImage(name string) *Image GetOrCreateStageImage(name string, prevStageImage *stage.StageImage, stg stage.Interface, img *Image) *stage.StageImage IsBaseImagesRepoIdsCacheExist(key string) bool GetBaseImagesRepoIdsCache(key string) string SetBaseImagesRepoIdsCache(key, value string) IsBaseImagesRepoErrCacheExist(key string) bool GetBaseImagesRepoErrCache(key string) error SetBaseImagesRepoErrCache(key string, err error) GetServiceRWMutex(service string) *sync.RWMutex SetRemoteGitRepo(key string, repo *git_repo.Remote) GetRemoteGitRepo(key string) *git_repo.Remote }
type Image ¶
type Image struct { CommonImageOptions IsArtifact bool IsDockerfileImage bool Name string // contains filtered or unexported fields }
func NewImage ¶
func NewImage(ctx context.Context, name string, baseImageType BaseImageType, opts ImageOptions) (*Image, error)
func (*Image) GetBaseImageReference ¶ added in v1.2.178
func (*Image) GetBaseStageImage ¶ added in v1.2.178
func (i *Image) GetBaseStageImage() *stage.StageImage
TODO(staged-dockerfile): this is only for compatibility with stapel-builder logic, and this should be unified with new staged-dockerfile logic
func (*Image) GetContentDigest ¶
func (*Image) GetLastNonEmptyStage ¶
func (*Image) GetLogName ¶
func (*Image) GetRebuilt ¶
func (*Image) GetStageID ¶
func (*Image) LogDetailedName ¶
func (*Image) LogProcessStyle ¶
func (*Image) LogTagStyle ¶
func (*Image) SetContentDigest ¶
func (*Image) SetLastNonEmptyStage ¶
func (*Image) SetRebuilt ¶
func (*Image) SetupBaseImage ¶
func (i *Image) SetupBaseImage()
type ImageOptions ¶
type ImageOptions struct { CommonImageOptions IsArtifact, IsDockerfileImage bool BaseImageReference string BaseImageName string FetchLatestBaseImage bool }
type ImagesSets ¶
type ImagesSets [][]*Image
func MapDockerfileConfigToImagesSets ¶
func MapDockerfileConfigToImagesSets(ctx context.Context, dockerfileImageConfig *config.ImageFromDockerfile, opts CommonImageOptions) (ImagesSets, error)
func MapStapelConfigToImagesSets ¶
func MapStapelConfigToImagesSets(ctx context.Context, metaConfig *config.Meta, stapelImageConfig config.StapelImageInterface, opts CommonImageOptions) (ImagesSets, error)
type ImagesSetsBuilder ¶
type ImagesSetsBuilder struct {
// contains filtered or unexported fields
}
func NewImagesSetsBuilder ¶
func NewImagesSetsBuilder() *ImagesSetsBuilder
func (*ImagesSetsBuilder) GetAllImages ¶
func (is *ImagesSetsBuilder) GetAllImages() []*Image
func (*ImagesSetsBuilder) GetImagesSets ¶
func (is *ImagesSetsBuilder) GetImagesSets() ImagesSets
func (*ImagesSetsBuilder) MergeImagesSets ¶
func (is *ImagesSetsBuilder) MergeImagesSets(newImagesSets [][]*Image)
func (*ImagesSetsBuilder) Next ¶
func (is *ImagesSetsBuilder) Next()
type ImagesTree ¶
type ImagesTree struct { ImagesTreeOptions // contains filtered or unexported fields }
func NewImagesTree ¶
func NewImagesTree(werfConfig *config.WerfConfig, opts ImagesTreeOptions) *ImagesTree
func (*ImagesTree) GetImage ¶
func (tree *ImagesTree) GetImage(name string) *Image
func (*ImagesTree) GetImages ¶
func (tree *ImagesTree) GetImages() []*Image
func (*ImagesTree) GetImagesSets ¶
func (tree *ImagesTree) GetImagesSets() ImagesSets
type ImagesTreeOptions ¶
type ImagesTreeOptions struct { CommonImageOptions OnlyImages []string WithoutImages bool }
Click to show internal directories.
Click to hide internal directories.