Documentation
¶
Overview ¶
Package app provides the main application logic for GitLab backup.
Index ¶
- Variables
- type App
- func (a *App) ExportGroup(ctx context.Context) error
- func (a *App) ExportProject(ctx context.Context, projectID int) error
- func (a *App) Run(ctx context.Context) error
- func (a *App) SetGitlabEndpoint(gitlabAPIEndpoint string)
- func (a *App) SetLogger(l Logger)
- func (a *App) SetToken(token string)
- func (a *App) StoreArchive(ctx context.Context, archiveFilePath string) error
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoStorageDefined is returned when no storage configuration is provided. ErrNoStorageDefined = errors.New("no storage defined") // ErrBackupErrors is returned when errors occur during backup process. ErrBackupErrors = errors.New("errors occurred during backup") // ErrNotDirectory is returned when a path is not a directory. ErrNotDirectory = errors.New("path is not a directory") )
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the main application structure.
func (*App) ExportGroup ¶
ExportGroup will export all projects of the group.
func (*App) ExportProject ¶
ExportProject exports the project of the given ID.
func (*App) SetGitlabEndpoint ¶
SetGitlabEndpoint sets the gitlab endpoint.
Click to show internal directories.
Click to hide internal directories.