Documentation ¶
Index ¶
- Constants
- Variables
- func AbsolutePath(path string) string
- func ArrayIncludes(a string, list []string) bool
- func CheckCliCache() []byte
- func CheckDir(p string) error
- func CheckExists(p string) (s os.FileInfo, err error)
- func CheckRequired(s []string, i int, arg string) string
- func Copy(src, dst string) error
- func DecryptCliToken(currentKey string, creds map[string]string) error
- func Difference(slice1 []string, slice2 []string) (dStr []string, dInt []int)
- func EncryptCliToken(currentKey string, creds map[string]string) (string, error)
- func FindDir(pathS, rx string) (found []string)
- func InitEnv(skipAuthReq bool) (err error)
- func MkTempDir() string
- func NormalizeRootPath(p string, root string, remote string) string
- func OptArgDest(args cli.Args, i int, def string) string
- func OptDest(d string, def string) (s string)
- func PrFatalf(format string, a ...interface{})
- func PrHeaderf(format string, a ...interface{})
- func PrNoticef(format string, a ...interface{})
- func PrResultf(format string, a ...interface{})
- func PrWarnf(format string, a ...interface{})
- func PrettyHash(str string, list []Hash)
- func PrettyList(str string, list []string)
- func PrettyTable(caption string, header []string, data [][]string)
- func PrintResponse(s string, a []DeleteResult)
- func Remove(p string)
- func ToJSON(p interface{}) []byte
- type DeleteResult
- type EnvVar
- type Hash
- type Meta
- type SearchResult
Constants ¶
const ( TokenID = "NSCONF_TOKEN_ID" TokenSecret = "NSCONF_TOKEN_SECRET" ConsumerKey = "NSCONF_CONSUMER_KEY" ConsumerSecret = "NSCONF_CONSUMER_SECRET" Password = "NSCONF_PASSWORD" Account = "NSCONF_ACCOUNT" Email = "NSCONF_EMAIL" Realm = "NSCONF_REALM" CliToken = "NSCONF_CLITOKEN" HashFile = "NSCONF_HASHFILE" Role = "NSCONF_ROLE" URL = "NSCONF_URL" SdfCliConsumerKey = "" /* 160-byte string literal not displayed */ SdfCLiConsumerSecret = "" /* 160-byte string literal not displayed */ SdfCliPw = "&Get File List" JavaVersion = "8u181" JavaBuildNumber = "13" JavaPlatformLinux = "linux-x64.tar.gz" JavaSubDirLinux = "" JavaPlatformMac = "macosx-x64.tar.gz" JavaSubDirMac = "/Contents/Home" // URLSdfCore dependency urls URLSdfCore = "https://system.netsuite.com/download/ide/update_18_1/plugins/com.netsuite.ide.core_2018.1.2.jar" URLSdfIde = "https://system.netsuite.com/download/ide/update_18_1/plugins/com.netsuite.ide.eclipse.ws_2018.1.2.jar" URLSdfSupplemental = "https://system.netsuite.com/core/media/media.nl?id=95083164&c=NLCORP&h=37e6a602c5c4fc0fb3e3&_xt=.gz" URLMaven = "http://artfiles.org/apache.org/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz" )
Variables ¶
var ( Credentials map[string]string // paths to deps CurrentDir string Dependencies string SdfCli string CliCache string // IsVerbose variable for export IsVerbose = false IsDebug = false // Whitelisted filenames hat are not included while uploading the files Whitelisted = []string{"error.log"} // constructed java base url JavaBaseURL = strings.Join([]string{"http://download.oracle.com/otn-pub/java/jdk/", JavaVersion, "-b", JavaBuildNumber, "/96a7b8442fe848ef90c96a2fad6ed6d1/jre-", JavaVersion, "-"}, "") )
global variables
Functions ¶
func AbsolutePath ¶ added in v0.0.3
AbsolutePath get absolute path if it is relative
func ArrayIncludes ¶
ArrayIncludes check if array includes
func CheckCliCache ¶ added in v0.0.3
func CheckCliCache() []byte
CheckCliCache test and set the cli cache token
func CheckExists ¶
CheckExists returns whether the given file or directory exists or not
func CheckRequired ¶ added in v0.0.3
CheckRequired check if required arg exists
func DecryptCliToken ¶
DecryptCliToken decrypt the given token by using the key
func Difference ¶
Difference of slice1 to slice2
func EncryptCliToken ¶
EncryptCliToken encrypt the given key and secrets
func NormalizeRootPath ¶
NormalizeRootPath normalize the remote path and return localpath
func OptArgDest ¶ added in v0.0.3
OptArgDest set default for optional arg
func PrHeaderf ¶ added in v0.0.3
func PrHeaderf(format string, a ...interface{})
PrHeaderf print underlined header
func PrNoticef ¶ added in v0.0.3
func PrNoticef(format string, a ...interface{})
PrNoticef print dimmed notice
func PrResultf ¶ added in v0.0.3
func PrResultf(format string, a ...interface{})
PrResultf print green result
func PrWarnf ¶ added in v0.0.3
func PrWarnf(format string, a ...interface{})
PrWarnf print bold warning
func PrettyHash ¶
PrettyHash output list prettified for terminal
func PrettyList ¶
PrettyList output list prettified for terminal
func PrettyTable ¶ added in v0.0.3
PrettyTable markdown style table output
func PrintResponse ¶
func PrintResponse(s string, a []DeleteResult)
PrintResponse print delete response prettified
Types ¶
type DeleteResult ¶ added in v0.0.3
type DeleteResult struct { Successful bool NotFound bool Code string Message string ID string Type string }
DeleteResult struct
type EnvVar ¶
type EnvVar struct {
// contains filtered or unexported fields
}
EnvVar struct for env and default values
type SearchResult ¶ added in v0.0.3
type SearchResult struct { InternalID string Parent string Name string Children []*SearchResult IsDir bool Path string }
SearchResult struct