fetch

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 10 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 file implements all the logic for fetching indexes from the local file system.
Package file implements all the logic for fetching indexes from the local file system.
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.
Package s3 implements all the logic for fetching indexes from AWS S3.
Package s3 implements all the logic for fetching indexes from AWS S3.

Jump to

Keyboard shortcuts

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