mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Improving certain CLI commands: init, run (#207)
* Consolidating route type utilization Fixes: #197 * Adding --version to fn init CLI command * Updating functions_go to 0.1.36 * Updating route init process * Updating tests * Adding "memory" CLI flag to fn run * Make CLI memory flag override what's in func.yaml * Get rid of default value for memory flag * Revert UX impact func.yaml remains the same, no nested maps
This commit is contained in:
committed by
Travis Reeder
parent
1730a7d094
commit
24eacbbbbf
2
cli/vendor/github.com/funcy/functions_go/VERSION
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/VERSION
generated
vendored
@@ -1 +1 @@
|
||||
0.1.35
|
||||
0.1.36
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/apps_client.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/apps_client.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/delete_apps_app_parameters.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/delete_apps_app_parameters.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/delete_apps_app_responses.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/delete_apps_app_responses.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/get_apps_app_parameters.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/get_apps_app_parameters.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/get_apps_app_responses.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/get_apps_app_responses.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/get_apps_parameters.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/get_apps_parameters.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/get_apps_responses.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/get_apps_responses.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/patch_apps_app_parameters.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/patch_apps_app_parameters.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/patch_apps_app_responses.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/patch_apps_app_responses.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/post_apps_parameters.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/post_apps_parameters.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/apps/post_apps_responses.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/apps/post_apps_responses.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package apps
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
4
cli/vendor/github.com/funcy/functions_go/client/call/call_client.go
generated
vendored
4
cli/vendor/github.com/funcy/functions_go/client/call/call_client.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package call
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
@@ -36,7 +38,7 @@ func (a *Client) GetAppsAppCalls(params *GetAppsAppCallsParams) (*GetAppsAppCall
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
ID: "GetAppsAppCalls",
|
||||
Method: "GET",
|
||||
PathPattern: "/apps/{app}/calls/",
|
||||
PathPattern: "/apps/{app}/calls",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http", "https"},
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package call
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package call
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package call
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
6
cli/vendor/github.com/funcy/functions_go/client/call/get_apps_app_calls_responses.go
generated
vendored
6
cli/vendor/github.com/funcy/functions_go/client/call/get_apps_app_calls_responses.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package call
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
@@ -56,7 +58,7 @@ type GetAppsAppCallsOK struct {
|
||||
}
|
||||
|
||||
func (o *GetAppsAppCallsOK) Error() string {
|
||||
return fmt.Sprintf("[GET /apps/{app}/calls/][%d] getAppsAppCallsOK %+v", 200, o.Payload)
|
||||
return fmt.Sprintf("[GET /apps/{app}/calls][%d] getAppsAppCallsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAppsAppCallsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
@@ -85,7 +87,7 @@ type GetAppsAppCallsNotFound struct {
|
||||
}
|
||||
|
||||
func (o *GetAppsAppCallsNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /apps/{app}/calls/][%d] getAppsAppCallsNotFound %+v", 404, o.Payload)
|
||||
return fmt.Sprintf("[GET /apps/{app}/calls][%d] getAppsAppCallsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAppsAppCallsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/functions_client.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/functions_client.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/operations/operations_client.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/operations/operations_client.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package operations
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/routes/routes_client.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/routes/routes_client.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package routes
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/tasks/get_tasks_parameters.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/tasks/get_tasks_parameters.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package tasks
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/tasks/get_tasks_responses.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/tasks/get_tasks_responses.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package tasks
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/tasks/tasks_client.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/tasks/tasks_client.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package tasks
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/version/get_version_parameters.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/version/get_version_parameters.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package version
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/version/get_version_responses.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/version/get_version_responses.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package version
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/client/version/version_client.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/client/version/version_client.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package version
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/app.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/app.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/app_wrapper.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/app_wrapper.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/apps_wrapper.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/apps_wrapper.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/call.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/call.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/call_wrapper.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/call_wrapper.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/calls_wrapper.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/calls_wrapper.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/error.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/error.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/error_body.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/error_body.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/log.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/log.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/log_wrapper.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/log_wrapper.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
4
cli/vendor/github.com/funcy/functions_go/models/route.go
generated
vendored
4
cli/vendor/github.com/funcy/functions_go/models/route.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
@@ -33,7 +35,7 @@ type Route struct {
|
||||
Image string `json:"image,omitempty"`
|
||||
|
||||
// Max usable memory for this route (MiB).
|
||||
Memory int64 `json:"memory,omitempty"`
|
||||
Memory uint64 `json:"memory,omitempty"`
|
||||
|
||||
// URL path that will be matched to this route
|
||||
// Read Only: true
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/route_wrapper.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/route_wrapper.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/routes_wrapper.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/routes_wrapper.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/task.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/task.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/task_wrapper.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/task_wrapper.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
2
cli/vendor/github.com/funcy/functions_go/models/version.go
generated
vendored
2
cli/vendor/github.com/funcy/functions_go/models/version.go
generated
vendored
@@ -1,3 +1,5 @@
|
||||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
|
||||
Reference in New Issue
Block a user