mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-29 16:12:56 +00:00
This uses the Packet.net API and iPXE to boot a Moby host. There are several enhancements coming soon, such as SSH key customisation, but this PR is sufficient to boot a host and then use the web interface to get console access. The user must currently upload the built artefacts to a public URL and specify it via --base-url, e.g.: moby run packet --api-key <key> --project-id <id> \ --base-url http://recoil.org/~avsm/ipxe --hostname test-moby packet See #1424 #1245 for related issues. Signed-off-by: Anil Madhavapeddy <anil@docker.com>
13 lines
304 B
Go
13 lines
304 B
Go
package packngo
|
|
|
|
// Rate provides the API request rate limit details
|
|
type Rate struct {
|
|
RequestLimit int `json:"request_limit"`
|
|
RequestsRemaining int `json:"requests_remaining"`
|
|
Reset Timestamp `json:"rate_reset"`
|
|
}
|
|
|
|
func (r Rate) String() string {
|
|
return Stringify(r)
|
|
}
|