MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithAutoExtension

Function WithAutoExtension

ots3/uploader.go:87–91  ·  view source on GitHub ↗

WithAutoExtension is an option that auto splice extension, default is true.

(auto bool)

Source from the content-addressed store, hash-verified

85
86// WithAutoExtension is an option that auto splice extension, default is true.
87func WithAutoExtension(auto bool) ManagerOptionFunc {
88 return func(c *ManagerConfig) {
89 c.autoExtension = auto
90 }
91}
92
93// NewManager creates a new S3 manager
94func NewManager(accessKey, accessSecret, endpoint, region, bucket string, opts ...ManagerOptionFunc) *Manager {

Callers 1

TestNewManagerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewManagerFunction · 0.68