Documentation
¶
Index ¶
- func ImageLogProcessStyle(isArtifact bool) *logboek.Style
- func ImageLogTagStyle(isArtifact bool) *logboek.Style
- type BaseImageType
- 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) error
- type BuildPhaseOptions
- type BuildStagesOptions
- type Conveyor
- func (c *Conveyor) AppendOnTerminateFunc(f func() error)
- func (c *Conveyor) BuildAndPublish(opts BuildAndPublishOptions) error
- func (c *Conveyor) BuildStages(opts BuildStagesOptions) error
- func (c *Conveyor) GetGitRepoCache(gitRepoName string) *stage.GitRepoCache
- func (c *Conveyor) GetImage(name string) *Image
- func (c *Conveyor) GetImageContentSignature(imageName string) string
- func (c *Conveyor) GetImageIDForImageStage(imageName, stageName string) string
- func (c *Conveyor) GetImageIDForLastImageStage(imageName string) string
- func (c *Conveyor) GetImageInfoGetters(configImages []*config.StapelImage, ...) []images_manager.ImageInfoGetter
- func (c *Conveyor) GetImageNameForImageStage(imageName, stageName string) string
- func (c *Conveyor) GetImageNameForLastImageStage(imageName string) string
- func (c *Conveyor) GetImageStageContentSignature(imageName, stageName string) string
- func (c *Conveyor) GetImageTmpDir(imageName string) string
- func (c *Conveyor) GetImportServer(imageName, stageName string) (import_server.ImportServer, error)
- func (c *Conveyor) GetLocalGitRepo() *git_repo.Local
- func (c *Conveyor) GetLocalGitRepoVirtualMergeOptions() stage.VirtualMergeOptions
- func (c *Conveyor) GetOrCreateStageImage(fromImage *container_runtime.StageImage, name string) *container_runtime.StageImage
- func (c *Conveyor) GetProjectRepoCommit() (string, error)
- func (c *Conveyor) GetStageImage(name string) *container_runtime.StageImage
- func (c *Conveyor) Init() error
- func (c *Conveyor) PublishImages(opts PublishImagesOptions) error
- func (c *Conveyor) SetLocalGitRepo(repo *git_repo.Local)
- func (c *Conveyor) SetStageImage(stageImage *container_runtime.StageImage)
- func (c *Conveyor) ShouldBeBuilt(opts ShouldBeBuiltOptions) error
- func (c *Conveyor) Terminate() error
- func (c *Conveyor) UnsetStageImage(name string)
- type ConveyorOptions
- type ConveyorWithRetryWrapper
- type Image
- func (i *Image) FetchBaseImage(c *Conveyor) error
- func (i *Image) GetBaseImage() *container_runtime.StageImage
- func (i *Image) GetContentSignature() string
- 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) LogDetailedName() string
- func (i *Image) LogName() string
- func (i *Image) LogProcessStyle() *logboek.Style
- func (i *Image) LogTagStyle() *logboek.Style
- func (i *Image) SetContentSignature(sig string)
- func (i *Image) SetLastNonEmptyStage(stg stage.Interface)
- func (i *Image) SetStages(stages []stage.Interface)
- func (i *Image) SetupBaseImage(c *Conveyor)
- 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) error
- type PublishReport
- type PublishReportFormat
- type PublishReportImageRecord
- type ShouldBeBuiltOptions
- type StagesIterator
- func (iterator *StagesIterator) GetPrevBuiltImage(img *Image, stg stage.Interface) container_runtime.ImageInterface
- func (iterator *StagesIterator) GetPrevImage(img *Image, stg stage.Interface) container_runtime.ImageInterface
- func (iterator *StagesIterator) OnImageStage(img *Image, stg stage.Interface, ...) error
- type TagOptions
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" )
type BuildAndPublishOptions ¶
type BuildAndPublishOptions struct { BuildStagesOptions PublishImagesOptions DryRun bool }
type BuildPhase ¶
type BuildPhase struct { BasePhase BuildPhaseOptions StagesIterator *StagesIterator ShouldAddManagedImageRecord bool }
func NewBuildPhase ¶
func NewBuildPhase(c *Conveyor, opts BuildPhaseOptions) *BuildPhase
func (*BuildPhase) AfterImageStages ¶
func (phase *BuildPhase) AfterImageStages(img *Image) error
func (*BuildPhase) AfterImages ¶
func (phase *BuildPhase) AfterImages() error
func (*BuildPhase) BeforeImageStages ¶
func (phase *BuildPhase) BeforeImageStages(img *Image) error
func (*BuildPhase) BeforeImages ¶
func (phase *BuildPhase) BeforeImages() error
func (*BuildPhase) ImageProcessingShouldBeStopped ¶
func (phase *BuildPhase) ImageProcessingShouldBeStopped(img *Image) bool
func (*BuildPhase) Name ¶
func (phase *BuildPhase) Name() string
func (*BuildPhase) OnImageStage ¶
func (phase *BuildPhase) OnImageStage(img *Image, stg stage.Interface) error
type BuildPhaseOptions ¶
type BuildPhaseOptions struct { ShouldBeBuiltMode bool ImageBuildOptions container_runtime.BuildOptions IntrospectOptions IntrospectOptions }
type BuildStagesOptions ¶
type BuildStagesOptions struct { ImageBuildOptions container_runtime.BuildOptions IntrospectOptions }
type Conveyor ¶
type Conveyor struct { ContainerRuntime container_runtime.ContainerRuntime ImagesRepo storage.ImagesRepo StorageLockManager storage.LockManager StagesManager *stages_manager.StagesManager ConveyorOptions // contains filtered or unexported fields }
func NewConveyor ¶
func NewConveyor(werfConfig *config.WerfConfig, imageNamesToProcess []string, projectDir, baseTmpDir, sshAuthSock string, containerRuntime container_runtime.ContainerRuntime, stagesManager *stages_manager.StagesManager, imagesRepo storage.ImagesRepo, storageLockManager storage.LockManager, opts ConveyorOptions) (*Conveyor, error)
func (*Conveyor) AppendOnTerminateFunc ¶
func (*Conveyor) BuildAndPublish ¶
func (c *Conveyor) BuildAndPublish(opts BuildAndPublishOptions) error
func (*Conveyor) BuildStages ¶
func (c *Conveyor) BuildStages(opts BuildStagesOptions) error
func (*Conveyor) GetGitRepoCache ¶
func (c *Conveyor) GetGitRepoCache(gitRepoName string) *stage.GitRepoCache
func (*Conveyor) GetImageContentSignature ¶
func (*Conveyor) GetImageIDForImageStage ¶
func (*Conveyor) GetImageIDForLastImageStage ¶
func (*Conveyor) GetImageInfoGetters ¶
func (c *Conveyor) GetImageInfoGetters(configImages []*config.StapelImage, configImagesFromDockerfile []*config.ImageFromDockerfile, commonTag string, tagStrategy tag_strategy.TagStrategy, withoutRegistry bool) []images_manager.ImageInfoGetter
func (*Conveyor) GetImageNameForImageStage ¶
func (*Conveyor) GetImageNameForLastImageStage ¶
func (*Conveyor) GetImageStageContentSignature ¶
func (*Conveyor) GetImageTmpDir ¶
func (*Conveyor) GetImportServer ¶
func (c *Conveyor) GetImportServer(imageName, stageName string) (import_server.ImportServer, error)
func (*Conveyor) GetLocalGitRepo ¶
func (*Conveyor) GetLocalGitRepoVirtualMergeOptions ¶
func (c *Conveyor) GetLocalGitRepoVirtualMergeOptions() stage.VirtualMergeOptions
func (*Conveyor) GetOrCreateStageImage ¶
func (c *Conveyor) GetOrCreateStageImage(fromImage *container_runtime.StageImage, name string) *container_runtime.StageImage
func (*Conveyor) GetProjectRepoCommit ¶
func (*Conveyor) GetStageImage ¶
func (c *Conveyor) GetStageImage(name string) *container_runtime.StageImage
func (*Conveyor) PublishImages ¶
func (c *Conveyor) PublishImages(opts PublishImagesOptions) error
func (*Conveyor) SetLocalGitRepo ¶
func (*Conveyor) SetStageImage ¶
func (c *Conveyor) SetStageImage(stageImage *container_runtime.StageImage)
func (*Conveyor) ShouldBeBuilt ¶
func (c *Conveyor) ShouldBeBuilt(opts ShouldBeBuiltOptions) error
func (*Conveyor) UnsetStageImage ¶
type ConveyorOptions ¶
type ConveyorOptions struct { LocalGitRepoVirtualMergeOptions stage.VirtualMergeOptions GitUnshallow bool AllowGitShallowClone bool }
type ConveyorWithRetryWrapper ¶
type ConveyorWithRetryWrapper struct { WerfConfig *config.WerfConfig ImageNamesToProcess []string ProjectDir string BaseTmpDir string SshAuthSock string ContainerRuntime container_runtime.ContainerRuntime StagesManager *stages_manager.StagesManager ImagesRepo storage.ImagesRepo StorageLockManager storage.LockManager ConveyorOptions ConveyorOptions }
func NewConveyorWithRetryWrapper ¶
func NewConveyorWithRetryWrapper(werfConfig *config.WerfConfig, imageNamesToProcess []string, projectDir, baseTmpDir, sshAuthSock string, containerRuntime container_runtime.ContainerRuntime, stagesManager *stages_manager.StagesManager, imagesRepo storage.ImagesRepo, storageLockManager storage.LockManager, opts ConveyorOptions) *ConveyorWithRetryWrapper
func (*ConveyorWithRetryWrapper) Terminate ¶
func (wrapper *ConveyorWithRetryWrapper) Terminate() error
func (*ConveyorWithRetryWrapper) WithRetryBlock ¶
func (wrapper *ConveyorWithRetryWrapper) WithRetryBlock(f func(c *Conveyor) error) error
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) FetchBaseImage ¶
func (*Image) GetBaseImage ¶
func (i *Image) GetBaseImage() *container_runtime.StageImage
func (*Image) GetContentSignature ¶
func (*Image) GetLastNonEmptyStage ¶
func (*Image) GetLogName ¶
func (*Image) LogDetailedName ¶
func (*Image) LogProcessStyle ¶
func (*Image) LogTagStyle ¶
func (*Image) SetContentSignature ¶
func (*Image) SetLastNonEmptyStage ¶
func (*Image) SetupBaseImage ¶
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 PublishReportPath string PublishReportFormat PublishReportFormat }
type PublishImagesPhase ¶
type PublishImagesPhase struct { BasePhase ImagesToPublish []string TagsByScheme map[tag_strategy.TagStrategy][]string TagByStagesSignature bool ImagesRepo storage.ImagesRepo PublishReport *PublishReport PublishReportPath string PublishReportFormat PublishReportFormat }
func NewPublishImagesPhase ¶
func NewPublishImagesPhase(c *Conveyor, imagesRepo storage.ImagesRepo, opts PublishImagesOptions) *PublishImagesPhase
func (*PublishImagesPhase) AfterImageStages ¶
func (phase *PublishImagesPhase) AfterImageStages(img *Image) error
func (*PublishImagesPhase) AfterImages ¶
func (phase *PublishImagesPhase) AfterImages() error
func (*PublishImagesPhase) BeforeImageStages ¶
func (phase *PublishImagesPhase) BeforeImageStages(img *Image) error
func (*PublishImagesPhase) BeforeImages ¶
func (phase *PublishImagesPhase) BeforeImages() error
func (*PublishImagesPhase) ImageProcessingShouldBeStopped ¶
func (phase *PublishImagesPhase) ImageProcessingShouldBeStopped(img *Image) bool
func (*PublishImagesPhase) Name ¶
func (phase *PublishImagesPhase) Name() string
func (*PublishImagesPhase) OnImageStage ¶
func (phase *PublishImagesPhase) OnImageStage(img *Image, stg stage.Interface) error
type PublishReport ¶
type PublishReport struct {
Images map[string]PublishReportImageRecord
}
type PublishReportFormat ¶
type PublishReportFormat string
const (
PublishReportJSON PublishReportFormat = "json"
)
type ShouldBeBuiltOptions ¶
type ShouldBeBuiltOptions struct {
FetchLastStage bool
}
type StagesIterator ¶
type StagesIterator struct { Conveyor *Conveyor PrevStage stage.Interface PrevNonEmptyStage stage.Interface PrevBuiltStage stage.Interface PrevNonEmptyStageImageSize int64 }
func NewStagesIterator ¶
func NewStagesIterator(conveyor *Conveyor) *StagesIterator
func (*StagesIterator) GetPrevBuiltImage ¶
func (iterator *StagesIterator) GetPrevBuiltImage(img *Image, stg stage.Interface) container_runtime.ImageInterface
func (*StagesIterator) GetPrevImage ¶
func (iterator *StagesIterator) GetPrevImage(img *Image, stg stage.Interface) container_runtime.ImageInterface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.