Versions in this module Expand all Collapse all v1 v1.0.0 Nov 15, 2023 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) CopyAll(name, dest string, overwrite bool) error + func (c *Client) Create(name string) (io.WriteCloser, error) + func (c *Client) FindCurrentUserPrincipal() (string, error) + func (c *Client) Mkdir(name string) error + func (c *Client) MoveAll(name, dest string, overwrite bool) error + func (c *Client) Open(name string) (io.ReadCloser, error) + func (c *Client) Readdir(name string, recursive bool) ([]FileInfo, error) + func (c *Client) RemoveAll(name string) error + func (c *Client) Stat(name string) (*FileInfo, error) + type ConditionalMatch string + func (val ConditionalMatch) ETag() (string, error) + func (val ConditionalMatch) IsSet() bool + func (val ConditionalMatch) IsWildcard() bool + type FileInfo struct + ETag string + IsDir bool + MIMEType string + ModTime time.Time + Path string + Size int64 + type FileSystem interface + Copy func(name, dest string, recursive, overwrite bool) (created bool, err error) + Create func(name string) (io.WriteCloser, error) + Mkdir func(name string) error + MoveAll func(name, dest string, overwrite bool) (created bool, err error) + Open func(name string) (io.ReadCloser, error) + Readdir func(name string, recursive bool) ([]FileInfo, error) + RemoveAll func(name string) error + Stat func(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(src, dst string, recursive, overwrite bool) (created bool, err error) + func (fs LocalFileSystem) Create(name string) (io.WriteCloser, error) + func (fs LocalFileSystem) Mkdir(name string) error + func (fs LocalFileSystem) MoveAll(src, dst string, overwrite bool) (created bool, err error) + func (fs LocalFileSystem) Open(name string) (io.ReadCloser, error) + func (fs LocalFileSystem) Readdir(name string, recursive bool) ([]FileInfo, error) + func (fs LocalFileSystem) RemoveAll(name string) error + func (fs LocalFileSystem) Stat(name string) (*FileInfo, error) + type ServePrincipalOptions struct + Capabilities []Capability + CurrentUserPrincipalPath string + HomeSets []BackendSuppliedHomeSet + type UserPrincipalBackend interface + CurrentUserPrincipal func(ctx context.Context) (string, error)