Documentation ¶
Index ¶
- func DeletePackage(ctx context.Context, repos, distro, version string, fpath string) error
- func PromotePackage(ctx context.Context, dstRepos, srcRepo, distro, version string, fpath string) error
- func PushPackage(ctx context.Context, repos, distro, version string, fpath string) error
- func WithPackagecloudToken(ctx context.Context, token string) context.Context
- type Distribution
- type Distributions
- type PackageDetail
- type Versions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePackage ¶
func PromotePackage ¶
func PushPackage ¶
Types ¶
type Distribution ¶
type Distributions ¶
type Distributions struct { Deb []Distribution `json:"deb"` Py []Distribution `json:"py"` }
func GetDistributions ¶ added in v0.1.5
func GetDistributions() *Distributions
func (*Distributions) DebianDistroVersionID ¶ added in v0.1.7
func (d *Distributions) DebianDistroVersionID(distro, version string) (id string, ok bool)
func (*Distributions) PythonDistroVersionID ¶ added in v0.1.7
func (d *Distributions) PythonDistroVersionID(distro, version string) (id string, ok bool)
type PackageDetail ¶
type PackageDetail struct { Name string `json:"name"` DistroVersion string `json:"distro_version"` CreateTime time.Time `json:"created_at"` Version string `json:"version"` Type string `json:"type"` Filename string `json:"filename"` UploaderName string `json:"uploader_name"` Indexed bool `json:"indexed"` PackageURL string `json:"package_url"` DownloadURL string `json:"download_url"` }
func SearchPackage ¶
func SearchPackage(ctx context.Context, repos, distro, query, filter string) ([]PackageDetail, error)
Click to show internal directories.
Click to hide internal directories.