services

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVersionDetailsForDownloadVersion

func CreateVersionDetailsForDownloadVersion(versionStr string) (*versions.Path, error)

func SownInDownloadList added in v0.5.9

func SownInDownloadList(url string, bintrayDetails auth.BintrayDetails) (bool, error)

Types

type DownloadFileParams

type DownloadFileParams struct {
	*utils.PathDetails
	TargetPath         string
	IncludeUnpublished bool
	Flat               bool
	MinSplitSize       int64
	SplitCount         int
}

func NewDownloadFileParams

func NewDownloadFileParams() *DownloadFileParams

type DownloadService

type DownloadService struct {
	BintrayDetails auth.BintrayDetails
	Threads        int
	// contains filtered or unexported fields
}

func NewDownloadService

func NewDownloadService(client *httpclient.HttpClient) *DownloadService

func (*DownloadService) DownloadFile

func (ds *DownloadService) DownloadFile(downloadParams *DownloadFileParams) (totalDownloaded, totalFailed int, err error)

func (*DownloadService) DownloadVersion

func (ds *DownloadService) DownloadVersion(downloadParams *DownloadVersionParams) (totalDownloaded, totalFailed int, err error)

type DownloadVersionParams

type DownloadVersionParams struct {
	*versions.Params
	TargetPath         string
	IncludeUnpublished bool
}

func NewDownloadVersionParams

func NewDownloadVersionParams() *DownloadVersionParams

type UploadParams

type UploadParams struct {
	// Files pattern to be uploaded
	Pattern string

	// Target version details
	*versions.Params

	// Target local path
	TargetPath string

	UseRegExp          bool
	UseAnt             bool
	Flat               bool
	Recursive          bool
	Explode            bool
	Override           bool
	Publish            bool
	ShowInDownloadList bool
	Deb                string
}

func NewUploadParams

func NewUploadParams() *UploadParams

func (*UploadParams) GetPatternType added in v0.20.1

func (up *UploadParams) GetPatternType() clientutils.PatternType

type UploadService

type UploadService struct {
	BintrayDetails auth.BintrayDetails
	DryRun         bool
	Threads        int
	// contains filtered or unexported fields
}

func NewUploadService

func NewUploadService(client *httpclient.HttpClient) *UploadService

func (*UploadService) Upload

func (us *UploadService) Upload(uploadDetails *UploadParams) (totalUploaded, totalFailed int, err error)

type VersionFilesResult

type VersionFilesResult struct {
	Path string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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