Documentation ¶
Index ¶
- Constants
- func ImageLogProcessColorizeFunc(isArtifact bool) func(...interface{}) string
- func ImageLogTagColorizeFunc(isArtifact bool) func(...interface{}) string
- type BasePhase
- type BuildAndPublishOptions
- type BuildPhase
- func (phase *BuildPhase) AfterImageStages(img *Image) error
- func (phase *BuildPhase) AfterImages() error
- func (phase *BuildPhase) BeforeImageStages(img *Image) error
- func (phase *BuildPhase) BeforeImages() error
- func (phase *BuildPhase) ImageProcessingShouldBeStopped(img *Image) bool
- func (phase *BuildPhase) Name() string
- func (phase *BuildPhase) OnImageStage(img *Image, stg stage.Interface) (bool, error)
- type BuildPhaseOptions
- type BuildStagesOptions
- type Conveyor
- func (c *Conveyor) BuildAndPublish(stagesRepo string, imagesRepoManager ImagesRepoManager, ...) error
- func (c *Conveyor) BuildStages(stageRepo string, opts BuildStagesOptions) error
- func (c *Conveyor) GetBuildingGitStage(imageName string) stage.StageName
- func (c *Conveyor) GetGitRepoCache(gitRepoName string) *stage.GitRepoCache
- func (c *Conveyor) GetImage(name string) *Image
- func (c *Conveyor) GetImageBySignature(signature string) image.ImageInterface
- func (c *Conveyor) GetImageInfoGetters(configImages []*config.StapelImage, ...) []images_manager.ImageInfoGetter
- func (c *Conveyor) GetImageLatestStageImageName(imageName string) string
- func (c *Conveyor) GetImageLatestStageSignature(imageName string) string
- func (c *Conveyor) GetImageTmpDir(imageName string) string
- func (c *Conveyor) GetOrCreateStageImage(fromImage *image.StageImage, name string) *image.StageImage
- func (c *Conveyor) GetStageImage(name string) *image.StageImage
- func (c *Conveyor) PublishImages(imagesRepoManager ImagesRepoManager, opts PublishImagesOptions) error
- func (c *Conveyor) SetBuildingGitStage(imageName string, stageName stage.StageName)
- func (c *Conveyor) SetImageBySignature(signature string, img image.ImageInterface)
- func (c *Conveyor) SetStageImage(stageImage *image.StageImage)
- func (c *Conveyor) ShouldBeBuilt() error
- func (c *Conveyor) Terminate() error
- func (c *Conveyor) UnsetStageImage(name string)
- type Image
- func (i *Image) GetBaseImage() *image.StageImage
- func (i *Image) GetLastNonEmptyStage() stage.Interface
- func (i *Image) GetLogName() string
- func (i *Image) GetName() string
- func (i *Image) GetStage(name stage.StageName) stage.Interface
- func (i *Image) GetStages() []stage.Interface
- func (i *Image) GetStagesSignature() string
- func (i *Image) LatestStage() stage.Interface
- func (i *Image) LogDetailedName() string
- func (i *Image) LogName() string
- func (i *Image) LogProcessColorizeFunc() func(...interface{}) string
- func (i *Image) LogTagColorizeFunc() func(...interface{}) string
- func (i *Image) PrepareBaseImage(c *Conveyor) error
- func (i *Image) SetLastNonEmptyStage(stg stage.Interface)
- func (i *Image) SetStages(stages []stage.Interface)
- func (i *Image) SetStagesSignature(sig string)
- func (i *Image) SetupBaseImage(c *Conveyor)
- type ImagesRepoManager
- type IntrospectOptions
- type IntrospectTarget
- type Phase
- type PublishImagesOptions
- type PublishImagesPhase
- func (phase *PublishImagesPhase) AfterImageStages(img *Image) error
- func (phase *PublishImagesPhase) AfterImages() error
- func (phase *PublishImagesPhase) BeforeImageStages(img *Image) error
- func (phase *PublishImagesPhase) BeforeImages() error
- func (phase *PublishImagesPhase) ImageProcessingShouldBeStopped(img *Image) bool
- func (phase *PublishImagesPhase) Name() string
- func (phase *PublishImagesPhase) OnImageStage(img *Image, stg stage.Interface) (bool, error)
- type ShouldBeBuiltPhase
- func (phase *ShouldBeBuiltPhase) AfterImageStages(img *Image) error
- func (phase *ShouldBeBuiltPhase) AfterImages() error
- func (phase *ShouldBeBuiltPhase) BeforeImageStages(img *Image) error
- func (phase *ShouldBeBuiltPhase) BeforeImages() error
- func (phase *ShouldBeBuiltPhase) ImageProcessingShouldBeStopped(img *Image) bool
- func (phase *ShouldBeBuiltPhase) Name() string
- func (phase *ShouldBeBuiltPhase) OnImageStage(img *Image, stg stage.Interface) (bool, error)
- type TagOptions
Constants ¶
View Source
const (
MaxStageNameLength = 22
)
Variables ¶
This section is empty.
Functions ¶
func ImageLogTagColorizeFunc ¶
Types ¶
type BuildAndPublishOptions ¶
type BuildAndPublishOptions struct { BuildStagesOptions PublishImagesOptions }
type BuildPhase ¶ added in v1.1.0
type BuildPhase struct { BasePhase PrevStage stage.Interface PrevNonEmptyStage stage.Interface PrevImage *image.StageImage PrevBuiltImage image.ImageInterface PrevNonEmptyStageImageSize int64 BuildPhaseOptions // contains filtered or unexported fields }
func NewBuildPhase ¶ added in v1.1.0
func NewBuildPhase(c *Conveyor, opts BuildPhaseOptions) *BuildPhase
func (*BuildPhase) AfterImageStages ¶ added in v1.1.0
func (phase *BuildPhase) AfterImageStages(img *Image) error
func (*BuildPhase) AfterImages ¶ added in v1.1.0
func (phase *BuildPhase) AfterImages() error
func (*BuildPhase) BeforeImageStages ¶ added in v1.1.0
func (phase *BuildPhase) BeforeImageStages(img *Image) error
func (*BuildPhase) BeforeImages ¶ added in v1.1.0
func (phase *BuildPhase) BeforeImages() error
func (*BuildPhase) ImageProcessingShouldBeStopped ¶ added in v1.1.0
func (phase *BuildPhase) ImageProcessingShouldBeStopped(img *Image) bool
func (*BuildPhase) Name ¶ added in v1.1.0
func (phase *BuildPhase) Name() string
func (*BuildPhase) OnImageStage ¶ added in v1.1.0
type BuildPhaseOptions ¶ added in v1.1.0
type BuildPhaseOptions struct { SignaturesOnly bool ImageBuildOptions imagePkg.BuildOptions IntrospectOptions IntrospectOptions }
type BuildStagesOptions ¶
type BuildStagesOptions struct { ImageBuildOptions image.BuildOptions IntrospectOptions }
type Conveyor ¶
type Conveyor struct { StagesStorage storage.StagesStorage StagesStorageCache storage.StagesStorageCache StorageLockManager storage.LockManager // contains filtered or unexported fields }
func NewConveyor ¶
func NewConveyor(werfConfig *config.WerfConfig, imageNamesToProcess []string, projectDir, baseTmpDir, sshAuthSock string) *Conveyor
func (*Conveyor) BuildAndPublish ¶
func (c *Conveyor) BuildAndPublish(stagesRepo string, imagesRepoManager ImagesRepoManager, opts BuildAndPublishOptions) error
func (*Conveyor) BuildStages ¶
func (c *Conveyor) BuildStages(stageRepo string, opts BuildStagesOptions) error
func (*Conveyor) GetBuildingGitStage ¶
func (*Conveyor) GetGitRepoCache ¶
func (c *Conveyor) GetGitRepoCache(gitRepoName string) *stage.GitRepoCache
func (*Conveyor) GetImageBySignature ¶
func (c *Conveyor) GetImageBySignature(signature string) image.ImageInterface
imagesBySignature needed only for Build phase to detect that image object has already been prepared with build instructions. Image should never be prepared multiple times.
func (*Conveyor) GetImageInfoGetters ¶ added in v1.1.0
func (c *Conveyor) GetImageInfoGetters(configImages []*config.StapelImage, configImagesFromDockerfile []*config.ImageFromDockerfile, imagesRepoManager images_manager.ImagesRepoManager, commonTag string, tagStrategy tag_strategy.TagStrategy, withoutRegistry bool) []images_manager.ImageInfoGetter
func (*Conveyor) GetImageLatestStageImageName ¶
func (*Conveyor) GetImageLatestStageSignature ¶
func (*Conveyor) GetImageTmpDir ¶
func (*Conveyor) GetOrCreateStageImage ¶ added in v1.1.0
func (c *Conveyor) GetOrCreateStageImage(fromImage *image.StageImage, name string) *image.StageImage
func (*Conveyor) GetStageImage ¶
func (c *Conveyor) GetStageImage(name string) *image.StageImage
func (*Conveyor) PublishImages ¶
func (c *Conveyor) PublishImages(imagesRepoManager ImagesRepoManager, opts PublishImagesOptions) error
func (*Conveyor) SetBuildingGitStage ¶
func (*Conveyor) SetImageBySignature ¶
func (c *Conveyor) SetImageBySignature(signature string, img image.ImageInterface)
func (*Conveyor) SetStageImage ¶ added in v1.1.0
func (c *Conveyor) SetStageImage(stageImage *image.StageImage)
func (*Conveyor) ShouldBeBuilt ¶
func (*Conveyor) UnsetStageImage ¶ added in v1.1.0
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) GetBaseImage ¶
func (i *Image) GetBaseImage() *image.StageImage
func (*Image) GetLastNonEmptyStage ¶ added in v1.1.0
func (*Image) GetLogName ¶ added in v1.1.0
func (*Image) GetStagesSignature ¶ added in v1.1.0
func (*Image) LatestStage ¶
func (*Image) LogDetailedName ¶
func (*Image) LogProcessColorizeFunc ¶
func (*Image) LogTagColorizeFunc ¶
func (*Image) PrepareBaseImage ¶
func (*Image) SetLastNonEmptyStage ¶ added in v1.1.0
func (*Image) SetStagesSignature ¶ added in v1.1.0
func (*Image) SetupBaseImage ¶
type ImagesRepoManager ¶
type IntrospectOptions ¶
type IntrospectOptions struct {
Targets []IntrospectTarget
}
func (*IntrospectOptions) ImageStageShouldBeIntrospected ¶
func (opts *IntrospectOptions) ImageStageShouldBeIntrospected(imageName, stageName string) bool
type IntrospectTarget ¶
type PublishImagesOptions ¶
type PublishImagesOptions struct { ImagesToPublish []string TagOptions }
type PublishImagesPhase ¶
type PublishImagesPhase struct { BasePhase ImagesToPublish []string TagsByScheme map[tag_strategy.TagStrategy][]string TagByStagesSignature bool ImageRepoManager ImagesRepoManager }
func NewPublishImagesPhase ¶
func NewPublishImagesPhase(c *Conveyor, imagesRepoManager ImagesRepoManager, opts PublishImagesOptions) *PublishImagesPhase
func (*PublishImagesPhase) AfterImageStages ¶ added in v1.1.0
func (phase *PublishImagesPhase) AfterImageStages(img *Image) error
func (*PublishImagesPhase) AfterImages ¶ added in v1.1.0
func (phase *PublishImagesPhase) AfterImages() error
func (*PublishImagesPhase) BeforeImageStages ¶ added in v1.1.0
func (phase *PublishImagesPhase) BeforeImageStages(img *Image) error
func (*PublishImagesPhase) BeforeImages ¶ added in v1.1.0
func (phase *PublishImagesPhase) BeforeImages() error
func (*PublishImagesPhase) ImageProcessingShouldBeStopped ¶ added in v1.1.0
func (phase *PublishImagesPhase) ImageProcessingShouldBeStopped(img *Image) bool
func (*PublishImagesPhase) Name ¶ added in v1.1.0
func (phase *PublishImagesPhase) Name() string
func (*PublishImagesPhase) OnImageStage ¶ added in v1.1.0
type ShouldBeBuiltPhase ¶
type ShouldBeBuiltPhase struct { BasePhase IsBadDockerfileImageExists bool BadImages []*Image BadStagesByImage map[string][]stage.Interface }
func NewShouldBeBuiltPhase ¶
func NewShouldBeBuiltPhase(c *Conveyor) *ShouldBeBuiltPhase
func (*ShouldBeBuiltPhase) AfterImageStages ¶ added in v1.1.0
func (phase *ShouldBeBuiltPhase) AfterImageStages(img *Image) error
func (*ShouldBeBuiltPhase) AfterImages ¶ added in v1.1.0
func (phase *ShouldBeBuiltPhase) AfterImages() error
func (*ShouldBeBuiltPhase) BeforeImageStages ¶ added in v1.1.0
func (phase *ShouldBeBuiltPhase) BeforeImageStages(img *Image) error
func (*ShouldBeBuiltPhase) BeforeImages ¶ added in v1.1.0
func (phase *ShouldBeBuiltPhase) BeforeImages() error
func (*ShouldBeBuiltPhase) ImageProcessingShouldBeStopped ¶ added in v1.1.0
func (phase *ShouldBeBuiltPhase) ImageProcessingShouldBeStopped(img *Image) bool
func (*ShouldBeBuiltPhase) Name ¶ added in v1.1.0
func (phase *ShouldBeBuiltPhase) Name() string
func (*ShouldBeBuiltPhase) OnImageStage ¶ added in v1.1.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.