common

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDappfile

func GetDappfile(projectDir string) ([]*config.Dimg, error)

func GetDeployTag

func GetDeployTag(cmdData *CmdData, projectDir string) (string, error)

func GetLocalGitRepo

func GetLocalGitRepo(projectDir string) *git_repo.Local

func GetNamespace

func GetNamespace(namespaceOption string) string

func GetOptionalRepoName

func GetOptionalRepoName(projectName, repoOption string) string

func GetProjectBuildDir

func GetProjectBuildDir(projectName string) (string, error)

func GetProjectDir

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

func GetProjectName

func GetProjectName(cmdData *CmdData, projectDir string) (string, error)

func GetProjectTmpDir

func GetProjectTmpDir() (string, error)

func GetRequiredRepoName

func GetRequiredRepoName(projectName, repoOption string) (string, error)

func GetTagOptions

func GetTagOptions(cmdData *CmdData, projectDir string) (build.TagOptions, error)

func IsGitOwnRepoExists

func IsGitOwnRepoExists(projectDir string) (bool, error)

func RemoveProjectTmpDir

func RemoveProjectTmpDir(dir string)

func SetupDir

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

func SetupHomeDir

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

func SetupName

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

func SetupSSHKey

func SetupSSHKey(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 {
	Name    *string
	Dir     *string
	TmpDir  *string
	HomeDir *string
	SSHKeys *[]string

	Tag        *[]string
	TagBranch  *bool
	TagBuildID *bool
	TagCI      *bool
	TagCommit  *bool
}

Jump to

Keyboard shortcuts

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