Documentation ¶
Overview ¶
Package pairs intend to provide all available pairs.
Code generated by go generate internal/cmd/pairs; DO NOT EDIT.
Index ¶
- Constants
- func WithChecksum(v string) *types.Pair
- func WithContext(v context.Context) *types.Pair
- func WithCredential(v *credential.Provider) *types.Pair
- func WithDirFunc(v types.ObjectFunc) *types.Pair
- func WithEndpoint(v endpoint.Provider) *types.Pair
- func WithExpire(v int) *types.Pair
- func WithFileFunc(v types.ObjectFunc) *types.Pair
- func WithLocation(v string) *types.Pair
- func WithName(v string) *types.Pair
- func WithObjectFunc(v types.ObjectFunc) *types.Pair
- func WithOffset(v int64) *types.Pair
- func WithPartSize(v int64) *types.Pair
- func WithProject(v string) *types.Pair
- func WithReadCallbackFunc(v func([]byte)) *types.Pair
- func WithSegmentFunc(v segment.Func) *types.Pair
- func WithSize(v int64) *types.Pair
- func WithStorageClass(v storageclass.Type) *types.Pair
- func WithStoragerFunc(v storage.StoragerFunc) *types.Pair
- func WithType(v string) *types.Pair
- func WithWorkDir(v string) *types.Pair
Constants ¶
const ( Checksum = "checksum" Context = "context" Credential = "credential" DirFunc = "dir_func" Endpoint = "endpoint" Expire = "expire" FileFunc = "file_func" Location = "location" Name = "name" ObjectFunc = "object_func" Offset = "offset" PartSize = "part_size" Project = "project" ReadCallbackFunc = "read_callback_func" SegmentFunc = "segment_func" Size = "size" StorageClass = "storage_class" StoragerFunc = "storager_func" Type = "type" WorkDir = "work_dir" )
All available pairs.
Variables ¶
This section is empty.
Functions ¶
func WithChecksum ¶
WithChecksum will apply checksum value to Options
func WithContext ¶ added in v0.6.0
WithContext will apply context value to Options
func WithCredential ¶
func WithCredential(v *credential.Provider) *types.Pair
WithCredential will apply credential value to Options
func WithDirFunc ¶
func WithDirFunc(v types.ObjectFunc) *types.Pair
WithDirFunc will apply dir_func value to Options
func WithEndpoint ¶
WithEndpoint will apply endpoint value to Options
func WithFileFunc ¶
func WithFileFunc(v types.ObjectFunc) *types.Pair
WithFileFunc will apply file_func value to Options
func WithLocation ¶
WithLocation will apply location value to Options
func WithObjectFunc ¶ added in v0.7.2
func WithObjectFunc(v types.ObjectFunc) *types.Pair
WithObjectFunc will apply object_func value to Options
func WithOffset ¶
WithOffset will apply offset value to Options
func WithPartSize ¶
WithPartSize will apply part_size value to Options
func WithProject ¶ added in v0.5.0
WithProject will apply project value to Options
func WithReadCallbackFunc ¶ added in v0.7.0
WithReadCallbackFunc will apply read_callback_func value to Options
func WithSegmentFunc ¶
WithSegmentFunc will apply segment_func value to Options
func WithStorageClass ¶
func WithStorageClass(v storageclass.Type) *types.Pair
WithStorageClass will apply storage_class value to Options
func WithStoragerFunc ¶
func WithStoragerFunc(v storage.StoragerFunc) *types.Pair
WithStoragerFunc will apply storager_func value to Options
func WithWorkDir ¶
WithWorkDir will apply work_dir value to Options
Types ¶
This section is empty.