source

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client client.Client
}

func (*Client) DownloadTarball

func (c *Client) DownloadTarball(tarballURL string, f io.Writer) error

func (*Client) ExtractSource

func (c *Client) ExtractSource(ctx context.Context, kind, ns, name string) (string, error)

func (*Client) ExtractTarball

func (c *Client) ExtractTarball(url, dir string) error

func (*Client) FetchTarball

func (c *Client) FetchTarball(ctx context.Context, url string) (io.ReadCloser, error)

FetchTarball returns an io.ReadCloser that contains the http response body on successful request. It's the user's responsibility to close any non-nil ReadCloser otherwise the original http.Response.Body leaks.

type TransientError

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

func (*TransientError) Error

func (e *TransientError) Error() string

func (*TransientError) Unwrap

func (e *TransientError) Unwrap() error

Jump to

Keyboard shortcuts

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