Documentation ¶
Index ¶
- Constants
- Variables
- func Run(files []string, options []Option, node Node, outputPath string, ...)
- type ApiActionResponse
- type AuthInfoResponse
- type InfoResponse
- type LoginResponse
- type Node
- func (n Node) CheckAuthentication(err error) error
- func (n Node) Info() (*InfoResponse, error)
- func (n Node) Options() ([]OptionResponse, error)
- func (n Node) String() string
- func (n Node) TaskCancel(uuid string) error
- func (n Node) TaskDownload(uuid string, asset string, outputFile string) error
- func (n Node) TaskInfo(uuid string) (*TaskInfoResponse, error)
- func (n Node) TaskNewCommit(uuid string) TaskNewResponse
- func (n Node) TaskNewInit(jsonOptions []byte) TaskNewResponse
- func (n Node) TaskNewUpload(file string, uuid string, bar *pb.ProgressBar) error
- func (n Node) TaskOutput(uuid string, line int) ([]string, error)
- func (n Node) TryLogin(username string, password string) (token string, err error)
- func (n Node) URLFor(path string) string
- type Option
- type OptionResponse
- type StatusCode
- type TaskInfoResponse
- type TaskNewResponse
Constants ¶
Variables ¶
View Source
var ErrAuthRequired = errors.New("Auth Required")
ErrAuthRequired means authorization is required
ErrUnauthorized means a response was not authorized
Functions ¶
Types ¶
type ApiActionResponse ¶
type AuthInfoResponse ¶
type InfoResponse ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type Node ¶
type Node struct { URL string `json:"url"` Token string `json:"token"` // contains filtered or unexported fields }
Node is a NodeODM processing node
func (Node) CheckAuthentication ¶
func (Node) TaskDownload ¶
TaskDownload GET: /task/<uuid>/download/<asset>
func (Node) TaskInfo ¶
func (n Node) TaskInfo(uuid string) (*TaskInfoResponse, error)
TaskInfo GET: /task/<uuid>/info
func (Node) TaskNewCommit ¶ added in v1.1.0
func (n Node) TaskNewCommit(uuid string) TaskNewResponse
TaskNewCommit POST: /task/new/commit/{uuid}
func (Node) TaskNewInit ¶ added in v1.1.0
func (n Node) TaskNewInit(jsonOptions []byte) TaskNewResponse
TaskNewInit POST: /task/new/init
func (Node) TaskNewUpload ¶ added in v1.1.0
TaskNewUpload POST: /task/new/upload/{uuid}
func (Node) TaskOutput ¶
TaskOutput GET: /task/<uuid>/output
type Option ¶
type Option struct { Name string `json:"name"` Value interface{} `json:"value"` }
Option is an option that can be passed to NodeODM
type OptionResponse ¶
type StatusCode ¶
type StatusCode struct {
Code int `json:"code"`
}
type TaskInfoResponse ¶
type TaskInfoResponse struct { ProcessingTime int `json:"processingTime"` Status StatusCode `json:"status"` }
type TaskNewResponse ¶
Click to show internal directories.
Click to hide internal directories.