Documentation
¶
Index ¶
- type Client
- func (client *Client) DSCURL(dsc *DSC) string
- func (client *Client) GetDSCSInSuite(pkg, distribution string) ([]*DSC, error)
- func (client *Client) GetFileBySHA256Sum(sha256sum string) (io.ReadCloser, error)
- func (client *Client) GetSHA256SumInArchive(sha256sum string) ([]*SHA256SumInArchive, error)
- func (client *Client) GetSourcesInSuite(distribution string) ([]*Source, error)
- func (client *Client) MirrorURL() string
- type DSC
- type SHA256SumInArchive
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.11.0
type Client struct {
// contains filtered or unexported fields
}
Client for the ftpmasters api
func (*Client) DSCURL ¶ added in v0.20.0
DSCURL returns the full url of a DSC in the configured mirror
func (*Client) GetDSCSInSuite ¶ added in v0.11.0
GetDSCSInSuite returns a list of DSCs matching pkg in distribution
func (*Client) GetFileBySHA256Sum ¶ added in v0.14.0
func (client *Client) GetFileBySHA256Sum(sha256sum string) (io.ReadCloser, error)
GetFileBySHA256Sum returns a file in the archive by sha256sum
func (*Client) GetSHA256SumInArchive ¶ added in v0.14.0
func (client *Client) GetSHA256SumInArchive(sha256sum string) ([]*SHA256SumInArchive, error)
GetSHA256SumInArchive returns a list of files with matching shasums in the archive
func (*Client) GetSourcesInSuite ¶ added in v0.11.0
GetSourcesInSuite returns all source packages in a suite
type SHA256SumInArchive ¶ added in v0.14.0
type SHA256SumInArchive struct { SHA256Sum string `json:"sha256sum"` Filename string `json:"filename"` }
SHA256SumInArchive is an element of the sha256sum_in_archive query
Click to show internal directories.
Click to hide internal directories.