Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlFileReader ¶
type ControlFileReader struct {
// contains filtered or unexported fields
}
ControlFileReader reads Paragraphs from a control file
func NewControlFileReader ¶
func NewControlFileReader(r io.Reader) *ControlFileReader
NewControlFileReader creates a new ControlFileReader
func (*ControlFileReader) Read ¶
func (r *ControlFileReader) Read() (par Paragraph, ok bool)
Read the next paragraph from the control file
type Paragraph ¶
Paragraph consist of a series of fields. Field names are unique for a paragraph.
type Repository ¶
type Repository interface { // Release reads the InRelease file from the repository Release(ctx context.Context, dist string) (io.ReadCloser, error) // Index reads the Index file for a disttribution/component/architecture Index(ctx context.Context, dist, comp, arch, compression string) (io.ReadCloser, error) // File reads the deb package File(ctx context.Context, path string) (io.ReadCloser, *model.Package, error) }
Repository is a Debian repositry
func NewClient ¶
func NewClient(url string) Repository
NewClient initialize a new Debian client repository
func NewRemote ¶
func NewRemote(url string, storage driver.StorageDriver) Repository
NewRemote initialize a remote repository
Click to show internal directories.
Click to hide internal directories.