Documentation
¶
Index ¶
- type Client
- func (c *Client) DownloadTarball(tarballURL string, f io.Writer) error
- func (c *Client) ExtractSource(ctx context.Context, kind, ns, name string) (string, error)
- func (c *Client) ExtractTarball(url, dir string) error
- func (c *Client) FetchTarball(ctx context.Context, url string) (io.ReadCloser, error)
- type TransientError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) DownloadTarball ¶
func (*Client) ExtractSource ¶
func (*Client) ExtractTarball ¶
func (*Client) FetchTarball ¶
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
Click to show internal directories.
Click to hide internal directories.