Documentation ¶
Index ¶
- Constants
- type Config
- type LogWrapper
- type Storage
- func (s *Storage) Delete(ctx context.Context, filePaths ...string) error
- func (s *Storage) Dirname() string
- func (s *Storage) Exists(ctx context.Context, fileName string) (bool, error)
- func (s *Storage) GetCwd() string
- func (s *Storage) GetObject(ctx context.Context, filePath string) (writer io.ReadCloser, err error)
- func (s *Storage) ListDir(ctx context.Context) (files []string, dirs []storages.Storager, err error)
- func (s *Storage) PutObject(ctx context.Context, filePath string, body io.Reader) error
- func (s *Storage) SubStorage(subPath string, relative bool) storages.Storager
Constants ¶
View Source
const ( NotFountAwsErrorCode = "NotFound" NoSuchKeyAwsErrorCode = "NoSuchKey" )
View Source
const DefaultS3ObjectsDelimiter = "/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Endpoint string `mapstructure:"endpoint,omitempty"` Bucket string `mapstructure:"bucket,omitempty"` Prefix string `mapstructure:"prefix,omitempty"` Region string `mapstructure:"region,omitempty"` StorageClass string `mapstructure:"storage_class,omitempty"` DisableSSL bool `mapstructure:"disable_ssl,omitempty"` AccessKeyId string `mapstructure:"access_key_id,omitempty"` SecretAccessKey string `mapstructure:"secret_access_key,omitempty"` SessionToken string `mapstructure:"session_token,omitempty"` RoleArn string `mapstructure:"role_arn,omitempty"` SessionName string `mapstructure:"session_name,omitempty"` MaxRetries int `mapstructure:"max_retries,omitempty"` CertFile string `mapstructure:"cert_file,omitempty"` MaxPartSize int64 `mapstructure:"max_part_size,omitempty"` Concurrency int `mapstructure:"concurrency,omitempty"` UseListObjectsV1 bool `mapstructure:"use_list_objects_v1,omitempty"` ForcePathStyle bool `mapstructure:"force_path_style,omitempty"` UseAccelerate bool `mapstructure:"use_accelerate,omitempty"` }
type LogWrapper ¶
type LogWrapper struct {
// contains filtered or unexported fields
}
func (LogWrapper) Log ¶
func (lw LogWrapper) Log(objs ...interface{})
Click to show internal directories.
Click to hide internal directories.