...
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 AuthServiceIncludeBody struct {
27
28
29 MaxBytes int `json:"max_bytes,omitempty"`
30
31
32 AllowPartial bool `json:"allow_partial,omitempty"`
33 }
34
35
36 type AuthServiceStatusOnError struct {
37 Code int `json:"code,omitempty"`
38 }
39
40
41 type AuthServiceSpec struct {
42 AmbassadorID AmbassadorID `json:"ambassador_id,omitempty"`
43
44
45 AuthService string `json:"auth_service,omitempty"`
46 PathPrefix string `json:"path_prefix,omitempty"`
47
48 TLS *BoolOrString `json:"tls,omitempty"`
49
50 Proto string `json:"proto,omitempty"`
51 Timeout *MillisecondDuration `json:"timeout_ms,omitempty"`
52 AllowedRequestHeaders []string `json:"allowed_request_headers,omitempty"`
53 AllowedAuthorizationHeaders []string `json:"allowed_authorization_headers,omitempty"`
54 AddAuthHeaders map[string]string `json:"add_auth_headers,omitempty"`
55 AllowRequestBody *bool `json:"allow_request_body,omitempty"`
56 AddLinkerdHeaders *bool `json:"add_linkerd_headers,omitempty"`
57 FailureModeAllow *bool `json:"failure_mode_allow,omitempty"`
58 IncludeBody *AuthServiceIncludeBody `json:"include_body,omitempty"`
59 StatusOnError *AuthServiceStatusOnError `json:"status_on_error,omitempty"`
60
61 ProtocolVersion string `json:"protocol_version,omitempty"`
62
63
64 V3StatsName string `json:"v3StatsName,omitempty"`
65
66 V3CircuitBreakers []*CircuitBreaker `json:"v3CircuitBreakers,omitempty"`
67 }
68
69
70
71
72
73 type AuthService struct {
74 metav1.TypeMeta `json:""`
75 metav1.ObjectMeta `json:"metadata,omitempty"`
76
77 Spec AuthServiceSpec `json:"spec,omitempty"`
78 }
79
80
81
82
83 type AuthServiceList struct {
84 metav1.TypeMeta `json:""`
85 metav1.ListMeta `json:"metadata,omitempty"`
86 Items []AuthService `json:"items"`
87 }
88
89 func init() {
90 SchemeBuilder.Register(&AuthService{}, &AuthServiceList{})
91 }
92
View as plain text