fetch

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package fetch implements all the logic for fetching indexes from various backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

Fetcher can fetch indices from various storage backends.

func NewFetcher

func NewFetcher() *Fetcher

NewFetcher creates a new index fetcher.

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(ctx context.Context, conf *config.Entry) (*index.Index, error)

Fetch retrieves a remote index.

type Func

type Func func(context.Context, *config.Entry) ([]byte, error)

Func is a prototype for fetching indices for a specific index backend.

Directories

Path Synopsis
Package gcs implements all the logic for fetching indexes from Google Cloud Storage.
Package gcs implements all the logic for fetching indexes from Google Cloud Storage.
Package http implements all the logic for fetching indexes from HTTP/S backends.
Package http implements all the logic for fetching indexes from HTTP/S backends.

Jump to

Keyboard shortcuts

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