Versions in this module Expand all Collapse all v0 v0.5.2 Aug 18, 2024 v0.5.1 Aug 18, 2024 Changes in this version + func NewHTTPError(statusCode int, cause error) error + func ServePrincipal(w http.ResponseWriter, r *http.Request, options *ServePrincipalOptions) + type BackendSuppliedHomeSet interface + GetXMLName func() xml.Name + type Capability string + type Client struct + func NewClient(c HTTPClient, endpoint string) (*Client, error) + func (c *Client) Copy(ctx context.Context, name, dest string, options *CopyOptions) error + func (c *Client) Create(ctx context.Context, name string) (io.WriteCloser, error) + func (c *Client) FindCurrentUserPrincipal(ctx context.Context) (string, error) + func (c *Client) Mkdir(ctx context.Context, name string) error + func (c *Client) Move(ctx context.Context, name, dest string, options *MoveOptions) error + func (c *Client) Open(ctx context.Context, name string) (io.ReadCloser, error) + func (c *Client) ReadDir(ctx context.Context, name string, recursive bool) ([]FileInfo, error) + func (c *Client) RemoveAll(ctx context.Context, name string) error + func (c *Client) Stat(ctx context.Context, name string) (*FileInfo, error) + type ConditionalMatch string + func (val ConditionalMatch) ETag() (string, error) + func (val ConditionalMatch) IsSet() bool + func (val ConditionalMatch) IsWildcard() bool + type CopyOptions struct + NoOverwrite bool + NoRecursive bool + type FileInfo struct + ETag string + IsDir bool + MIMEType string + ModTime time.Time + Path string + Size int64 + type FileSystem interface + Copy func(ctx context.Context, name, dest string, options *CopyOptions) (created bool, err error) + Create func(ctx context.Context, name string, body io.ReadCloser) (fileInfo *FileInfo, created bool, err error) + Mkdir func(ctx context.Context, name string) error + Move func(ctx context.Context, name, dest string, options *MoveOptions) (created bool, err error) + Open func(ctx context.Context, name string) (io.ReadCloser, error) + ReadDir func(ctx context.Context, name string, recursive bool) ([]FileInfo, error) + RemoveAll func(ctx context.Context, name string) error + Stat func(ctx context.Context, name string) (*FileInfo, error) + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + func HTTPClientWithBasicAuth(c HTTPClient, username, password string) HTTPClient + type Handler struct + FileSystem FileSystem + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type LocalFileSystem string + func (fs LocalFileSystem) Copy(ctx context.Context, src, dst string, options *CopyOptions) (created bool, err error) + func (fs LocalFileSystem) Create(ctx context.Context, name string, body io.ReadCloser) (*FileInfo, bool, error) + func (fs LocalFileSystem) Mkdir(ctx context.Context, name string) error + func (fs LocalFileSystem) Move(ctx context.Context, src, dst string, options *MoveOptions) (created bool, err error) + func (fs LocalFileSystem) Open(ctx context.Context, name string) (io.ReadCloser, error) + func (fs LocalFileSystem) ReadDir(ctx context.Context, name string, recursive bool) ([]FileInfo, error) + func (fs LocalFileSystem) RemoveAll(ctx context.Context, name string) error + func (fs LocalFileSystem) Stat(ctx context.Context, name string) (*FileInfo, error) + type MoveOptions struct + NoOverwrite bool + type ServePrincipalOptions struct + Capabilities []Capability + CurrentUserPrincipalPath string + HomeSets []BackendSuppliedHomeSet + type UserPrincipalBackend interface + CurrentUserPrincipal func(ctx context.Context) (string, error)