Documentation
¶
Index ¶
- type Application
- func (a *Application) Fetch(ctx context.Context, repoNames []string) error
- func (a *Application) Generate(ctx context.Context, repoNames []string) (err error)
- func (a *Application) Publish(ctx context.Context) error
- func (a *Application) Serve(ctx context.Context) error
- func (a *Application) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
Config *config.Config
MainPool pond.Pool
DownloadPool pond.ResultPool[common.Result]
CompressionPool pond.ResultPool[common.Result]
Downloader *common.Downloader
DeCompressor *common.DeCompressor
Storage *common.Storage
GitHubClient *github.Client
HTTPClient *http.Client
Signer pgp.Signer
PublicKeyASCII []byte // ASCII-armored public key
PublicKeyBinary []byte // Binary (dearmored) public key
PreparedPublicKey string // Path to prepared public key file
PreparedPrivateKey string // Path to prepared private key file
KeyCleanup func() // Cleanup function for temporary key files
}
Application holds the initialized runtime components and configuration
func (*Application) Fetch ¶
func (a *Application) Fetch(ctx context.Context, repoNames []string) error
Fetch downloads and verifies packages from configured feeds for specified repositories
func (*Application) Generate ¶
func (a *Application) Generate(ctx context.Context, repoNames []string) (err error)
Generate generates APT repository structures and web page for specified repositories
func (*Application) Publish ¶
func (a *Application) Publish(ctx context.Context) error
Publish uploads generated repository to configured hosting provider
func (*Application) Serve ¶
func (a *Application) Serve(ctx context.Context) error
Serve starts an HTTP server to serve the public directory
func (*Application) Shutdown ¶
func (a *Application) Shutdown()
Shutdown gracefully stops all application components
Click to show internal directories.
Click to hide internal directories.