Versions in this module Expand all Collapse all v0 v0.18.2 Sep 19, 2024 v0.18.1 Sep 19, 2024 Changes in this version + func CombineBodyMedia(body io.Reader, bodyContentType string, media io.Reader, ...) (io.ReadCloser, string) + func DecodeResponse(target interface{}, res *http.Response) error + func GoVersion() string + func MarshalJSON(schema interface{}, forceSendFields, nullFields []string) ([]byte, error) + func ReaderAtToReader(ra io.ReaderAt, size int64) io.Reader + func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) + func SendRequestWithRetry(ctx context.Context, client *http.Client, req *http.Request, ...) (*http.Response, error) + func SetGetBody(req *http.Request, f func() (io.ReadCloser, error)) + func SetHeaders(userAgent, contentType string, userHeaders http.Header, keyvals ...string) http.Header + func SetOptions(u URLParams, opts ...googleapi.CallOption) + func WrapError(err error) error + type Backoff interface + Pause func() time.Duration + type JSONFloat64 float64 + func (f *JSONFloat64) UnmarshalJSON(data []byte) error + type MediaBuffer struct + func NewMediaBuffer(media io.Reader, chunkSize int) *MediaBuffer + func PrepareUpload(media io.Reader, chunkSize int) (r io.Reader, mb *MediaBuffer, singleChunk bool) + func (mb *MediaBuffer) Chunk() (chunk io.Reader, off int64, size int, err error) + func (mb *MediaBuffer) Next() + type MediaInfo struct + func NewInfoFromMedia(r io.Reader, options []googleapi.MediaOption) *MediaInfo + func NewInfoFromResumableMedia(r io.ReaderAt, size int64, mediaType string) *MediaInfo + func (mi *MediaInfo) ResumableUpload(locURI string) *ResumableUpload + func (mi *MediaInfo) SetProgressUpdater(pu googleapi.ProgressUpdater) + func (mi *MediaInfo) UploadRequest(reqHeaders http.Header, body io.Reader) (newBody io.Reader, getBody func() (io.ReadCloser, error), cleanup func()) + func (mi *MediaInfo) UploadType() string + type ResumableUpload struct + Callback func(int64) + ChunkRetryDeadline time.Duration + Client *http.Client + Media *MediaBuffer + MediaType string + Retry *RetryConfig + URI string + UserAgent string + func (rx *ResumableUpload) Progress() int64 + func (rx *ResumableUpload) Upload(ctx context.Context) (resp *http.Response, err error) + type RetryConfig struct + Backoff *gax.Backoff + ShouldRetry func(err error) bool + type URLParams map[string][]string + func (u URLParams) Encode() string + func (u URLParams) Get(key string) string + func (u URLParams) Set(key, value string) + func (u URLParams) SetMulti(key string, values []string)