Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the current version. it should be set by goreleaser Version string // commit is also set by goreleaser (in main.go) Commit string )
Functions ¶
func CopyFile ¶
CopyFile copies a file from src to dst. If src and dst files exist, and are the same, then return success. Otherwise, attempt to create a hard link between the two files. If that fail, copy the file contents from src to dst.
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func HumanUint32 ¶
HumanUint32 returns the number in a human readable format
Types ¶
type CrashEvent ¶ added in v0.1.8
type InitialStatusEvent ¶ added in v0.1.10
type LocalState ¶ added in v0.1.10
type LocalState struct {
Stats StatsState `json:"stats"`
}
type LogForwarder ¶ added in v0.1.8
type LogForwarder struct {
Remote *remote.Connection
}
type MinepkgMapping ¶
MinepkgMapping is a server mapping (very unfinished)
type ProgressEvent ¶ added in v0.1.8
type Root ¶ added in v0.1.5
type Root struct { HTTPClient *http.Client MinepkgAPI *api.MinepkgAPI NonInteractive bool // contains filtered or unexported fields }
type StatsEvent ¶ added in v0.1.8
type StatsEvent struct { Memory *mem.VirtualMemoryStat `json:"memory"` ProcessMemoryPercent float32 `json:"processMemoryPercent"` ProcessMemoryMiB float32 `json:"processMemoryMiB"` ProcessCPUPercent float64 `json:"processCPUPercent"` }
type StatsState ¶ added in v0.1.10
type TheThing ¶ added in v0.1.10
type TheThing struct { *remote.Connection State *LocalState }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.