Documentation
¶
Index ¶
- func ExtractPackageLow(r io.Reader, appFilesPath string, maxSize int64) error
- type AppFilesModel
- func (a *AppFilesModel) Delete(locationKey string) error
- func (a *AppFilesModel) ExtractPackage(locationKey string) error
- func (a *AppFilesModel) GetLinkPath(locationKey string, linkName string) string
- func (a *AppFilesModel) GetManifestSize(locationKey string) (int64, error)
- func (a *AppFilesModel) GetVersionChangelog(locationKey string, version domain.Version) (string, error)
- func (a *AppFilesModel) ReadManifest(locationKey string) (domain.AppVersionManifest, error)
- func (a *AppFilesModel) ReadRoutes(locationKey string) ([]byte, error)
- func (a *AppFilesModel) SavePackage(r io.Reader) (string, error)
- func (a *AppFilesModel) WriteFileLink(locationKey string, linkName string, destPath string) error
- func (a *AppFilesModel) WriteRoutes(locationKey string, routesData []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppFilesModel ¶
type AppFilesModel struct { AppLocation2Path interface { Base(string) string Meta(string) string Files(string) string } `checkinject:"required"` Config *domain.RuntimeConfig `checkinject:"required"` }
AppFilesModel is struct for application files manager
func (*AppFilesModel) Delete ¶
func (a *AppFilesModel) Delete(locationKey string) error
Delete removes the files from the system
func (*AppFilesModel) ExtractPackage ¶ added in v0.11.0
func (a *AppFilesModel) ExtractPackage(locationKey string) error
ExtractPackage expands the package contents.
func (*AppFilesModel) GetLinkPath ¶ added in v0.11.0
func (a *AppFilesModel) GetLinkPath(locationKey string, linkName string) string
func (*AppFilesModel) GetManifestSize ¶ added in v0.11.0
func (a *AppFilesModel) GetManifestSize(locationKey string) (int64, error)
func (*AppFilesModel) GetVersionChangelog ¶ added in v0.12.0
func (a *AppFilesModel) GetVersionChangelog(locationKey string, version domain.Version) (string, error)
GetVersionChangelog returns the changelog at location key for the version.
func (*AppFilesModel) ReadManifest ¶ added in v0.11.0
func (a *AppFilesModel) ReadManifest(locationKey string) (domain.AppVersionManifest, error)
ReadManifest reads metadata from the files at location key This is the original manifest as included in the app package
func (*AppFilesModel) ReadRoutes ¶
func (a *AppFilesModel) ReadRoutes(locationKey string) ([]byte, error)
func (*AppFilesModel) SavePackage ¶ added in v0.11.0
func (a *AppFilesModel) SavePackage(r io.Reader) (string, error)
SavePackage creates a location key and saves the package file under /package because we want to save it as-is for later download.
func (*AppFilesModel) WriteFileLink ¶ added in v0.11.0
func (a *AppFilesModel) WriteFileLink(locationKey string, linkName string, destPath string) error
func (*AppFilesModel) WriteRoutes ¶
func (a *AppFilesModel) WriteRoutes(locationKey string, routesData []byte) error
Click to show internal directories.
Click to hide internal directories.