Documentation ¶
Index ¶
- Constants
- func ConvertInt32Value(v string) (int32, error)
- func ConvertIntValue(v string, bitSize int) (int64, error)
- func DisableTerminationSignalsTrap()
- func DockerRegistryInit(cmdData *CmdData) error
- func EnableTerminationSignalsTrap()
- func EnvsDescription(envs ...Env) string
- func GetBoolEnvironmentDefaultFalse(environmentName string) bool
- func GetBoolEnvironmentDefaultTrue(environmentName string) bool
- func GetConveyorOptions(commonCmdData *CmdData) build.ConveyorOptions
- func GetDeployTag(cmdData *CmdData, opts TagOptionsGetterOptions) (string, tag_strategy.TagStrategy, error)
- func GetGitCommitStrategyExpiryDays(cmdData *CmdData) (int64, error)
- func GetGitCommitStrategyLimit(cmdData *CmdData) (int64, error)
- func GetGitTagStrategyExpiryDays(cmdData *CmdData) (int64, error)
- func GetGitTagStrategyLimit(cmdData *CmdData) (int64, error)
- func GetHelmChartDir(projectDir string, cmdData *CmdData) (string, error)
- func GetHelmRelease(releaseOption string, environmentOption string, werfConfig *config.WerfConfig) (string, error)
- func GetHelmReleaseStorageType(helmReleaseStorageType string) (string, error)
- func GetHooksStatusProgressPeriod(cmdData *CmdData) time.Duration
- func GetImagesCleanupPolicies(cmdData *CmdData) (cleanup.ImagesCleanupPolicies, error)
- func GetImagesRepo(projectName string, cmdData *CmdData) (storage.ImagesRepo, error)
- func GetImagesRepoWithOptionalStubRepoAddress(projectName string, cmdData *CmdData) (storage.ImagesRepo, error)
- func GetIntrospectOptions(cmdData *CmdData, werfConfig *config.WerfConfig) (build.IntrospectOptions, error)
- func GetKubernetesNamespace(namespaceOption string, environmentOption string, ...) (string, error)
- func GetLocalGitRepoForImagesCleanup(projectDir string, cmdData *CmdData) (cleaning.GitRepo, error)
- func GetLongCommandDescription(text string) string
- func GetManagedImageName(userSpecifiedImageName string) string
- func GetManagedImagesNames(projectName string, stagesStorage storage.StagesStorage, ...) ([]string, error)
- func GetOptionalImagesRepoAddress(projectName string, cmdData *CmdData) (string, error)
- func GetOptionalStagesStorageAddress(cmdData *CmdData) string
- func GetOptionalWerfConfig(projectDir string, cmdData *CmdData, logRenderedFilePath bool) (*config.WerfConfig, error)
- func GetProjectDir(cmdData *CmdData) (string, error)
- func GetPublishReportFormat(cmdData *CmdData) (build.PublishReportFormat, error)
- func GetRequiredWerfConfig(projectDir string, cmdData *CmdData, logRenderedFilePath bool) (*config.WerfConfig, error)
- func GetStagesSignatureStrategyExpiryDays(cmdData *CmdData) (int64, error)
- func GetStagesSignatureStrategyLimit(cmdData *CmdData) (int64, error)
- func GetStagesStorage(containerRuntime container_runtime.ContainerRuntime, cmdData *CmdData) (storage.StagesStorage, error)
- func GetStagesStorageAddress(cmdData *CmdData) (string, error)
- func GetStagesStorageCache(synchronization *SynchronizationParams) (storage.StagesStorageCache, error)
- func GetStatusProgressPeriod(cmdData *CmdData) time.Duration
- func GetStorageLockManager(synchronization *SynchronizationParams) (storage.LockManager, error)
- func GetTagOptions(cmdData *CmdData, opts TagOptionsGetterOptions) (build.TagOptions, error)
- func GetThreeWayMergeMode(threeWayMergeModeParam string) (helm.ThreeWayMergeModeType, error)
- func GetUserExtraAnnotations(cmdData *CmdData) (map[string]string, error)
- func GetUserExtraLabels(cmdData *CmdData) (map[string]string, error)
- func GetWerfConfigPath(projectDir string, cmdData *CmdData, required bool) (string, error)
- func GetWerfConfigTemplatesDir(projectDir string, cmdData *CmdData) string
- func InitKubedog() error
- func LogKubeContext(kubeContext string)
- func LogRunningTime(f func() error) error
- func LogVersion()
- func PrintHelp(cmd *cobra.Command)
- func ProcessLogColorMode(cmdData *CmdData) error
- func ProcessLogOptions(cmdData *CmdData) error
- func ProcessLogProjectDir(cmdData *CmdData, projectDir string)
- func ProcessLogTerminalWidth(cmdData *CmdData) error
- func SetupAddAnnotations(cmdData *CmdData, cmd *cobra.Command)
- func SetupAddLabels(cmdData *CmdData, cmd *cobra.Command)
- func SetupAllowGitShallowClone(cmdData *CmdData, cmd *cobra.Command)
- func SetupCommonRepoData(cmdData *CmdData, cmd *cobra.Command)
- func SetupConfigPath(cmdData *CmdData, cmd *cobra.Command)
- func SetupConfigTemplatesDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupDockerConfig(cmdData *CmdData, cmd *cobra.Command, extraDesc string)
- func SetupDockerHubPasswordForRepoData(repoData *RepoData, cmd *cobra.Command, paramName string, ...)
- func SetupDockerHubTokenForRepoData(repoData *RepoData, cmd *cobra.Command, paramName string, ...)
- func SetupDockerHubUsernameForRepoData(repoData *RepoData, cmd *cobra.Command, paramName string, ...)
- func SetupDryRun(cmdData *CmdData, cmd *cobra.Command)
- func SetupEnvironment(cmdData *CmdData, cmd *cobra.Command)
- func SetupGitHistorySynchronization(cmdData *CmdData, cmd *cobra.Command)
- func SetupGitUnshallow(cmdData *CmdData, cmd *cobra.Command)
- func SetupGithubTokenForRepoData(repoData *RepoData, cmd *cobra.Command, paramName string, ...)
- func SetupHarborPasswordForRepoData(repoData *RepoData, cmd *cobra.Command, paramName string, ...)
- func SetupHarborUsernameForRepoData(repoData *RepoData, cmd *cobra.Command, paramName string, ...)
- func SetupHelmChartDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupHelmReleaseStorageNamespace(cmdData *CmdData, cmd *cobra.Command)
- func SetupHelmReleaseStorageType(cmdData *CmdData, cmd *cobra.Command)
- func SetupHomeDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupHooksStatusProgressPeriod(cmdData *CmdData, cmd *cobra.Command)
- func SetupIgnoreSecretKey(cmdData *CmdData, cmd *cobra.Command)
- func SetupImagesCleanupPolicies(cmdData *CmdData, cmd *cobra.Command)
- func SetupImagesRepoOptions(cmdData *CmdData, cmd *cobra.Command)
- func SetupImplementationForRepoData(repoData *RepoData, cmd *cobra.Command, paramName string, ...)
- func SetupInsecureRegistry(cmdData *CmdData, cmd *cobra.Command)
- func SetupIntrospectStage(cmdData *CmdData, cmd *cobra.Command)
- func SetupKubeConfig(cmdData *CmdData, cmd *cobra.Command)
- func SetupKubeConfigBase64(cmdData *CmdData, cmd *cobra.Command)
- func SetupKubeContext(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogOptions(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogProjectDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupNamespace(cmdData *CmdData, cmd *cobra.Command)
- func SetupProjectName(cmdData *CmdData, cmd *cobra.Command)
- func SetupPublishReportFormat(cmdData *CmdData, cmd *cobra.Command)
- func SetupPublishReportPath(cmdData *CmdData, cmd *cobra.Command)
- func SetupQuayTokenForRepoData(repoData *RepoData, cmd *cobra.Command, paramName string, ...)
- func SetupRelease(cmdData *CmdData, cmd *cobra.Command)
- func SetupReleasesHistoryMax(cmdData *CmdData, cmd *cobra.Command)
- func SetupSSHKey(cmdData *CmdData, cmd *cobra.Command)
- func SetupSecretValues(cmdData *CmdData, cmd *cobra.Command)
- func SetupSet(cmdData *CmdData, cmd *cobra.Command)
- func SetupSetString(cmdData *CmdData, cmd *cobra.Command)
- func SetupSkipTlsVerifyRegistry(cmdData *CmdData, cmd *cobra.Command)
- func SetupStagesStorageOptions(cmdData *CmdData, cmd *cobra.Command)
- func SetupStatusProgressPeriod(cmdData *CmdData, cmd *cobra.Command)
- func SetupSynchronization(cmdData *CmdData, cmd *cobra.Command)
- func SetupTag(cmdData *CmdData, cmd *cobra.Command)
- func SetupThreeWayMergeMode(cmdData *CmdData, cmd *cobra.Command)
- func SetupTmpDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupValues(cmdData *CmdData, cmd *cobra.Command)
- func SetupVirtualMerge(cmdData *CmdData, cmd *cobra.Command)
- func SetupVirtualMergeFromCommit(cmdData *CmdData, cmd *cobra.Command)
- func SetupVirtualMergeIntoCommit(cmdData *CmdData, cmd *cobra.Command)
- func SetupWithoutKube(cmdData *CmdData, cmd *cobra.Command)
- func TerminateWithError(errMsg string, exitCode int)
- func ValidateArgumentCount(expectedCount int, args []string, cmd *cobra.Command) error
- func ValidateMaximumNArgs(maxArgs int, args []string, cmd *cobra.Command) error
- func ValidateMinimumNArgs(minArgs int, args []string, cmd *cobra.Command) error
- func ValidateRepoImplementation(implementation string) error
- func WithoutTerminationSignalsTrap(f func() error) error
- type CmdData
- type Env
- type RepoData
- type SynchronizationParams
- type SynchronizationType
- type TagOptionsGetterOptions
Constants ¶
View Source
const ( CleaningCommandsForceOptionDescription = "First remove containers that use werf docker images which are going to be deleted" StubImagesRepoAddress = "stub/repository" )
Variables ¶
This section is empty.
Functions ¶
func ConvertInt32Value ¶
func DisableTerminationSignalsTrap ¶
func DisableTerminationSignalsTrap()
func DockerRegistryInit ¶
func EnableTerminationSignalsTrap ¶
func EnableTerminationSignalsTrap()
func EnvsDescription ¶
func GetBoolEnvironmentDefaultTrue ¶ added in v1.1.21
func GetConveyorOptions ¶
func GetConveyorOptions(commonCmdData *CmdData) build.ConveyorOptions
func GetDeployTag ¶
func GetDeployTag(cmdData *CmdData, opts TagOptionsGetterOptions) (string, tag_strategy.TagStrategy, error)
func GetGitTagStrategyLimit ¶
func GetHelmRelease ¶
func GetImagesCleanupPolicies ¶
func GetImagesCleanupPolicies(cmdData *CmdData) (cleanup.ImagesCleanupPolicies, error)
func GetImagesRepo ¶
func GetImagesRepo(projectName string, cmdData *CmdData) (storage.ImagesRepo, error)
func GetImagesRepoWithOptionalStubRepoAddress ¶
func GetImagesRepoWithOptionalStubRepoAddress(projectName string, cmdData *CmdData) (storage.ImagesRepo, error)
func GetIntrospectOptions ¶
func GetIntrospectOptions(cmdData *CmdData, werfConfig *config.WerfConfig) (build.IntrospectOptions, error)
func GetKubernetesNamespace ¶
func GetLocalGitRepoForImagesCleanup ¶ added in v1.1.23
func GetManagedImageName ¶
func GetManagedImagesNames ¶
func GetManagedImagesNames(projectName string, stagesStorage storage.StagesStorage, werfConfig *config.WerfConfig) ([]string, error)
func GetOptionalWerfConfig ¶
func GetProjectDir ¶
func GetPublishReportFormat ¶
func GetPublishReportFormat(cmdData *CmdData) (build.PublishReportFormat, error)
func GetRequiredWerfConfig ¶
func GetStagesStorage ¶
func GetStagesStorage(containerRuntime container_runtime.ContainerRuntime, cmdData *CmdData) (storage.StagesStorage, error)
func GetStagesStorageAddress ¶
func GetStagesStorageCache ¶
func GetStagesStorageCache(synchronization *SynchronizationParams) (storage.StagesStorageCache, error)
func GetStatusProgressPeriod ¶
func GetStorageLockManager ¶
func GetStorageLockManager(synchronization *SynchronizationParams) (storage.LockManager, error)
func GetTagOptions ¶
func GetTagOptions(cmdData *CmdData, opts TagOptionsGetterOptions) (build.TagOptions, error)
func GetThreeWayMergeMode ¶
func GetThreeWayMergeMode(threeWayMergeModeParam string) (helm.ThreeWayMergeModeType, error)
func GetUserExtraAnnotations ¶
func GetWerfConfigPath ¶
func InitKubedog ¶
func InitKubedog() error
func LogKubeContext ¶
func LogKubeContext(kubeContext string)
func LogRunningTime ¶
func LogVersion ¶
func LogVersion()
func ProcessLogColorMode ¶
func ProcessLogOptions ¶
func ProcessLogProjectDir ¶
func ProcessLogTerminalWidth ¶
func SetupAddAnnotations ¶
func SetupAddLabels ¶
func SetupAllowGitShallowClone ¶ added in v1.1.23
func SetupCommonRepoData ¶
func SetupConfigPath ¶
func SetupConfigTemplatesDir ¶
func SetupDockerConfig ¶
func SetupDryRun ¶
func SetupEnvironment ¶
func SetupGitHistorySynchronization ¶ added in v1.1.21
func SetupGitUnshallow ¶ added in v1.1.23
func SetupHelmChartDir ¶
func SetupHomeDir ¶
func SetupIgnoreSecretKey ¶
func SetupImagesRepoOptions ¶
func SetupInsecureRegistry ¶
func SetupIntrospectStage ¶
func SetupKubeConfig ¶
func SetupKubeConfigBase64 ¶ added in v1.1.23
func SetupKubeContext ¶
func SetupLogOptions ¶
func SetupLogProjectDir ¶
func SetupNamespace ¶
func SetupProjectName ¶
func SetupPublishReportPath ¶
func SetupRelease ¶
func SetupReleasesHistoryMax ¶
func SetupSSHKey ¶
func SetupSecretValues ¶
func SetupSetString ¶
func SetupSynchronization ¶
func SetupThreeWayMergeMode ¶
func SetupTmpDir ¶
func SetupValues ¶
func SetupVirtualMerge ¶
func SetupWithoutKube ¶
func TerminateWithError ¶
func ValidateArgumentCount ¶
func ValidateMaximumNArgs ¶
func ValidateMinimumNArgs ¶
Types ¶
type CmdData ¶
type CmdData struct { ProjectName *string Dir *string ConfigPath *string ConfigTemplatesDir *string TmpDir *string HomeDir *string SSHKeys *[]string TagCustom *[]string TagGitBranch *string TagGitTag *string TagGitCommit *string TagByStagesSignature *bool HelmChartDir *string Environment *string Release *string Namespace *string AddAnnotations *[]string AddLabels *[]string KubeContext *string KubeConfig *string KubeConfigBase64 *string HelmReleaseStorageNamespace *string HelmReleaseStorageType *string StatusProgressPeriodSeconds *int64 HooksStatusProgressPeriodSeconds *int64 ReleasesHistoryMax *int Set *[]string SetString *[]string Values *[]string SecretValues *[]string IgnoreSecretKey *bool CommonRepoData *RepoData StagesStorage *string StagesStorageRepoData *RepoData ImagesRepo *string ImagesRepoMode *string ImagesRepoData *RepoData Synchronization *string GitHistorySynchronization *bool GitUnshallow *bool AllowGitShallowClone *bool DockerConfig *string InsecureRegistry *bool SkipTlsVerifyRegistry *bool DryRun *bool GitTagStrategyLimit *int64 GitTagStrategyExpiryDays *int64 GitCommitStrategyLimit *int64 GitCommitStrategyExpiryDays *int64 StagesSignatureStrategyLimit *int64 StagesSignatureStrategyExpiryDays *int64 WithoutKube *bool StagesToIntrospect *[]string LogDebug *bool LogPretty *bool LogVerbose *bool LogQuiet *bool LogColorMode *string LogProjectDir *bool LogTerminalWidth *int64 ThreeWayMergeMode *string PublishReportPath *string PublishReportFormat *string VirtualMerge *bool VirtualMergeFromCommit *string VirtualMergeIntoCommit *string }
type RepoData ¶
type RepoData struct { IsCommon bool DesignationStorageName string Implementation *string DockerHubUsername *string DockerHubPassword *string DockerHubToken *string GitHubToken *string HarborUsername *string HarborPassword *string QuayToken *string }
func MergeRepoData ¶
type SynchronizationParams ¶ added in v1.1.23
type SynchronizationParams struct { Address string SynchronizationType SynchronizationType KubeParams *storage.KubernetesSynchronizationParams }
func GetSynchronization ¶
func GetSynchronization(cmdData *CmdData, projectName string, stagesStorage storage.StagesStorage) (*SynchronizationParams, error)
type SynchronizationType ¶ added in v1.1.23
type SynchronizationType string
const ( LocalSynchronization SynchronizationType = "LocalSynchronization" KubernetesSynchronization SynchronizationType = "KubernetesSynchronization" HttpSynchronization SynchronizationType = "HttpSynchronization" )
type TagOptionsGetterOptions ¶
type TagOptionsGetterOptions struct {
Optional bool
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.