Documentation
¶
Index ¶
- func GetS3ReleaseBucket() (bucketName string)
- func GetS3UploadBucket() (bucketName string)
- func GetVersionFromName(name string) (version uint64, err error)
- func GetVersionPartsFromVersion(version uint64) (major uint64, minor uint64, patch uint64, err error)
- type Helper
- func (helper *Helper) DownloadFile(name string, writer io.WriterAt) error
- func (helper *Helper) GetLatestPackageFilesVersion(channel string, packagePrefix string) (maxVersion uint64, maxVersionName string, err error)
- func (helper *Helper) GetLatestPackageVersion(channel string, packageName string) (maxVersion uint64, maxVersionName string, err error)
- func (helper *Helper) GetPackageFilesVersion(channel string, pkgFiles string, specificVersion uint64) (maxVersion uint64, maxVersionName string, err error)
- func (helper *Helper) GetPackageVersion(channel string, pkg string, specificVersion uint64) (maxVersion uint64, maxVersionName string, err error)
- func (helper *Helper) UploadChannelFiles(channel string, files []string) error
- func (helper *Helper) UploadFileStream(targetFile string, reader io.Reader) error
- func (helper *Helper) UploadFiles(subFolder string, files []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetS3ReleaseBucket ¶
func GetS3ReleaseBucket() (bucketName string)
GetS3ReleaseBucket returns bucket name for public releases (public read access, private write access)
func GetS3UploadBucket ¶
func GetS3UploadBucket() (bucketName string)
GetS3UploadBucket returns bucket name for uploading log files (private read access, public write access)
func GetVersionFromName ¶
GetVersionFromName return the version for the given name
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper encapsulates the s3 session state for interactive with our default S3 bucket with appropriate credentials
func MakeS3SessionForDownloadWithBucket ¶
MakeS3SessionForDownloadWithBucket download from bucket
func MakeS3SessionForUploadWithBucket ¶
MakeS3SessionForUploadWithBucket upload to bucket
func (*Helper) DownloadFile ¶
DownloadFile downloads the specified file to the provided Writer
func (*Helper) GetLatestPackageFilesVersion ¶
func (helper *Helper) GetLatestPackageFilesVersion(channel string, packagePrefix string) (maxVersion uint64, maxVersionName string, err error)
GetLatestPackageFilesVersion returns the latest version details for a given standard filename prefix
func (*Helper) GetLatestPackageVersion ¶
func (helper *Helper) GetLatestPackageVersion(channel string, packageName string) (maxVersion uint64, maxVersionName string, err error)
GetLatestPackageVersion returns the latest version details for a given package name (eg node, install, tools)
func (*Helper) GetPackageFilesVersion ¶
func (helper *Helper) GetPackageFilesVersion(channel string, pkgFiles string, specificVersion uint64) (maxVersion uint64, maxVersionName string, err error)
GetPackageFilesVersion return the package version
func (*Helper) GetPackageVersion ¶
func (helper *Helper) GetPackageVersion(channel string, pkg string, specificVersion uint64) (maxVersion uint64, maxVersionName string, err error)
GetPackageVersion return the package version
func (*Helper) UploadChannelFiles ¶
UploadChannelFiles uploads the provided set of package files in a batch
func (*Helper) UploadFileStream ¶
UploadFileStream sends file as stream to s3