Documentation
¶
Overview ¶
Package pairs intend to provide all available pairs.
Code generated by go generate cmd/definitions; DO NOT EDIT.
Index ¶
- Variables
- func WithContentMd5(v string) Pair
- func WithContentType(v string) Pair
- func WithContext(v context.Context) Pair
- func WithContinuationToken(v string) Pair
- func WithCredential(v string) Pair
- func WithEndpoint(v string) Pair
- func WithExpire(v int) Pair
- func WithHTTPClientOptions(v *httpclient.Options) Pair
- func WithInterceptor(v Interceptor) Pair
- func WithIoCallback(v func([]byte)) Pair
- func WithListMode(v ListMode) Pair
- func WithLocation(v string) Pair
- func WithMultipartID(v string) Pair
- func WithName(v string) Pair
- func WithObjectMode(v ObjectMode) Pair
- func WithOffset(v int64) Pair
- func WithSize(v int64) Pair
- func WithWorkDir(v string) Pair
- type Error
Constants ¶
This section is empty.
Variables ¶
var ( // ErrPairTypeMismatch means the pair's type is not match ErrPairTypeMismatch = errors.New("pair type mismatch") )
Functions ¶
func WithContentMd5 ¶
func WithContentMd5(v string) Pair
WithContentMd5 will apply content_md5 value to Options.
ContentMd5
func WithContentType ¶
func WithContentType(v string) Pair
WithContentType will apply content_type value to Options.
ContentType
func WithContinuationToken ¶
func WithContinuationToken(v string) Pair
WithContinuationToken will apply continuation_token value to Options.
ContinuationToken specify the continuation token for list
func WithCredential ¶
func WithCredential(v string) Pair
WithCredential will apply credential value to Options.
Credential specify how to provide credential for service or storage
func WithEndpoint ¶
func WithEndpoint(v string) Pair
WithEndpoint will apply endpoint value to Options.
Endpoint specify how to provide endpoint for service or storage
func WithExpire ¶
func WithExpire(v int) Pair
WithExpire will apply expire value to Options.
Expire specify when the url returned by reach will expire
func WithHTTPClientOptions ¶
func WithHTTPClientOptions(v *httpclient.Options) Pair
WithHTTPClientOptions will apply http_client_options value to Options.
HTTPClientOptions
func WithInterceptor ¶
func WithInterceptor(v Interceptor) Pair
WithInterceptor will apply interceptor value to Options.
Interceptor
func WithIoCallback ¶
func WithIoCallback(v func([]byte)) Pair
WithIoCallback will apply io_callback value to Options.
IoCallback specify what todo every time we read data from source
func WithListMode ¶
func WithListMode(v ListMode) Pair
WithListMode will apply list_mode value to Options.
ListMode
func WithLocation ¶
func WithLocation(v string) Pair
WithLocation will apply location value to Options.
Location specify the location for service or storage
func WithMultipartID ¶
func WithMultipartID(v string) Pair
WithMultipartID will apply multipart_id value to Options.
MultipartID
func WithName ¶
func WithName(v string) Pair
WithName will apply name value to Options.
Name specify the storage name
func WithObjectMode ¶ added in v4.1.0
func WithObjectMode(v ObjectMode) Pair
WithObjectMode will apply object_mode value to Options.
ObjectMode ObjectMode hint
func WithOffset ¶
func WithOffset(v int64) Pair
WithOffset will apply offset value to Options.
Offset specify offset for this request, storage will seek to this offset before read
func WithSize ¶
func WithSize(v int64) Pair
WithSize will apply size value to Options.
Size specify size for this request, storage will only read limited content data
func WithWorkDir ¶
func WithWorkDir(v string) Pair
WithWorkDir will apply work_dir value to Options.
WorkDir specify the work dir for service or storage, every operation will be relative to this dir. work_dir MUST start with / for every storage services. work_dir will be default to / if not set. For fs storage service on windows platform, the behavior is undefined.