Documentation ¶
Index ¶
- Constants
- Variables
- func CopyFile(src, dst string) error
- func CopyRecursive(src, dst string) error
- func CreateS3Session() (*session.Session, error)
- func DownloadBucket(bucket string, prefix string, dir string) error
- func DownloadFile(url, filename string) (string, error)
- func GetElasticURL(version string) string
- func Untar(dst string, r io.Reader) ([]string, error)
- func Unzip(src string, dest string) ([]string, error)
- type S3Downloader
Constants ¶
View Source
const ( CachePath = "/mnt/cache/" ElasticURLFmt = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-%s-no-jdk-windows-x86_64.zip" JavaURL = "" /* 129-byte string literal not displayed */ )
Variables ¶
View Source
var ( DownloadPath = "./downloads" Bucket = "" Prefix = "" WindowsDir = "./JSTOR-Windows" ChromebookDir = "./JSTOR-Chromebook" MacDir = "./JSTOR-Mac" JSTORDir = "JSTOR" ContentDir = "content" PDFDir = "pdfs" InstallGuideDir = "./install_guides" ChromebookInstallGuide = filepath.Join(InstallGuideDir, "chromebook/README.pdf") WindowsInstallGuide = filepath.Join(InstallGuideDir, "windows/README.pdf") ShellDir = "./shell" WindowsShell = filepath.Join(ShellDir, "start.bat") ChromebookShell = filepath.Join(ShellDir, "start.sh") MacShell = filepath.Join(ShellDir, "start.command") FrontendDir = "dist" )
Functions ¶
func CopyRecursive ¶
func CreateS3Session ¶
func DownloadFile ¶
func GetElasticURL ¶
Types ¶
type S3Downloader ¶
type S3Downloader struct { DLManager *s3manager.Downloader Bucket string Dir string }
func (*S3Downloader) DownloadToFile ¶
func (d *S3Downloader) DownloadToFile(key string) error
func (*S3Downloader) EachPage ¶
func (d *S3Downloader) EachPage(page *s3.ListObjectsOutput, more bool) bool
Click to show internal directories.
Click to hide internal directories.