Documentation ¶
Index ¶
- func CreateAppVersionArchive(appID string, sequence int64, archivePath string) error
- func CreateFirstVersion(appID string, filesInDir string, source string) (int64, error)
- func CreateVersion(appID string, filesInDir string, source string, currentSequence int64) (int64, error)
- func ExtractArchiveToTempDirectory(archiveFilename string) (string, error)
- func GetAppVersionArchive(appID string, sequence int64) (string, error)
- func GetVersions(appID string) ([]types.AppVersion, error)
- func PopulateMissingDownstreamVersions() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAppVersionArchive ¶
CreateAppVersion takes an unarchived app, makes an archive and then uploads it to s3 with the appID and sequence specified
func CreateFirstVersion ¶
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 GetAppVersionArchive ¶
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
func PopulateMissingDownstreamVersions ¶
func PopulateMissingDownstreamVersions() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.