Documentation ¶
Index ¶
- Variables
- func CloneGit(executeDir string, gitUrl string, targetFolder string) error
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func DependencyCheck(bin string)
- func ErrorCheck(msg string, err error)
- func ExitErrorf(msg string, args ...interface{})
- func GetFilePath(fileName string) string
- func ProvisionerList() string
- func ReadViperConfigFile(configName string)
- func ReplaceGit(executeDir string)
- type AwsCredentials
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 DependencyCheck ¶
func DependencyCheck(bin string)
DependencyCheck check if the binary is installed
func ErrorCheck ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.