Documentation ¶
Index ¶
- Variables
- func BorrowBuffer() (*bytes.Buffer, context.CancelFunc)
- func BuildImageRequest(ctx context.Context, imageURL string, header http.Header, jar *cookiejar.Jar) (*http.Request, context.CancelFunc, error)
- func Init() error
- func RedirectAllRequestsTo(u string)
- func SendRequest(req *http.Request) (*http.Response, error)
- func StopRedirectingRequests()
- type DownloadOptions
- type ErrorNotModified
- type ImageData
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSourceImageTypeNotSupported = ierrors.New(422, "Source image type not supported", "Invalid source image")
Functions ¶
func BorrowBuffer ¶ added in v3.9.0
func BorrowBuffer() (*bytes.Buffer, context.CancelFunc)
func BuildImageRequest ¶ added in v3.8.0
func RedirectAllRequestsTo ¶
func RedirectAllRequestsTo(u string)
func StopRedirectingRequests ¶
func StopRedirectingRequests()
Types ¶
type DownloadOptions ¶ added in v3.14.0
type ErrorNotModified ¶
func (*ErrorNotModified) Error ¶
func (e *ErrorNotModified) Error() string
Click to show internal directories.
Click to hide internal directories.