appfilesmodel

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPackageLow added in v0.11.0

func ExtractPackageLow(r io.Reader, appFilesPath string, maxSize int64) error

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 (a *AppFilesModel) WriteFileLink(locationKey string, linkName string, destPath string) error

func (*AppFilesModel) WriteRoutes

func (a *AppFilesModel) WriteRoutes(locationKey string, routesData []byte) error

Jump to

Keyboard shortcuts

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