mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Merge pull request #235 from fnproject/228
Updating CLI with newer functions_go 0.3.37
This commit is contained in:
8
cli/glide.lock
generated
8
cli/glide.lock
generated
@@ -1,5 +1,5 @@
|
|||||||
hash: da81ae46b9ef53596e8daaaa1aeb662af8704d77ae34ce2d33c7da87e6bd1ef5
|
hash: fc16e358787292cb0b0d7f71adf4f0685b5994ca1c81788fdd056de21ebe7e55
|
||||||
updated: 2017-08-09T23:25:49.919468872+03:00
|
updated: 2017-08-18T21:34:47.686061147+03:00
|
||||||
imports:
|
imports:
|
||||||
- name: github.com/asaskevich/govalidator
|
- name: github.com/asaskevich/govalidator
|
||||||
version: aa5cce4a76edb1a5acecab1870c17abbffb5419e
|
version: aa5cce4a76edb1a5acecab1870c17abbffb5419e
|
||||||
@@ -50,15 +50,13 @@ imports:
|
|||||||
- name: github.com/docker/go-units
|
- name: github.com/docker/go-units
|
||||||
version: 0dadbb0345b35ec7ef35e228dabb8de89a65bf52
|
version: 0dadbb0345b35ec7ef35e228dabb8de89a65bf52
|
||||||
- name: github.com/funcy/functions_go
|
- name: github.com/funcy/functions_go
|
||||||
version: fc7e7ca2fbc8bef236300b7b9f1075410a62447f
|
version: e046aa4ca1f1028a04fc51395297ff07515cb0b6
|
||||||
subpackages:
|
subpackages:
|
||||||
- client
|
- client
|
||||||
- client/apps
|
- client/apps
|
||||||
- client/call
|
- client/call
|
||||||
- client/operations
|
- client/operations
|
||||||
- client/routes
|
- client/routes
|
||||||
- client/tasks
|
|
||||||
- client/version
|
|
||||||
- models
|
- models
|
||||||
- name: github.com/giantswarm/semver-bump
|
- name: github.com/giantswarm/semver-bump
|
||||||
version: 88e6c9f2fe390c48839eaba32490fd09cb3b581c
|
version: 88e6c9f2fe390c48839eaba32490fd09cb3b581c
|
||||||
|
|||||||
6
cli/vendor/github.com/funcy/functions_go/VERSION
generated
vendored
6
cli/vendor/github.com/funcy/functions_go/VERSION
generated
vendored
@@ -1 +1,5 @@
|
|||||||
0.1.36
|
<<<<<<< 60da1c5f65dda96b9aeaeb2afbc513bf134a1990
|
||||||
|
0.1.36
|
||||||
|
=======
|
||||||
|
0.1.37
|
||||||
|
>>>>>>> Updating CLI dependency: functions_go 0.1.37
|
||||||
|
|||||||
14
cli/vendor/github.com/funcy/functions_go/client/functions_client.go
generated
vendored
14
cli/vendor/github.com/funcy/functions_go/client/functions_client.go
generated
vendored
@@ -15,8 +15,6 @@ import (
|
|||||||
"github.com/funcy/functions_go/client/call"
|
"github.com/funcy/functions_go/client/call"
|
||||||
"github.com/funcy/functions_go/client/operations"
|
"github.com/funcy/functions_go/client/operations"
|
||||||
"github.com/funcy/functions_go/client/routes"
|
"github.com/funcy/functions_go/client/routes"
|
||||||
"github.com/funcy/functions_go/client/tasks"
|
|
||||||
"github.com/funcy/functions_go/client/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Default functions HTTP client.
|
// Default functions HTTP client.
|
||||||
@@ -68,10 +66,6 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Functions
|
|||||||
|
|
||||||
cli.Routes = routes.New(transport, formats)
|
cli.Routes = routes.New(transport, formats)
|
||||||
|
|
||||||
cli.Tasks = tasks.New(transport, formats)
|
|
||||||
|
|
||||||
cli.Version = version.New(transport, formats)
|
|
||||||
|
|
||||||
return cli
|
return cli
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,10 +118,6 @@ type Functions struct {
|
|||||||
|
|
||||||
Routes *routes.Client
|
Routes *routes.Client
|
||||||
|
|
||||||
Tasks *tasks.Client
|
|
||||||
|
|
||||||
Version *version.Client
|
|
||||||
|
|
||||||
Transport runtime.ClientTransport
|
Transport runtime.ClientTransport
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,8 +133,4 @@ func (c *Functions) SetTransport(transport runtime.ClientTransport) {
|
|||||||
|
|
||||||
c.Routes.SetTransport(transport)
|
c.Routes.SetTransport(transport)
|
||||||
|
|
||||||
c.Tasks.SetTransport(transport)
|
|
||||||
|
|
||||||
c.Version.SetTransport(transport)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
6
glide.lock
generated
6
glide.lock
generated
@@ -1,5 +1,5 @@
|
|||||||
hash: b555054a6f86ac84f6104ad9efabdcd85966c8f6574e485be7337c3ee9f29aa0
|
hash: b555054a6f86ac84f6104ad9efabdcd85966c8f6574e485be7337c3ee9f29aa0
|
||||||
updated: 2017-08-16T11:13:27.488480563-07:00
|
updated: 2017-08-18T21:27:39.98453555+03:00
|
||||||
imports:
|
imports:
|
||||||
- name: github.com/amir/raidman
|
- name: github.com/amir/raidman
|
||||||
version: 1ccc43bfb9c93cb401a4025e49c64ba71e5e668b
|
version: 1ccc43bfb9c93cb401a4025e49c64ba71e5e668b
|
||||||
@@ -116,15 +116,13 @@ imports:
|
|||||||
- name: github.com/fsouza/go-dockerclient
|
- name: github.com/fsouza/go-dockerclient
|
||||||
version: 75772940379e725b5aae213e570f9dcd751951cb
|
version: 75772940379e725b5aae213e570f9dcd751951cb
|
||||||
- name: github.com/funcy/functions_go
|
- name: github.com/funcy/functions_go
|
||||||
version: fc7e7ca2fbc8bef236300b7b9f1075410a62447f
|
version: e046aa4ca1f1028a04fc51395297ff07515cb0b6
|
||||||
subpackages:
|
subpackages:
|
||||||
- client
|
- client
|
||||||
- client/apps
|
- client/apps
|
||||||
- client/call
|
- client/call
|
||||||
- client/operations
|
- client/operations
|
||||||
- client/routes
|
- client/routes
|
||||||
- client/tasks
|
|
||||||
- client/version
|
|
||||||
- models
|
- models
|
||||||
- name: github.com/garyburd/redigo
|
- name: github.com/garyburd/redigo
|
||||||
version: b925df3cc15d8646e9b5b333ebaf3011385aba11
|
version: b925df3cc15d8646e9b5b333ebaf3011385aba11
|
||||||
|
|||||||
@@ -133,20 +133,17 @@ func SetupDefaultSuite() *SuiteSetup {
|
|||||||
Memory: uint64(256),
|
Memory: uint64(256),
|
||||||
}
|
}
|
||||||
|
|
||||||
_, ok := ss.Client.Version.GetVersion(nil)
|
if Host() != "localhost:8080" {
|
||||||
if ok != nil {
|
_, ok := http.Get(fmt.Sprintf("http://%s/version", Host()))
|
||||||
if Host() != "localhost:8080" {
|
if ok != nil {
|
||||||
_, ok := http.Get(fmt.Sprintf("http://%s/version", Host()))
|
panic("Cannot reach remote api for functions")
|
||||||
if ok != nil {
|
}
|
||||||
panic("Cannot reach remote api for functions")
|
} else {
|
||||||
}
|
_, ok := http.Get(fmt.Sprintf("http://%s/version", Host()))
|
||||||
} else {
|
if ok != nil {
|
||||||
_, ok := http.Get(fmt.Sprintf("http://%s/version", Host()))
|
log.Println("Making functions server")
|
||||||
if ok != nil {
|
_, cancel := getServerWithCancel()
|
||||||
log.Println("Making functions server")
|
ss.Cancel = cancel
|
||||||
_, cancel := getServerWithCancel()
|
|
||||||
ss.Cancel = cancel
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
vendor/github.com/funcy/functions_go/VERSION
generated
vendored
2
vendor/github.com/funcy/functions_go/VERSION
generated
vendored
@@ -1 +1 @@
|
|||||||
0.1.36
|
0.1.37
|
||||||
14
vendor/github.com/funcy/functions_go/client/functions_client.go
generated
vendored
14
vendor/github.com/funcy/functions_go/client/functions_client.go
generated
vendored
@@ -15,8 +15,6 @@ import (
|
|||||||
"github.com/funcy/functions_go/client/call"
|
"github.com/funcy/functions_go/client/call"
|
||||||
"github.com/funcy/functions_go/client/operations"
|
"github.com/funcy/functions_go/client/operations"
|
||||||
"github.com/funcy/functions_go/client/routes"
|
"github.com/funcy/functions_go/client/routes"
|
||||||
"github.com/funcy/functions_go/client/tasks"
|
|
||||||
"github.com/funcy/functions_go/client/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Default functions HTTP client.
|
// Default functions HTTP client.
|
||||||
@@ -68,10 +66,6 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Functions
|
|||||||
|
|
||||||
cli.Routes = routes.New(transport, formats)
|
cli.Routes = routes.New(transport, formats)
|
||||||
|
|
||||||
cli.Tasks = tasks.New(transport, formats)
|
|
||||||
|
|
||||||
cli.Version = version.New(transport, formats)
|
|
||||||
|
|
||||||
return cli
|
return cli
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,10 +118,6 @@ type Functions struct {
|
|||||||
|
|
||||||
Routes *routes.Client
|
Routes *routes.Client
|
||||||
|
|
||||||
Tasks *tasks.Client
|
|
||||||
|
|
||||||
Version *version.Client
|
|
||||||
|
|
||||||
Transport runtime.ClientTransport
|
Transport runtime.ClientTransport
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,8 +133,4 @@ func (c *Functions) SetTransport(transport runtime.ClientTransport) {
|
|||||||
|
|
||||||
c.Routes.SetTransport(transport)
|
c.Routes.SetTransport(transport)
|
||||||
|
|
||||||
c.Tasks.SetTransport(transport)
|
|
||||||
|
|
||||||
c.Version.SetTransport(transport)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user