...
This commit is contained in:
@@ -196,7 +196,7 @@ function os_update {
|
||||
apt autoremove -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes
|
||||
fi
|
||||
#apt install apt-transport-https ca-certificates curl software-properties-common -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes
|
||||
package_install "apt-transport-https ca-certificates curl wget software-properties-common tmux"
|
||||
package_install "apt-transport-https ca-certificates curl wget software-properties-common tmux make tcc gcc"
|
||||
package_install "rclone rsync mc redis-server screen net-tools git dnsutils htop ca-certificates screen lsb-release binutils pkg-config libssl-dev iproute2"
|
||||
|
||||
elif [[ "${OSNAME}" == "darwin"* ]]; then
|
||||
|
||||
@@ -1,19 +1,21 @@
|
||||
module datamodel
|
||||
|
||||
@[heap]
|
||||
pub struct Reservation {
|
||||
//I can bid for infra, and optionally get accepted
|
||||
pub struct Bid {
|
||||
pub mut:
|
||||
id u32
|
||||
customer_id u32 //links back to customer for this capacity
|
||||
compute_slices []u32
|
||||
customer_id u32 //links back to customer for this capacity (user on ledger)
|
||||
compute_slices_nr int //nr of slices I need in 1 machine
|
||||
compute_slice f64 //price per 1 GB slice I want to accept
|
||||
storage_slices []u32
|
||||
status ReservationStatus
|
||||
status BidStatus
|
||||
obligation bool //if obligation then will be charged and money needs to be in escrow, otherwise its an intent
|
||||
start_date u32 //epoch
|
||||
end_date u32
|
||||
}
|
||||
|
||||
pub enum ReservationStatus {
|
||||
pub enum BidStatus {
|
||||
pending
|
||||
confirmed
|
||||
assigned
|
||||
|
||||
@@ -8,7 +8,6 @@ pub mut:
|
||||
compute_slices []u32
|
||||
storage_slices []u32
|
||||
status ReservationStatus
|
||||
obligation bool //if obligation then will be charged and money needs to be in escrow, otherwise its an intent
|
||||
start_date u32 //epoch
|
||||
end_date u32
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user