Skip to content

Commit

Permalink
Search and select a VM spec based on server info
Browse files Browse the repository at this point in the history
  • Loading branch information
yunkon-kim committed May 30, 2024
1 parent 8df44ce commit 3eec733
Show file tree
Hide file tree
Showing 8 changed files with 181 additions and 143 deletions.
12 changes: 6 additions & 6 deletions api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Get a list of users",
"responses": {
Expand All @@ -499,7 +499,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Create a new user",
"parameters": [
Expand Down Expand Up @@ -539,7 +539,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Get specific user information",
"parameters": [
Expand Down Expand Up @@ -575,7 +575,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Update a user",
"parameters": [
Expand Down Expand Up @@ -620,7 +620,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Delete a user",
"parameters": [
Expand Down Expand Up @@ -662,7 +662,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Patch a user",
"parameters": [
Expand Down
12 changes: 6 additions & 6 deletions api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Get a list of users",
"responses": {
Expand All @@ -492,7 +492,7 @@
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Create a new user",
"parameters": [
Expand Down Expand Up @@ -532,7 +532,7 @@
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Get specific user information",
"parameters": [
Expand Down Expand Up @@ -568,7 +568,7 @@
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Update a user",
"parameters": [
Expand Down Expand Up @@ -613,7 +613,7 @@
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Delete a user",
"parameters": [
Expand Down Expand Up @@ -655,7 +655,7 @@
"application/json"
],
"tags": [
"[Sample] Users"
"[Sample API] Users"
],
"summary": "Patch a user",
"parameters": [
Expand Down
12 changes: 6 additions & 6 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ paths:
type: object
summary: Get a list of users
tags:
- '[Sample] Users'
- '[Sample API] Users'
post:
consumes:
- application/json
Expand All @@ -1339,7 +1339,7 @@ paths:
type: object
summary: Create a new user
tags:
- '[Sample] Users'
- '[Sample API] Users'
/sample/users/{id}:
delete:
consumes:
Expand Down Expand Up @@ -1368,7 +1368,7 @@ paths:
type: object
summary: Delete a user
tags:
- '[Sample] Users'
- '[Sample API] Users'
get:
consumes:
- application/json
Expand All @@ -1393,7 +1393,7 @@ paths:
type: object
summary: Get specific user information
tags:
- '[Sample] Users'
- '[Sample API] Users'
patch:
consumes:
- application/json
Expand Down Expand Up @@ -1428,7 +1428,7 @@ paths:
type: object
summary: Patch a user
tags:
- '[Sample] Users'
- '[Sample API] Users'
put:
consumes:
- application/json
Expand Down Expand Up @@ -1459,7 +1459,7 @@ paths:
type: object
summary: Update a user
tags:
- '[Sample] Users'
- '[Sample API] Users'
securityDefinitions:
BasicAuth:
type: basic
Expand Down
41 changes: 19 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ go 1.22.3

require (
github.com/cloud-barista/cb-store v0.8.0
github.com/cloud-barista/cb-tumblebug/src v0.0.0-20230724172618-8f225d0127e8
github.com/cloud-barista/cb-tumblebug v0.8.12
github.com/cloud-barista/cm-honeybee/agent v0.0.0-20240522171320-cb61f875f480
github.com/docker/docker v26.1.3+incompatible
github.com/fsnotify/fsnotify v1.7.0
github.com/go-playground/validator/v10 v10.17.0
github.com/go-resty/resty/v2 v2.11.0
github.com/labstack/echo/v4 v4.12.0
github.com/libvirt/libvirt-go-xml v7.4.0+incompatible
github.com/mattn/go-sqlite3 v1.14.19
github.com/rs/xid v1.5.0
github.com/rs/zerolog v1.32.0
Expand All @@ -26,12 +25,9 @@ require (

require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/NeowayLabs/drm v0.0.0-20190824133025-4939fc0ad345 // indirect
github.com/bramvdbogaerde/go-scp v1.2.1 // indirect
github.com/bwmarrin/snowflake v0.3.0 // indirect
github.com/cloud-barista/cb-larva v0.0.16 // indirect
github.com/cloud-barista/cb-log v0.6.3 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/cloud-barista/cb-log v0.8.0 // indirect
github.com/coreos/go-semver v0.3.1 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
Expand All @@ -50,7 +46,7 @@ require (
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/jollaman999/utils v1.0.10 // indirect
github.com/jedib0t/go-pretty/v6 v6.5.6 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/labstack/gommon v0.4.2 // indirect
Expand All @@ -59,6 +55,7 @@ require (
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand All @@ -67,6 +64,7 @@ require (
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/snowzach/rotatefilehook v0.0.0-20220211133110-53752135082d // indirect
Expand All @@ -77,33 +75,32 @@ require (
github.com/subosito/gotenv v1.6.0 // indirect
github.com/swaggo/files/v2 v2.0.0 // indirect
github.com/syndtr/goleveldb v1.0.0 // indirect
github.com/tidwall/gjson v1.14.4 // indirect
github.com/tidwall/gjson v1.17.1 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/xujiajun/mmap-go v1.0.1 // indirect
github.com/xujiajun/nutsdb v0.10.0 // indirect
github.com/xujiajun/utils v0.0.0-20190123093513-8bf096c4f53b // indirect
go.etcd.io/etcd/api/v3 v3.5.10 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect
go.etcd.io/etcd/client/v3 v3.5.10 // indirect
go.uber.org/atomic v1.10.0 // indirect
github.com/xujiajun/nutsdb v0.11.1 // indirect
github.com/xujiajun/utils v0.0.0-20220904132955-5f7c5b914235 // indirect
go.etcd.io/etcd/api/v3 v3.5.11 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.11 // indirect
go.etcd.io/etcd/client/v3 v3.5.11 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.23.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.21.0 // indirect
google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
google.golang.org/genproto v0.0.0-20240108191215-35c7eff3a6b1 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240108191215-35c7eff3a6b1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240108191215-35c7eff3a6b1 // indirect
google.golang.org/grpc v1.60.1 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
modernc.org/gc/v3 v3.0.0-20240304020402-f0dba7c97c2b // indirect
Expand Down
Loading

0 comments on commit 3eec733

Please sign in to comment.