r2

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOptions

type GetOptions struct {
	OnlyIf  *R2Conditional `json:"onlyIf,omitempty"`
	Range   *R2Range       `json:"range"`
	SSecKey string         `json:"ssecKey,omitempty"`
}

func (GetOptions) MarshalEasyJSON

func (v GetOptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*GetOptions) UnmarshalEasyJSON

func (v *GetOptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type ListOptions

type ListOptions struct {
	Limit     int64    `json:"limit,omitempty"`
	Prefix    string   `json:"prefix,omitempty"`
	Cursor    string   `json:"cursor,omitempty"`
	Delimiter string   `json:"delimiter,omitempty"`
	Include   []string `json:"include,omitempty"`
}

func (ListOptions) MarshalEasyJSON

func (v ListOptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*ListOptions) UnmarshalEasyJSON

func (v *ListOptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type MultipartOptions

type MultipartOptions struct {
	HTTPMetadata   http.Header       `json:"httpMetadata,omitempty"`
	CustomMetadata map[string]string `json:"customMetadata,omitempty"`
	StorageClass   string            `json:"storageClass,omitempty"`
	SSecKey        string            `json:"ssecKey,omitempty"`
}

func (MultipartOptions) MarshalEasyJSON

func (v MultipartOptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*MultipartOptions) UnmarshalEasyJSON

func (v *MultipartOptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type PutOptions

type PutOptions struct {
	OnlyIf         *R2Conditional    `json:"onlyIf,omitempty"`
	HTTPMetadata   http.Header       `json:"httpMetadata,omitempty"`
	CustomMetadata map[string]string `json:"customMetadata,omitempty"`
	MD5            string            `json:"md5,omitempty"`
	SHA1           string            `json:"sha1,omitempty"`
	SHA256         string            `json:"sha256,omitempty"`
	SHA384         string            `json:"sha384,omitempty"`
	SHA512         string            `json:"sha512,omitempty"`
	StorageClass   string            `json:"storageClass,omitempty"`
	SSecKey        string            `json:"ssecKey,omitempty"`
}

func (PutOptions) MarshalEasyJSON

func (v PutOptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*PutOptions) UnmarshalEasyJSON

func (v *PutOptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type R2Conditional

type R2Conditional struct {
	EtagMatches      string    `json:"etagMatches"`
	EtagDoesNotMatch string    `json:"etagDoesNotMatch"`
	UploadedBefore   time.Time `json:"uploadedBefore"`
	UploadedAfter    time.Time `json:"uploadedAfter"`
}

func (R2Conditional) MarshalEasyJSON

func (v R2Conditional) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*R2Conditional) UnmarshalEasyJSON

func (v *R2Conditional) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type R2Object

type R2Object struct {
	Key            string            `json:"key"`
	Version        string            `json:"version"`
	Size           int               `json:"size"`
	ETag           string            `json:"etag"`
	HTTPETag       string            `json:"httpEtag"`
	Uploaded       time.Time         `json:"uploaded"`
	HTTPMetadata   map[string]string `json:"httpMetadata"`
	CustomMetadata map[string]string `json:"customMetadata"`
	Body           io.Reader         `json:"-"`
}

func (R2Object) MarshalEasyJSON

func (v R2Object) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*R2Object) UnmarshalEasyJSON

func (v *R2Object) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type R2Objects

type R2Objects struct {
	Objects           []*R2Object `json:"objects,omitempty"`
	Truncated         bool        `json:"truncated"`
	Cursor            string      `json:"cursor,omitempty"`
	DelimitedPrefixes []string    `json:"delimitedPrefixes,omitempty"`
}

func (R2Objects) MarshalEasyJSON

func (v R2Objects) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*R2Objects) UnmarshalEasyJSON

func (v *R2Objects) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

type R2Range

type R2Range struct {
	Offset int64 `json:"offset,omitempty"`
	Length int64 `json:"length,omitempty"`
	Suffix int64 `json:"suffix,omitempty"`
}

type UploadedPart

type UploadedPart struct {
	ETag       string `json:"etag"`
	PartNumber int64  `json:"partNumber"`
}

func (UploadedPart) MarshalEasyJSON

func (v UploadedPart) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (*UploadedPart) UnmarshalEasyJSON

func (v *UploadedPart) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

Jump to

Keyboard shortcuts

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