mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 12:20:33 +00:00
36 lines
823 B
Go
36 lines
823 B
Go
package model
|
|
|
|
const (
|
|
Freebsd_386 uint = iota
|
|
Freebsd_amd64
|
|
Freebsd_arm
|
|
Linux_386
|
|
Linux_amd64
|
|
Linux_arm
|
|
Linux_arm64
|
|
Solaris_amd64
|
|
Windows_386
|
|
Windows_amd64
|
|
)
|
|
|
|
var Archs = map[string]uint{
|
|
"freebsd_386": Freebsd_386,
|
|
"freebsd_amd64": Freebsd_amd64,
|
|
"freebsd_arm": Freebsd_arm,
|
|
"linux_386": Linux_386,
|
|
"linux_amd64": Linux_amd64,
|
|
"linux_arm": Linux_arm,
|
|
"linux_arm64": Linux_arm64,
|
|
"solaris_amd64": Solaris_amd64,
|
|
"windows_386": Windows_386,
|
|
"windows_amd64": Windows_amd64,
|
|
}
|
|
|
|
type Node struct {
|
|
ID int64 `meddler:"node_id,pk" json:"id"`
|
|
Addr string `meddler:"node_addr" json:"address"`
|
|
Arch string `meddler:"node_arch" json:"architecture"`
|
|
Cert string `meddler:"node_cert" json:"-"`
|
|
Key string `meddler:"node_key" json:"-"`
|
|
CA string `meddler:"node_ca" json:"-"`
|
|
}
|