/usr/share/gocode/src/github.com/lxc/lxd/shared/operation.go is in golang-github-lxc-lxd-dev 2.0.2-0ubuntu1~16.04.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | package shared
import (
"net/http"
"time"
"github.com/gorilla/websocket"
)
var WebsocketUpgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool { return true },
}
type Operation struct {
Id string `json:"id"`
Class string `json:"class"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Status string `json:"status"`
StatusCode StatusCode `json:"status_code"`
Resources map[string][]string `json:"resources"`
Metadata *Jmap `json:"metadata"`
MayCancel bool `json:"may_cancel"`
Err string `json:"err"`
}
|