diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2020-02-18 16:58:48 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2020-02-18 16:59:44 +0300 |
commit | 5e9c2444f0271a73c83329e06355348c6dd89838 (patch) | |
tree | f9e1a55f64917ebe1aeedbcb41c9e5ed906c8ae6 /internal/source/gitlab/api/lookup_path.go | |
parent | a08ecdd06673d151dd6a9237b1056ca390e32424 (diff) |
Simplify serverless serving and add a few tests
Diffstat (limited to 'internal/source/gitlab/api/lookup_path.go')
-rw-r--r-- | internal/source/gitlab/api/lookup_path.go | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/internal/source/gitlab/api/lookup_path.go b/internal/source/gitlab/api/lookup_path.go index de200e37..77b264ff 100644 --- a/internal/source/gitlab/api/lookup_path.go +++ b/internal/source/gitlab/api/lookup_path.go @@ -16,19 +16,14 @@ type Source struct { Serverless Serverless `json:"serverless,omitempty"` } -// Serverless describeg serverless serving configuration +// Serverless describes serverless serving configuration type Serverless struct { - Function function `json:"function,omitempty"` - Cluster cluster `json:"cluster,omitempty"` + Service string `json:"service,omitempty"` + Cluster Cluster `json:"cluster,omitempty"` } -type function struct { - Name string `json:"name,omitempty"` - Domain string `json:"domain,omitempty"` - Namespace string `json:"namespace,omitempty"` -} - -type cluster struct { +// Cluster describes serverless cluster configuration +type Cluster struct { Address string `json:"address,omitempty"` Port string `json:"port,omitempty"` Hostname string `json:"hostname,omitempty"` |