Documentation ¶
Index ¶
- Constants
- func ApplyLogColorMode(logColorMode string) error
- func ApplyLogOptions(cmdData *CmdData) error
- func EnvsDescription(envs ...Env) string
- 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 GetImagesCleanupPolicies(cmdData *CmdData) (cleanup.ImagesCleanupPolicies, error)
- func GetImagesRepo(projectName string, cmdData *CmdData) (string, error)
- func GetKubernetesNamespace(namespaceOption string, environmentOption string, ...) (string, error)
- func GetLongCommandDescription(text string) string
- func GetNamespace(namespaceOption string) string
- func GetOptionalImagesRepo(projectName string, cmdData *CmdData) string
- func GetProjectDir(cmdData *CmdData) (string, error)
- func GetStagesRepo(cmdData *CmdData) (string, error)
- func GetTagOptions(cmdData *CmdData, opts TagOptionsGetterOptions) (build.TagOptions, error)
- func GetWerfConfig(projectDir string) (*config.WerfConfig, error)
- func LogErrorF(format string, a ...interface{})
- func LogProjectDir(dir string)
- func LogRunningTime(f func() error) error
- func LogVersion()
- func SetupDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupDisablePrettyLog(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 SetupHomeDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupImagesCleanupPolicies(cmdData *CmdData, cmd *cobra.Command)
- func SetupImagesRepo(cmdData *CmdData, cmd *cobra.Command)
- func SetupInsecureRepo(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 SetupLogOptions(cmdData *CmdData, cmd *cobra.Command)
- func SetupNamespace(cmdData *CmdData, cmd *cobra.Command)
- func SetupRelease(cmdData *CmdData, cmd *cobra.Command)
- func SetupSSHKey(cmdData *CmdData, cmd *cobra.Command)
- func SetupStagesStorage(cmdData *CmdData, cmd *cobra.Command)
- func SetupTag(cmdData *CmdData, cmd *cobra.Command)
- func SetupTmpDir(cmdData *CmdData, cmd *cobra.Command)
- type CmdData
- type Env
- type TagOptionsGetterOptions
Constants ¶
View Source
const ( CmdEnvAnno string = "environment" DisableOptionsInUseLineAnno string = "disableOptionsInUseLine" WerfDebugAnsibleArgs Env = "WERF_DEBUG_ANSIBLE_ARGS" WerfSecretKey Env = "WERF_SECRET_KEY" )
Variables ¶
This section is empty.
Functions ¶
func ApplyLogColorMode ¶
func ApplyLogOptions ¶
func EnvsDescription ¶
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 GetKubernetesNamespace ¶
func GetNamespace ¶
func GetOptionalImagesRepo ¶
func GetProjectDir ¶
func GetStagesRepo ¶
func GetTagOptions ¶
func GetTagOptions(cmdData *CmdData, opts TagOptionsGetterOptions) (build.TagOptions, error)
func GetWerfConfig ¶
func GetWerfConfig(projectDir string) (*config.WerfConfig, error)
func LogProjectDir ¶
func LogProjectDir(dir string)
func LogRunningTime ¶
func LogVersion ¶
func LogVersion()
func SetupDisablePrettyLog ¶
func SetupDockerConfig ¶
func SetupDryRun ¶
func SetupEnvironment ¶
func SetupHomeDir ¶
func SetupImagesRepo ¶
func SetupInsecureRepo ¶
func SetupKubeConfig ¶
func SetupKubeContext ¶
func SetupLogColor ¶
func SetupLogOptions ¶
func SetupNamespace ¶
func SetupRelease ¶
func SetupSSHKey ¶
func SetupStagesStorage ¶
func SetupTmpDir ¶
Types ¶
type CmdData ¶
type CmdData struct { Dir *string TmpDir *string HomeDir *string SSHKeys *[]string TagCustom *[]string TagGitBranch *string TagGitTag *string TagGitCommit *string Environment *string Release *string Namespace *string KubeContext *string KubeConfig *string StagesStorage *string ImagesRepo *string DockerConfig *string InsecureRepo *bool DryRun *bool GitTagStrategyLimit *int64 GitTagStrategyExpiryDays *int64 GitCommitStrategyLimit *int64 GitCommitStrategyExpiryDays *int64 DisablePrettyLog *bool LogColorMode *string }
type TagOptionsGetterOptions ¶
type TagOptionsGetterOptions struct {
Optional bool
}
Click to show internal directories.
Click to hide internal directories.