aws-api

command module
v0.0.0-...-5186bfa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2024 License: MIT Imports: 9 Imported by: 0

README

AWS API

Web server that manages AWS EC2 instances, plans and services.

API

GET /metadata
Response data
{
  User: {
    ID: string,
    Email: string
  },
  Services: [...],
  Servers: [...]
}
POST /instance
Request body
{
  PlanID: uid
}
GET /instance/:id
Response data
{
  PublicIp: string,
  LaunchTime: Date,
  State: string
}

Models

User
  • ID: uid
  • Email: string
Plan
  • ID: uid
  • InstanceType: string
  • Name: string
  • VCores: number
  • Memory: number
  • Price: number
  • Disk: number
  • Enabled: boolean
Services
  • ID: string
  • MinMem: number
  • RecMem: number
  • Name: string
  • NameLong: string
Server
  • ID: uid
  • ServiceID: string
  • PlanID: uid
  • UserID: uid

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL