Documentation
¶
Overview ¶
Package s3compat adapts S3-compatible object storage to ShellCN's shared file browser contract.
Index ¶
- func Actions(protocol string) []plugin.Action
- func AdminRoutes(protocol string) []plugin.Route
- func AuthFields(protocol string) []plugin.Field
- func BucketTab(protocol string) plugin.Panel
- func Connect(_ context.Context, cfg plugin.ConnectConfig, opts Options) (plugin.Session, error)
- type Client
- func (c *Client) Home(context.Context) (string, error)
- func (c *Client) MapError(err error) error
- func (c *Client) Mkdir(ctx context.Context, p string) error
- func (c *Client) Open(ctx context.Context, p string) (io.ReadCloser, error)
- func (c *Client) OpenRange(ctx context.Context, p string, offset, length int64) (io.ReadCloser, error)
- func (c *Client) ReadDir(ctx context.Context, p string) ([]os.FileInfo, error)
- func (c *Client) Remove(ctx context.Context, p string, isDir bool) error
- func (c *Client) Rename(ctx context.Context, from, to string) error
- func (c *Client) Stat(ctx context.Context, p string) (os.FileInfo, error)
- func (c *Client) Write(ctx context.Context, p string, r io.Reader) error
- type Options
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminRoutes ¶
func AuthFields ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) Filesystem ¶
func (s *Session) Filesystem() (filesystem.Client, error)
func (*Session) OpenChannel ¶
Click to show internal directories.
Click to hide internal directories.