services

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: Apache-2.0 Imports: 19 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

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   `yaml:"file_pattern,omitempty"`
	Files   []string `yaml:"files,omitempty"`

	// Target version details
	*versions.Params `yaml:"params"`

	// Target local path
	TargetPath string `yaml:"target"`

	UseRegExp          bool   `yaml:"regex"`
	Flat               bool   `yaml:"flat,omitempty"`
	Recursive          bool   `yaml:"recursive,omitempty"`
	Explode            bool   `yaml:"explode,omitempty"`
	Override           bool   `yaml:"override,omitempty"`
	Publish            bool   `yaml:"publish,omitempty"`
	ShowInDownloadList bool   `yaml:"showindownloadlist,omitempty"`
	Deb                string `yaml:"pkgdeb"`
}

func NewUploadParams

func NewUploadParams() *UploadParams

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