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