mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Client generator update (#262)
* Generated a bunch of clients. * Builds go client. * Removed test line. * Changed dependencies to fnproject/fn_go * Fix tests.
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
"net/url"
|
||||
"os"
|
||||
|
||||
"github.com/funcy/functions_go/client"
|
||||
"github.com/fnproject/fn_go/client"
|
||||
httptransport "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/spf13/viper"
|
||||
@@ -38,7 +38,7 @@ func Host() string {
|
||||
return u.Host
|
||||
}
|
||||
|
||||
func APIClient() *client.Functions {
|
||||
func APIClient() *client.Fn {
|
||||
transport := httptransport.New(Host(), "/v1", []string{"http"})
|
||||
if os.Getenv("FN_TOKEN") != "" {
|
||||
transport.DefaultAuthentication = httptransport.BearerToken(os.Getenv("FN_TOKEN"))
|
||||
@@ -100,7 +100,7 @@ func getServerWithCancel() (*server.Server, context.CancelFunc) {
|
||||
|
||||
type SuiteSetup struct {
|
||||
Context context.Context
|
||||
Client *client.Functions
|
||||
Client *client.Fn
|
||||
AppName string
|
||||
RoutePath string
|
||||
Image string
|
||||
|
||||
Reference in New Issue
Block a user