Documentation ¶ Index ¶ func Put(ctx context.Context, client *http.Client, url string, upload *ResolvedUpload) error type CreateInput type Input type ReaderAtSeeker type ResolvedUpload func Resolve(input Input) (*ResolvedUpload, error) func (u *ResolvedUpload) Reader() io.Reader Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Put ¶ func Put( ctx context.Context, client *http.Client, url string, upload *ResolvedUpload, ) error Types ¶ type CreateInput ¶ type CreateInput struct { FileName string MimeType string CustomMetadata map[string]any HashSHA256 string IdempotencyKey string Purpose string } type Input ¶ type Input struct { File any FileName string MimeType string ContentLength int64 } type ReaderAtSeeker ¶ type ReaderAtSeeker interface { io.Reader io.Seeker } type ResolvedUpload ¶ type ResolvedUpload struct { Body []byte ContentLength int64 FileName string MimeType string } func Resolve ¶ func Resolve(input Input) (*ResolvedUpload, error) func (*ResolvedUpload) Reader ¶ func (u *ResolvedUpload) Reader() io.Reader Source Files ¶ View all Source files resolve.gotypes.goupload.go Click to show internal directories. Click to hide internal directories.