pullers

package
v0.0.0-...-be9014a Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeb

func NewDeb(config configs.EngineConfig) (interface{}, error)

NewDeb method to construct Deb

func NewMaven

func NewMaven(config configs.EngineConfig) (interface{}, error)

NewMaven method to construct Maven

func NewPython

func NewPython(config configs.EngineConfig) (interface{}, error)

NewPython method to construct Python

func NewWget

func NewWget(config configs.EngineConfig) (interface{}, error)

NewWget method to construct Wget

Types

type Artifact

type Artifact struct {
	Group          string
	ID             string
	MinimumVersion string `toml:"minimum_version"`
}

Artifact to pull

type Deb

type Deb struct {
	Host        string
	Destination string
	Dist        string
	Arch        string
	Section     string
	Root        string
	Method      string
	Keyring     string
	Cleanup     bool
	Source      bool
	I18N        bool
	Options     string
}

Deb object to pull a Debian based mirror with debmirror unix command

func (Deb) Pull

func (d Deb) Pull(log *log.Logger) (int, error)

Pull a Debian based repo Inherits public method to launch pulling process Return number of downloaded artifacts and error

type Maven

type Maven struct {
	Source           string
	Destination      string
	MetadataFileName string     `toml:"metadata_file_name"`
	POMFile          string     `toml:"pom_file"`
	DatabaseFile     string     `toml:"database_file"`
	Artifacts        []Artifact `toml:"artifact"`
}

Maven object to pull Java artifacts from a Maven repo with mvn unix config

func (Maven) Pull

func (m Maven) Pull(log *log.Logger) (int, error)

Pull artifacts from Maven repo Inherits public method to launch pulling process Return number of downloaded artifacts

type Puller

type Puller interface {
	Pull(log *log.Logger) (int, error)
}

Puller interface to expose methods for pulling processes

type Python

type Python struct {
	Source         string
	Destination    string
	DatabaseFile   string `toml:"database_file"`
	FileExtensions string `toml:"file_extensions"`
	SleepTimer     string `toml:""`
}

Python object to pull python packages from pipy

func (Python) Pull

func (p Python) Pull(log *log.Logger) (int, error)

Pull python packages Inherits public method to launch pulling process Return number of downloaded artifacts and error

type Wget

type Wget struct {
	Source      string
	Destination string
	Options     string
}

Wget object to pull web resource with wget unix command

func (Wget) Pull

func (w Wget) Pull(log *log.Logger) (int, error)

Pull resource from url Inherits public method to launch pulling process Return number of downloaded artifacts and error

Jump to

Keyboard shortcuts

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