Documentation
¶
Index ¶
- Constants
- Variables
- func New(ctx context.Context, bucket string, opts ...*Options) (storage.ObjectStorage, error)
- func NewEmpty(ctx context.Context, opts ...*Options) (storage.ObjectStorage, error)
- type OpError
- type Options
- func (opts *Options) SetBufferSize(size int64) *Options
- func (opts *Options) SetConnectionString(connStr string) *Options
- func (opts *Options) SetContentType(typ string) *Options
- func (opts *Options) SetProxyURI(proxyURI *url.URL) *Options
- func (opts *Options) SetSharedKey(sk SharedKeyCredentials) *Options
- type SharedKeyCredentials
Constants ¶
View Source
const ( OpHealthCheck = "HealthCheck" OpGetObject = "GetObject" OpPutObject = "PutObject" OpDeleteObject = "DeleteObject" OpStatObject = "StatObject" OpGetRequest = "GetRequest" OpDeleteRequest = "DeleteRequest" OpPutRequest = "PutRequest" )
View Source
const ( BufferSizeMin = 4 * 1024 // 4KiB BufferSizeDefault = 8 * BufferSizeMin // 32KiB - same default as used in io.Copy )
Variables ¶
View Source
var ( ErrStorageSettings = errors.New("storage settings invalid") ErrEmptyClient = errors.New("storage client not configured") )
View Source
var ( ErrConnStrNoName = errors.New("connection string does not contain an account name") ErrConnStrNoKey = errors.New("connection string does not contain an account key") )
Functions ¶
Types ¶
type Options ¶
type Options struct { ConnectionString *string ProxyURI *url.URL BufferSize int64 ContentType *string }
func NewOptions ¶
func (*Options) SetBufferSize ¶
func (*Options) SetConnectionString ¶
func (*Options) SetContentType ¶
func (*Options) SetSharedKey ¶
func (opts *Options) SetSharedKey(sk SharedKeyCredentials) *Options
type SharedKeyCredentials ¶
type SharedKeyCredentials struct {}
Click to show internal directories.
Click to hide internal directories.