| 1 |
// Copyright 2023 CUE Labs AG |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
package ocisrv |
| 16 |
|
| 17 |
import "regexp" |
| 18 |
|
| 19 |
#client: { |
| 20 |
kind: "client" |
| 21 |
hostURL!: string |
| 22 |
debugID?: string |
| 23 |
} |
| 24 |
|
| 25 |
#select: { |
| 26 |
kind: "select" |
| 27 |
registry!: #registry |
| 28 |
include?: regexp.Valid |
| 29 |
exclude?: regexp.Valid |
| 30 |
} |
| 31 |
|
| 32 |
#readOnly: { |
| 33 |
kind: "readOnly" |
| 34 |
registry!: #registry |
| 35 |
} |
| 36 |
|
| 37 |
#immutable: { |
| 38 |
kind: "immutable" |
| 39 |
registry!: #registry |
| 40 |
} |
| 41 |
|
| 42 |
#unify: { |
| 43 |
kind: "unify" |
| 44 |
registries!: [#registry, #registry] |
| 45 |
} |
| 46 |
|
| 47 |
#mem: { |
| 48 |
kind: "mem" |
| 49 |
} |
| 50 |
|
| 51 |
#debug: { |
| 52 |
kind: "debug" |
| 53 |
registry!: #registry |
| 54 |
} |
| 55 |
|
| 56 |
#registry: #client | |
| 57 |
#select | |
| 58 |
#readOnly | |
| 59 |
#immutable | |
| 60 |
#unify | |
| 61 |
#mem | |
| 62 |
#debug |
| 63 |
|
| 64 |
#registry: { |
| 65 |
kind!: string |
| 66 |
} |
| 67 |
|
| 68 |
registry!: #registry |
| 69 |
listenAddr!: string |