/
json.gen.go
83 lines (67 loc) · 2.37 KB
/
json.gen.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Code generated by engine gate build no edit
// Generated json marshal and unmarshal functions
package v1
import (
bytes "bytes"
fmt "fmt"
math "math"
jsonpb "github.com/golang/protobuf/jsonpb"
proto "github.com/golang/protobuf/proto"
skv2jsonpb "github.com/solo-io/skv2/pkg/kube_jsonpb"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var (
marshaller = &skv2jsonpb.Marshaler{}
unmarshaller = &jsonpb.Unmarshaler{
AllowUnknownFields: true,
}
strictUnmarshaller = &jsonpb.Unmarshaler{}
)
// MarshalJSON is a custom marshaler for CaCertificateSpec
func (this *CaCertificateSpec) MarshalJSON() ([]byte, error) {
str, err := marshaller.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CaCertificateSpec
func (this *CaCertificateSpec) UnmarshalJSON(b []byte) error {
return unmarshaller.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for CertificateSpec
func (this *CertificateSpec) MarshalJSON() ([]byte, error) {
str, err := marshaller.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CertificateSpec
func (this *CertificateSpec) UnmarshalJSON(b []byte) error {
return unmarshaller.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for UpstreamSpec
func (this *UpstreamSpec) MarshalJSON() ([]byte, error) {
str, err := marshaller.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for UpstreamSpec
func (this *UpstreamSpec) UnmarshalJSON(b []byte) error {
return unmarshaller.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for GatewaySpec
func (this *GatewaySpec) MarshalJSON() ([]byte, error) {
str, err := marshaller.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for GatewaySpec
func (this *GatewaySpec) UnmarshalJSON(b []byte) error {
return unmarshaller.Unmarshal(bytes.NewReader(b), this)
}
// MarshalJSON is a custom marshaler for FilterSpec
func (this *FilterSpec) MarshalJSON() ([]byte, error) {
str, err := marshaller.MarshalToString(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for FilterSpec
func (this *FilterSpec) UnmarshalJSON(b []byte) error {
return unmarshaller.Unmarshal(bytes.NewReader(b), this)
}