ftpmasterapi

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewClient added in v0.11.0

func NewClient(httpClient *http.Client) *Client

NewClient creates a new Client

func (*Client) DSCURL added in v0.20.0

func (client *Client) DSCURL(dsc *DSC) string

DSCURL returns the full url of a DSC in the configured mirror

func (*Client) GetDSCSInSuite added in v0.11.0

func (client *Client) GetDSCSInSuite(pkg, distribution string) ([]*DSC, error)

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

func (client *Client) GetSourcesInSuite(distribution string) ([]*Source, error)

GetSourcesInSuite returns all source packages in a suite

func (*Client) MirrorURL added in v0.20.0

func (client *Client) MirrorURL() string

MirrorURL returns the Debian mirror URL used by the client

type DSC

type DSC struct {
	Component string `json:"component"`
	Filename  string `json:"filename"`
}

DSC api object as returned by dsc_in_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

type Source added in v0.11.0

type Source struct {
	Source  string `json:"source"`
	Version string `json:"version"`
}

Source api object as returned by source_in_suite

Jump to

Keyboard shortcuts

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