common

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 ApplyLogColorMode(logColorMode string) error

func ApplyLogOptions

func ApplyLogOptions(cmdData *CmdData) error

func EnvsDescription

func EnvsDescription(envs ...Env) string

func GetDeployTag

func GetDeployTag(cmdData *CmdData, opts TagOptionsGetterOptions) (string, tag_strategy.TagStrategy, error)

func GetGitCommitStrategyExpiryDays

func GetGitCommitStrategyExpiryDays(cmdData *CmdData) (int64, error)

func GetGitCommitStrategyLimit

func GetGitCommitStrategyLimit(cmdData *CmdData) (int64, error)

func GetGitTagStrategyExpiryDays

func GetGitTagStrategyExpiryDays(cmdData *CmdData) (int64, error)

func GetGitTagStrategyLimit

func GetGitTagStrategyLimit(cmdData *CmdData) (int64, error)

func GetHelmRelease

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

func GetImagesCleanupPolicies

func GetImagesCleanupPolicies(cmdData *CmdData) (cleanup.ImagesCleanupPolicies, error)

func GetImagesRepo

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

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, opts TagOptionsGetterOptions) (build.TagOptions, error)

func GetWerfConfig

func GetWerfConfig(projectDir string) (*config.WerfConfig, error)

func LogErrorF

func LogErrorF(format string, a ...interface{})

func LogProjectDir

func LogProjectDir(dir string)

func LogRunningTime

func LogRunningTime(f func() error) error

func LogVersion

func LogVersion()

func SetupDir

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

func SetupDisablePrettyLog

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

func SetupDockerConfig

func SetupDockerConfig(cmdData *CmdData, cmd *cobra.Command, extraDesc string)

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 SetupImagesCleanupPolicies

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

func SetupImagesRepo

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

func SetupInsecureRepo

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

func SetupKubeConfig

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

func SetupKubeContext

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

func SetupLogColor

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

func SetupLogOptions

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

func SetupNamespace

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

func SetupRelease

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

func SetupSSHKey

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

func SetupStagesStorage

func SetupStagesStorage(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

	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 Env

type Env string

type TagOptionsGetterOptions

type TagOptionsGetterOptions struct {
	Optional bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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