Documentation ¶
Index ¶
- type Client
- func (c Client) GetObject(ctx context.Context, objectPath string) (*storage.ObjectReader, error)
- func (c Client) HeadObject(ctx context.Context, objectPath string) (obj *storage.Object, err error)
- func (c Client) ListObject(ctx context.Context, objectPrefix string, recursion bool, ...) error
- func (c Client) MarshalJSON() ([]byte, error)
- func (c Client) Name() string
- func (c Client) Open(name string) (fs.File, error)
- func (c Client) PutObject(ctx context.Context, objectPath string, obj io.Reader, headers http2.Header, ...) error
- func (c Client) ReadDir(name string) ([]fs.DirEntry, error)
- func (c Client) Type() string
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) HeadObject ¶
func (Client) ListObject ¶
func (Client) MarshalJSON ¶
type Options ¶
type Options struct { Type string `json:"type,omitempty" yaml:"type,omitempty" mapstructure:"type"` Endpoint string `json:"endpoint,omitempty" yaml:"endpoint,omitempty" mapstructure:"endpoint"` AccessKeyId string `json:"access_key_id,omitempty" yaml:"access_key_id,omitempty" mapstructure:"access_key_id"` SecretAccessKey safe.String `json:"secret_access_key,omitempty" yaml:"secret_access_key,omitempty" mapstructure:"secret_access_key"` Bucket string `json:"bucket,omitempty" yaml:"bucket,omitempty" mapstructure:"bucket"` Region string `json:"region,omitempty" yaml:"region,omitempty" mapstructure:"region"` Worker int `json:"worker,omitempty" yaml:"worker,omitempty" mapstructure:"worker"` }
Click to show internal directories.
Click to hide internal directories.