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 ¶
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 `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
}
Click to show internal directories.
Click to hide internal directories.