...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package v2
21
22 import (
23 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24 )
25
26 type AdditionalLogHeaders struct {
27 HeaderName string `json:"header_name,omitempty"`
28 DuringRequest *bool `json:"during_request,omitempty"`
29 DuringResponse *bool `json:"during_response,omitempty"`
30 DuringTrailer *bool `json:"during_trailer,omitempty"`
31 }
32
33 type DriverConfig struct {
34 AdditionalLogHeaders []*AdditionalLogHeaders `json:"additional_log_headers,omitempty"`
35 }
36
37
38 type LogServiceSpec struct {
39 AmbassadorID AmbassadorID `json:"ambassador_id,omitempty"`
40
41 Service string `json:"service,omitempty"`
42
43
44 V3ProtocolVersion string `json:"v3ProtocolVersion,omitempty"`
45
46 Driver string `json:"driver,omitempty"`
47 DriverConfig *DriverConfig `json:"driver_config,omitempty"`
48 FlushIntervalTime *SecondDuration `json:"flush_interval_time,omitempty"`
49 FlushIntervalByteSize *int `json:"flush_interval_byte_size,omitempty"`
50 GRPC *bool `json:"grpc,omitempty"`
51
52
53 V3StatsName string `json:"v3StatsName,omitempty"`
54 }
55
56
57
58
59
60 type LogService struct {
61 metav1.TypeMeta `json:""`
62 metav1.ObjectMeta `json:"metadata,omitempty"`
63
64 Spec LogServiceSpec `json:"spec,omitempty"`
65 }
66
67
68
69
70 type LogServiceList struct {
71 metav1.TypeMeta `json:""`
72 metav1.ListMeta `json:"metadata,omitempty"`
73 Items []LogService `json:"items"`
74 }
75
76 func init() {
77 SchemeBuilder.Register(&LogService{}, &LogServiceList{})
78 }
79
View as plain text