packagecloud

package
v0.0.0-...-b128bf3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePackage

func DeletePackage(ctx context.Context, repos, distro, version string, fpath string) error

func PromotePackage

func PromotePackage(ctx context.Context, dstRepos, srcRepo, distro, version string, fpath string) error

func PushPackage

func PushPackage(ctx context.Context, repos, distro, version string, fpath string) error

func WithPackagecloudToken

func WithPackagecloudToken(ctx context.Context, token string) context.Context

Types

type Distribution

type Distribution struct {
	DisplayName string     `json:"display_name"`
	IndexName   string     `json:"index_name"`
	Versions    []Versions `json:"versions"`
}

type Distributions

type Distributions struct {
	Deb []Distribution `json:"deb"`
	Py  []Distribution `json:"py"`
}

func (*Distributions) DistroVersionID

func (d *Distributions) DistroVersionID(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)

type Versions

type Versions struct {
	ID            int    `json:"id"`
	DisplayName   string `json:"display_name"`
	IndexName     string `json:"index_name"`
	VersionNumber string `json:"version_number"`
}

Jump to

Keyboard shortcuts

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