Documentation
¶
Overview ¶
Package pairs intend to provide all available pairs.
Code generated by go generate cmd/definitions; DO NOT EDIT.
Index ¶
- Variables
- func WithContentDisposition(v string) (p types.Pair)
- func WithContentMd5(v string) (p types.Pair)
- func WithContentType(v string) (p types.Pair)
- func WithContinuationToken(v string) (p types.Pair)
- func WithCredential(v string) (p types.Pair)
- func WithDefaultContentType(v string) (p types.Pair)
- func WithDefaultIoCallback(v func([]byte)) (p types.Pair)
- func WithEnableLoosePair() (p types.Pair)
- func WithEnableVirtualDir() (p types.Pair)
- func WithEnableVirtualLink() (p types.Pair)
- func WithEnableVirtualObjectMetadata() (p types.Pair)
- func WithEndpoint(v string) (p types.Pair)
- func WithIoCallback(v func([]byte)) (p types.Pair)
- func WithListMode(v types.ListMode) (p types.Pair)
- func WithLocation(v string) (p types.Pair)
- func WithMultipartID(v string) (p types.Pair)
- func WithName(v string) (p types.Pair)
- func WithObjectMode(v types.ObjectMode) (p types.Pair)
- func WithOffset(v int64) (p types.Pair)
- func WithSize(v int64) (p types.Pair)
- func WithWorkDir(v string) (p types.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 WithContentDisposition ¶
WithContentDisposition will apply content_disposition value to Options.
ContentDisposition
func WithContinuationToken ¶
WithContinuationToken will apply continuation_token value to Options.
ContinuationToken specify the continuation token for list
func WithCredential ¶
WithCredential will apply credential value to Options.
Credential specify how to provide credential for service or storage
func WithDefaultContentType ¶
WithDefaultContentType will apply default_content_type value to Options.
DefaultContentType default value for content_type
func WithDefaultIoCallback ¶
WithDefaultIoCallback will apply default_io_callback value to Options.
DefaultIoCallback default value for io_callback
func WithEnableLoosePair ¶
WithEnableLoosePair will apply enable_loose_pair value to Options.
EnableLoosePair Enable feature loose_pair
func WithEnableVirtualDir ¶
WithEnableVirtualDir will apply enable_virtual_dir value to Options.
EnableVirtualDir Enable feature virtual_dir
func WithEnableVirtualLink ¶
WithEnableVirtualLink will apply enable_virtual_link value to Options.
EnableVirtualLink Enable feature virtual_link
func WithEnableVirtualObjectMetadata ¶
WithEnableVirtualObjectMetadata will apply enable_virtual_object_metadata value to Options.
EnableVirtualObjectMetadata Enable feature virtual_object_metadata
func WithEndpoint ¶
WithEndpoint will apply endpoint value to Options.
Endpoint specify how to provide endpoint for service or storage
func WithIoCallback ¶
WithIoCallback will apply io_callback value to Options.
IoCallback specify what todo every time we read data from source
func WithLocation ¶
WithLocation will apply location value to Options.
Location specify the location for service or storage
func WithObjectMode ¶
func WithObjectMode(v types.ObjectMode) (p types.Pair)
WithObjectMode will apply object_mode value to Options.
ObjectMode ObjectMode hint
func WithOffset ¶
WithOffset will apply offset value to Options.
Offset specify offset for this request, storage will seek to this offset before read
func WithSize ¶
WithSize will apply size value to Options.
Size specify size for this request, storage will only read limited content data
func WithWorkDir ¶
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 SHOULD be an absolute path. work_dir will be default to / if not set. work_dir SHOULD be Unix style for object storage services. For fs storage service on windows platform, the behavior is defined separately.