downloaders

package
v0.3.43 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	URL              string
	Version          string
	FrameworkVersion string
	TempDir          string
	Token            string
	// contains filtered or unexported fields
}

func NewGitDownloader

func NewGitDownloader(url string, version string, frameworkVersion string, tempDir string, token string) *Git

func (*Git) Get

func (g *Git) Get() (string, error)

func (*Git) PackageURL

func (g *Git) PackageURL() string

func (*Git) SetLogger

func (g *Git) SetLogger(logger *logrus.Logger)

type Nuget

type Nuget struct {
	Name             string
	ID               string
	Version          string
	FrameworkVersion string
	TempDir          string
	CacheDir         string
	// contains filtered or unexported fields
}

func NewNugetDownloader

func NewNugetDownloader(name string, id string, version string, cacheDir string, tempDir string) *Nuget

func (*Nuget) Get

func (n *Nuget) Get() (string, error)

Get downloads the specified, or latest, version of the named package from Nuget

func (*Nuget) PackageURL

func (n *Nuget) PackageURL() string

func (*Nuget) SetLogger

func (n *Nuget) SetLogger(logger *logrus.Logger)

type NugetItemCatalogEntry

type NugetItemCatalogEntry struct {
	ID             string "json:`id`"
	PackageContent string "json:`packageContent`"
	Version        string "json:`version`"
}

type NugetResponse

type NugetResponse struct {
	Items          []NugetResponseItem "json:`items`"
	PackageContent string              "json:`packageContent`"
}

type NugetResponseItem

type NugetResponseItem struct {
	Count int                      "json:`count`"
	Items []NugetResponsePageItems "json:`items`"
}

type NugetResponsePageItems

type NugetResponsePageItems struct {
	CatalogEntry NugetItemCatalogEntry "json:`catalogEntry`"
}

Jump to

Keyboard shortcuts

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