version

package
v1.15.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAppVersionArchive

func CreateAppVersionArchive(appID string, sequence int64, archivePath string) error

CreateAppVersion takes an unarchived app, makes an archive and then uploads it to s3 with the appID and sequence specified

func CreateFirstVersion

func CreateFirstVersion(appID string, filesInDir string, source string) (int64, error)

CreateFirstVersion works much likst CreateVersion except that it assumes version 0 and never attempts to calculate a diff, or look at previous versions

func CreateVersion

func CreateVersion(appID string, filesInDir string, source string, currentSequence int64) (int64, error)

CreateVersion creates a new version of the app in the database, but the caller is responsible for uploading the archive to s3

func ExtractArchiveToTempDirectory

func ExtractArchiveToTempDirectory(archiveFilename string) (string, error)

func GetAppVersionArchive

func GetAppVersionArchive(appID string, sequence int64) (string, error)

GetAppVersionArchive will fetch the archive and return a string that contains a directory name where it's extracted into

func GetVersions

func GetVersions(appID string) ([]types.AppVersion, error)

return the list of versions available for an app

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL