Help us shape the future of Go! Take the 2026 Go Developer Survey

appspacefilesmodel

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppspaceFilesModel

type AppspaceFilesModel struct {
	Config              *domain.RuntimeConfig `checkinject:"required"`
	AppspaceFilesEvents interface {
		Send(appspaceID domain.AppspaceID)
	} `checkinject:"required"`
}

AppspaceFilesModel is struct for appspace data directory manager

func (*AppspaceFilesModel) CheckDataFiles

func (a *AppspaceFilesModel) CheckDataFiles(dataDir string) error

CheckDataFiles verifies that the directories and files that we expect to see in an appspace data dir are present.

func (*AppspaceFilesModel) CreateDirs

func (a *AppspaceFilesModel) CreateDirs(base string) error

CreateDirs creates an appspace directory structure and also creates the files necessary for a new appspace

func (*AppspaceFilesModel) CreateLocation

func (a *AppspaceFilesModel) CreateLocation() (string, error)

CreateLocation creates a new location for an appspace This will need more subtlety when we import appspace files ( don't create "files", for ex)

func (*AppspaceFilesModel) DeleteBackup

func (a *AppspaceFilesModel) DeleteBackup(locationKey string, filename string) error

func (*AppspaceFilesModel) DeleteLocation

func (a *AppspaceFilesModel) DeleteLocation(loc string) error

func (*AppspaceFilesModel) GetBackups

func (a *AppspaceFilesModel) GetBackups(locationKey string) ([]string, error)

GetBackups retuns list of backup files at location key Should at least include the file size for each.

func (*AppspaceFilesModel) ReplaceData

func (a *AppspaceFilesModel) ReplaceData(appspace domain.Appspace, source string) error

Jump to

Keyboard shortcuts

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