fetcher

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fetcher implements a client for the versions API.

The fetcher is used to get information from the versions API without having to authenticate with AWS, where the API is currently hosted. This package should be used in user-facing application code most of the time, like the CLI.

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 fetches versions API resources without authentication.

func NewFetcher

func NewFetcher() *Fetcher

NewFetcher returns a new Fetcher.

func (*Fetcher) FetchCLIInfo added in v2.6.0

func (f *Fetcher) FetchCLIInfo(ctx context.Context, cliInfo versionsapi.CLIInfo) (versionsapi.CLIInfo, error)

FetchCLIInfo fetches the given cli info from the versions API.

func (*Fetcher) FetchImageInfo

func (f *Fetcher) FetchImageInfo(ctx context.Context, imageInfo versionsapi.ImageInfo) (versionsapi.ImageInfo, error)

FetchImageInfo fetches the given image info from the versions API.

func (*Fetcher) FetchVersionLatest

func (f *Fetcher) FetchVersionLatest(ctx context.Context, latest versionsapi.Latest) (versionsapi.Latest, error)

FetchVersionLatest fetches the latest version from the versions API.

func (*Fetcher) FetchVersionList

func (f *Fetcher) FetchVersionList(ctx context.Context, list versionsapi.List) (versionsapi.List, error)

FetchVersionList fetches the given version list from the versions API.

type NotFoundError

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

NotFoundError is an error that is returned when a resource is not found.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) Unwrap

func (e *NotFoundError) Unwrap() error

Jump to

Keyboard shortcuts

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