filesystem

package
v0.0.0-...-5076e5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package filesystem provides a DirServer and StoreServer that serve files from a local file system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides DirServer and StoreServer implementations that serve files from a local file system.

func New

func New(cfg upspin.Config, root string) (*Server, error)

New creates a new filesystem Server instance serving the given root with the provided server configuration.

func (*Server) Close

func (s *Server) Close()

func (*Server) DirServer

func (s *Server) DirServer() upspin.DirServer

DirServer returns the DirServer implementation for this Server.

func (*Server) Endpoint

func (s *Server) Endpoint() upspin.Endpoint

func (*Server) Ping

func (s *Server) Ping() bool

func (*Server) StoreServer

func (s *Server) StoreServer() upspin.StoreServer

StoreServer returns the StoreServer implementation for this Server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL