common

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name string
	// GITCOMMIT will hold the commit SHA to be used in the version command.
	GITCOMMIT = "0"
	// VERSION will hold the version number to be used in the version command.
	VERSION = "dev"

	REST_API_PORT          uint16
	REST_API_STORAGE       string
	REST_API_STORAGEPATH   string
	REST_API_STORAGEREGION string
)

Functions

func CloneGit

func CloneGit(executeDir string, gitUrl string, targetFolder string) error

func CopyDir added in v0.7.2

func CopyDir(src string, dst string) (err error)

func CopyFile added in v0.7.2

func CopyFile(src, dst string) (err error)

func DependencyCheck

func DependencyCheck(bin string)

DependencyCheck check if the binary is installed

func ErrorCheck

func ErrorCheck(msg string, err error)

ErrorCheck is responsbile to check if there is any error returned by a command.

func ExitErrorf

func ExitErrorf(msg string, args ...interface{})

ExitErrorf exits the program with an error code of '1' and an error message.

func GetFilePath

func GetFilePath(fileName string) string

GetFilePath fetches and returns the current working directory.

func ProvisionerList added in v0.7.4

func ProvisionerList() string

func ReadViperConfigFile added in v0.6.0

func ReadViperConfigFile(configName string)

ReadViperConfigFile is define the config paths and read the configuration file.

func ReplaceGit

func ReplaceGit(executeDir string)

Types

type AwsCredentials added in v0.6.0

type AwsCredentials struct {
	AwsAccessKeyID   string
	AwsSecretKey     string
	AwsAccessSSHKey  string
	AwsDefaultRegion string
}

AwsCredentials defines the structure to hold AWS auth credentials.

func GetCredentials added in v0.6.0

func GetCredentials() AwsCredentials

GetCredentials get the aws credentials from the config file.

Jump to

Keyboard shortcuts

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