Documentation ¶
Index ¶
- func CreateVersionDetailsForDownloadVersion(versionStr string) (*versions.Path, error)
- func SownInDownloadList(url string, bintrayDetails auth.BintrayDetails) (bool, error)
- type DownloadFileParams
- type DownloadService
- type DownloadVersionParams
- type UploadParams
- type UploadService
- type VersionFilesResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 Flat bool Recursive bool Explode bool Override bool Publish bool ShowInDownloadList bool Deb string }
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
}
Click to show internal directories.
Click to hide internal directories.