-
Notifications
You must be signed in to change notification settings - Fork 568
/
admin.pb.zap.go
48 lines (43 loc) · 1.27 KB
/
admin.pb.zap.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
// Code generated by protoc-gen-zap (etc/proto/protoc-gen-zap). DO NOT EDIT.
//
// source: admin/admin.proto
package admin
import (
zapcore "go.uber.org/zap/zapcore"
)
func (x *ClusterInfo) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddString("id", x.Id)
enc.AddString("deployment_id", x.DeploymentId)
enc.AddBool("warnings_ok", x.WarningsOk)
warningsArrMarshaller := func(enc zapcore.ArrayEncoder) error {
for _, v := range x.Warnings {
enc.AppendString(v)
}
return nil
}
enc.AddArray("warnings", zapcore.ArrayMarshalerFunc(warningsArrMarshaller))
enc.AddString("proxy_host", x.ProxyHost)
enc.AddBool("proxy_tls", x.ProxyTls)
enc.AddBool("paused", x.Paused)
enc.AddObject("web_resources", x.WebResources)
return nil
}
func (x *InspectClusterRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddObject("client_version", x.ClientVersion)
enc.AddObject("current_project", x.CurrentProject)
return nil
}
func (x *WebResource) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddString("archive_download_base_url", x.ArchiveDownloadBaseUrl)
enc.AddString("create_pipeline_request_json_schema_url", x.CreatePipelineRequestJsonSchemaUrl)
return nil
}