Documentation
¶
Index ¶
- Constants
- type ArtifactImportAfterInstallStage
- type ArtifactImportAfterSetupStage
- type ArtifactImportBeforeInstallStage
- type ArtifactImportBeforeSetupStage
- type ArtifactImportStage
- type BaseStage
- func (s *BaseStage) AfterImageSyncDockerStateHook(_ Conveyor) error
- func (s *BaseStage) GetDependencies(_ Conveyor, _ image.Image) (string, error)
- func (s *BaseStage) GetGitArtifacts() []*GitArtifact
- func (s *BaseStage) GetImage() image.Image
- func (s *BaseStage) GetSignature() string
- func (s *BaseStage) IsEmpty(_ Conveyor, _ image.Image) (bool, error)
- func (s *BaseStage) Name() StageName
- func (s *BaseStage) PreRunHook(_ Conveyor) error
- func (s *BaseStage) PrepareImage(_ Conveyor, prevBuiltImage, image image.Image) error
- func (s *BaseStage) SetGitArtifacts(gitArtifacts []*GitArtifact)
- func (s *BaseStage) SetImage(image image.Image)
- func (s *BaseStage) SetSignature(signature string)
- type BeforeInstallStage
- type BeforeSetupStage
- type ContainerFileDescriptor
- type Conveyor
- type DockerInstructionsStage
- type FromStage
- type GAArchiveStage
- type GALatestPatchStage
- type GAPatchStage
- type GAPostSetupPatchStage
- type GAStage
- type GitArtifact
- func (ga *GitArtifact) AddGACommitToImageLabels(image image.Image, commit string)
- func (ga *GitArtifact) ApplyArchiveCommand(image image.Image) error
- func (ga *GitArtifact) ApplyPatchCommand(prevBuiltImage, image image.Image) error
- func (ga *GitArtifact) GetCommitsToPatch(prevBuiltImage image.Image) (string, string, error)
- func (ga *GitArtifact) GetFullName() string
- func (ga *GitArtifact) GetGACommitFromImageLabels(prevImage image.Image) string
- func (ga *GitArtifact) GetParamshash() string
- func (ga *GitArtifact) GitRepo() git_repo.GitRepo
- func (ga *GitArtifact) ImageGACommitLabel() string
- func (ga *GitArtifact) IsEmpty() (bool, error)
- func (ga *GitArtifact) IsLocal() bool
- func (ga *GitArtifact) IsPatchEmpty(prevBuiltImage image.Image) (bool, error)
- func (ga *GitArtifact) LatestCommit() (string, error)
- func (ga *GitArtifact) PatchSize(fromCommit string) (int64, error)
- func (ga *GitArtifact) StageDependenciesChecksum(stageName StageName) (string, error)
- type InstallStage
- type Interface
- type NewBaseStageOptions
- type NewGAArchiveStageOptions
- type NewGaPatchStageOptions
- type SetupStage
- type StageName
- type UserStage
- type UserWithGAPatchStage
Constants ¶
View Source
const GAArchiveResetCommitRegex = "(\\[dapp reset\\])|(\\[reset dapp\\])"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactImportAfterInstallStage ¶
type ArtifactImportAfterInstallStage struct {
*ArtifactImportStage
}
func GenerateArtifactImportAfterInstallStage ¶
func GenerateArtifactImportAfterInstallStage(dimgBaseConfig *config.DimgBase, baseStageOptions *NewBaseStageOptions) *ArtifactImportAfterInstallStage
type ArtifactImportAfterSetupStage ¶
type ArtifactImportAfterSetupStage struct {
*ArtifactImportStage
}
func GenerateArtifactImportAfterSetupStage ¶
func GenerateArtifactImportAfterSetupStage(dimgBaseConfig *config.DimgBase, baseStageOptions *NewBaseStageOptions) *ArtifactImportAfterSetupStage
type ArtifactImportBeforeInstallStage ¶
type ArtifactImportBeforeInstallStage struct {
*ArtifactImportStage
}
func GenerateArtifactImportBeforeInstallStage ¶
func GenerateArtifactImportBeforeInstallStage(dimgBaseConfig *config.DimgBase, baseStageOptions *NewBaseStageOptions) *ArtifactImportBeforeInstallStage
type ArtifactImportBeforeSetupStage ¶
type ArtifactImportBeforeSetupStage struct {
*ArtifactImportStage
}
func GenerateArtifactImportBeforeSetupStage ¶
func GenerateArtifactImportBeforeSetupStage(dimgBaseConfig *config.DimgBase, baseStageOptions *NewBaseStageOptions) *ArtifactImportBeforeSetupStage
type ArtifactImportStage ¶
type ArtifactImportStage struct {
*BaseStage
// contains filtered or unexported fields
}
func (*ArtifactImportStage) GetDependencies ¶
func (*ArtifactImportStage) PreRunHook ¶
func (s *ArtifactImportStage) PreRunHook(c Conveyor) error
func (*ArtifactImportStage) PrepareImage ¶
func (s *ArtifactImportStage) PrepareImage(c Conveyor, _, image image.Image) error
type BaseStage ¶
type BaseStage struct {
// contains filtered or unexported fields
}
func (*BaseStage) AfterImageSyncDockerStateHook ¶
func (*BaseStage) GetDependencies ¶
func (*BaseStage) GetGitArtifacts ¶
func (s *BaseStage) GetGitArtifacts() []*GitArtifact
func (*BaseStage) GetSignature ¶
func (*BaseStage) PreRunHook ¶
func (*BaseStage) PrepareImage ¶
func (*BaseStage) SetGitArtifacts ¶
func (s *BaseStage) SetGitArtifacts(gitArtifacts []*GitArtifact)
func (*BaseStage) SetSignature ¶
type BeforeInstallStage ¶
type BeforeInstallStage struct {
*UserStage
}
func GenerateBeforeInstallStage ¶
func GenerateBeforeInstallStage(dimgBaseConfig *config.DimgBase, baseStageOptions *NewBaseStageOptions) *BeforeInstallStage
func (*BeforeInstallStage) GetDependencies ¶
func (*BeforeInstallStage) PrepareImage ¶
func (s *BeforeInstallStage) PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
type BeforeSetupStage ¶
type BeforeSetupStage struct {
*UserWithGAPatchStage
}
func GenerateBeforeSetupStage ¶
func GenerateBeforeSetupStage(dimgBaseConfig *config.DimgBase, gaPatchStageOptions *NewGaPatchStageOptions, baseStageOptions *NewBaseStageOptions) *BeforeSetupStage
func (*BeforeSetupStage) GetDependencies ¶
func (*BeforeSetupStage) PrepareImage ¶
func (s *BeforeSetupStage) PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
type ContainerFileDescriptor ¶
type DockerInstructionsStage ¶
type DockerInstructionsStage struct {
*BaseStage
// contains filtered or unexported fields
}
func GenerateDockerInstructionsStage ¶
func GenerateDockerInstructionsStage(dimgConfig *config.Dimg, baseStageOptions *NewBaseStageOptions) *DockerInstructionsStage
func (*DockerInstructionsStage) GetDependencies ¶
func (*DockerInstructionsStage) PrepareImage ¶
func (s *DockerInstructionsStage) PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
type FromStage ¶
type FromStage struct {
*BaseStage
// contains filtered or unexported fields
}
func GenerateFromStage ¶
func GenerateFromStage(dimgBaseConfig *config.DimgBase, baseStageOptions *NewBaseStageOptions) *FromStage
func (*FromStage) GetDependencies ¶
type GAArchiveStage ¶
func NewGAArchiveStage ¶
func NewGAArchiveStage(gaArchiveStageOptions *NewGAArchiveStageOptions, baseStageOptions *NewBaseStageOptions) *GAArchiveStage
func (*GAArchiveStage) GetDependencies ¶
func (*GAArchiveStage) PrepareImage ¶
func (s *GAArchiveStage) PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
type GALatestPatchStage ¶
type GALatestPatchStage struct {
*GAPatchStage
}
func NewGALatestPatchStage ¶
func NewGALatestPatchStage(gaPatchStageOptions *NewGaPatchStageOptions, baseStageOptions *NewBaseStageOptions) *GALatestPatchStage
func (*GALatestPatchStage) GetDependencies ¶
type GAPatchStage ¶
func (*GAPatchStage) PrepareImage ¶
func (s *GAPatchStage) PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
type GAPostSetupPatchStage ¶
type GAPostSetupPatchStage struct {
*GAPatchStage
}
func NewGAPostSetupPatchStage ¶
func NewGAPostSetupPatchStage(gaPatchStageOptions *NewGaPatchStageOptions, baseStageOptions *NewBaseStageOptions) *GAPostSetupPatchStage
func (*GAPostSetupPatchStage) GetDependencies ¶
type GAStage ¶
type GAStage struct {
*BaseStage
}
func (*GAStage) AfterImageSyncDockerStateHook ¶
type GitArtifact ¶
type GitArtifact struct {
GitRepoInterface git_repo.GitRepo
LocalGitRepo *git_repo.Local
RemoteGitRepo *git_repo.Remote
Name string
As string
Branch string
Tag string
Commit string
To string
RepoPath string
Cwd string
Owner string
Group string
IncludePaths []string
ExcludePaths []string
StagesDependencies map[StageName][]string
PatchesDir string
ContainerPatchesDir string
ArchivesDir string
ContainerArchivesDir string
}
func (*GitArtifact) AddGACommitToImageLabels ¶
func (ga *GitArtifact) AddGACommitToImageLabels(image image.Image, commit string)
func (*GitArtifact) ApplyArchiveCommand ¶
func (ga *GitArtifact) ApplyArchiveCommand(image image.Image) error
func (*GitArtifact) ApplyPatchCommand ¶
func (ga *GitArtifact) ApplyPatchCommand(prevBuiltImage, image image.Image) error
func (*GitArtifact) GetCommitsToPatch ¶
func (*GitArtifact) GetFullName ¶
func (ga *GitArtifact) GetFullName() string
func (*GitArtifact) GetGACommitFromImageLabels ¶
func (ga *GitArtifact) GetGACommitFromImageLabels(prevImage image.Image) string
func (*GitArtifact) GetParamshash ¶
func (ga *GitArtifact) GetParamshash() string
func (*GitArtifact) GitRepo ¶
func (ga *GitArtifact) GitRepo() git_repo.GitRepo
func (*GitArtifact) ImageGACommitLabel ¶
func (ga *GitArtifact) ImageGACommitLabel() string
func (*GitArtifact) IsEmpty ¶
func (ga *GitArtifact) IsEmpty() (bool, error)
func (*GitArtifact) IsLocal ¶
func (ga *GitArtifact) IsLocal() bool
func (*GitArtifact) IsPatchEmpty ¶
func (ga *GitArtifact) IsPatchEmpty(prevBuiltImage image.Image) (bool, error)
func (*GitArtifact) LatestCommit ¶
func (ga *GitArtifact) LatestCommit() (string, error)
func (*GitArtifact) StageDependenciesChecksum ¶
func (ga *GitArtifact) StageDependenciesChecksum(stageName StageName) (string, error)
type InstallStage ¶
type InstallStage struct {
*UserWithGAPatchStage
}
func GenerateInstallStage ¶
func GenerateInstallStage(dimgBaseConfig *config.DimgBase, gaPatchStageOptions *NewGaPatchStageOptions, baseStageOptions *NewBaseStageOptions) *InstallStage
func (*InstallStage) GetDependencies ¶
func (*InstallStage) PrepareImage ¶
func (s *InstallStage) PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
type Interface ¶
type Interface interface {
Name() StageName
IsEmpty(c Conveyor, prevBuiltImage image.Image) (bool, error)
GetDependencies(c Conveyor, prevImage image.Image) (string, error)
PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
AfterImageSyncDockerStateHook(Conveyor) error
PreRunHook(Conveyor) error
SetSignature(signature string)
GetSignature() string
SetImage(image.Image)
GetImage() image.Image
SetGitArtifacts([]*GitArtifact)
GetGitArtifacts() []*GitArtifact
}
type NewBaseStageOptions ¶
type NewGaPatchStageOptions ¶
type SetupStage ¶
type SetupStage struct {
*UserWithGAPatchStage
}
func GenerateSetupStage ¶
func GenerateSetupStage(dimgBaseConfig *config.DimgBase, gaPatchStageOptions *NewGaPatchStageOptions, baseStageOptions *NewBaseStageOptions) *SetupStage
func (*SetupStage) GetDependencies ¶
func (*SetupStage) PrepareImage ¶
func (s *SetupStage) PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
type StageName ¶
type StageName string
const ( From StageName = "from" BeforeInstall StageName = "before_install" ArtifactImportBeforeInstall StageName = "before_install_artifact" GAArchive StageName = "g_a_archive" Install StageName = "install" ArtifactImportAfterInstall StageName = "after_install_artifact" BeforeSetup StageName = "before_setup" ArtifactImportBeforeSetup StageName = "before_setup_artifact" Setup StageName = "setup" ArtifactImportAfterSetup StageName = "after_setup_artifact" GAPostSetupPatch StageName = "g_a_post_setup_patch" GALatestPatch StageName = "g_a_latest_patch" DockerInstructions StageName = "docker_instructions" )
type UserWithGAPatchStage ¶
type UserWithGAPatchStage struct {
*UserStage
GAPatchStage *GAPatchStage
}
func (*UserWithGAPatchStage) AfterImageSyncDockerStateHook ¶
func (s *UserWithGAPatchStage) AfterImageSyncDockerStateHook(c Conveyor) error
func (*UserWithGAPatchStage) PrepareImage ¶
func (s *UserWithGAPatchStage) PrepareImage(c Conveyor, prevBuiltImage, image image.Image) error
Source Files
¶
- artifact_import.go
- artifact_import_after_install.go
- artifact_import_after_setup.go
- artifact_import_before_install.go
- artifact_import_before_setup.go
- base.go
- before_install.go
- before_setup.go
- conveyor.go
- docker_instructions.go
- from.go
- ga.go
- ga_archive.go
- ga_latest_patch.go
- ga_patch.go
- ga_post_setup_patch.go
- git_artifact.go
- install.go
- interface.go
- setup.go
- user.go
- user_with_ga_patch.go
Click to show internal directories.
Click to hide internal directories.