Documentation ¶
Index ¶
- Constants
- func ConveyorShouldBeResetError() error
- type BuildOptions
- type BuildPhase
- type Conveyor
- func (c *Conveyor) BP(repo string, buildOpts BuildOptions, pushOpts PushOptions) error
- func (c *Conveyor) Build(opts BuildOptions) error
- func (c *Conveyor) GetBuildingGitStage(imageName string) stage.StageName
- func (c *Conveyor) GetDockerAuthorizer() DockerAuthorizer
- func (c *Conveyor) GetImage(name string) *Image
- func (c *Conveyor) GetImageBySignature(signature string) image.ImageInterface
- func (c *Conveyor) GetImageLatestStageImageName(imageName string) string
- func (c *Conveyor) GetImageLatestStageSignature(imageName string) string
- func (c *Conveyor) GetImageTmpDir(imageName string) string
- func (c *Conveyor) GetOrCreateImage(fromImage *image.StageImage, name string) *image.StageImage
- func (c *Conveyor) GetStageImage(name string) *image.StageImage
- func (c *Conveyor) Push(repo string, opts PushOptions) error
- func (c *Conveyor) ReInitRuntimeFields()
- func (c *Conveyor) SetBuildingGitStage(imageName string, stageName stage.StageName)
- func (c *Conveyor) SetImageBySignature(signature string, img image.ImageInterface)
- func (c *Conveyor) Tag(repo string, opts TagOptions) error
- type DockerAuthorizer
- type Image
- func (d *Image) GetBaseImage() *image.StageImage
- func (d *Image) GetName() string
- func (d *Image) GetStage(name stage.StageName) stage.Interface
- func (d *Image) GetStages() []stage.Interface
- func (d *Image) LatestStage() stage.Interface
- func (d *Image) PrepareBaseImage(c *Conveyor) error
- func (d *Image) SetStages(stages []stage.Interface)
- func (d *Image) SetupBaseImage(c *Conveyor)
- type InitializationPhase
- type Phase
- type PrepareImagesPhase
- type PushOptions
- type PushPhase
- type RenewPhase
- type ShouldBeBuiltPhase
- type SignaturesPhase
- type TagOptions
- type TagPhase
- type TagScheme
Constants ¶
View Source
const ( BuildCacheVersion = "33" LocalImageStageImageNameFormat = "image-stage-%s" LocalImageStageImageFormat = "image-stage-%s:%s" )
View Source
const WerfCacheVersionLabel = "werf-cache-version"
Variables ¶
This section is empty.
Functions ¶
func ConveyorShouldBeResetError ¶
func ConveyorShouldBeResetError() error
Types ¶
type BuildOptions ¶
type BuildOptions struct {
ImageBuildOptions imagePkg.BuildOptions
}
type BuildPhase ¶
type BuildPhase struct {
BuildOptions
}
func NewBuildPhase ¶
func NewBuildPhase(opts BuildOptions) *BuildPhase
func (*BuildPhase) Run ¶
func (p *BuildPhase) Run(c *Conveyor) error
type Conveyor ¶
type Conveyor struct {
// contains filtered or unexported fields
}
func NewConveyor ¶
func NewConveyor(werfConfig *config.WerfConfig, imageNamesToProcess []string, projectDir, buildDir, baseTmpDir, sshAuthSock string, authorizer DockerAuthorizer) *Conveyor
func (*Conveyor) BP ¶
func (c *Conveyor) BP(repo string, buildOpts BuildOptions, pushOpts PushOptions) error
func (*Conveyor) Build ¶
func (c *Conveyor) Build(opts BuildOptions) error
func (*Conveyor) GetBuildingGitStage ¶
func (*Conveyor) GetDockerAuthorizer ¶
func (c *Conveyor) GetDockerAuthorizer() DockerAuthorizer
func (*Conveyor) GetImageBySignature ¶
func (c *Conveyor) GetImageBySignature(signature string) image.ImageInterface
func (*Conveyor) GetImageLatestStageImageName ¶
func (*Conveyor) GetImageLatestStageSignature ¶
func (*Conveyor) GetImageTmpDir ¶
func (*Conveyor) GetOrCreateImage ¶
func (c *Conveyor) GetOrCreateImage(fromImage *image.StageImage, name string) *image.StageImage
func (*Conveyor) GetStageImage ¶
func (c *Conveyor) GetStageImage(name string) *image.StageImage
func (*Conveyor) ReInitRuntimeFields ¶
func (c *Conveyor) ReInitRuntimeFields()
func (*Conveyor) SetBuildingGitStage ¶
func (*Conveyor) SetImageBySignature ¶
func (c *Conveyor) SetImageBySignature(signature string, img image.ImageInterface)
type DockerAuthorizer ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) GetBaseImage ¶
func (d *Image) GetBaseImage() *image.StageImage
func (*Image) LatestStage ¶
func (*Image) PrepareBaseImage ¶
func (*Image) SetupBaseImage ¶
type InitializationPhase ¶
type InitializationPhase struct{}
func NewInitializationPhase ¶
func NewInitializationPhase() *InitializationPhase
func (*InitializationPhase) Run ¶
func (p *InitializationPhase) Run(c *Conveyor) error
type PrepareImagesPhase ¶
type PrepareImagesPhase struct{}
func NewPrepareImagesPhase ¶
func NewPrepareImagesPhase() *PrepareImagesPhase
func (*PrepareImagesPhase) Run ¶
func (p *PrepareImagesPhase) Run(c *Conveyor) error
type PushOptions ¶
type PushOptions struct { TagOptions WithStages bool }
type PushPhase ¶
func NewPushPhase ¶
func NewPushPhase(repo string, opts PushOptions) *PushPhase
type RenewPhase ¶
type RenewPhase struct{}
func NewRenewPhase ¶
func NewRenewPhase() *RenewPhase
func (*RenewPhase) Run ¶
func (p *RenewPhase) Run(c *Conveyor) error
type ShouldBeBuiltPhase ¶
type ShouldBeBuiltPhase struct{}
func NewShouldBeBuiltPhase ¶
func NewShouldBeBuiltPhase() *ShouldBeBuiltPhase
func (*ShouldBeBuiltPhase) Run ¶
func (p *ShouldBeBuiltPhase) Run(c *Conveyor) error
type SignaturesPhase ¶
type SignaturesPhase struct{}
func NewSignaturesPhase ¶
func NewSignaturesPhase() *SignaturesPhase
func (*SignaturesPhase) Run ¶
func (p *SignaturesPhase) Run(c *Conveyor) error
type TagOptions ¶
type TagPhase ¶
func NewTagPhase ¶
func NewTagPhase(repo string, opts TagOptions) *TagPhase
Source Files ¶
Click to show internal directories.
Click to hide internal directories.