Documentation ¶
Index ¶
- func APIClient() *client.Fn
- func CallFN(u string, content io.Reader, output io.Writer, method string, env []string) (http.Header, error)
- func CheckAppResponseError(t *testing.T, e error)
- func CheckRouteResponseError(t *testing.T, e error)
- func Cleanup()
- func CreateApp(t *testing.T, ctx context.Context, fnclient *client.Fn, appName string, ...)
- func CreateAppNoAssert(ctx context.Context, fnclient *client.Fn, appName string, ...) (*apps.PostAppsOK, error)
- func CreateRoute(t *testing.T, ctx context.Context, fnclient *client.Fn, ...)
- func CreateUpdateApp(t *testing.T, ctx context.Context, fnclient *client.Fn, appName string, ...) *apps.PatchAppsAppOK
- func DeleteApp(t *testing.T, ctx context.Context, fnclient *client.Fn, appName string)
- func DeleteAppNoT(ctx context.Context, fnclient *client.Fn, appName string)
- func DeleteRoute(t *testing.T, ctx context.Context, fnclient *client.Fn, ...)
- func DeployRoute(t *testing.T, ctx context.Context, fnclient *client.Fn, ...) *models.Route
- func EnvAsHeader(req *http.Request, selectedEnv []string)
- func GetApp(t *testing.T, ctx context.Context, fnclient *client.Fn, appName string) *models.App
- func GetRoute(t *testing.T, ctx context.Context, fnclient *client.Fn, ...) *models.Route
- func Host() string
- func ListRoutes(t *testing.T, ctx context.Context, fnclient *client.Fn, appName string) []*models.Route
- func MyCaller() string
- func RandStringBytes(n int) string
- func UpdateRoute(t *testing.T, ctx context.Context, fnclient *client.Fn, ...) (*routes.PatchAppsAppRoutesRouteOK, error)
- type SuiteSetup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAppResponseError ¶
func CheckRouteResponseError ¶
func CreateAppNoAssert ¶
func CreateRoute ¶
func CreateUpdateApp ¶
func DeleteRoute ¶
func DeployRoute ¶
func EnvAsHeader ¶
func ListRoutes ¶
func RandStringBytes ¶
Types ¶
type SuiteSetup ¶
type SuiteSetup struct { Context context.Context Client *client.Fn AppName string RoutePath string Image string RouteType string Format string Memory uint64 RouteConfig map[string]string RouteHeaders map[string][]string Cancel context.CancelFunc }
func SetupDefaultSuite ¶
func SetupDefaultSuite() *SuiteSetup
Click to show internal directories.
Click to hide internal directories.