builder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.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 Builder

type Builder struct {
	Client          *github.Client
	Config          config.Config
	ParentDirectory string
	Params          map[string]any
	Logger          logger.Logger
}

func NewBuilder

func NewBuilder(cfg config.Config, logger logger.Logger) *Builder

func (*Builder) Build

func (b *Builder) Build(app *model.App) (int, int, int)

func (*Builder) DownloadModule

func (b *Builder) DownloadModule(module model.Module) DownloadStatus

func (*Builder) SaveFile

func (b *Builder) SaveFile(reader io.ReadCloser, savePath string, moduleFile model.ModuleFile) error

type DownloadStatus

type DownloadStatus int
const (
	FullyDownloaded DownloadStatus = iota
	PartiallyDownloaded
	NothingDownloaded
)

Jump to

Keyboard shortcuts

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