Documentation
¶
Index ¶
- func AddTrailingSlashIfNeeded(url string) string
- func AppendFile(srcPath string, destFile *os.File)
- func BuildAqlSearchQuery(searchPattern string, recursive bool, props string) string
- func CheckError(err error)
- func CreateTempDirPath()
- func DownloadFile(downloadPath, localPath, fileName string, flat bool, ...) *http.Response
- func DownloadFileConcurrently(downloadPath, localPath, fileName, logMsgPrefix string, fileSize int64, ...)
- func Exit(exitCode ExitCode, msg string)
- func GetEncryptedPasswordFromArtifactory(artifactoryDetails *ArtifactoryDetails) (*http.Response, string)
- func GetFileNameFromPath(path string) string
- func GetFileSeperator() string
- func GetHomeDir() string
- func GetLogMsgPrefix(threadId int, dryRun bool) string
- func GetTempDirPath() string
- func GetVersion() string
- func IsDir(path string) bool
- func IsDirExists(path string) bool
- func IsFileExists(path string) bool
- func IsPathExists(path string) bool
- func ListFiles(path string) []string
- func ListFilesRecursive(path string) []string
- func ReadFile(filePath string) []byte
- func RemoveTempDir()
- func Send(method string, url string, content []byte, headers map[string]string, ...) (*http.Response, []byte)
- func SendGet(url string, headers map[string]string, artifactoryDetails ArtifactoryDetails) (*http.Response, []byte)
- func SendHead(url string, artifactoryDetails ArtifactoryDetails) (*http.Response, []byte)
- func SendPost(url string, content []byte, artifactoryDetails ArtifactoryDetails) (*http.Response, []byte)
- func SendPut(url string, content []byte, headers map[string]string, ...) (*http.Response, []byte)
- func SshAuthentication(details *ArtifactoryDetails)
- func UploadFile(f *os.File, url string, artifactoryDetails ArtifactoryDetails, ...) *http.Response
- type ArtifactoryDetails
- type ExitCode
- type FileDetails
- type Flags
- type PathFilePair
- type SshAuthResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFile ¶
Reads the content of the file in the source path and appends it to the file in the destination path.
func BuildAqlSearchQuery ¶
func CheckError ¶
func CheckError(err error)
func CreateTempDirPath ¶
func CreateTempDirPath()
func DownloadFile ¶
func DownloadFile(downloadPath, localPath, fileName string, flat bool, artifactoryDetails ArtifactoryDetails) *http.Response
func GetEncryptedPasswordFromArtifactory ¶
func GetEncryptedPasswordFromArtifactory(artifactoryDetails *ArtifactoryDetails) (*http.Response, string)
func GetFileNameFromPath ¶
func GetFileSeperator ¶
func GetFileSeperator() string
func GetHomeDir ¶
func GetHomeDir() string
func GetLogMsgPrefix ¶
func GetTempDirPath ¶
func GetTempDirPath() string
func GetVersion ¶
func GetVersion() string
func IsDirExists ¶
func IsFileExists ¶
func IsPathExists ¶
func ListFilesRecursive ¶
Return the recursive list of files and directories in the specified path
func RemoveTempDir ¶
func RemoveTempDir()
func SendHead ¶
func SendHead(url string, artifactoryDetails ArtifactoryDetails) (*http.Response, []byte)
func SshAuthentication ¶
func SshAuthentication(details *ArtifactoryDetails)
func UploadFile ¶
func UploadFile(f *os.File, url string, artifactoryDetails ArtifactoryDetails, details *FileDetails) *http.Response
Types ¶
type ArtifactoryDetails ¶
type FileDetails ¶
func GetFileDetails ¶
func GetFileDetails(filePath string) *FileDetails
func GetFileDetailsFromArtifactory ¶
func GetFileDetailsFromArtifactory(downloadUrl string, artifactoryDetails ArtifactoryDetails) *FileDetails
type PathFilePair ¶
type PathFilePair struct {
// contains filtered or unexported fields
}
type SshAuthResult ¶
Click to show internal directories.
Click to hide internal directories.