common

package
v1.0.0-alpha.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 EnvsDescription(envs ...Env) string

func GetDeployTag

func GetDeployTag(cmdData *CmdData) (string, tag_scheme.TagScheme, error)

func GetHelmRelease

func GetHelmRelease(releaseOption string, environmentOption string, werfConfig *config.WerfConfig) (string, error)

func GetImagesRepo

func GetImagesRepo(projectName string, cmdData *CmdData) (string, error)

func GetKubeContext

func GetKubeContext(kubeContextOption string) string

func GetKubernetesNamespace

func GetKubernetesNamespace(namespaceOption string, environmentOption string, werfConfig *config.WerfConfig) (string, error)

func GetLongCommandDescription

func GetLongCommandDescription(text string) string

func GetNamespace

func GetNamespace(namespaceOption string) string

func GetOptionalImagesRepo

func GetOptionalImagesRepo(projectName string, cmdData *CmdData) string

func GetProjectDir

func GetProjectDir(cmdData *CmdData) (string, error)

func GetStagesRepo

func GetStagesRepo(cmdData *CmdData) (string, error)

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 LogRunningTime(f func() error) error

func LogVersion

func LogVersion()

func SetupCleanupImagesPassword

func SetupCleanupImagesPassword(cmdData *CmdData, cmd *cobra.Command)

func SetupCleanupImagesUsername

func SetupCleanupImagesUsername(cmdData *CmdData, cmd *cobra.Command)

func SetupDir

func SetupDir(cmdData *CmdData, cmd *cobra.Command)

func SetupDryRun

func SetupDryRun(cmdData *CmdData, cmd *cobra.Command)

func SetupEnvironment

func SetupEnvironment(cmdData *CmdData, cmd *cobra.Command)

func SetupHomeDir

func SetupHomeDir(cmdData *CmdData, cmd *cobra.Command)

func SetupImagesPasswordWithUsage

func SetupImagesPasswordWithUsage(cmdData *CmdData, cmd *cobra.Command, usage string)

func SetupImagesRepo

func SetupImagesRepo(cmdData *CmdData, cmd *cobra.Command)

func SetupImagesUsernameWithUsage

func SetupImagesUsernameWithUsage(cmdData *CmdData, cmd *cobra.Command, usage string)

func SetupKubeContext

func SetupKubeContext(cmdData *CmdData, cmd *cobra.Command)

func SetupNamespace

func SetupNamespace(cmdData *CmdData, cmd *cobra.Command)

func SetupPullPassword

func SetupPullPassword(cmdData *CmdData, cmd *cobra.Command)

func SetupPullUsername

func SetupPullUsername(cmdData *CmdData, cmd *cobra.Command)

func SetupRelease

func SetupRelease(cmdData *CmdData, cmd *cobra.Command)

func SetupSSHKey

func SetupSSHKey(cmdData *CmdData, cmd *cobra.Command)

func SetupStagesPassword

func SetupStagesPassword(cmdData *CmdData, cmd *cobra.Command)

func SetupStagesRepo

func SetupStagesRepo(cmdData *CmdData, cmd *cobra.Command)

func SetupStagesUsername

func SetupStagesUsername(cmdData *CmdData, cmd *cobra.Command)

func SetupTag

func SetupTag(cmdData *CmdData, cmd *cobra.Command)

func SetupTmpDir

func SetupTmpDir(cmdData *CmdData, cmd *cobra.Command)

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
}

type Env

type Env string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL