Documentation ¶
Index ¶
- Variables
- func GetLegacyCompatibleStageName(name StageName) string
- func IsErrInvalidBaseImage(err error) bool
- type BaseStage
- func (s *BaseStage) FetchDependencies(_ context.Context, _ Conveyor, _ container_runtime.ContainerRuntime, ...) error
- func (s *BaseStage) GetContentDigest() string
- func (s *BaseStage) GetDependencies(_ context.Context, _ Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
- func (s *BaseStage) GetDigest() string
- func (s *BaseStage) GetGitMappings() []*GitMapping
- func (s *BaseStage) GetImage() container_runtime.LegacyImageInterface
- func (s *BaseStage) GetNextStageDependencies(_ context.Context, _ Conveyor) (string, error)
- func (s *BaseStage) IsEmpty(_ context.Context, _ Conveyor, _ container_runtime.LegacyImageInterface) (bool, error)
- func (s *BaseStage) LogDetailedName() string
- func (s *BaseStage) Name() StageName
- func (s *BaseStage) PreRunHook(_ context.Context, _ Conveyor) error
- func (s *BaseStage) PrepareImage(ctx context.Context, c Conveyor, ...) error
- func (s *BaseStage) SelectSuitableStage(_ context.Context, c Conveyor, stages []*imagePkg.StageDescription) (*imagePkg.StageDescription, error)
- func (s *BaseStage) SetContentDigest(contentDigest string)
- func (s *BaseStage) SetDigest(digest string)
- func (s *BaseStage) SetGitMappings(gitMappings []*GitMapping)
- func (s *BaseStage) SetImage(image container_runtime.LegacyImageInterface)
- type BeforeInstallStage
- type BeforeSetupStage
- type ContainerFileDescriptor
- type ContextChecksum
- type Conveyor
- type DependenciesAfterInstallStage
- type DependenciesAfterSetupStage
- type DependenciesBeforeInstallStage
- type DependenciesBeforeSetupStage
- type DependenciesStage
- type DockerInstructionsStage
- type DockerRunArgs
- type DockerStages
- func (ds *DockerStages) AddDockerStageEnv(dockerStageID int, key, value string) (string, string, error)
- func (ds *DockerStages) DockerStageArgsHash(dockerStageID int) map[string]string
- func (ds *DockerStages) DockerStageEnvs(dockerStageID int) map[string]string
- func (ds *DockerStages) ShlexProcessWordWithMetaArgs(value string, resolvedDockerMetaArgsHash map[string]string) (string, error)
- func (ds *DockerStages) ShlexProcessWordWithStageArgsAndEnvs(dockerStageID int, value string) (string, error)
- func (ds *DockerStages) ShlexProcessWordWithStageEnvs(dockerStageID int, value string) (string, error)
- type DockerfileStage
- func (s *DockerfileStage) FetchDependencies(ctx context.Context, c Conveyor, ...) error
- func (s *DockerfileStage) GetDependencies(ctx context.Context, c Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
- func (s *DockerfileStage) PrepareImage(ctx context.Context, c Conveyor, _, img container_runtime.LegacyImageInterface) error
- func (s *DockerfileStage) SetupDockerImageBuilder(b *container_runtime.DockerfileImageBuilder, c Conveyor) error
- type FromStage
- type GitArchiveStage
- func (s *GitArchiveStage) GetDependencies(ctx context.Context, c Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
- func (s *GitArchiveStage) GetNextStageDependencies(ctx context.Context, c Conveyor) (string, error)
- func (s *GitArchiveStage) IsEmpty(ctx context.Context, c Conveyor, img container_runtime.LegacyImageInterface) (bool, error)
- func (s *GitArchiveStage) PrepareImage(ctx context.Context, c Conveyor, ...) error
- func (s *GitArchiveStage) SelectSuitableStage(ctx context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error)
- type GitCacheStage
- func (s *GitCacheStage) GetDependencies(ctx context.Context, c Conveyor, ...) (string, error)
- func (s *GitCacheStage) GetNextStageDependencies(ctx context.Context, c Conveyor) (string, error)
- func (s *GitCacheStage) IsEmpty(ctx context.Context, c Conveyor, ...) (bool, error)
- func (s *GitCacheStage) SelectSuitableStage(ctx context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error)
- type GitLatestPatchStage
- func (s *GitLatestPatchStage) GetDependencies(ctx context.Context, c Conveyor, ...) (string, error)
- func (s *GitLatestPatchStage) GetNextStageDependencies(ctx context.Context, c Conveyor) (string, error)
- func (s *GitLatestPatchStage) IsEmpty(ctx context.Context, c Conveyor, ...) (bool, error)
- func (s *GitLatestPatchStage) SelectSuitableStage(ctx context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error)
- type GitMapping
- func (gm *GitMapping) AddGitCommitToImageLabels(image container_runtime.LegacyImageInterface, commitInfo ImageCommitInfo)
- func (gm *GitMapping) ApplyArchiveCommand(ctx context.Context, c Conveyor, image container_runtime.LegacyImageInterface) error
- func (gm *GitMapping) ApplyPatchCommand(ctx context.Context, c Conveyor, ...) error
- func (gm *GitMapping) GetBaseCommitForPrevBuiltImage(ctx context.Context, c Conveyor, ...) (string, error)
- func (gm *GitMapping) GetBuiltImageCommitInfo(builtImageLabels map[string]string) (ImageCommitInfo, error)
- func (gm *GitMapping) GetFullName() string
- func (gm *GitMapping) GetLatestCommitInfo(ctx context.Context, c Conveyor) (ImageCommitInfo, error)
- func (gm *GitMapping) GetParamshash() string
- func (gm *GitMapping) GetPatchContent(ctx context.Context, c Conveyor, ...) (string, error)
- func (gm *GitMapping) GitRepo() git_repo.GitRepo
- func (gm *GitMapping) ImageGitCommitLabel() string
- func (gm *GitMapping) IsLocal() bool
- func (gm *GitMapping) IsPatchEmpty(ctx context.Context, c Conveyor, ...) (bool, error)
- func (gm *GitMapping) PatchSize(ctx context.Context, c Conveyor, fromCommit string) (int64, error)
- func (gm *GitMapping) SetGitRepo(gitRepo git_repo.GitRepo)
- func (gm *GitMapping) StageDependenciesChecksum(ctx context.Context, c Conveyor, stageName StageName) (string, error)
- func (gm *GitMapping) VirtualMergeFromCommitLabel() string
- func (gm *GitMapping) VirtualMergeIntoCommitLabel() string
- func (gm *GitMapping) VirtualMergeLabel() string
- type GitPatchStage
- type GitStage
- type ImageCommitInfo
- type InstallStage
- type Interface
- type NewBaseStageOptions
- type NewGitArchiveStageOptions
- type NewGitPatchStageOptions
- type SetupStage
- type StageName
- type UserStage
- type UserWithGitPatchStage
- func (s *UserWithGitPatchStage) GetNextStageDependencies(ctx context.Context, c Conveyor) (string, error)
- func (s *UserWithGitPatchStage) PrepareImage(ctx context.Context, c Conveyor, ...) error
- func (s *UserWithGitPatchStage) SelectSuitableStage(ctx context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error)
- type VirtualMergeOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var AllStages = []StageName{ From, BeforeInstall, DependenciesBeforeInstall, GitArchive, Install, DependenciesAfterInstall, BeforeSetup, DependenciesBeforeSetup, Setup, DependenciesAfterSetup, GitCache, GitLatestPatch, DockerInstructions, Dockerfile, }
View Source
var ErrInvalidBaseImage = errors.New("invalid base image")
Functions ¶
func GetLegacyCompatibleStageName ¶ added in v1.2.59
TODO(compatibility): remove in v1.3
func IsErrInvalidBaseImage ¶ added in v1.2.60
Types ¶
type BaseStage ¶
type BaseStage struct {
// contains filtered or unexported fields
}
func (*BaseStage) FetchDependencies ¶ added in v1.1.23
func (s *BaseStage) FetchDependencies(_ context.Context, _ Conveyor, _ container_runtime.ContainerRuntime, _ docker_registry.DockerRegistryInterface) error
func (*BaseStage) GetContentDigest ¶ added in v1.2.0
func (*BaseStage) GetDependencies ¶
func (s *BaseStage) GetDependencies(_ context.Context, _ Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
func (*BaseStage) GetGitMappings ¶
func (s *BaseStage) GetGitMappings() []*GitMapping
func (*BaseStage) GetImage ¶
func (s *BaseStage) GetImage() container_runtime.LegacyImageInterface
func (*BaseStage) GetNextStageDependencies ¶
func (*BaseStage) IsEmpty ¶
func (s *BaseStage) IsEmpty(_ context.Context, _ Conveyor, _ container_runtime.LegacyImageInterface) (bool, error)
func (*BaseStage) LogDetailedName ¶
func (*BaseStage) PrepareImage ¶
func (s *BaseStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
func (*BaseStage) SelectSuitableStage ¶
func (s *BaseStage) SelectSuitableStage(_ context.Context, c Conveyor, stages []*imagePkg.StageDescription) (*imagePkg.StageDescription, error)
func (*BaseStage) SetContentDigest ¶ added in v1.2.0
func (*BaseStage) SetGitMappings ¶
func (s *BaseStage) SetGitMappings(gitMappings []*GitMapping)
func (*BaseStage) SetImage ¶
func (s *BaseStage) SetImage(image container_runtime.LegacyImageInterface)
type BeforeInstallStage ¶
type BeforeInstallStage struct {
*UserStage
}
func GenerateBeforeInstallStage ¶
func GenerateBeforeInstallStage(ctx context.Context, imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *BeforeInstallStage
func (*BeforeInstallStage) GetDependencies ¶
func (s *BeforeInstallStage) GetDependencies(ctx context.Context, _ Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
func (*BeforeInstallStage) PrepareImage ¶
func (s *BeforeInstallStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
type BeforeSetupStage ¶
type BeforeSetupStage struct {
*UserWithGitPatchStage
}
func GenerateBeforeSetupStage ¶
func GenerateBeforeSetupStage(ctx context.Context, imageBaseConfig *config.StapelImageBase, gitPatchStageOptions *NewGitPatchStageOptions, baseStageOptions *NewBaseStageOptions) *BeforeSetupStage
func (*BeforeSetupStage) GetDependencies ¶
func (s *BeforeSetupStage) GetDependencies(ctx context.Context, c Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
func (*BeforeSetupStage) PrepareImage ¶
func (s *BeforeSetupStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
type ContainerFileDescriptor ¶
type ContextChecksum ¶
type ContextChecksum struct {
// contains filtered or unexported fields
}
func NewContextChecksum ¶
func NewContextChecksum(dockerignorePathMatcher path_matcher.PathMatcher) *ContextChecksum
type Conveyor ¶
type Conveyor interface { GetImportMetadata(ctx context.Context, projectName, id string) (*storage.ImportMetadata, error) PutImportMetadata(ctx context.Context, projectName string, metadata *storage.ImportMetadata) error RmImportMetadata(ctx context.Context, projectName, id string) error GetImageStageContentDigest(imageName, stageName string) string GetImageContentDigest(imageName string) string FetchImageStage(ctx context.Context, imageName, stageName string) error FetchLastNonEmptyImageStage(ctx context.Context, imageName string) error GetImageNameForLastImageStage(imageName string) string GetImageIDForLastImageStage(imageName string) string GetImageNameForImageStage(imageName, stageName string) string GetImageIDForImageStage(imageName, stageName string) string GetImportServer(ctx context.Context, imageName, stageName string) (import_server.ImportServer, error) GetLocalGitRepoVirtualMergeOptions() VirtualMergeOptions GiterminismManager() giterminism_manager.Interface }
type DependenciesAfterInstallStage ¶ added in v1.2.59
type DependenciesAfterInstallStage struct {
*DependenciesStage
}
func GenerateDependenciesAfterInstallStage ¶ added in v1.2.59
func GenerateDependenciesAfterInstallStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesAfterInstallStage
type DependenciesAfterSetupStage ¶ added in v1.2.59
type DependenciesAfterSetupStage struct {
*DependenciesStage
}
func GenerateDependenciesAfterSetupStage ¶ added in v1.2.59
func GenerateDependenciesAfterSetupStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesAfterSetupStage
type DependenciesBeforeInstallStage ¶ added in v1.2.59
type DependenciesBeforeInstallStage struct {
*DependenciesStage
}
func GenerateDependenciesBeforeInstallStage ¶ added in v1.2.59
func GenerateDependenciesBeforeInstallStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeInstallStage
type DependenciesBeforeSetupStage ¶ added in v1.2.59
type DependenciesBeforeSetupStage struct {
*DependenciesStage
}
func GenerateDependenciesBeforeSetupStage ¶ added in v1.2.59
func GenerateDependenciesBeforeSetupStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeSetupStage
type DependenciesStage ¶ added in v1.2.59
type DependenciesStage struct { *BaseStage // contains filtered or unexported fields }
func (*DependenciesStage) GetDependencies ¶ added in v1.2.59
func (s *DependenciesStage) GetDependencies(ctx context.Context, c Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
func (*DependenciesStage) PrepareImage ¶ added in v1.2.59
func (s *DependenciesStage) PrepareImage(ctx context.Context, c Conveyor, _, img container_runtime.LegacyImageInterface) error
type DockerInstructionsStage ¶
type DockerInstructionsStage struct { *BaseStage // contains filtered or unexported fields }
func GenerateDockerInstructionsStage ¶
func GenerateDockerInstructionsStage(imageConfig *config.StapelImage, baseStageOptions *NewBaseStageOptions) *DockerInstructionsStage
func (*DockerInstructionsStage) GetDependencies ¶
func (s *DockerInstructionsStage) GetDependencies(_ context.Context, _ Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
func (*DockerInstructionsStage) PrepareImage ¶
func (s *DockerInstructionsStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
type DockerRunArgs ¶
type DockerRunArgs struct {
// contains filtered or unexported fields
}
func NewDockerRunArgs ¶
type DockerStages ¶
type DockerStages struct {
// contains filtered or unexported fields
}
func NewDockerStages ¶
func NewDockerStages(dockerStages []instructions.Stage, dockerBuildArgsHash map[string]string, dockerMetaArgs []instructions.ArgCommand, dockerTargetStageIndex int) *DockerStages
func (*DockerStages) AddDockerStageEnv ¶ added in v1.1.23
func (*DockerStages) DockerStageArgsHash ¶ added in v1.1.23
func (ds *DockerStages) DockerStageArgsHash(dockerStageID int) map[string]string
func (*DockerStages) DockerStageEnvs ¶ added in v1.1.23
func (ds *DockerStages) DockerStageEnvs(dockerStageID int) map[string]string
func (*DockerStages) ShlexProcessWordWithMetaArgs ¶ added in v1.1.23
func (*DockerStages) ShlexProcessWordWithStageArgsAndEnvs ¶ added in v1.1.23
func (ds *DockerStages) ShlexProcessWordWithStageArgsAndEnvs(dockerStageID int, value string) (string, error)
func (*DockerStages) ShlexProcessWordWithStageEnvs ¶ added in v1.1.23
func (ds *DockerStages) ShlexProcessWordWithStageEnvs(dockerStageID int, value string) (string, error)
type DockerfileStage ¶
type DockerfileStage struct { *DockerRunArgs *DockerStages *ContextChecksum *BaseStage // contains filtered or unexported fields }
func GenerateDockerfileStage ¶
func GenerateDockerfileStage(dockerRunArgs *DockerRunArgs, dockerStages *DockerStages, contextChecksum *ContextChecksum, baseStageOptions *NewBaseStageOptions, dependencies []*config.Dependency) *DockerfileStage
func (*DockerfileStage) FetchDependencies ¶ added in v1.1.23
func (s *DockerfileStage) FetchDependencies(ctx context.Context, c Conveyor, containerRuntime container_runtime.ContainerRuntime, dockerRegistry docker_registry.DockerRegistryInterface) error
func (*DockerfileStage) GetDependencies ¶
func (s *DockerfileStage) GetDependencies(ctx context.Context, c Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
func (*DockerfileStage) PrepareImage ¶
func (s *DockerfileStage) PrepareImage(ctx context.Context, c Conveyor, _, img container_runtime.LegacyImageInterface) error
func (*DockerfileStage) SetupDockerImageBuilder ¶ added in v1.2.26
func (s *DockerfileStage) SetupDockerImageBuilder(b *container_runtime.DockerfileImageBuilder, c Conveyor) error
type FromStage ¶
type FromStage struct { *BaseStage // contains filtered or unexported fields }
func GenerateFromStage ¶
func GenerateFromStage(imageBaseConfig *config.StapelImageBase, baseImageRepoId string, baseStageOptions *NewBaseStageOptions) *FromStage
func (*FromStage) GetDependencies ¶
func (s *FromStage) GetDependencies(_ context.Context, c Conveyor, prevImage, _ container_runtime.LegacyImageInterface) (string, error)
func (*FromStage) PrepareImage ¶
func (s *FromStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
type GitArchiveStage ¶
type GitArchiveStage struct { *GitStage ArchivesDir string ScriptsDir string ContainerArchivesDir string ContainerScriptsDir string }
func NewGitArchiveStage ¶
func NewGitArchiveStage(gitArchiveStageOptions *NewGitArchiveStageOptions, baseStageOptions *NewBaseStageOptions) *GitArchiveStage
func (*GitArchiveStage) GetDependencies ¶
func (s *GitArchiveStage) GetDependencies(ctx context.Context, c Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
TODO: 1.3 add git mapping type (dir, file, ...) to gitArchive stage digest
func (*GitArchiveStage) GetNextStageDependencies ¶
func (*GitArchiveStage) IsEmpty ¶ added in v1.2.12
func (s *GitArchiveStage) IsEmpty(ctx context.Context, c Conveyor, img container_runtime.LegacyImageInterface) (bool, error)
func (*GitArchiveStage) PrepareImage ¶
func (s *GitArchiveStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
func (*GitArchiveStage) SelectSuitableStage ¶
func (s *GitArchiveStage) SelectSuitableStage(ctx context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error)
type GitCacheStage ¶
type GitCacheStage struct {
*GitPatchStage
}
func NewGitCacheStage ¶
func NewGitCacheStage(gitPatchStageOptions *NewGitPatchStageOptions, baseStageOptions *NewBaseStageOptions) *GitCacheStage
func (*GitCacheStage) GetDependencies ¶
func (s *GitCacheStage) GetDependencies(ctx context.Context, c Conveyor, _, prevBuiltImage container_runtime.LegacyImageInterface) (string, error)
func (*GitCacheStage) GetNextStageDependencies ¶
func (*GitCacheStage) IsEmpty ¶
func (s *GitCacheStage) IsEmpty(ctx context.Context, c Conveyor, prevBuiltImage container_runtime.LegacyImageInterface) (bool, error)
func (*GitCacheStage) SelectSuitableStage ¶
func (s *GitCacheStage) SelectSuitableStage(ctx context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error)
type GitLatestPatchStage ¶
type GitLatestPatchStage struct {
*GitPatchStage
}
func NewGitLatestPatchStage ¶
func NewGitLatestPatchStage(gitPatchStageOptions *NewGitPatchStageOptions, baseStageOptions *NewBaseStageOptions) *GitLatestPatchStage
func (*GitLatestPatchStage) GetDependencies ¶
func (s *GitLatestPatchStage) GetDependencies(ctx context.Context, c Conveyor, _, prevBuiltImage container_runtime.LegacyImageInterface) (string, error)
func (*GitLatestPatchStage) GetNextStageDependencies ¶
func (*GitLatestPatchStage) IsEmpty ¶
func (s *GitLatestPatchStage) IsEmpty(ctx context.Context, c Conveyor, prevBuiltImage container_runtime.LegacyImageInterface) (bool, error)
func (*GitLatestPatchStage) SelectSuitableStage ¶
func (s *GitLatestPatchStage) SelectSuitableStage(ctx context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error)
type GitMapping ¶
type GitMapping struct { Name string As string Branch string Tag string Commit string Add string To string Owner string Group string IncludePaths []string ExcludePaths []string StagesDependencies map[StageName][]string ContainerPatchesDir string ContainerArchivesDir string ScriptsDir string ContainerScriptsDir string BaseCommitByPrevBuiltImageName map[string]string // contains filtered or unexported fields }
func NewGitMapping ¶ added in v1.1.23
func NewGitMapping() *GitMapping
func (*GitMapping) AddGitCommitToImageLabels ¶
func (gm *GitMapping) AddGitCommitToImageLabels(image container_runtime.LegacyImageInterface, commitInfo ImageCommitInfo)
func (*GitMapping) ApplyArchiveCommand ¶
func (gm *GitMapping) ApplyArchiveCommand(ctx context.Context, c Conveyor, image container_runtime.LegacyImageInterface) error
func (*GitMapping) ApplyPatchCommand ¶
func (gm *GitMapping) ApplyPatchCommand(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
func (*GitMapping) GetBaseCommitForPrevBuiltImage ¶
func (gm *GitMapping) GetBaseCommitForPrevBuiltImage(ctx context.Context, c Conveyor, prevBuiltImage container_runtime.LegacyImageInterface) (string, error)
func (*GitMapping) GetBuiltImageCommitInfo ¶
func (gm *GitMapping) GetBuiltImageCommitInfo(builtImageLabels map[string]string) (ImageCommitInfo, error)
func (*GitMapping) GetFullName ¶
func (gm *GitMapping) GetFullName() string
func (*GitMapping) GetLatestCommitInfo ¶
func (gm *GitMapping) GetLatestCommitInfo(ctx context.Context, c Conveyor) (ImageCommitInfo, error)
func (*GitMapping) GetParamshash ¶
func (gm *GitMapping) GetParamshash() string
func (*GitMapping) GetPatchContent ¶
func (gm *GitMapping) GetPatchContent(ctx context.Context, c Conveyor, prevBuiltImage container_runtime.LegacyImageInterface) (string, error)
func (*GitMapping) GitRepo ¶
func (gm *GitMapping) GitRepo() git_repo.GitRepo
func (*GitMapping) ImageGitCommitLabel ¶
func (gm *GitMapping) ImageGitCommitLabel() string
func (*GitMapping) IsLocal ¶
func (gm *GitMapping) IsLocal() bool
func (*GitMapping) IsPatchEmpty ¶
func (gm *GitMapping) IsPatchEmpty(ctx context.Context, c Conveyor, prevBuiltImage container_runtime.LegacyImageInterface) (bool, error)
func (*GitMapping) SetGitRepo ¶ added in v1.2.57
func (gm *GitMapping) SetGitRepo(gitRepo git_repo.GitRepo)
func (*GitMapping) StageDependenciesChecksum ¶
func (*GitMapping) VirtualMergeFromCommitLabel ¶
func (gm *GitMapping) VirtualMergeFromCommitLabel() string
func (*GitMapping) VirtualMergeIntoCommitLabel ¶
func (gm *GitMapping) VirtualMergeIntoCommitLabel() string
func (*GitMapping) VirtualMergeLabel ¶
func (gm *GitMapping) VirtualMergeLabel() string
type GitPatchStage ¶
type GitPatchStage struct { *GitStage ScriptsDir string ContainerPatchesDir string ContainerArchivesDir string ContainerScriptsDir string }
func (*GitPatchStage) IsEmpty ¶
func (s *GitPatchStage) IsEmpty(ctx context.Context, c Conveyor, prevBuiltImage container_runtime.LegacyImageInterface) (bool, error)
func (*GitPatchStage) PrepareImage ¶
func (s *GitPatchStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
type GitStage ¶
type GitStage struct {
*BaseStage
}
func (*GitStage) IsEmpty ¶
func (s *GitStage) IsEmpty(ctx context.Context, _ Conveyor, _ container_runtime.LegacyImageInterface) (bool, error)
func (*GitStage) PrepareImage ¶
func (s *GitStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
type ImageCommitInfo ¶
type InstallStage ¶
type InstallStage struct {
*UserWithGitPatchStage
}
func GenerateInstallStage ¶
func GenerateInstallStage(ctx context.Context, imageBaseConfig *config.StapelImageBase, gitPatchStageOptions *NewGitPatchStageOptions, baseStageOptions *NewBaseStageOptions) *InstallStage
func (*InstallStage) GetDependencies ¶
func (s *InstallStage) GetDependencies(ctx context.Context, c Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
func (*InstallStage) PrepareImage ¶
func (s *InstallStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
type Interface ¶
type Interface interface { Name() StageName LogDetailedName() string IsEmpty(ctx context.Context, c Conveyor, prevBuiltImage container_runtime.LegacyImageInterface) (bool, error) FetchDependencies(ctx context.Context, c Conveyor, cr container_runtime.ContainerRuntime, dockerRegistry docker_registry.DockerRegistryInterface) error GetDependencies(ctx context.Context, c Conveyor, prevImage container_runtime.LegacyImageInterface, prevBuiltImage container_runtime.LegacyImageInterface) (string, error) GetNextStageDependencies(ctx context.Context, c Conveyor) (string, error) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error PreRunHook(context.Context, Conveyor) error SetDigest(digest string) GetDigest() string SetContentDigest(contentDigest string) GetContentDigest() string SetImage(container_runtime.LegacyImageInterface) GetImage() container_runtime.LegacyImageInterface SetGitMappings([]*GitMapping) GetGitMappings() []*GitMapping SelectSuitableStage(_ context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error) }
type NewBaseStageOptions ¶
type NewGitPatchStageOptions ¶
type SetupStage ¶
type SetupStage struct {
*UserWithGitPatchStage
}
func GenerateSetupStage ¶
func GenerateSetupStage(ctx context.Context, imageBaseConfig *config.StapelImageBase, gitPatchStageOptions *NewGitPatchStageOptions, baseStageOptions *NewBaseStageOptions) *SetupStage
func (*SetupStage) GetDependencies ¶
func (s *SetupStage) GetDependencies(ctx context.Context, c Conveyor, _, _ container_runtime.LegacyImageInterface) (string, error)
func (*SetupStage) PrepareImage ¶
func (s *SetupStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
type StageName ¶
type StageName string
const ( From StageName = "from" BeforeInstall StageName = "beforeInstall" DependenciesBeforeInstall StageName = "dependenciesBeforeInstall" GitArchive StageName = "gitArchive" Install StageName = "install" DependenciesAfterInstall StageName = "dependenciesAfterInstall" BeforeSetup StageName = "beforeSetup" DependenciesBeforeSetup StageName = "dependenciesBeforeSetup" Setup StageName = "setup" DependenciesAfterSetup StageName = "dependenciesAfterSetup" GitCache StageName = "gitCache" GitLatestPatch StageName = "gitLatestPatch" DockerInstructions StageName = "dockerInstructions" Dockerfile StageName = "dockerfile" )
type UserWithGitPatchStage ¶
type UserWithGitPatchStage struct { *UserStage GitPatchStage *GitPatchStage }
func (*UserWithGitPatchStage) GetNextStageDependencies ¶
func (*UserWithGitPatchStage) PrepareImage ¶
func (s *UserWithGitPatchStage) PrepareImage(ctx context.Context, c Conveyor, prevBuiltImage, image container_runtime.LegacyImageInterface) error
func (*UserWithGitPatchStage) SelectSuitableStage ¶
func (s *UserWithGitPatchStage) SelectSuitableStage(ctx context.Context, c Conveyor, stages []*image.StageDescription) (*image.StageDescription, error)
type VirtualMergeOptions ¶
type VirtualMergeOptions struct {
VirtualMerge bool
}
Source Files ¶
- base.go
- before_install.go
- before_setup.go
- conveyor.go
- dependencies.go
- dependencies_after_install.go
- dependencies_after_setup.go
- dependencies_before_install.go
- dependencies_before_setup.go
- docker_instructions.go
- dockerfile.go
- from.go
- git.go
- git_archive.go
- git_cache.go
- git_latest_patch.go
- git_mapping.go
- git_patch.go
- install.go
- interface.go
- setup.go
- user.go
- user_with_git_patch.go
Click to show internal directories.
Click to hide internal directories.