repo

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultBintrayApiUrl = "https://api.bintray.com"
View Source
const DefaultBintrayDlUrl = "https://dl.bintray.com"
View Source
const DefaultS3Endpoint = "s3.yandexcloud.net"
View Source
const DefaultS3Region = "ru-central1"
View Source
const DefaultS3ReleasesFolder = "targets/releases"

Variables

View Source
var (
	BintrayApiUrl string
	BintrayDlUrl  string
)

Functions

func GetPackageVersions

func GetPackageVersions(packageInfo string) (versions []string)

GetPackageVersions returns versions field from package info json

Types

type BintrayClient

type BintrayClient struct {
	Subject string
	Repo    string
	Package string
}

func (*BintrayClient) DownloadFiles

func (bc *BintrayClient) DownloadFiles(version string, dstDir string, files map[string]string) error

func (*BintrayClient) GetFileContent

func (bc *BintrayClient) GetFileContent(version string, fileName string) (string, error)

func (*BintrayClient) GetPackageVersions

func (bc *BintrayClient) GetPackageVersions() ([]string, error)

func (*BintrayClient) String

func (bc *BintrayClient) String() string

type Repo

type Repo interface {
	GetPackageVersions() ([]string, error)
	DownloadFiles(version string, dstDir string, files map[string]string) error
	GetFileContent(version string, fileName string) (string, error)
	String() string
}

func NewBintrayClient

func NewBintrayClient(subject string, repo string, pkg string) (bc Repo)

type S3Client

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

func NewS3Client

func NewS3Client(bucket string) (c S3Client)

func (S3Client) DownloadFiles

func (c S3Client) DownloadFiles(version string, dstDir string, files map[string]string) error

func (S3Client) GetFileContent

func (c S3Client) GetFileContent(version string, fileName string) (string, error)

func (S3Client) GetPackageVersions

func (c S3Client) GetPackageVersions() ([]string, error)

func (S3Client) String

func (c S3Client) String() string

Jump to

Keyboard shortcuts

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