Define main resource types

Functions, HTTPTriggers, Metadata, Environment.  Update the router to
use fission.Metadata, not fission.Function, to identify functions.
This commit is contained in:
Soam Vasani
2016-09-10 00:59:39 -07:00
parent 405dd6fa0f
commit 732634b53c
6 changed files with 40 additions and 12 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ import (
func TestFunctionServiceMap(t *testing.T) {
m := makeFunctionServiceMap()
fn := &fission.Function{Name: "foo", Uid: "012"}
fn := &fission.Metadata{Name: "foo", Uid: "012"}
u, err := url.Parse("/foo012")
if err != nil {
t.Errorf("can't parse url")