Documentation
¶
Overview ¶
Package backends provides utilities for communicating with backend Jupyter API servers.
Index ¶
- type Backend
- func (b *Backend) Create(path string, body []byte) ([]byte, error)
- func (b *Backend) Delete(path string) error
- func (b *Backend) Get(path string) ([]byte, error)
- func (b *Backend) Name() string
- func (b *Backend) Patch(path string, body []byte) ([]byte, error)
- func (b *Backend) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (b *Backend) UnifiedID(localID string) string
- func (b *Backend) UnifiedName(localName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is a wrapper around a Jupyter API server.
func ParseUnifiedID ¶
ParseUnifiedID takes a resource ID that is globally unique and returns one that is specific to either the remote or local backend.
func (*Backend) Create ¶
Create inserts a new resource at the given URL path with the given contents.
func (*Backend) Get ¶
Get returns the contents (as a slice of bytes) of the resource at the given URL path.
func (*Backend) ServeHTTP ¶
func (b *Backend) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the http.Handler interface.
func (*Backend) UnifiedID ¶
UnifiedID takes a resource ID that is specific to the backend and returns an ID that is globally unique.
func (*Backend) UnifiedName ¶
UnifiedName takes the name for a resource in either the remote or local backend and returns a name that is appropriate for the combination of both backends.