diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2020-02-12 14:47:36 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2020-02-12 14:47:36 +0300 |
commit | efc9707333679aecf36b38f6f53dd0a0e52698eb (patch) | |
tree | e9d8df60ac0672b50f78aa050a0d50ef33dedafb /internal/source/gitlab/api | |
parent | e3901d4a4e33ce530e4fd85cc2d7af52e5fec7a6 (diff) |
Make it possible to fabricate a serverless serving
Diffstat (limited to 'internal/source/gitlab/api')
-rw-r--r-- | internal/source/gitlab/api/lookup_path.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/source/gitlab/api/lookup_path.go b/internal/source/gitlab/api/lookup_path.go index e9c0038d..de200e37 100644 --- a/internal/source/gitlab/api/lookup_path.go +++ b/internal/source/gitlab/api/lookup_path.go @@ -6,16 +6,18 @@ type LookupPath struct { AccessControl bool `json:"access_control,omitempty"` HTTPSOnly bool `json:"https_only,omitempty"` Prefix string `json:"prefix,omitempty"` - Source source `json:"source,omitempty"` + Source Source `json:"source,omitempty"` } -type source struct { +// Source describes GitLab Page serving variant +type Source struct { Type string `json:"type,omitempty"` Path string `json:"path,omitempty"` - Serverless serverless `json:"serverless,omitempty"` + Serverless Serverless `json:"serverless,omitempty"` } -type serverless struct { +// Serverless describeg serverless serving configuration +type Serverless struct { Function function `json:"function,omitempty"` Cluster cluster `json:"cluster,omitempty"` } |