Versions in this module Expand all Collapse all v21 v21.11.1 Apr 26, 2022 Changes in this version + const NotFound type Location + HasObject func(string, string) (bool, fail.Error) + InvalidateObject func(string, string) fail.Error + ItemEtag func(string, string) (string, fail.Error) v21.11.0 Feb 17, 2022 Changes in this version + const BucketNamePrefix + const NoPrefix + const RootPath + func BuildMetadataBucketName(driver, region, domain, project string) (name string, xerr fail.Error) + func NewLocation(conf Config) (_ *location, xerr fail.Error) + type Bucket interface + Browse func(string, string, func(Object) fail.Error) fail.Error + Clear func(path, prefix string) fail.Error + CreateObject func(string) (Object, fail.Error) + DeleteObject func(string) fail.Error + GetCount func(string, string) (int64, fail.Error) + GetName func() (string, fail.Error) + GetSize func(string, string) (int64, string, fail.Error) + InspectObject func(string) (Object, fail.Error) + ListObjects func(string, string) ([]string, fail.Error) + ReadObject func(string, io.Writer, int64, int64) (Object, fail.Error) + WriteMultiPartObject func(string, io.Reader, int64, int, abstract.ObjectStorageItemMetadata) (Object, fail.Error) + WriteObject func(string, io.Reader, int64, abstract.ObjectStorageItemMetadata) (Object, fail.Error) + func NullBucket() Bucket + type Config struct + AuthURL string + AuthVersion int + AvailabilityZone string + BucketName string + Credentials string + DNS string + Domain string + Endpoint string + EndpointType string + EnvAuth bool + Key string + ProjectID string + Region string + SecretKey string + Tenant string + TenantDomain string + Type string + User string + type Location interface + ClearBucket func(string, string, string) fail.Error + Configuration func() Config + CreateBucket func(string) (abstract.ObjectStorageBucket, fail.Error) + DeleteBucket func(string) fail.Error + DeleteObject func(string, string) fail.Error + FindBucket func(string) (bool, fail.Error) + InspectBucket func(string) (abstract.ObjectStorageBucket, fail.Error) + InspectObject func(string, string) (abstract.ObjectStorageItem, fail.Error) + ListBuckets func(string) ([]string, fail.Error) + ListObjects func(string, string, string) ([]string, fail.Error) + Protocol func() string + ReadObject func(string, string, io.Writer, int64, int64) fail.Error + WriteMultiPartObject func(string, string, io.Reader, int64, int, abstract.ObjectStorageItemMetadata) (abstract.ObjectStorageItem, fail.Error) + WriteObject func(string, string, io.Reader, int64, abstract.ObjectStorageItemMetadata) (abstract.ObjectStorageItem, fail.Error) + type Object interface + AddMetadata func(abstract.ObjectStorageItemMetadata) fail.Error + Delete func() fail.Error + ForceAddMetadata func(abstract.ObjectStorageItemMetadata) fail.Error + GetETag func() (string, fail.Error) + GetID func() (string, fail.Error) + GetLastUpdate func() (time.Time, fail.Error) + GetMetadata func() (abstract.ObjectStorageItemMetadata, fail.Error) + GetName func() (string, fail.Error) + GetSize func() (int64, fail.Error) + Read func(io.Writer, int64, int64) fail.Error + Reload func() fail.Error + ReplaceMetadata func(abstract.ObjectStorageItemMetadata) fail.Error + Stored func() bool + Write func(io.Reader, int64) fail.Error + WriteMultiPart func(io.Reader, int64, int) fail.Error Other modules containing this package github.com/CS-SI/SafeScale