client

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 14 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, deprecations []*catalogmetadata.Deprecation) ([]*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, packageName string) ([]*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.ClusterCatalog) (fs.FS, 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