Documentation ¶
Index ¶
- Constants
- func ConvertInt32Value(v string) (int32, error)
- func ConvertInt64Value(v string) (int64, error)
- func ConvertIntValue(v string, bitSize int) (int64, error)
- func DisableTerminationSignalsTrap()
- func EnableTerminationSignalsTrap()
- func EnvsDescription(envs ...Env) string
- func GetBoolEnvironmentDefaultFalse(environmentName string) bool
- func GetBoolEnvironmentDefaultTrue(environmentName string) bool
- 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 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) (string, error)
- func GetImagesRepoMode(cmdData *CmdData) (string, error)
- func GetIntrospectOptions(cmdData *CmdData, werfConfig *config.WerfConfig) (build.IntrospectOptions, error)
- func GetKubernetesNamespace(namespaceOption string, environmentOption string, ...) (string, error)
- func GetLongCommandDescription(text string) string
- func GetManagedImageName(userSpecifiedImageName string) string
- func GetManagedImagesNames(projectName string, stagesStorage storage.StagesStorage, ...) ([]string, error)
- func GetNamespace(namespaceOption string) string
- func GetOptionalImagesRepo(projectName string, cmdData *CmdData) (string, error)
- func GetOptionalWerfConfig(projectDir string, logRenderedFilePath bool) (*config.WerfConfig, error)
- func GetProjectDir(cmdData *CmdData) (string, error)
- func GetRequiredWerfConfig(projectDir string, logRenderedFilePath bool) (*config.WerfConfig, error)
- func GetStagesStorage(cmdData *CmdData) (string, error)
- func GetStatusProgressPeriod(cmdData *CmdData) time.Duration
- func GetSynchronization(cmdData *CmdData) (string, 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, required bool) (string, error)
- 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 SetupDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupDockerConfig(cmdData *CmdData, cmd *cobra.Command, extraDesc string)
- func SetupDryRun(cmdData *CmdData, cmd *cobra.Command)
- func SetupEnvironment(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 SetupImagesRepo(cmdData *CmdData, cmd *cobra.Command)
- func SetupImagesRepoMode(cmdData *CmdData, cmd *cobra.Command)
- func SetupInsecureRegistry(cmdData *CmdData, cmd *cobra.Command)
- func SetupIntrospectStage(cmdData *CmdData, cmd *cobra.Command)
- func SetupKubeConfig(cmdData *CmdData, cmd *cobra.Command)
- func SetupKubeContext(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogColor(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogDebug(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogOptions(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogPretty(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogProjectDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogQuiet(cmdData *CmdData, cmd *cobra.Command)
- func SetupLogVerbose(cmdData *CmdData, cmd *cobra.Command)
- func SetupNamespace(cmdData *CmdData, cmd *cobra.Command)
- func SetupProjectName(cmdData *CmdData, cmd *cobra.Command)
- 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 SetupStagesStorage(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 SetupTerminalWidth(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 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 WithTerminationSignalsTrap(f func() error) error
- func WithoutTerminationSignalsTrap(f func() error) error
- type CmdData
- type Env
- type ImagesRepoManager
- func (m *ImagesRepoManager) ImageRepo(imageName string) string
- func (m *ImagesRepoManager) ImageRepoTag(imageName, tag string) string
- func (m *ImagesRepoManager) ImageRepoWithTag(imageName, tag string) string
- func (m *ImagesRepoManager) ImagesRepo() string
- func (m *ImagesRepoManager) IsMonorepo() bool
- type TagOptionsGetterOptions
Constants ¶
View Source
const ( CmdEnvAnno string = "environment" DisableOptionsInUseLineAnno string = "disableOptionsInUseLine" WerfDebugAnsibleArgs Env = "WERF_DEBUG_ANSIBLE_ARGS" WerfSecretKey Env = "WERF_SECRET_KEY" WerfOldSecretKey Env = "WERF_OLD_SECRET_KEY" )
View Source
const ( MultirepoImagesRepoMode = "multirepo" MonorepoImagesRepoMode = "monorepo" MonorepoTagPartsSeparator = "-" )
View Source
const (
CleaningCommandsForceOptionDescription = "Remove containers that are based on deleting werf docker images"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertInt32Value ¶
func ConvertInt64Value ¶
func DisableTerminationSignalsTrap ¶
func DisableTerminationSignalsTrap()
func EnableTerminationSignalsTrap ¶
func EnableTerminationSignalsTrap()
func EnvsDescription ¶
func GetBoolEnvironmentDefaultFalse ¶ added in v1.1.0
func GetBoolEnvironmentDefaultTrue ¶ added in v1.1.0
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 GetImagesRepoMode ¶
func GetIntrospectOptions ¶
func GetIntrospectOptions(cmdData *CmdData, werfConfig *config.WerfConfig) (build.IntrospectOptions, error)
func GetKubernetesNamespace ¶
func GetManagedImageName ¶ added in v1.1.0
func GetManagedImagesNames ¶ added in v1.1.0
func GetManagedImagesNames(projectName string, stagesStorage storage.StagesStorage, werfConfig *config.WerfConfig) ([]string, error)
func GetNamespace ¶
func GetOptionalImagesRepo ¶
func GetOptionalWerfConfig ¶ added in v1.1.0
func GetOptionalWerfConfig(projectDir string, logRenderedFilePath bool) (*config.WerfConfig, error)
func GetProjectDir ¶
func GetRequiredWerfConfig ¶ added in v1.1.0
func GetRequiredWerfConfig(projectDir string, logRenderedFilePath bool) (*config.WerfConfig, error)
func GetStagesStorage ¶ added in v1.1.0
func GetStatusProgressPeriod ¶
func GetSynchronization ¶ added in v1.1.0
func GetTagOptions ¶
func GetTagOptions(cmdData *CmdData, opts TagOptionsGetterOptions) (build.TagOptions, error)
func GetThreeWayMergeMode ¶
func GetThreeWayMergeMode(threeWayMergeModeParam string) (helm.ThreeWayMergeModeType, error)
func GetUserExtraAnnotations ¶
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 SetupDockerConfig ¶
func SetupDryRun ¶
func SetupEnvironment ¶
func SetupHomeDir ¶
func SetupIgnoreSecretKey ¶
func SetupImagesRepo ¶
func SetupImagesRepoMode ¶
func SetupInsecureRegistry ¶
func SetupIntrospectStage ¶
func SetupKubeConfig ¶
func SetupKubeContext ¶
func SetupLogColor ¶
func SetupLogDebug ¶ added in v1.1.0
func SetupLogOptions ¶
func SetupLogPretty ¶
func SetupLogProjectDir ¶
func SetupLogQuiet ¶ added in v1.1.0
func SetupLogVerbose ¶ added in v1.1.0
func SetupNamespace ¶
func SetupProjectName ¶ added in v1.1.0
func SetupRelease ¶
func SetupReleasesHistoryMax ¶
func SetupSSHKey ¶
func SetupSecretValues ¶
func SetupSetString ¶
func SetupStagesStorage ¶
func SetupSynchronization ¶ added in v1.1.0
func SetupTerminalWidth ¶
func SetupThreeWayMergeMode ¶
func SetupTmpDir ¶
func SetupValues ¶
func SetupWithoutKube ¶
func TerminateWithError ¶
func ValidateArgumentCount ¶
func ValidateMaximumNArgs ¶
func ValidateMinimumNArgs ¶
Types ¶
type CmdData ¶
type CmdData struct { ProjectName *string Dir *string TmpDir *string HomeDir *string SSHKeys *[]string TagCustom *[]string TagGitBranch *string TagGitTag *string TagGitCommit *string TagByStagesSignature *bool Environment *string Release *string Namespace *string AddAnnotations *[]string AddLabels *[]string KubeContext *string KubeConfig *string HelmReleaseStorageNamespace *string HelmReleaseStorageType *string StatusProgressPeriodSeconds *int64 HooksStatusProgressPeriodSeconds *int64 ReleasesHistoryMax *int Set *[]string SetString *[]string Values *[]string SecretValues *[]string IgnoreSecretKey *bool StagesStorage *string Synchronization *string ImagesRepo *string ImagesRepoMode *string DockerConfig *string InsecureRegistry *bool SkipTlsVerifyRegistry *bool DryRun *bool GitTagStrategyLimit *int64 GitTagStrategyExpiryDays *int64 GitCommitStrategyLimit *int64 GitCommitStrategyExpiryDays *int64 WithoutKube *bool StagesToIntrospect *[]string LogDebug *bool LogPretty *bool LogVerbose *bool LogQuiet *bool LogColorMode *string LogProjectDir *bool LogTerminalWidth *int64 ThreeWayMergeMode *string }
type ImagesRepoManager ¶
type ImagesRepoManager struct {
// contains filtered or unexported fields
}
func GetImagesRepoManager ¶
func GetImagesRepoManager(imagesRepo, imagesRepoMode string) (*ImagesRepoManager, error)
func (*ImagesRepoManager) ImageRepo ¶
func (m *ImagesRepoManager) ImageRepo(imageName string) string
func (*ImagesRepoManager) ImageRepoTag ¶
func (m *ImagesRepoManager) ImageRepoTag(imageName, tag string) string
func (*ImagesRepoManager) ImageRepoWithTag ¶
func (m *ImagesRepoManager) ImageRepoWithTag(imageName, tag string) string
func (*ImagesRepoManager) ImagesRepo ¶
func (m *ImagesRepoManager) ImagesRepo() string
func (*ImagesRepoManager) IsMonorepo ¶
func (m *ImagesRepoManager) IsMonorepo() bool
type TagOptionsGetterOptions ¶
type TagOptionsGetterOptions struct {
Optional bool
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.