diff options
Diffstat (limited to 'util/s3/s3Helper.go')
-rw-r--r-- | util/s3/s3Helper.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/util/s3/s3Helper.go b/util/s3/s3Helper.go index a997f20a1..236911370 100644 --- a/util/s3/s3Helper.go +++ b/util/s3/s3Helper.go @@ -199,11 +199,6 @@ func makeS3Session(credentials *credentials.Credentials, bucket string) (helper return } -// GetLatestUpdateVersion returns the latest version details for the 'node' package -func (helper *Helper) GetLatestUpdateVersion(channel string) (maxVersion uint64, maxVersionName string, err error) { - return helper.GetUpdateVersion(channel, 0) -} - // GetLatestPackageVersion returns the latest version details for a given package name (eg node, install, tools) func (helper *Helper) GetLatestPackageVersion(channel string, packageName string) (maxVersion uint64, maxVersionName string, err error) { return helper.GetPackageVersion(channel, packageName, 0) @@ -214,12 +209,6 @@ func (helper *Helper) GetLatestPackageFilesVersion(channel string, packagePrefix return helper.GetPackageFilesVersion(channel, packagePrefix, 0) } -// GetUpdateVersion ensures the specified version is present and returns the name of the file, if found -// Or if specificVersion == 0, returns the name of the file with the max version -func (helper *Helper) GetUpdateVersion(channel string, specificVersion uint64) (maxVersion uint64, maxVersionName string, err error) { - return helper.GetPackageVersion(channel, "node", specificVersion) -} - // DownloadFile downloads the specified file to the provided Writer func (helper *Helper) DownloadFile(name string, writer io.WriterAt) error { downloader := s3manager.NewDownloader(helper.session) |