Documentation ¶
Index ¶
- Variables
- type ErrorResponse
- type Manta
- func (m *Manta) AddJobInputs(id string, jobInputs []byte) error
- func (m *Manta) CancelJob(id string) error
- func (m *Manta) CreateJob(job []byte) (string, error)
- func (m *Manta) DeleteDirectory(path string) error
- func (m *Manta) DeleteObject(objPath string) error
- func (m *Manta) EndJobInput(id string) error
- func (m *Manta) GetJob(id string) (*manta.Job, error)
- func (m *Manta) GetJobErrors(id string) ([]manta.JobError, error)
- func (m *Manta) GetJobFailures(id string) (string, error)
- func (m *Manta) GetJobInput(id string) (string, error)
- func (m *Manta) GetJobOutput(id string) (string, error)
- func (m *Manta) GetObject(objPath string) ([]byte, error)
- func (m *Manta) IsDirectory(name string) bool
- func (m *Manta) IsObject(name string) bool
- func (m *Manta) ListDirectory(path, marker string, limit int) ([]manta.Entry, error)
- func (m *Manta) ListJobs(live bool) ([]manta.Entry, error)
- func (m *Manta) PutDirectory(path string) error
- func (m *Manta) PutObject(path, objName string, objData []byte) error
- func (m *Manta) PutSnapLink(path, linkName, location string) error
- func (m *Manta) SetupHTTP(mux *httprouter.Router)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAllowed = &ErrorResponse{ http.StatusMethodNotAllowed, "Method is not allowed", "text/plain; charset=UTF-8", "MethodNotAllowedError", nil, nil, } ErrNotFound = &ErrorResponse{ http.StatusNotFound, "Resource Not Found", "text/plain; charset=UTF-8", "NotFoundError", nil, nil, } ErrBadRequest = &ErrorResponse{ http.StatusBadRequest, "Malformed request url", "text/plain; charset=UTF-8", "BadRequestError", nil, nil, } )
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
ErrorResponse defines a single HTTP error response.
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
func (*ErrorResponse) ServeHTTP ¶
func (e *ErrorResponse) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Manta ¶
type Manta struct { localservices.ServiceInstance // contains filtered or unexported fields }
func (*Manta) DeleteDirectory ¶
func (*Manta) DeleteObject ¶
func (*Manta) EndJobInput ¶
func (*Manta) IsDirectory ¶
func (*Manta) ListDirectory ¶
Directories APIs
func (*Manta) PutDirectory ¶
func (*Manta) PutSnapLink ¶
Link APIs
func (*Manta) SetupHTTP ¶
func (m *Manta) SetupHTTP(mux *httprouter.Router)
setupHTTP attaches all the needed handlers to provide the HTTP API.
Click to show internal directories.
Click to hide internal directories.