generated from kubewarden/go-policy-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
24 lines (22 loc) · 897 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main
// This file contains all the data structures that need
// to serialized and deserialized to JSON.
//
// For each type we need to generate the code that implements
// the easyjson interfaces.
//
// Every time this file changes, the Makefile will regenerate the `types_easyjson.go`
// file.
//
// Note: the `easyjson` cli cannot process files that are inside of the `main`
// package. This is a known limitation. The Makefile target from above has a
// workaround for that.
//
// Important: limit the number of imports inside of this file. Also, don't
// try to use interface types (or anything making use of them). This isn't
// going to play out well with TinyGo at **runtime** due to its limited
// support of Go reflection.
type BasicSettings struct {
DeniedLabels []string `json:"denied_labels"`
ConstrainedLabels map[string]string `json:"constrained_labels"`
}