Documentation ¶
Index ¶
- func GetProjectName(projectDir string) (string, error)
- func InterfaceToStringArray(stringOrStringArray interface{}, configSection interface{}, doc *doc) ([]string, error)
- func RenderWerfConfig(werfConfigPath, werfConfigTemplatesDir string, imagesToProcess []string) error
- type Ansible
- type AnsibleTask
- type ArtifactExport
- 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) GitMappingExcludePath() []string
- func (c *ExportBase) GitMappingIncludePaths() []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 MetaCleanup
- type MetaCleanupKeepPolicy
- type MetaCleanupKeepPolicyImagesPerReference
- type MetaCleanupKeepPolicyLimit
- type MetaCleanupKeepPolicyReferences
- type MetaDeployTemplates
- type Mount
- type Operator
- type Shell
- type StageDependencies
- type StapelImage
- type StapelImageArtifact
- type StapelImageBase
- type StapelImageInterface
- type WerfConfig
- func (c *WerfConfig) GetAllImages() []ImageInterface
- func (c *WerfConfig) GetArtifact(imageName string) *StapelImageArtifact
- func (c *WerfConfig) GetDockerfileImage(imageName string) *ImageFromDockerfile
- func (c *WerfConfig) GetImage(imageName string) ImageInterface
- func (c *WerfConfig) GetStapelImage(imageName string) *StapelImage
- func (c *WerfConfig) HasImage(imageName string) bool
- func (c *WerfConfig) HasImageOrArtifact(imageName string) bool
- func (c *WerfConfig) HasNamelessImage() bool
- func (c *WerfConfig) ImageTree(interf ImageInterface) (tree []ImageInterface)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectName ¶
func InterfaceToStringArray ¶
func RenderWerfConfig ¶
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 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) GitMappingExcludePath ¶
func (c *ExportBase) GitMappingExcludePath() []string
func (*ExportBase) GitMappingIncludePaths ¶
func (c *ExportBase) GitMappingIncludePaths() []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 }
func (*GitExportBase) GitMappingStageDependencies ¶
func (c *GitExportBase) GitMappingStageDependencies() *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 HerebyIAdmitThatBranchMightBreakReproducibility bool // contains filtered or unexported fields }
type ImageFromDockerfile ¶
type ImageFromDockerfile struct { Name string Dockerfile string Context string Target string Args map[string]interface{} AddHost []string // contains filtered or unexported fields }
func (*ImageFromDockerfile) GetName ¶
func (c *ImageFromDockerfile) GetName() string
type ImageInterface ¶
type ImageInterface interface {
GetName() string
}
type Import ¶
type Meta ¶
type Meta struct { ConfigVersion int Project string DeployTemplates MetaDeployTemplates Cleanup MetaCleanup }
type MetaCleanup ¶ added in v1.1.21
type MetaCleanup struct {
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 {
MetaCleanupKeepPolicyLimit
}
type MetaCleanupKeepPolicyLimit ¶ added in v1.1.23
func (*MetaCleanupKeepPolicyLimit) String ¶ added in v1.1.23
func (c *MetaCleanupKeepPolicyLimit) String() string
type MetaCleanupKeepPolicyReferences ¶ added in v1.1.23
type MetaCleanupKeepPolicyReferences struct { TagRegexp *regexp.Regexp BranchRegexp *regexp.Regexp Limit *MetaCleanupKeepPolicyLimit }
func (*MetaCleanupKeepPolicyReferences) String ¶ added in v1.1.23
func (c *MetaCleanupKeepPolicyReferences) String() string
type MetaDeployTemplates ¶ added in v1.1.21
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
type StapelImageBase ¶
type StapelImageBase struct { Name string From string FromLatest bool HerebyIAdmitThatFromLatestMightBreakReproducibility bool FromImageName string FromImageArtifactName string FromCacheVersion string Git *GitManager Shell *Shell Ansible *Ansible Mount []*Mount Import []*Import // contains filtered or unexported fields }
func (*StapelImageBase) GetName ¶
func (c *StapelImageBase) GetName() string
func (*StapelImageBase) ImageBaseConfig ¶
func (c *StapelImageBase) ImageBaseConfig() *StapelImageBase
func (*StapelImageBase) IsArtifact ¶
func (c *StapelImageBase) IsArtifact() bool
type StapelImageInterface ¶
type StapelImageInterface interface { ImageInterface ImageBaseConfig() *StapelImageBase IsArtifact() bool // contains filtered or unexported methods }
type WerfConfig ¶
type WerfConfig struct { Meta *Meta StapelImages []*StapelImage ImagesFromDockerfile []*ImageFromDockerfile Artifacts []*StapelImageArtifact }
func GetWerfConfig ¶
func GetWerfConfig(werfConfigPath, werfConfigTemplatesDir string, logRenderedFilePath bool) (*WerfConfig, error)
func (*WerfConfig) GetAllImages ¶
func (c *WerfConfig) GetAllImages() []ImageInterface
func (*WerfConfig) GetArtifact ¶
func (c *WerfConfig) GetArtifact(imageName string) *StapelImageArtifact
func (*WerfConfig) GetDockerfileImage ¶
func (c *WerfConfig) GetDockerfileImage(imageName string) *ImageFromDockerfile
func (*WerfConfig) GetImage ¶
func (c *WerfConfig) GetImage(imageName string) ImageInterface
func (*WerfConfig) GetStapelImage ¶
func (c *WerfConfig) GetStapelImage(imageName string) *StapelImage
func (*WerfConfig) HasImage ¶
func (c *WerfConfig) HasImage(imageName string) bool
func (*WerfConfig) HasImageOrArtifact ¶
func (c *WerfConfig) HasImageOrArtifact(imageName string) bool
func (*WerfConfig) HasNamelessImage ¶
func (c *WerfConfig) HasNamelessImage() bool
func (*WerfConfig) ImageTree ¶
func (c *WerfConfig) ImageTree(interf ImageInterface) (tree []ImageInterface)
Source Files ¶
- ansible.go
- ansible_task.go
- artifact_export.go
- common.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_cleanup.go
- meta_deploy_templates.go
- mount.go
- parser.go
- raw_ansible.go
- raw_ansible_task.go
- raw_artifact_export.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_cleanup.go
- raw_meta_deploy_templates.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.