Documentation
¶
Index ¶
- func CompareVersion(v1, v2 string) int
- func CopyFile(src, dst string) error
- func FileExists(filename string) bool
- func GetBeginOfToday() int64
- func GetTimestamp() int64
- func IsBeforeToday(timestamp int64) bool
- func MoveFiles(src, targetDir string) error
- type ArchType
- type Decompressor
- type Downloader
- type GzipTarDecompressor
- type OSType
- type XZTarDecompressor
- type ZipDecompressor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersion ¶
func FileExists ¶
func GetBeginOfToday ¶
func GetBeginOfToday() int64
func GetTimestamp ¶
func GetTimestamp() int64
func IsBeforeToday ¶
Types ¶
type Decompressor ¶
func NewDecompressor ¶
func NewDecompressor(src string) Decompressor
type Downloader ¶
type Downloader struct { // URL is the URL to download the SDK from. LocalPath string `json:"local_path"` }
func NewDownloader ¶
func NewDownloader(localPath string) *Downloader
type GzipTarDecompressor ¶
type GzipTarDecompressor struct {
// contains filtered or unexported fields
}
func (*GzipTarDecompressor) Decompress ¶
func (g *GzipTarDecompressor) Decompress(dest string) error
type XZTarDecompressor ¶
type XZTarDecompressor struct {
// contains filtered or unexported fields
}
func (*XZTarDecompressor) Decompress ¶
func (g *XZTarDecompressor) Decompress(dest string) error
type ZipDecompressor ¶
type ZipDecompressor struct {
// contains filtered or unexported fields
}
func (*ZipDecompressor) Decompress ¶
func (z *ZipDecompressor) Decompress(dest string) error
Click to show internal directories.
Click to hide internal directories.