Documentation ¶
Index ¶
- Constants
- func EnvsDescription(envs ...Env) string
- func GetDeployTag(cmdData *CmdData) (string, tag_scheme.TagScheme, error)
- func GetHelmRelease(releaseOption string, environmentOption string, werfConfig *config.WerfConfig) (string, error)
- func GetImagesRepo(projectName string, cmdData *CmdData) (string, error)
- func GetKubeContext(kubeContextOption string) string
- 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) (build.TagOptions, error)
- func GetWerfConfig(projectDir string) (*config.WerfConfig, error)
- func LogProjectDir(dir string)
- func LogRunningTime(f func() error) error
- func LogVersion()
- func SetupCleanupImagesPassword(cmdData *CmdData, cmd *cobra.Command)
- func SetupCleanupImagesUsername(cmdData *CmdData, cmd *cobra.Command)
- func SetupDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupDryRun(cmdData *CmdData, cmd *cobra.Command)
- func SetupEnvironment(cmdData *CmdData, cmd *cobra.Command)
- func SetupHomeDir(cmdData *CmdData, cmd *cobra.Command)
- func SetupImagesPasswordWithUsage(cmdData *CmdData, cmd *cobra.Command, usage string)
- func SetupImagesRepo(cmdData *CmdData, cmd *cobra.Command)
- func SetupImagesUsernameWithUsage(cmdData *CmdData, cmd *cobra.Command, usage string)
- func SetupKubeContext(cmdData *CmdData, cmd *cobra.Command)
- func SetupNamespace(cmdData *CmdData, cmd *cobra.Command)
- func SetupPullPassword(cmdData *CmdData, cmd *cobra.Command)
- func SetupPullUsername(cmdData *CmdData, cmd *cobra.Command)
- func SetupRelease(cmdData *CmdData, cmd *cobra.Command)
- func SetupSSHKey(cmdData *CmdData, cmd *cobra.Command)
- func SetupStagesPassword(cmdData *CmdData, cmd *cobra.Command)
- func SetupStagesRepo(cmdData *CmdData, cmd *cobra.Command)
- func SetupStagesUsername(cmdData *CmdData, cmd *cobra.Command)
- func SetupTag(cmdData *CmdData, cmd *cobra.Command)
- func SetupTmpDir(cmdData *CmdData, cmd *cobra.Command)
- type CmdData
- type Env
Constants ¶
View Source
const ( CmdEnvAnno string = "environment" DisableOptionsInUseLineAnno string = "disableOptionsInUseLine" WerfAnsibleArgs Env = "WERF_ANSIBLE_ARGS" WerfDockerConfig Env = "WERF_DOCKER_CONFIG" WerfInsecureRepo Env = "WERF_INSECURE_REPO" WerfSecretKey Env = "WERF_SECRET_KEY" WerfDisableStagesCleanupDatePeriodPolicy Env = "WERF_DISABLE_STAGES_CLEANUP_DATE_PERIOD_POLICY" WerfGitTagsExpiryDatePeriodPolicy Env = "WERF_GIT_TAGS_EXPIRY_DATE_PERIOD_POLICY" WerfGitTagsLimitPolicy Env = "WERF_GIT_TAGS_LIMIT_POLICY" WerfGitCommitsExpiryDatePeriodPolicy Env = "WERF_GIT_COMMITS_EXPIRY_DATE_PERIOD_POLICY" WerfGitCommitsLimitPolicy Env = "WERF_GIT_COMMITS_LIMIT_POLICY" )
Variables ¶
This section is empty.
Functions ¶
func EnvsDescription ¶
func GetDeployTag ¶
func GetDeployTag(cmdData *CmdData) (string, tag_scheme.TagScheme, error)
func GetHelmRelease ¶
func GetKubeContext ¶
func GetKubernetesNamespace ¶
func GetNamespace ¶
func GetOptionalImagesRepo ¶
func GetProjectDir ¶
func GetStagesRepo ¶
func GetTagOptions ¶
func GetTagOptions(cmdData *CmdData) (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 SetupDryRun ¶
func SetupEnvironment ¶
func SetupHomeDir ¶
func SetupImagesRepo ¶
func SetupKubeContext ¶
func SetupNamespace ¶
func SetupPullPassword ¶
func SetupPullUsername ¶
func SetupRelease ¶
func SetupSSHKey ¶
func SetupStagesPassword ¶
func SetupStagesRepo ¶
func SetupStagesUsername ¶
func SetupTmpDir ¶
Types ¶
type CmdData ¶
type CmdData struct { Dir *string TmpDir *string HomeDir *string SSHKeys *[]string Tag *[]string TagGitBranch *string TagGitTag *string TagGitCommit *string Environment *string Release *string Namespace *string KubeContext *string StagesRepo *string StagesUsername *string StagesPassword *string ImagesRepo *string ImagesUsername *string ImagesPassword *string PullUsername *string PullPassword *string DryRun bool }
Click to show internal directories.
Click to hide internal directories.