client

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateExtraFields added in v0.6.0

func PopulateExtraFields(catalogName string, channels []*catalogmetadata.Channel, bundles []*catalogmetadata.Bundle) ([]*catalogmetadata.Bundle, error)

Types

type Client

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

Client is reading catalog metadata

func New added in v0.6.0

func New(cl client.Client, fetcher Fetcher) *Client

func (*Client) Bundles

func (c *Client) Bundles(ctx context.Context) ([]*catalogmetadata.Bundle, error)

type Fetcher added in v0.6.0

type Fetcher interface {
	// FetchCatalogContents fetches contents from the catalogd HTTP
	// server for the catalog provided. It returns an io.ReadCloser
	// containing the FBC contents that the caller is expected to close.
	// returns an error if any occur.
	FetchCatalogContents(ctx context.Context, catalog *catalogd.Catalog) (io.ReadCloser, error)
}

Fetcher is an interface to facilitate fetching catalog contents from catalogd.

Jump to

Keyboard shortcuts

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