app

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(cfg *config.Config) (*App, error)

NewApp returns a new App struct

func (*App) ExportGroup

func (a *App) ExportGroup(ctx context.Context) error

ExportGroup will export all projects of the group

func (*App) ExportProject

func (a *App) ExportProject(ctx context.Context, projectID int) error

ExportProject exports the project of the given ID

func (*App) Run

func (a *App) Run(ctx context.Context) error

Run runs the app

func (*App) SetGitlabEndpoint

func (a *App) SetGitlabEndpoint(gitlabApiEndpoint string)

SetGitlabEndpoint sets the gitlab endpoint

func (*App) SetHttpClient

func (a *App) SetHttpClient(httpClient *http.Client)

SetHttpClient sets the http client

func (*App) SetLogger

func (a *App) SetLogger(l Logger)

SetLogger sets the logger

func (*App) SetToken

func (a *App) SetToken(token string)

SetToken sets the gitlab token

func (*App) StoreArchive

func (a *App) StoreArchive(archiveFilePath string) error

StoreArchive stores the archive

type Logger

type Logger interface {
	Debug(msg string, args ...any)
	Warn(msg string, args ...any)
	Error(msg string, args ...any)
	Info(msg string, args ...any)
}

Jump to

Keyboard shortcuts

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