...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package v3alpha1
21
22 import (
23 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24 )
25
26
27 type TCPMappingSpec struct {
28 AmbassadorID AmbassadorID `json:"ambassador_id,omitempty"`
29
30
31
32 Port int `json:"port,omitempty"`
33 Host string `json:"host,omitempty"`
34 Address string `json:"address,omitempty"`
35
36 Service string `json:"service,omitempty"`
37 EnableIPv4 *bool `json:"enable_ipv4,omitempty"`
38 EnableIPv6 *bool `json:"enable_ipv6,omitempty"`
39 CircuitBreakers []CircuitBreaker `json:"circuit_breakers,omitempty"`
40
41
42 IdleTimeoutMs string `json:"idle_timeout_ms,omitempty"`
43
44 Resolver string `json:"resolver,omitempty"`
45 TLS string `json:"tls,omitempty"`
46 Weight *int `json:"weight,omitempty"`
47 ClusterTag string `json:"cluster_tag,omitempty"`
48 StatsName string `json:"stats_name,omitempty"`
49
50 V2ExplicitTLS *V2ExplicitTLS `json:"v2ExplicitTLS,omitempty"`
51 }
52
53
54
55
56 type TCPMapping struct {
57 metav1.TypeMeta `json:""`
58 metav1.ObjectMeta `json:"metadata,omitempty"`
59
60 Spec TCPMappingSpec `json:"spec,omitempty"`
61 }
62
63
64
65
66 type TCPMappingList struct {
67 metav1.TypeMeta `json:""`
68 metav1.ListMeta `json:"metadata,omitempty"`
69 Items []TCPMapping `json:"items"`
70 }
71
72 func init() {
73 SchemeBuilder.Register(&TCPMapping{}, &TCPMappingList{})
74 }
75
View as plain text