Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
TwinID uint64 `json:"twin_id"`
Relays []string `json:"relays"` // Optional list of relay domains
RMBEncKey string `json:"rmb_enc_key"` // Optional base64 encoded public key for rmb communication
// The public key (ED25519 for nodes, ED25519 or SR25519 for farmers) in the more standard base64 since we are moving from substrate echo system?
// (still SS58 can be used or plain base58 ,TBD)
PublicKey string `json:"public_key"`
}
type AccountCreationRequest ¶
type AccountCreationRequest struct {
Timestamp int64 `json:"timestamp"`
PublicKey string `json:"public_key"`
// the registrar expect a signature of a message with format `timestampStr:publicKeyBase64`
// - signature format: base64(ed25519_or_sr22519_signature)
Signature string `json:"signature"`
Relays []string `json:"relays"`
RMBEncKey string `json:"rmb_enc_key"`
}
type Node ¶
type Node struct {
NodeID uint64 `json:"node_id"`
FarmID uint64 `json:"farm_id"`
TwinID uint64 `json:"twin_id"` // Node account reference
Location Location `json:"location"`
Resources Resources `json:"resources"`
Interfaces []Interface `json:"interface"`
SecureBoot bool `json:"secure_boot"`
Virtualized bool `json:"virtualized"`
SerialNumber string `json:"serial_number"`
UptimeReports []UptimeReport `json:"uptime"`
Approved bool
}
type UpdateAccountRequest ¶
type UpdateAccountRequest struct {
Relays pq.StringArray `json:"relays"`
RMBEncKey string `json:"rmb_enc_key"`
}
type UpdateNodeRequest ¶
type UpdateNodeRequest struct {
TwinID uint64 `json:"twin_id" binding:"required,min=1"`
FarmID uint64 `json:"farm_id" binding:"required,min=1"`
Resources Resources `json:"resources" binding:"required"`
Location Location `json:"location" binding:"required"`
Interfaces []Interface `json:"interfaces" binding:"required"`
SecureBoot bool `json:"secure_boot"`
Virtualized bool `json:"virtualized"`
SerialNumber string `json:"serial_number" binding:"required"`
}
type UptimeReport ¶
type UptimeReportRequest ¶
type ZosVersion ¶
Click to show internal directories.
Click to hide internal directories.