Documentation
¶
Index ¶
- func GetDefaultProjectName(ctx context.Context, giterminismManager giterminism_manager.Interface) (string, error)
- func InterfaceToStringArray(stringOrStringArray, configSection interface{}, doc *doc) ([]string, error)
- func RenderWerfConfig(ctx context.Context, ...) error
- type Ansible
- type AnsibleTask
- type ArtifactExport
- type Dependency
- type DependencyImport
- type DependencyImportType
- type DependsOn
- type Docker
- type ExportBase
- func (c *ExportBase) AddExcludePath(arg string)
- func (c *ExportBase) AutoExcludeExportAndCheck(exp autoExcludeExport) bool
- func (c *ExportBase) GetExcludePathsForAutoExclude() []string
- func (c *ExportBase) GetIncludePathsForAutoExclude() []string
- func (c *ExportBase) GetRaw() interface{}
- func (c *ExportBase) GetTo() string
- func (c *ExportBase) GitMappingAdd() string
- func (c *ExportBase) GitMappingTo() string
- type GitExport
- type GitExportBase
- type GitLocal
- type GitLocalExport
- type GitManager
- type GitRemote
- type GitRemoteExport
- type ImageFromDockerfile
- type ImageInterface
- type Import
- type Meta
- type MetaBuild
- type MetaCleanup
- type MetaCleanupKeepPolicy
- type MetaCleanupKeepPolicyImagesPerReference
- type MetaCleanupKeepPolicyReferences
- type MetaCleanupKeepPolicyReferencesLimit
- type MetaDeploy
- type MetaGitWorktree
- type Mount
- type Operator
- type Shell
- type StageDependencies
- type StapelImage
- type StapelImageArtifact
- type StapelImageBase
- type StapelImageInterface
- type WerfConfig
- func (c *WerfConfig) CheckImagesExistence(imageNameList []string, onlyFinal bool) error
- func (c *WerfConfig) GetImage(imageName string) ImageInterface
- func (c *WerfConfig) GetImageGraphList(imageNameList []string) ([]imageGraph, error)
- func (c *WerfConfig) GetImageNameList(onlyFinal bool) []string
- func (c *WerfConfig) GetSpecificImages(imageNameList []string, onlyFinal bool) ([]ImageInterface, error)
- func (c *WerfConfig) GroupImagesByIndependentSets(imageNameList []string) (sets [][]ImageInterface, err error)
- func (c *WerfConfig) Images(onlyFinal bool) []ImageInterface
- type WerfConfigOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultProjectName ¶ added in v1.2.5
func InterfaceToStringArray ¶
func RenderWerfConfig ¶
func RenderWerfConfig(ctx context.Context, customWerfConfigRelPath, customWerfConfigTemplatesDirRelPath string, imageNameList []string, giterminismManager giterminism_manager.Interface, opts WerfConfigOptions) error
Types ¶
type Ansible ¶
type Ansible struct {
BeforeInstall []*AnsibleTask
Install []*AnsibleTask
BeforeSetup []*AnsibleTask
Setup []*AnsibleTask
CacheVersion string
BeforeInstallCacheVersion string
InstallCacheVersion string
BeforeSetupCacheVersion string
SetupCacheVersion string
// contains filtered or unexported fields
}
func (*Ansible) GetDumpConfigSection ¶
type AnsibleTask ¶
type AnsibleTask struct {
Config interface{}
// contains filtered or unexported fields
}
func (*AnsibleTask) GetDumpConfigSection ¶
func (c *AnsibleTask) GetDumpConfigSection() string
type ArtifactExport ¶
type ArtifactExport struct {
*ExportBase
// contains filtered or unexported fields
}
type Dependency ¶ added in v1.2.59
type Dependency struct {
ImageName string
Before string
After string
Imports []*DependencyImport
// contains filtered or unexported fields
}
type DependencyImport ¶ added in v1.2.59
type DependencyImport struct {
Type DependencyImportType
TargetBuildArg string
TargetEnv string
// contains filtered or unexported fields
}
type DependencyImportType ¶ added in v1.2.59
type DependencyImportType string
const ( ImageNameImport DependencyImportType = "ImageName" ImageTagImport DependencyImportType = "ImageTag" ImageRepoImport DependencyImportType = "ImageRepo" ImageIDImport DependencyImportType = "ImageID" ImageDigestImport DependencyImportType = "ImageDigest" )
type ExportBase ¶
type ExportBase struct {
Add string
To string
IncludePaths []string
ExcludePaths []string
Owner string
Group string
// contains filtered or unexported fields
}
func (*ExportBase) AddExcludePath ¶
func (c *ExportBase) AddExcludePath(arg string)
func (*ExportBase) AutoExcludeExportAndCheck ¶
func (c *ExportBase) AutoExcludeExportAndCheck(exp autoExcludeExport) bool
func (*ExportBase) GetExcludePathsForAutoExclude ¶
func (c *ExportBase) GetExcludePathsForAutoExclude() []string
func (*ExportBase) GetIncludePathsForAutoExclude ¶
func (c *ExportBase) GetIncludePathsForAutoExclude() []string
func (*ExportBase) GetRaw ¶
func (c *ExportBase) GetRaw() interface{}
func (*ExportBase) GetTo ¶
func (c *ExportBase) GetTo() string
func (*ExportBase) GitMappingAdd ¶
func (c *ExportBase) GitMappingAdd() string
func (*ExportBase) GitMappingTo ¶
func (c *ExportBase) GitMappingTo() string
type GitExport ¶
type GitExport struct {
*ExportBase
// contains filtered or unexported fields
}
type GitExportBase ¶
type GitExportBase struct {
*GitExport
StageDependencies *StageDependencies
}
type GitLocal ¶
type GitLocal struct {
*GitLocalExport
// contains filtered or unexported fields
}
type GitLocalExport ¶
type GitLocalExport struct {
*GitExportBase
// contains filtered or unexported fields
}
type GitManager ¶
type GitRemote ¶
type GitRemote struct {
*GitRemoteExport
Name string
Url string
// contains filtered or unexported fields
}
type GitRemoteExport ¶
type GitRemoteExport struct {
*GitLocalExport
Branch string
Tag string
Commit string
// contains filtered or unexported fields
}
type ImageFromDockerfile ¶
type ImageFromDockerfile struct {
Name string
Dockerfile string
Context string
ContextAddFiles []string
Target string
Args map[string]interface{}
AddHost []string
Network string
SSH string
Dependencies []*Dependency
Staged bool
// contains filtered or unexported fields
}
func (*ImageFromDockerfile) GetName ¶
func (c *ImageFromDockerfile) GetName() string
func (*ImageFromDockerfile) IsFinal ¶ added in v1.2.319
func (c *ImageFromDockerfile) IsFinal() bool
func (*ImageFromDockerfile) IsStapel ¶ added in v1.2.59
func (c *ImageFromDockerfile) IsStapel() bool
func (*ImageFromDockerfile) Platform ¶ added in v1.2.232
func (c *ImageFromDockerfile) Platform() []string
type ImageInterface ¶
type Import ¶
type Meta ¶
type Meta struct {
ConfigVersion int
Project string
Deploy MetaDeploy
Cleanup MetaCleanup
GitWorktree MetaGitWorktree
Build MetaBuild
}
type MetaCleanup ¶ added in v1.1.21
type MetaCleanup struct {
DisableKubernetesBasedPolicy bool
DisableGitHistoryBasedPolicy bool
DisableBuiltWithinLastNHoursPolicy bool
KeepImagesBuiltWithinLastNHours uint64
KeepPolicies []*MetaCleanupKeepPolicy
}
type MetaCleanupKeepPolicy ¶ added in v1.1.23
type MetaCleanupKeepPolicy struct {
References MetaCleanupKeepPolicyReferences
ImagesPerReference MetaCleanupKeepPolicyImagesPerReference
}
func (*MetaCleanupKeepPolicy) String ¶ added in v1.1.23
func (p *MetaCleanupKeepPolicy) String() string
type MetaCleanupKeepPolicyImagesPerReference ¶ added in v1.1.23
type MetaCleanupKeepPolicyImagesPerReference struct {
// contains filtered or unexported fields
}
func NewMetaCleanupKeepPolicyImagesPerReference ¶ added in v1.2.325
func NewMetaCleanupKeepPolicyImagesPerReference(last *int, in *time.Duration, operator *Operator) MetaCleanupKeepPolicyImagesPerReference
func (*MetaCleanupKeepPolicyImagesPerReference) Last ¶ added in v1.2.325
func (c *MetaCleanupKeepPolicyImagesPerReference) Last() int
func (*MetaCleanupKeepPolicyImagesPerReference) Operator ¶ added in v1.2.325
func (c *MetaCleanupKeepPolicyImagesPerReference) Operator() Operator
func (*MetaCleanupKeepPolicyImagesPerReference) String ¶ added in v1.2.325
func (c *MetaCleanupKeepPolicyImagesPerReference) String() string
type MetaCleanupKeepPolicyReferences ¶ added in v1.1.23
type MetaCleanupKeepPolicyReferences struct {
TagRegexp *regexp.Regexp
BranchRegexp *regexp.Regexp
Limit *MetaCleanupKeepPolicyReferencesLimit
}
func (*MetaCleanupKeepPolicyReferences) String ¶ added in v1.1.23
func (c *MetaCleanupKeepPolicyReferences) String() string
type MetaCleanupKeepPolicyReferencesLimit ¶ added in v1.2.325
type MetaCleanupKeepPolicyReferencesLimit struct {
// contains filtered or unexported fields
}
func NewMetaCleanupKeepPolicyReferencesLimit ¶ added in v1.2.325
func NewMetaCleanupKeepPolicyReferencesLimit(last *int, in *time.Duration, operator *Operator) *MetaCleanupKeepPolicyReferencesLimit
func (*MetaCleanupKeepPolicyReferencesLimit) Last ¶ added in v1.2.325
func (c *MetaCleanupKeepPolicyReferencesLimit) Last() int
func (*MetaCleanupKeepPolicyReferencesLimit) Operator ¶ added in v1.2.325
func (c *MetaCleanupKeepPolicyReferencesLimit) Operator() Operator
func (*MetaCleanupKeepPolicyReferencesLimit) String ¶ added in v1.2.325
func (c *MetaCleanupKeepPolicyReferencesLimit) String() string
type MetaDeploy ¶ added in v1.2.2
type MetaGitWorktree ¶ added in v1.2.2
type MetaGitWorktree struct {
ForceShallowClone *bool
AllowUnshallow *bool
AllowFetchingOriginBranchesAndTags *bool
}
func (MetaGitWorktree) GetAllowFetchingOriginBranchesAndTags ¶ added in v1.2.2
func (obj MetaGitWorktree) GetAllowFetchingOriginBranchesAndTags() bool
func (MetaGitWorktree) GetAllowUnshallow ¶ added in v1.2.2
func (obj MetaGitWorktree) GetAllowUnshallow() bool
func (MetaGitWorktree) GetForceShallowClone ¶ added in v1.2.2
func (obj MetaGitWorktree) GetForceShallowClone() bool
type Shell ¶
type Shell struct {
BeforeInstall []string
Install []string
BeforeSetup []string
Setup []string
CacheVersion string
BeforeInstallCacheVersion string
InstallCacheVersion string
BeforeSetupCacheVersion string
SetupCacheVersion string
// contains filtered or unexported fields
}
func (*Shell) GetDumpConfigSection ¶
type StageDependencies ¶
type StapelImage ¶
type StapelImage struct {
*StapelImageBase
Docker *Docker
}
type StapelImageArtifact ¶
type StapelImageArtifact struct {
*StapelImageBase
}
func (*StapelImageArtifact) IsArtifact ¶
func (c *StapelImageArtifact) IsArtifact() bool
func (*StapelImageArtifact) IsFinal ¶ added in v1.2.319
func (c *StapelImageArtifact) IsFinal() bool
type StapelImageBase ¶
type StapelImageBase struct {
Name string
From string
FromLatest bool
FromImageName string
FromArtifactName string
FromCacheVersion string
Git *GitManager
Shell *Shell
Ansible *Ansible
Mount []*Mount
Import []*Import
Dependencies []*Dependency
// contains filtered or unexported fields
}
func (*StapelImageBase) GetName ¶
func (c *StapelImageBase) GetName() string
func (*StapelImageBase) ImageBaseConfig ¶
func (c *StapelImageBase) ImageBaseConfig() *StapelImageBase
func (*StapelImageBase) IsFinal ¶ added in v1.2.319
func (c *StapelImageBase) IsFinal() bool
func (*StapelImageBase) IsGitAfterPatchDisabled ¶ added in v1.2.319
func (c *StapelImageBase) IsGitAfterPatchDisabled() bool
func (*StapelImageBase) IsStapel ¶ added in v1.2.59
func (c *StapelImageBase) IsStapel() bool
func (*StapelImageBase) Platform ¶ added in v1.2.232
func (c *StapelImageBase) Platform() []string
type StapelImageInterface ¶
type StapelImageInterface interface {
ImageInterface
ImageBaseConfig() *StapelImageBase
IsGitAfterPatchDisabled() bool
}
type WerfConfig ¶
type WerfConfig struct {
Meta *Meta
// contains filtered or unexported fields
}
func GetWerfConfig ¶
func GetWerfConfig(ctx context.Context, customWerfConfigRelPath, customWerfConfigTemplatesDirRelPath string, giterminismManager giterminism_manager.Interface, opts WerfConfigOptions) (string, *WerfConfig, error)
func (*WerfConfig) CheckImagesExistence ¶ added in v1.2.319
func (c *WerfConfig) CheckImagesExistence(imageNameList []string, onlyFinal bool) error
func (*WerfConfig) GetImage ¶
func (c *WerfConfig) GetImage(imageName string) ImageInterface
func (*WerfConfig) GetImageGraphList ¶ added in v1.2.66
func (c *WerfConfig) GetImageGraphList(imageNameList []string) ([]imageGraph, error)
func (*WerfConfig) GetImageNameList ¶ added in v1.2.240
func (c *WerfConfig) GetImageNameList(onlyFinal bool) []string
func (*WerfConfig) GetSpecificImages ¶ added in v1.2.66
func (c *WerfConfig) GetSpecificImages(imageNameList []string, onlyFinal bool) ([]ImageInterface, error)
func (*WerfConfig) GroupImagesByIndependentSets ¶ added in v1.2.66
func (c *WerfConfig) GroupImagesByIndependentSets(imageNameList []string) (sets [][]ImageInterface, err error)
func (*WerfConfig) Images ¶ added in v1.2.319
func (c *WerfConfig) Images(onlyFinal bool) []ImageInterface
type WerfConfigOptions ¶ added in v1.2.1
Source Files
¶
- ansible.go
- ansible_task.go
- artifact_export.go
- common.go
- dependency.go
- dependency_import.go
- dependency_import_type.go
- docker.go
- errors.go
- export_base.go
- git_export.go
- git_export_base.go
- git_local.go
- git_local_export.go
- git_manager.go
- git_remote.go
- git_remote_export.go
- image_from_dockerfile.go
- image_interface.go
- import.go
- meta.go
- meta_build.go
- meta_cleanup.go
- meta_deploy.go
- meta_git_worktree.go
- mount.go
- parser.go
- raw_ansible.go
- raw_ansible_task.go
- raw_artifact_export.go
- raw_dependency.go
- raw_dependency_import.go
- raw_docker.go
- raw_export_base.go
- raw_git.go
- raw_git_export.go
- raw_image_from_dockerfile.go
- raw_import.go
- raw_meta.go
- raw_meta_build.go
- raw_meta_cleanup.go
- raw_meta_deploy.go
- raw_meta_git_worktree.go
- raw_mount.go
- raw_shell.go
- raw_stage_dependencies.go
- raw_stapel_image.go
- shell.go
- stage_dependencies.go
- stapel_image.go
- stapel_image_artifact.go
- stapel_image_base.go
- stapel_image_interface.go
- werf.go
Click to show internal directories.
Click to hide internal directories.