Documentation
¶
Index ¶
- type AppspaceFilesModel
- func (a *AppspaceFilesModel) CheckDataFiles(dataDir string) error
- func (a *AppspaceFilesModel) CreateDirs(base string) error
- func (a *AppspaceFilesModel) CreateLocation() (string, error)
- func (a *AppspaceFilesModel) DeleteBackup(locationKey string, filename string) error
- func (a *AppspaceFilesModel) DeleteLocation(loc string) error
- func (a *AppspaceFilesModel) GetBackups(locationKey string) ([]string, error)
- func (a *AppspaceFilesModel) ReplaceData(appspace domain.Appspace, source string) error
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
Click to show internal directories.
Click to hide internal directories.