0
0
package market
import "time"
//go:generate go run ../../lexgen -err ErrInvalidRecord -include com.publicdomainrelay.temp.market.,com.publicdomainrelay.temp.ingress.,com.publicdomainrelay.temp.compute.,com.publicdomainrelay.temp.badgeBlueKeys,network.attested.signature,com.atproto.repo.strongRef -trim com.publicdomainrelay.temp.market.,com.publicdomainrelay.temp.,com.atproto.repo.,network. -name network.attested.signature#signatures=Signatures,com.publicdomainrelay.temp.market.offering#endpoint=Endpoint,com.publicdomainrelay.temp.compute.events.vm.hostKeys#hostKey=HostKey,com.publicdomainrelay.temp.market.heartbeat#runningVersion=HeartbeatVersion
const (
StrongRefNSID = "com.atproto.repo.strongRef"
RFPNSID = "com.publicdomainrelay.temp.market.rfp"
BidNSID = "com.publicdomainrelay.temp.market.bid"
AcceptNSID = "com.publicdomainrelay.temp.market.accept"
ReceiptNSID = "com.publicdomainrelay.temp.market.receipt"
EventNSID = "com.publicdomainrelay.temp.market.event"
OfferingNSID = "com.publicdomainrelay.temp.market.offering"
HeartbeatNSID = "com.publicdomainrelay.temp.market.heartbeat"
AssociationNSID = "com.publicdomainrelay.temp.market.association"
AssociationRequestNSID = "com.publicdomainrelay.temp.market.associationRequest"
EndorsementNSID = "link.ident.endorsement"
BidsFreeNSID = "com.publicdomainrelay.temp.market.bids.free"
BidsX402NSID = "com.publicdomainrelay.temp.market.bids.x402"
AcceptsFreeNSID = "com.publicdomainrelay.temp.market.accepts.free"
AcceptsX402NSID = "com.publicdomainrelay.temp.market.accepts.x402"
ReceiptsFreeNSID = "com.publicdomainrelay.temp.market.receipts.free"
ReceiptsX402NSID = "com.publicdomainrelay.temp.market.receipts.x402"
SubmitRFPNSID = "com.publicdomainrelay.temp.market.submitRfp"
SubmitBidNSID = "com.publicdomainrelay.temp.market.submitBid"
SubmitAcceptNSID = "com.publicdomainrelay.temp.market.submitAccept"
SubmitEventNSID = "com.publicdomainrelay.temp.market.submitEvent"
SubmitRFPLXM = SubmitRFPNSID
SubmitBidLXM = SubmitBidNSID
SubmitAcceptLXM = SubmitAcceptNSID
SubmitEventLXM = SubmitEventNSID
ComputeVMNSID = "com.publicdomainrelay.temp.compute.vm"
ComputeEventsVMDeleteNSID = "com.publicdomainrelay.temp.compute.events.vm.delete"
ComputeEventsVMOnNetworkNSID = "com.publicdomainrelay.temp.compute.events.vm.onNetwork"
ComputeEventsVMSandboxNSID = "com.publicdomainrelay.temp.compute.events.vm.sandbox"
ComputeEventsVMTerminatedNSID = "com.publicdomainrelay.temp.compute.events.vm.terminated"
ComputeEventsVMHostKeysNSID = "com.publicdomainrelay.temp.compute.events.vm.hostKeys"
ComputeEventsVMMemoryPressureNSID = "com.publicdomainrelay.temp.compute.events.vm.memoryPressure"
ComputeEventsVMOOMKilledNSID = "com.publicdomainrelay.temp.compute.events.vm.oomKilled"
GuestEventNSIDPrefix = "com.publicdomainrelay.temp.compute.events.guest."
ComputeEventsGuestPublicKeyNSID = GuestEventNSIDPrefix + "publicKey"
ComputeEventsGuestSignalWebRTCNSID = GuestEventNSIDPrefix + "signalWebRTC"
ComputeEventsGuestSecretsNSID = GuestEventNSIDPrefix + "secrets"
ComputeEventsGuestSecretsAppliedNSID = GuestEventNSIDPrefix + "secretsApplied"
ComputeEventsGuestSecretsRequestedNSID = GuestEventNSIDPrefix + "secretsRequested"
ComputeEventsGuestAgentStartNSID = GuestEventNSIDPrefix + "agentStart"
ComputeEventsGuestRequesterDIDNSID = GuestEventNSIDPrefix + "requesterDid"
ComputeEventsGuestSecretsUpdatedNSID = GuestEventNSIDPrefix + "secretsUpdated"
ComputeEventsGuestR2StartNSID = GuestEventNSIDPrefix + "r2Start"
ComputeEventsGuestR2ReleaseNSID = GuestEventNSIDPrefix + "r2Release"
ComputeEventsGuestR2ReleasedNSID = GuestEventNSIDPrefix + "r2Released"
ComputeEventsGuestMemoryPressureNSID = GuestEventNSIDPrefix + "memoryPressure"
ComputeEventsGuestOOMKillNSID = GuestEventNSIDPrefix + "oomKill"
ComputeEventsGuestImageNSID = GuestEventNSIDPrefix + "image"
ComputeGuestSubscribeEventsNSID = "com.publicdomainrelay.temp.compute.guest.subscribeEvents"
IngressWebRTCNSID = "com.publicdomainrelay.temp.ingress.webRTC"
IngressListenNSID = "computer.socialweb.ingress.listen"
IngressOfferNSID = "computer.socialweb.ingress.offer"
IngressAnswerNSID = "computer.socialweb.ingress.answer"
MarketListenRKey = "market"
IngressModeListen = "listen"
IngressModeOffer = "offer"
IngressModeAnswer = "answer"
BadgeBlueKeysNSID = "com.publicdomainrelay.temp.badgeBlueKeys"
VouchNSID = "sh.tangled.graph.vouch"
RelaysNSID = "com.publicdomainrelay.temp.market.relays"
AttestedSignatureNSID = "network.attested.signature"
AttestedProofNSID = "network.attested.proof"
AttestedVerifyNSID = "network.attested.verify"
DefaultMarketServiceID = "pdr_temp_market"
DefaultComputeEventServiceID = "pdr_temp_compute_event"
HeartbeatRKey = "self"
OfferingRKey = "self"
RelaysRKey = "self"
)
const (
HeartbeatInterval = 60 * time.Second
HeartbeatTTL = 300 * time.Second
)
var VMTerminatedReasons = []string{
"guest_poweroff",
"vmm_exited",
"oom",
"host_reboot",
"identity_mismatch",
"deleted_on_request",
"expired",
"image_refused",
"association_ended",
}
var VMHostKeyTypes = []string{
"ssh-ed25519",
"ecdsa-sha2-nistp256",
"ssh-rsa",
}