server

package
v0.3.0-pre7 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

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 exposes simple HTTP API for programmatically accessing Kopia features.

func New

func New(ctx context.Context, rep *repo.Repository, hostname string, username string) (*Server, error)

New creates a Server on top of a given Repository. The server will manage sources for a given username@hostname.

func (*Server) APIHandlers

func (s *Server) APIHandlers() http.Handler

APIHandlers handles API requests.

Jump to

Keyboard shortcuts

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