id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
list
docstring
stringlengths
6
2.61k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
85
252
25,100
envoyproxy/go-control-plane
envoy/service/load_stats/v2/lrs.pb.validate.go
Validate
func (m *LoadStatsRequest) Validate() error { if m == nil { return nil } { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return LoadStatsRequestValidationError{ field: "Node", reason: "embedded message failed vali...
go
func (m *LoadStatsRequest) Validate() error { if m == nil { return nil } { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return LoadStatsRequestValidationError{ field: "Node", reason: "embedded message failed vali...
[ "func", "(", "m", "*", "LoadStatsRequest", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetNode", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface",...
// Validate checks the field values on LoadStatsRequest with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "LoadStatsRequest", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/load_stats/v2/lrs.pb.validate.go#L39-L80
25,101
envoyproxy/go-control-plane
envoy/service/load_stats/v2/lrs.pb.validate.go
Validate
func (m *LoadStatsResponse) Validate() error { if m == nil { return nil } if len(m.GetClusters()) < 1 { return LoadStatsResponseValidationError{ field: "Clusters", reason: "value must contain at least 1 item(s)", } } { tmp := m.GetLoadReportingInterval() if v, ok := interface{}(tmp).(interface{...
go
func (m *LoadStatsResponse) Validate() error { if m == nil { return nil } if len(m.GetClusters()) < 1 { return LoadStatsResponseValidationError{ field: "Clusters", reason: "value must contain at least 1 item(s)", } } { tmp := m.GetLoadReportingInterval() if v, ok := interface{}(tmp).(interface{...
[ "func", "(", "m", "*", "LoadStatsResponse", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetClusters", "(", ")", ")", "<", "1", "{", "return", "LoadStatsRespo...
// Validate checks the field values on LoadStatsResponse with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "LoadStatsResponse", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/load_stats/v2/lrs.pb.validate.go#L139-L169
25,102
envoyproxy/go-control-plane
envoy/config/filter/fault/v2/fault.pb.validate.go
Validate
func (m *FaultDelay) Validate() error { if m == nil { return nil } // no validation rules for Type { tmp := m.GetPercentage() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return FaultDelayValidationError{ field: "Percentage", rea...
go
func (m *FaultDelay) Validate() error { if m == nil { return nil } // no validation rules for Type { tmp := m.GetPercentage() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return FaultDelayValidationError{ field: "Percentage", rea...
[ "func", "(", "m", "*", "FaultDelay", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for Type", "{", "tmp", ":=", "m", ".", "GetPercentage", "(", ")", "\n\n", "if", "v", ...
// Validate checks the field values on FaultDelay with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "FaultDelay", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/fault/v2/fault.pb.validate.go#L38-L104
25,103
envoyproxy/go-control-plane
envoy/config/filter/fault/v2/fault.pb.validate.go
Validate
func (m *FaultRateLimit) Validate() error { if m == nil { return nil } { tmp := m.GetPercentage() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return FaultRateLimitValidationError{ field: "Percentage", reason: "embedded message fai...
go
func (m *FaultRateLimit) Validate() error { if m == nil { return nil } { tmp := m.GetPercentage() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return FaultRateLimitValidationError{ field: "Percentage", reason: "embedded message fai...
[ "func", "(", "m", "*", "FaultRateLimit", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetPercentage", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interfa...
// Validate checks the field values on FaultRateLimit with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "FaultRateLimit", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/fault/v2/fault.pb.validate.go#L163-L228
25,104
envoyproxy/go-control-plane
envoy/config/filter/fault/v2/fault.pb.validate.go
Validate
func (m *FaultRateLimit_FixedLimit) Validate() error { if m == nil { return nil } if m.GetLimitKbps() < 1 { return FaultRateLimit_FixedLimitValidationError{ field: "LimitKbps", reason: "value must be greater than or equal to 1", } } return nil }
go
func (m *FaultRateLimit_FixedLimit) Validate() error { if m == nil { return nil } if m.GetLimitKbps() < 1 { return FaultRateLimit_FixedLimitValidationError{ field: "LimitKbps", reason: "value must be greater than or equal to 1", } } return nil }
[ "func", "(", "m", "*", "FaultRateLimit_FixedLimit", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "m", ".", "GetLimitKbps", "(", ")", "<", "1", "{", "return", "FaultRateLimit_FixedLimitVal...
// Validate checks the field values on FaultRateLimit_FixedLimit with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "FaultRateLimit_FixedLimit", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/fault/v2/fault.pb.validate.go#L354-L367
25,105
envoyproxy/go-control-plane
envoy/service/auth/v2/external_auth.pb.validate.go
Validate
func (m *CheckRequest) Validate() error { if m == nil { return nil } { tmp := m.GetAttributes() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CheckRequestValidationError{ field: "Attributes", reason: "embedded message failed ...
go
func (m *CheckRequest) Validate() error { if m == nil { return nil } { tmp := m.GetAttributes() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CheckRequestValidationError{ field: "Attributes", reason: "embedded message failed ...
[ "func", "(", "m", "*", "CheckRequest", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetAttributes", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface...
// Validate checks the field values on CheckRequest with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "CheckRequest", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/auth/v2/external_auth.pb.validate.go#L39-L60
25,106
envoyproxy/go-control-plane
envoy/service/auth/v2/external_auth.pb.validate.go
Validate
func (m *DeniedHttpResponse) Validate() error { if m == nil { return nil } if m.GetStatus() == nil { return DeniedHttpResponseValidationError{ field: "Status", reason: "value is required", } } { tmp := m.GetStatus() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err :...
go
func (m *DeniedHttpResponse) Validate() error { if m == nil { return nil } if m.GetStatus() == nil { return DeniedHttpResponseValidationError{ field: "Status", reason: "value is required", } } { tmp := m.GetStatus() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err :...
[ "func", "(", "m", "*", "DeniedHttpResponse", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "m", ".", "GetStatus", "(", ")", "==", "nil", "{", "return", "DeniedHttpResponseValidationError",...
// Validate checks the field values on DeniedHttpResponse with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "DeniedHttpResponse", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/auth/v2/external_auth.pb.validate.go#L119-L169
25,107
envoyproxy/go-control-plane
envoy/service/auth/v2/external_auth.pb.validate.go
Validate
func (m *OkHttpResponse) Validate() error { if m == nil { return nil } for idx, item := range m.GetHeaders() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return OkHttpResponseValidationError{ fi...
go
func (m *OkHttpResponse) Validate() error { if m == nil { return nil } for idx, item := range m.GetHeaders() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return OkHttpResponseValidationError{ fi...
[ "func", "(", "m", "*", "OkHttpResponse", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetHeaders", "(", ")", "{", "_", ",", "_", "...
// Validate checks the field values on OkHttpResponse with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "OkHttpResponse", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/auth/v2/external_auth.pb.validate.go#L230-L256
25,108
envoyproxy/go-control-plane
envoy/service/auth/v2/external_auth.pb.validate.go
Validate
func (m *CheckResponse) Validate() error { if m == nil { return nil } { tmp := m.GetStatus() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CheckResponseValidationError{ field: "Status", reason: "embedded message failed valida...
go
func (m *CheckResponse) Validate() error { if m == nil { return nil } { tmp := m.GetStatus() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CheckResponseValidationError{ field: "Status", reason: "embedded message failed valida...
[ "func", "(", "m", "*", "CheckResponse", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetStatus", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface", ...
// Validate checks the field values on CheckResponse with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "CheckResponse", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/auth/v2/external_auth.pb.validate.go#L315-L374
25,109
envoyproxy/go-control-plane
envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.validate.go
Validate
func (m *IPTagging) Validate() error { if m == nil { return nil } if _, ok := IPTagging_RequestType_name[int32(m.GetRequestType())]; !ok { return IPTaggingValidationError{ field: "RequestType", reason: "value must be one of the defined enum values", } } if len(m.GetIpTags()) < 1 { return IPTagging...
go
func (m *IPTagging) Validate() error { if m == nil { return nil } if _, ok := IPTagging_RequestType_name[int32(m.GetRequestType())]; !ok { return IPTaggingValidationError{ field: "RequestType", reason: "value must be one of the defined enum values", } } if len(m.GetIpTags()) < 1 { return IPTagging...
[ "func", "(", "m", "*", "IPTagging", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "_", ",", "ok", ":=", "IPTagging_RequestType_name", "[", "int32", "(", "m", ".", "GetRequestType", "("...
// Validate checks the field values on IPTagging with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "IPTagging", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.validate.go#L38-L78
25,110
envoyproxy/go-control-plane
envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.validate.go
Validate
func (m *IPTagging_IPTag) Validate() error { if m == nil { return nil } // no validation rules for IpTagName for idx, item := range m.GetIpList() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ...
go
func (m *IPTagging_IPTag) Validate() error { if m == nil { return nil } // no validation rules for IpTagName for idx, item := range m.GetIpList() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ...
[ "func", "(", "m", "*", "IPTagging_IPTag", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for IpTagName", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetIpList", "...
// Validate checks the field values on IPTagging_IPTag with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "IPTagging_IPTag", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/http/ip_tagging/v2/ip_tagging.pb.validate.go#L137-L165
25,111
envoyproxy/go-control-plane
envoy/type/matcher/string.pb.validate.go
Validate
func (m *StringMatcher) Validate() error { if m == nil { return nil } switch m.MatchPattern.(type) { case *StringMatcher_Exact: // no validation rules for Exact case *StringMatcher_Prefix: if len(m.GetPrefix()) < 1 { return StringMatcherValidationError{ field: "Prefix", reason: "value length ...
go
func (m *StringMatcher) Validate() error { if m == nil { return nil } switch m.MatchPattern.(type) { case *StringMatcher_Exact: // no validation rules for Exact case *StringMatcher_Prefix: if len(m.GetPrefix()) < 1 { return StringMatcherValidationError{ field: "Prefix", reason: "value length ...
[ "func", "(", "m", "*", "StringMatcher", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "switch", "m", ".", "MatchPattern", ".", "(", "type", ")", "{", "case", "*", "StringMatcher_Exact", ":",...
// Validate checks the field values on StringMatcher with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "StringMatcher", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/type/matcher/string.pb.validate.go#L39-L85
25,112
envoyproxy/go-control-plane
envoy/type/matcher/string.pb.validate.go
Validate
func (m *ListStringMatcher) Validate() error { if m == nil { return nil } if len(m.GetPatterns()) < 1 { return ListStringMatcherValidationError{ field: "Patterns", reason: "value must contain at least 1 item(s)", } } for idx, item := range m.GetPatterns() { _, _ = idx, item { tmp := item ...
go
func (m *ListStringMatcher) Validate() error { if m == nil { return nil } if len(m.GetPatterns()) < 1 { return ListStringMatcherValidationError{ field: "Patterns", reason: "value must contain at least 1 item(s)", } } for idx, item := range m.GetPatterns() { _, _ = idx, item { tmp := item ...
[ "func", "(", "m", "*", "ListStringMatcher", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetPatterns", "(", ")", ")", "<", "1", "{", "return", "ListStringMatc...
// Validate checks the field values on ListStringMatcher with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ListStringMatcher", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/type/matcher/string.pb.validate.go#L144-L177
25,113
envoyproxy/go-control-plane
envoy/api/v2/core/config_source.pb.validate.go
Validate
func (m *ApiConfigSource) Validate() error { if m == nil { return nil } if _, ok := ApiConfigSource_ApiType_name[int32(m.GetApiType())]; !ok { return ApiConfigSourceValidationError{ field: "ApiType", reason: "value must be one of the defined enum values", } } for idx, item := range m.GetGrpcServices...
go
func (m *ApiConfigSource) Validate() error { if m == nil { return nil } if _, ok := ApiConfigSource_ApiType_name[int32(m.GetApiType())]; !ok { return ApiConfigSourceValidationError{ field: "ApiType", reason: "value must be one of the defined enum values", } } for idx, item := range m.GetGrpcServices...
[ "func", "(", "m", "*", "ApiConfigSource", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "_", ",", "ok", ":=", "ApiConfigSource_ApiType_name", "[", "int32", "(", "m", ".", "GetApiType", ...
// Validate checks the field values on ApiConfigSource with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ApiConfigSource", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/config_source.pb.validate.go#L39-L116
25,114
envoyproxy/go-control-plane
envoy/api/v2/core/config_source.pb.validate.go
Validate
func (m *RateLimitSettings) Validate() error { if m == nil { return nil } { tmp := m.GetMaxTokens() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RateLimitSettingsValidationError{ field: "MaxTokens", reason: "embedded message...
go
func (m *RateLimitSettings) Validate() error { if m == nil { return nil } { tmp := m.GetMaxTokens() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RateLimitSettingsValidationError{ field: "MaxTokens", reason: "embedded message...
[ "func", "(", "m", "*", "RateLimitSettings", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetMaxTokens", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "inter...
// Validate checks the field values on RateLimitSettings with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RateLimitSettings", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/config_source.pb.validate.go#L242-L274
25,115
envoyproxy/go-control-plane
envoy/api/v2/core/config_source.pb.validate.go
Validate
func (m *ConfigSource) Validate() error { if m == nil { return nil } { tmp := m.GetInitialFetchTimeout() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ConfigSourceValidationError{ field: "InitialFetchTimeout", reason: "embedd...
go
func (m *ConfigSource) Validate() error { if m == nil { return nil } { tmp := m.GetInitialFetchTimeout() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ConfigSourceValidationError{ field: "InitialFetchTimeout", reason: "embedd...
[ "func", "(", "m", "*", "ConfigSource", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetInitialFetchTimeout", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "...
// Validate checks the field values on ConfigSource with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ConfigSource", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/config_source.pb.validate.go#L335-L403
25,116
envoyproxy/go-control-plane
envoy/data/core/v2alpha/health_check_event.pb.validate.go
Validate
func (m *HealthCheckEjectUnhealthy) Validate() error { if m == nil { return nil } if _, ok := HealthCheckFailureType_name[int32(m.GetFailureType())]; !ok { return HealthCheckEjectUnhealthyValidationError{ field: "FailureType", reason: "value must be one of the defined enum values", } } return nil }
go
func (m *HealthCheckEjectUnhealthy) Validate() error { if m == nil { return nil } if _, ok := HealthCheckFailureType_name[int32(m.GetFailureType())]; !ok { return HealthCheckEjectUnhealthyValidationError{ field: "FailureType", reason: "value must be one of the defined enum values", } } return nil }
[ "func", "(", "m", "*", "HealthCheckEjectUnhealthy", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "_", ",", "ok", ":=", "HealthCheckFailureType_name", "[", "int32", "(", "m", ".", "GetFa...
// Validate checks the field values on HealthCheckEjectUnhealthy with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HealthCheckEjectUnhealthy", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/core/v2alpha/health_check_event.pb.validate.go#L243-L256
25,117
envoyproxy/go-control-plane
envoy/data/core/v2alpha/health_check_event.pb.validate.go
Validate
func (m *HealthCheckFailure) Validate() error { if m == nil { return nil } if _, ok := HealthCheckFailureType_name[int32(m.GetFailureType())]; !ok { return HealthCheckFailureValidationError{ field: "FailureType", reason: "value must be one of the defined enum values", } } // no validation rules for ...
go
func (m *HealthCheckFailure) Validate() error { if m == nil { return nil } if _, ok := HealthCheckFailureType_name[int32(m.GetFailureType())]; !ok { return HealthCheckFailureValidationError{ field: "FailureType", reason: "value must be one of the defined enum values", } } // no validation rules for ...
[ "func", "(", "m", "*", "HealthCheckFailure", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "_", ",", "ok", ":=", "HealthCheckFailureType_name", "[", "int32", "(", "m", ".", "GetFailureTy...
// Validate checks the field values on HealthCheckFailure with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HealthCheckFailure", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/core/v2alpha/health_check_event.pb.validate.go#L386-L401
25,118
envoyproxy/go-control-plane
envoy/service/trace/v2/trace_service.pb.validate.go
Validate
func (m *StreamTracesMessage) Validate() error { if m == nil { return nil } { tmp := m.GetIdentifier() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return StreamTracesMessageValidationError{ field: "Identifier", reason: "embedded m...
go
func (m *StreamTracesMessage) Validate() error { if m == nil { return nil } { tmp := m.GetIdentifier() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return StreamTracesMessageValidationError{ field: "Identifier", reason: "embedded m...
[ "func", "(", "m", "*", "StreamTracesMessage", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetIdentifier", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "in...
// Validate checks the field values on StreamTracesMessage with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "StreamTracesMessage", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/trace/v2/trace_service.pb.validate.go#L106-L147
25,119
envoyproxy/go-control-plane
envoy/service/trace/v2/trace_service.pb.validate.go
Validate
func (m *StreamTracesMessage_Identifier) Validate() error { if m == nil { return nil } if m.GetNode() == nil { return StreamTracesMessage_IdentifierValidationError{ field: "Node", reason: "value is required", } } { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error });...
go
func (m *StreamTracesMessage_Identifier) Validate() error { if m == nil { return nil } if m.GetNode() == nil { return StreamTracesMessage_IdentifierValidationError{ field: "Node", reason: "value is required", } } { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error });...
[ "func", "(", "m", "*", "StreamTracesMessage_Identifier", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "m", ".", "GetNode", "(", ")", "==", "nil", "{", "return", "StreamTracesMessage_Ident...
// Validate checks the field values on StreamTracesMessage_Identifier with the // rules defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "StreamTracesMessage_Identifier", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned"...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/trace/v2/trace_service.pb.validate.go#L208-L236
25,120
envoyproxy/go-control-plane
envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.pb.validate.go
Validate
func (m *ZooKeeperProxy) Validate() error { if m == nil { return nil } if len(m.GetStatPrefix()) < 1 { return ZooKeeperProxyValidationError{ field: "StatPrefix", reason: "value length must be at least 1 bytes", } } // no validation rules for AccessLog { tmp := m.GetMaxPacketBytes() if v, ok :...
go
func (m *ZooKeeperProxy) Validate() error { if m == nil { return nil } if len(m.GetStatPrefix()) < 1 { return ZooKeeperProxyValidationError{ field: "StatPrefix", reason: "value length must be at least 1 bytes", } } // no validation rules for AccessLog { tmp := m.GetMaxPacketBytes() if v, ok :...
[ "func", "(", "m", "*", "ZooKeeperProxy", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetStatPrefix", "(", ")", ")", "<", "1", "{", "return", "ZooKeeperProxyV...
// Validate checks the field values on ZooKeeperProxy with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ZooKeeperProxy", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/zookeeper_proxy/v1alpha1/zookeeper_proxy.pb.validate.go#L39-L69
25,121
envoyproxy/go-control-plane
envoy/data/accesslog/v2/accesslog.pb.validate.go
Validate
func (m *TCPAccessLogEntry) Validate() error { if m == nil { return nil } { tmp := m.GetCommonProperties() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TCPAccessLogEntryValidationError{ field: "CommonProperties", reason: "em...
go
func (m *TCPAccessLogEntry) Validate() error { if m == nil { return nil } { tmp := m.GetCommonProperties() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TCPAccessLogEntryValidationError{ field: "CommonProperties", reason: "em...
[ "func", "(", "m", "*", "TCPAccessLogEntry", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetCommonProperties", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", ...
// Validate checks the field values on TCPAccessLogEntry with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "TCPAccessLogEntry", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/accesslog/v2/accesslog.pb.validate.go#L43-L64
25,122
envoyproxy/go-control-plane
envoy/data/accesslog/v2/accesslog.pb.validate.go
Validate
func (m *HTTPAccessLogEntry) Validate() error { if m == nil { return nil } { tmp := m.GetCommonProperties() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HTTPAccessLogEntryValidationError{ field: "CommonProperties", reason: "...
go
func (m *HTTPAccessLogEntry) Validate() error { if m == nil { return nil } { tmp := m.GetCommonProperties() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HTTPAccessLogEntryValidationError{ field: "CommonProperties", reason: "...
[ "func", "(", "m", "*", "HTTPAccessLogEntry", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetCommonProperties", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", ...
// Validate checks the field values on HTTPAccessLogEntry with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HTTPAccessLogEntry", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/accesslog/v2/accesslog.pb.validate.go#L125-L178
25,123
envoyproxy/go-control-plane
envoy/data/accesslog/v2/accesslog.pb.validate.go
Validate
func (m *ResponseFlags) Validate() error { if m == nil { return nil } // no validation rules for FailedLocalHealthcheck // no validation rules for NoHealthyUpstream // no validation rules for UpstreamRequestTimeout // no validation rules for LocalReset // no validation rules for UpstreamRemoteReset // n...
go
func (m *ResponseFlags) Validate() error { if m == nil { return nil } // no validation rules for FailedLocalHealthcheck // no validation rules for NoHealthyUpstream // no validation rules for UpstreamRequestTimeout // no validation rules for LocalReset // no validation rules for UpstreamRemoteReset // n...
[ "func", "(", "m", "*", "ResponseFlags", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for FailedLocalHealthcheck", "// no validation rules for NoHealthyUpstream", "// no validation rules...
// Validate checks the field values on ResponseFlags with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ResponseFlags", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/accesslog/v2/accesslog.pb.validate.go#L540-L593
25,124
envoyproxy/go-control-plane
envoy/data/accesslog/v2/accesslog.pb.validate.go
Validate
func (m *TLSProperties) Validate() error { if m == nil { return nil } // no validation rules for TlsVersion { tmp := m.GetTlsCipherSuite() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TLSPropertiesValidationError{ field: "TlsCi...
go
func (m *TLSProperties) Validate() error { if m == nil { return nil } // no validation rules for TlsVersion { tmp := m.GetTlsCipherSuite() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TLSPropertiesValidationError{ field: "TlsCi...
[ "func", "(", "m", "*", "TLSProperties", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for TlsVersion", "{", "tmp", ":=", "m", ".", "GetTlsCipherSuite", "(", ")", "\n\n", ...
// Validate checks the field values on TLSProperties with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "TLSProperties", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/accesslog/v2/accesslog.pb.validate.go#L652-L707
25,125
envoyproxy/go-control-plane
envoy/data/accesslog/v2/accesslog.pb.validate.go
Validate
func (m *HTTPRequestProperties) Validate() error { if m == nil { return nil } // no validation rules for RequestMethod // no validation rules for Scheme // no validation rules for Authority { tmp := m.GetPort() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(...
go
func (m *HTTPRequestProperties) Validate() error { if m == nil { return nil } // no validation rules for RequestMethod // no validation rules for Scheme // no validation rules for Authority { tmp := m.GetPort() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(...
[ "func", "(", "m", "*", "HTTPRequestProperties", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for RequestMethod", "// no validation rules for Scheme", "// no validation rules for Authori...
// Validate checks the field values on HTTPRequestProperties with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HTTPRequestProperties", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/accesslog/v2/accesslog.pb.validate.go#L766-L811
25,126
envoyproxy/go-control-plane
envoy/data/accesslog/v2/accesslog.pb.validate.go
Validate
func (m *HTTPResponseProperties) Validate() error { if m == nil { return nil } { tmp := m.GetResponseCode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HTTPResponsePropertiesValidationError{ field: "ResponseCode", reason: "...
go
func (m *HTTPResponseProperties) Validate() error { if m == nil { return nil } { tmp := m.GetResponseCode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HTTPResponsePropertiesValidationError{ field: "ResponseCode", reason: "...
[ "func", "(", "m", "*", "HTTPResponseProperties", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetResponseCode", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", ...
// Validate checks the field values on HTTPResponseProperties with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HTTPResponseProperties", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/accesslog/v2/accesslog.pb.validate.go#L872-L903
25,127
envoyproxy/go-control-plane
envoy/data/accesslog/v2/accesslog.pb.validate.go
Validate
func (m *TLSProperties_CertificateProperties) Validate() error { if m == nil { return nil } for idx, item := range m.GetSubjectAltName() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TLSProperti...
go
func (m *TLSProperties_CertificateProperties) Validate() error { if m == nil { return nil } for idx, item := range m.GetSubjectAltName() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TLSProperti...
[ "func", "(", "m", "*", "TLSProperties_CertificateProperties", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetSubjectAltName", "(", ")", "...
// Validate checks the field values on TLSProperties_CertificateProperties with // the rules defined in the proto definition for this message. If any rules // are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "TLSProperties_CertificateProperties", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "retu...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/accesslog/v2/accesslog.pb.validate.go#L1033-L1061
25,128
envoyproxy/go-control-plane
envoy/data/accesslog/v2/accesslog.pb.validate.go
Validate
func (m *TLSProperties_CertificateProperties_SubjectAltName) Validate() error { if m == nil { return nil } switch m.San.(type) { case *TLSProperties_CertificateProperties_SubjectAltName_Uri: // no validation rules for Uri case *TLSProperties_CertificateProperties_SubjectAltName_Dns: // no validation rules...
go
func (m *TLSProperties_CertificateProperties_SubjectAltName) Validate() error { if m == nil { return nil } switch m.San.(type) { case *TLSProperties_CertificateProperties_SubjectAltName_Uri: // no validation rules for Uri case *TLSProperties_CertificateProperties_SubjectAltName_Dns: // no validation rules...
[ "func", "(", "m", "*", "TLSProperties_CertificateProperties_SubjectAltName", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "switch", "m", ".", "San", ".", "(", "type", ")", "{", "case", "*", "...
// Validate checks the field values on // TLSProperties_CertificateProperties_SubjectAltName with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "TLSProperties_CertificateProperties_SubjectAltName", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/accesslog/v2/accesslog.pb.validate.go#L1124-L1140
25,129
envoyproxy/go-control-plane
envoy/type/matcher/value.pb.validate.go
Validate
func (m *ValueMatcher) Validate() error { if m == nil { return nil } switch m.MatchPattern.(type) { case *ValueMatcher_NullMatch_: { tmp := m.GetNullMatch() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ValueMatcherValidationEr...
go
func (m *ValueMatcher) Validate() error { if m == nil { return nil } switch m.MatchPattern.(type) { case *ValueMatcher_NullMatch_: { tmp := m.GetNullMatch() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ValueMatcherValidationEr...
[ "func", "(", "m", "*", "ValueMatcher", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "switch", "m", ".", "MatchPattern", ".", "(", "type", ")", "{", "case", "*", "ValueMatcher_NullMatch_", "...
// Validate checks the field values on ValueMatcher with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ValueMatcher", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/type/matcher/value.pb.validate.go#L39-L129
25,130
envoyproxy/go-control-plane
envoy/type/matcher/value.pb.validate.go
Validate
func (m *ListMatcher) Validate() error { if m == nil { return nil } switch m.MatchPattern.(type) { case *ListMatcher_OneOf: { tmp := m.GetOneOf() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ListMatcherValidationError{ f...
go
func (m *ListMatcher) Validate() error { if m == nil { return nil } switch m.MatchPattern.(type) { case *ListMatcher_OneOf: { tmp := m.GetOneOf() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ListMatcherValidationError{ f...
[ "func", "(", "m", "*", "ListMatcher", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "switch", "m", ".", "MatchPattern", ".", "(", "type", ")", "{", "case", "*", "ListMatcher_OneOf", ":", "...
// Validate checks the field values on ListMatcher with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ListMatcher", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/type/matcher/value.pb.validate.go#L188-L221
25,131
envoyproxy/go-control-plane
envoy/service/discovery/v2/hds.pb.validate.go
Validate
func (m *HealthCheckRequest) Validate() error { if m == nil { return nil } { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HealthCheckRequestValidationError{ field: "Node", reason: "embedded message failed ...
go
func (m *HealthCheckRequest) Validate() error { if m == nil { return nil } { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HealthCheckRequestValidationError{ field: "Node", reason: "embedded message failed ...
[ "func", "(", "m", "*", "HealthCheckRequest", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetNode", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface...
// Validate checks the field values on HealthCheckRequest with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HealthCheckRequest", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/discovery/v2/hds.pb.validate.go#L107-L143
25,132
envoyproxy/go-control-plane
envoy/service/discovery/v2/hds.pb.validate.go
Validate
func (m *EndpointHealth) Validate() error { if m == nil { return nil } { tmp := m.GetEndpoint() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EndpointHealthValidationError{ field: "Endpoint", reason: "embedded message failed ...
go
func (m *EndpointHealth) Validate() error { if m == nil { return nil } { tmp := m.GetEndpoint() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EndpointHealthValidationError{ field: "Endpoint", reason: "embedded message failed ...
[ "func", "(", "m", "*", "EndpointHealth", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetEndpoint", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface...
// Validate checks the field values on EndpointHealth with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "EndpointHealth", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/discovery/v2/hds.pb.validate.go#L204-L227
25,133
envoyproxy/go-control-plane
envoy/service/discovery/v2/hds.pb.validate.go
Validate
func (m *EndpointHealthResponse) Validate() error { if m == nil { return nil } for idx, item := range m.GetEndpointsHealth() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EndpointHealthResponseV...
go
func (m *EndpointHealthResponse) Validate() error { if m == nil { return nil } for idx, item := range m.GetEndpointsHealth() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EndpointHealthResponseV...
[ "func", "(", "m", "*", "EndpointHealthResponse", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetEndpointsHealth", "(", ")", "{", "_", ...
// Validate checks the field values on EndpointHealthResponse with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "EndpointHealthResponse", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/discovery/v2/hds.pb.validate.go#L286-L312
25,134
envoyproxy/go-control-plane
envoy/service/discovery/v2/hds.pb.validate.go
Validate
func (m *HealthCheckRequestOrEndpointHealthResponse) Validate() error { if m == nil { return nil } switch m.RequestType.(type) { case *HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest: { tmp := m.GetHealthCheckRequest() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { ...
go
func (m *HealthCheckRequestOrEndpointHealthResponse) Validate() error { if m == nil { return nil } switch m.RequestType.(type) { case *HealthCheckRequestOrEndpointHealthResponse_HealthCheckRequest: { tmp := m.GetHealthCheckRequest() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { ...
[ "func", "(", "m", "*", "HealthCheckRequestOrEndpointHealthResponse", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "switch", "m", ".", "RequestType", ".", "(", "type", ")", "{", "case", "*", "...
// Validate checks the field values on // HealthCheckRequestOrEndpointHealthResponse with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HealthCheckRequestOrEndpointHealthResponse", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/discovery/v2/hds.pb.validate.go#L373-L417
25,135
envoyproxy/go-control-plane
envoy/service/discovery/v2/hds.pb.validate.go
Validate
func (m *LocalityEndpoints) Validate() error { if m == nil { return nil } { tmp := m.GetLocality() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return LocalityEndpointsValidationError{ field: "Locality", reason: "embedded message f...
go
func (m *LocalityEndpoints) Validate() error { if m == nil { return nil } { tmp := m.GetLocality() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return LocalityEndpointsValidationError{ field: "Locality", reason: "embedded message f...
[ "func", "(", "m", "*", "LocalityEndpoints", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetLocality", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interf...
// Validate checks the field values on LocalityEndpoints with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "LocalityEndpoints", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/discovery/v2/hds.pb.validate.go#L479-L520
25,136
envoyproxy/go-control-plane
envoy/service/discovery/v2/hds.pb.validate.go
Validate
func (m *ClusterHealthCheck) Validate() error { if m == nil { return nil } // no validation rules for ClusterName for idx, item := range m.GetHealthChecks() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { ...
go
func (m *ClusterHealthCheck) Validate() error { if m == nil { return nil } // no validation rules for ClusterName for idx, item := range m.GetHealthChecks() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { ...
[ "func", "(", "m", "*", "ClusterHealthCheck", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for ClusterName", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetHealthC...
// Validate checks the field values on ClusterHealthCheck with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ClusterHealthCheck", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/discovery/v2/hds.pb.validate.go#L581-L629
25,137
envoyproxy/go-control-plane
envoy/service/discovery/v2/hds.pb.validate.go
Validate
func (m *HealthCheckSpecifier) Validate() error { if m == nil { return nil } for idx, item := range m.GetClusterHealthChecks() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HealthCheckSpecifierV...
go
func (m *HealthCheckSpecifier) Validate() error { if m == nil { return nil } for idx, item := range m.GetClusterHealthChecks() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HealthCheckSpecifierV...
[ "func", "(", "m", "*", "HealthCheckSpecifier", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetClusterHealthChecks", "(", ")", "{", "_",...
// Validate checks the field values on HealthCheckSpecifier with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HealthCheckSpecifier", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/service/discovery/v2/hds.pb.validate.go#L690-L731
25,138
envoyproxy/go-control-plane
envoy/config/filter/http/router/v2/router.pb.validate.go
Validate
func (m *Router) Validate() error { if m == nil { return nil } { tmp := m.GetDynamicStats() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RouterValidationError{ field: "DynamicStats", reason: "embedded message failed validati...
go
func (m *Router) Validate() error { if m == nil { return nil } { tmp := m.GetDynamicStats() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RouterValidationError{ field: "DynamicStats", reason: "embedded message failed validati...
[ "func", "(", "m", "*", "Router", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetDynamicStats", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface", ...
// Validate checks the field values on Router with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Router", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/http/router/v2/router.pb.validate.go#L38-L83
25,139
envoyproxy/go-control-plane
envoy/api/v2/core/address.pb.validate.go
Validate
func (m *Pipe) Validate() error { if m == nil { return nil } if len(m.GetPath()) < 1 { return PipeValidationError{ field: "Path", reason: "value length must be at least 1 bytes", } } return nil }
go
func (m *Pipe) Validate() error { if m == nil { return nil } if len(m.GetPath()) < 1 { return PipeValidationError{ field: "Path", reason: "value length must be at least 1 bytes", } } return nil }
[ "func", "(", "m", "*", "Pipe", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetPath", "(", ")", ")", "<", "1", "{", "return", "PipeValidationError", "{", ...
// Validate checks the field values on Pipe with the rules defined in the proto // definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Pipe", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/address.pb.validate.go#L38-L51
25,140
envoyproxy/go-control-plane
envoy/api/v2/core/address.pb.validate.go
Validate
func (m *SocketAddress) Validate() error { if m == nil { return nil } if _, ok := SocketAddress_Protocol_name[int32(m.GetProtocol())]; !ok { return SocketAddressValidationError{ field: "Protocol", reason: "value must be one of the defined enum values", } } if len(m.GetAddress()) < 1 { return Socke...
go
func (m *SocketAddress) Validate() error { if m == nil { return nil } if _, ok := SocketAddress_Protocol_name[int32(m.GetProtocol())]; !ok { return SocketAddressValidationError{ field: "Protocol", reason: "value must be one of the defined enum values", } } if len(m.GetAddress()) < 1 { return Socke...
[ "func", "(", "m", "*", "SocketAddress", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "_", ",", "ok", ":=", "SocketAddress_Protocol_name", "[", "int32", "(", "m", ".", "GetProtocol", "...
// Validate checks the field values on SocketAddress with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "SocketAddress", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/address.pb.validate.go#L110-L156
25,141
envoyproxy/go-control-plane
envoy/api/v2/core/address.pb.validate.go
Validate
func (m *TcpKeepalive) Validate() error { if m == nil { return nil } { tmp := m.GetKeepaliveProbes() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TcpKeepaliveValidationError{ field: "KeepaliveProbes", reason: "embedded messa...
go
func (m *TcpKeepalive) Validate() error { if m == nil { return nil } { tmp := m.GetKeepaliveProbes() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return TcpKeepaliveValidationError{ field: "KeepaliveProbes", reason: "embedded messa...
[ "func", "(", "m", "*", "TcpKeepalive", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetKeepaliveProbes", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "inte...
// Validate checks the field values on TcpKeepalive with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "TcpKeepalive", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/address.pb.validate.go#L215-L266
25,142
envoyproxy/go-control-plane
envoy/api/v2/core/address.pb.validate.go
Validate
func (m *BindConfig) Validate() error { if m == nil { return nil } { tmp := m.GetSourceAddress() if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return BindConfigValidationError{ field: "SourceAddress", reason: "embedded message fail...
go
func (m *BindConfig) Validate() error { if m == nil { return nil } { tmp := m.GetSourceAddress() if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return BindConfigValidationError{ field: "SourceAddress", reason: "embedded message fail...
[ "func", "(", "m", "*", "BindConfig", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetSourceAddress", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interfac...
// Validate checks the field values on BindConfig with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "BindConfig", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/address.pb.validate.go#L324-L380
25,143
envoyproxy/go-control-plane
envoy/api/v2/core/address.pb.validate.go
Validate
func (m *Address) Validate() error { if m == nil { return nil } switch m.Address.(type) { case *Address_SocketAddress: { tmp := m.GetSocketAddress() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return AddressValidationError{ fi...
go
func (m *Address) Validate() error { if m == nil { return nil } switch m.Address.(type) { case *Address_SocketAddress: { tmp := m.GetSocketAddress() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return AddressValidationError{ fi...
[ "func", "(", "m", "*", "Address", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "switch", "m", ".", "Address", ".", "(", "type", ")", "{", "case", "*", "Address_SocketAddress", ":", "{", ...
// Validate checks the field values on Address with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Address", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/address.pb.validate.go#L438-L488
25,144
envoyproxy/go-control-plane
envoy/api/v2/core/address.pb.validate.go
Validate
func (m *CidrRange) Validate() error { if m == nil { return nil } if len(m.GetAddressPrefix()) < 1 { return CidrRangeValidationError{ field: "AddressPrefix", reason: "value length must be at least 1 bytes", } } if wrapper := m.GetPrefixLen(); wrapper != nil { if wrapper.GetValue() > 128 { retu...
go
func (m *CidrRange) Validate() error { if m == nil { return nil } if len(m.GetAddressPrefix()) < 1 { return CidrRangeValidationError{ field: "AddressPrefix", reason: "value length must be at least 1 bytes", } } if wrapper := m.GetPrefixLen(); wrapper != nil { if wrapper.GetValue() > 128 { retu...
[ "func", "(", "m", "*", "CidrRange", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetAddressPrefix", "(", ")", ")", "<", "1", "{", "return", "CidrRangeValidati...
// Validate checks the field values on CidrRange with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "CidrRange", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/address.pb.validate.go#L546-L570
25,145
envoyproxy/go-control-plane
envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go
Validate
func (m *RedisProxy) Validate() error { if m == nil { return nil } if len(m.GetStatPrefix()) < 1 { return RedisProxyValidationError{ field: "StatPrefix", reason: "value length must be at least 1 bytes", } } // no validation rules for Cluster if m.GetSettings() == nil { return RedisProxyValidatio...
go
func (m *RedisProxy) Validate() error { if m == nil { return nil } if len(m.GetStatPrefix()) < 1 { return RedisProxyValidationError{ field: "StatPrefix", reason: "value length must be at least 1 bytes", } } // no validation rules for Cluster if m.GetSettings() == nil { return RedisProxyValidatio...
[ "func", "(", "m", "*", "RedisProxy", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetStatPrefix", "(", ")", ")", "<", "1", "{", "return", "RedisProxyValidatio...
// Validate checks the field values on RedisProxy with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RedisProxy", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go#L38-L92
25,146
envoyproxy/go-control-plane
envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go
Validate
func (m *RedisProxy_ConnPoolSettings) Validate() error { if m == nil { return nil } if m.GetOpTimeout() == nil { return RedisProxy_ConnPoolSettingsValidationError{ field: "OpTimeout", reason: "value is required", } } // no validation rules for EnableHashtagging // no validation rules for EnableRed...
go
func (m *RedisProxy_ConnPoolSettings) Validate() error { if m == nil { return nil } if m.GetOpTimeout() == nil { return RedisProxy_ConnPoolSettingsValidationError{ field: "OpTimeout", reason: "value is required", } } // no validation rules for EnableHashtagging // no validation rules for EnableRed...
[ "func", "(", "m", "*", "RedisProxy_ConnPoolSettings", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "m", ".", "GetOpTimeout", "(", ")", "==", "nil", "{", "return", "RedisProxy_ConnPoolSett...
// Validate checks the field values on RedisProxy_ConnPoolSettings with the // rules defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RedisProxy_ConnPoolSettings", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go#L151-L185
25,147
envoyproxy/go-control-plane
envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go
Validate
func (m *RedisProxy_PrefixRoutes) Validate() error { if m == nil { return nil } for idx, item := range m.GetRoutes() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RedisProxy_PrefixRoutesValidat...
go
func (m *RedisProxy_PrefixRoutes) Validate() error { if m == nil { return nil } for idx, item := range m.GetRoutes() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RedisProxy_PrefixRoutesValidat...
[ "func", "(", "m", "*", "RedisProxy_PrefixRoutes", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetRoutes", "(", ")", "{", "_", ",", ...
// Validate checks the field values on RedisProxy_PrefixRoutes with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RedisProxy_PrefixRoutes", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "."...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go#L247-L277
25,148
envoyproxy/go-control-plane
envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go
Validate
func (m *RedisProxy_PrefixRoutes_Route) Validate() error { if m == nil { return nil } if len(m.GetPrefix()) < 1 { return RedisProxy_PrefixRoutes_RouteValidationError{ field: "Prefix", reason: "value length must be at least 1 bytes", } } // no validation rules for RemovePrefix if len(m.GetCluster()...
go
func (m *RedisProxy_PrefixRoutes_Route) Validate() error { if m == nil { return nil } if len(m.GetPrefix()) < 1 { return RedisProxy_PrefixRoutes_RouteValidationError{ field: "Prefix", reason: "value length must be at least 1 bytes", } } // no validation rules for RemovePrefix if len(m.GetCluster()...
[ "func", "(", "m", "*", "RedisProxy_PrefixRoutes_Route", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetPrefix", "(", ")", ")", "<", "1", "{", "return", "Redi...
// Validate checks the field values on RedisProxy_PrefixRoutes_Route with the // rules defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RedisProxy_PrefixRoutes_Route", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned",...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/redis_proxy/v2/redis_proxy.pb.validate.go#L338-L360
25,149
envoyproxy/go-control-plane
envoy/api/v2/ratelimit/ratelimit.pb.validate.go
Validate
func (m *RateLimitDescriptor) Validate() error { if m == nil { return nil } if len(m.GetEntries()) < 1 { return RateLimitDescriptorValidationError{ field: "Entries", reason: "value must contain at least 1 item(s)", } } for idx, item := range m.GetEntries() { _, _ = idx, item { tmp := item ...
go
func (m *RateLimitDescriptor) Validate() error { if m == nil { return nil } if len(m.GetEntries()) < 1 { return RateLimitDescriptorValidationError{ field: "Entries", reason: "value must contain at least 1 item(s)", } } for idx, item := range m.GetEntries() { _, _ = idx, item { tmp := item ...
[ "func", "(", "m", "*", "RateLimitDescriptor", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetEntries", "(", ")", ")", "<", "1", "{", "return", "RateLimitDesc...
// Validate checks the field values on RateLimitDescriptor with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RateLimitDescriptor", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/ratelimit/ratelimit.pb.validate.go#L39-L72
25,150
envoyproxy/go-control-plane
envoy/api/v2/ratelimit/ratelimit.pb.validate.go
Validate
func (m *RateLimitDescriptor_Entry) Validate() error { if m == nil { return nil } if len(m.GetKey()) < 1 { return RateLimitDescriptor_EntryValidationError{ field: "Key", reason: "value length must be at least 1 bytes", } } if len(m.GetValue()) < 1 { return RateLimitDescriptor_EntryValidationError{...
go
func (m *RateLimitDescriptor_Entry) Validate() error { if m == nil { return nil } if len(m.GetKey()) < 1 { return RateLimitDescriptor_EntryValidationError{ field: "Key", reason: "value length must be at least 1 bytes", } } if len(m.GetValue()) < 1 { return RateLimitDescriptor_EntryValidationError{...
[ "func", "(", "m", "*", "RateLimitDescriptor_Entry", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetKey", "(", ")", ")", "<", "1", "{", "return", "RateLimitDe...
// Validate checks the field values on RateLimitDescriptor_Entry with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RateLimitDescriptor_Entry", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/ratelimit/ratelimit.pb.validate.go#L133-L153
25,151
envoyproxy/go-control-plane
envoy/data/tap/v2alpha/transport.pb.validate.go
Validate
func (m *Connection) Validate() error { if m == nil { return nil } { tmp := m.GetLocalAddress() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ConnectionValidationError{ field: "LocalAddress", reason: "embedded message failed ...
go
func (m *Connection) Validate() error { if m == nil { return nil } { tmp := m.GetLocalAddress() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ConnectionValidationError{ field: "LocalAddress", reason: "embedded message failed ...
[ "func", "(", "m", "*", "Connection", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetLocalAddress", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface...
// Validate checks the field values on Connection with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Connection", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/tap/v2alpha/transport.pb.validate.go#L38-L74
25,152
envoyproxy/go-control-plane
envoy/data/tap/v2alpha/transport.pb.validate.go
Validate
func (m *SocketEvent) Validate() error { if m == nil { return nil } { tmp := m.GetTimestamp() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return SocketEventValidationError{ field: "Timestamp", reason: "embedded message failed vali...
go
func (m *SocketEvent) Validate() error { if m == nil { return nil } { tmp := m.GetTimestamp() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return SocketEventValidationError{ field: "Timestamp", reason: "embedded message failed vali...
[ "func", "(", "m", "*", "SocketEvent", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetTimestamp", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface",...
// Validate checks the field values on SocketEvent with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "SocketEvent", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/tap/v2alpha/transport.pb.validate.go#L133-L209
25,153
envoyproxy/go-control-plane
envoy/data/tap/v2alpha/transport.pb.validate.go
Validate
func (m *SocketBufferedTrace) Validate() error { if m == nil { return nil } // no validation rules for TraceId { tmp := m.GetConnection() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return SocketBufferedTraceValidationError{ field: "...
go
func (m *SocketBufferedTrace) Validate() error { if m == nil { return nil } // no validation rules for TraceId { tmp := m.GetConnection() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return SocketBufferedTraceValidationError{ field: "...
[ "func", "(", "m", "*", "SocketBufferedTrace", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for TraceId", "{", "tmp", ":=", "m", ".", "GetConnection", "(", ")", "\n\n", "...
// Validate checks the field values on SocketBufferedTrace with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "SocketBufferedTrace", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/tap/v2alpha/transport.pb.validate.go#L268-L315
25,154
envoyproxy/go-control-plane
envoy/data/tap/v2alpha/transport.pb.validate.go
Validate
func (m *SocketStreamedTraceSegment) Validate() error { if m == nil { return nil } // no validation rules for TraceId switch m.MessagePiece.(type) { case *SocketStreamedTraceSegment_Connection: { tmp := m.GetConnection() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err ...
go
func (m *SocketStreamedTraceSegment) Validate() error { if m == nil { return nil } // no validation rules for TraceId switch m.MessagePiece.(type) { case *SocketStreamedTraceSegment_Connection: { tmp := m.GetConnection() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err ...
[ "func", "(", "m", "*", "SocketStreamedTraceSegment", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for TraceId", "switch", "m", ".", "MessagePiece", ".", "(", "type", ")", ...
// Validate checks the field values on SocketStreamedTraceSegment with the // rules defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "SocketStreamedTraceSegment", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/tap/v2alpha/transport.pb.validate.go#L376-L422
25,155
envoyproxy/go-control-plane
envoy/data/tap/v2alpha/transport.pb.validate.go
Validate
func (m *SocketEvent_Read) Validate() error { if m == nil { return nil } { tmp := m.GetData() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return SocketEvent_ReadValidationError{ field: "Data", reason: "embedded message failed vali...
go
func (m *SocketEvent_Read) Validate() error { if m == nil { return nil } { tmp := m.GetData() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return SocketEvent_ReadValidationError{ field: "Data", reason: "embedded message failed vali...
[ "func", "(", "m", "*", "SocketEvent_Read", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetData", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface",...
// Validate checks the field values on SocketEvent_Read with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "SocketEvent_Read", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/tap/v2alpha/transport.pb.validate.go#L483-L504
25,156
envoyproxy/go-control-plane
envoy/data/tap/v2alpha/transport.pb.validate.go
Validate
func (m *SocketEvent_Write) Validate() error { if m == nil { return nil } { tmp := m.GetData() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return SocketEvent_WriteValidationError{ field: "Data", reason: "embedded message failed va...
go
func (m *SocketEvent_Write) Validate() error { if m == nil { return nil } { tmp := m.GetData() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return SocketEvent_WriteValidationError{ field: "Data", reason: "embedded message failed va...
[ "func", "(", "m", "*", "SocketEvent_Write", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetData", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface"...
// Validate checks the field values on SocketEvent_Write with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "SocketEvent_Write", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/tap/v2alpha/transport.pb.validate.go#L563-L586
25,157
envoyproxy/go-control-plane
envoy/type/http_status.pb.validate.go
Validate
func (m *HttpStatus) Validate() error { if m == nil { return nil } if _, ok := StatusCode_name[int32(m.GetCode())]; !ok { return HttpStatusValidationError{ field: "Code", reason: "value must be one of the defined enum values", } } return nil }
go
func (m *HttpStatus) Validate() error { if m == nil { return nil } if _, ok := StatusCode_name[int32(m.GetCode())]; !ok { return HttpStatusValidationError{ field: "Code", reason: "value must be one of the defined enum values", } } return nil }
[ "func", "(", "m", "*", "HttpStatus", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "_", ",", "ok", ":=", "StatusCode_name", "[", "int32", "(", "m", ".", "GetCode", "(", ")", ")", ...
// Validate checks the field values on HttpStatus with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HttpStatus", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/type/http_status.pb.validate.go#L38-L51
25,158
envoyproxy/go-control-plane
envoy/data/cluster/v2alpha/outlier_detection_event.pb.validate.go
Validate
func (m *OutlierDetectionEvent) Validate() error { if m == nil { return nil } if _, ok := OutlierEjectionType_name[int32(m.GetType())]; !ok { return OutlierDetectionEventValidationError{ field: "Type", reason: "value must be one of the defined enum values", } } { tmp := m.GetTimestamp() if v, o...
go
func (m *OutlierDetectionEvent) Validate() error { if m == nil { return nil } if _, ok := OutlierEjectionType_name[int32(m.GetType())]; !ok { return OutlierDetectionEventValidationError{ field: "Type", reason: "value must be one of the defined enum values", } } { tmp := m.GetTimestamp() if v, o...
[ "func", "(", "m", "*", "OutlierDetectionEvent", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "_", ",", "ok", ":=", "OutlierEjectionType_name", "[", "int32", "(", "m", ".", "GetType", ...
// Validate checks the field values on OutlierDetectionEvent with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "OutlierDetectionEvent", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/cluster/v2alpha/outlier_detection_event.pb.validate.go#L39-L151
25,159
envoyproxy/go-control-plane
envoy/data/cluster/v2alpha/outlier_detection_event.pb.validate.go
Validate
func (m *OutlierEjectSuccessRate) Validate() error { if m == nil { return nil } if m.GetHostSuccessRate() > 100 { return OutlierEjectSuccessRateValidationError{ field: "HostSuccessRate", reason: "value must be less than or equal to 100", } } if m.GetClusterAverageSuccessRate() > 100 { return Outli...
go
func (m *OutlierEjectSuccessRate) Validate() error { if m == nil { return nil } if m.GetHostSuccessRate() > 100 { return OutlierEjectSuccessRateValidationError{ field: "HostSuccessRate", reason: "value must be less than or equal to 100", } } if m.GetClusterAverageSuccessRate() > 100 { return Outli...
[ "func", "(", "m", "*", "OutlierEjectSuccessRate", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "m", ".", "GetHostSuccessRate", "(", ")", ">", "100", "{", "return", "OutlierEjectSuccessRat...
// Validate checks the field values on OutlierEjectSuccessRate with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "OutlierEjectSuccessRate", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "."...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/data/cluster/v2alpha/outlier_detection_event.pb.validate.go#L212-L239
25,160
envoyproxy/go-control-plane
pkg/cache/resource.go
GetResourceName
func GetResourceName(res Resource) string { switch v := res.(type) { case *v2.ClusterLoadAssignment: return v.GetClusterName() case *v2.Cluster: return v.GetName() case *v2.RouteConfiguration: return v.GetName() case *v2.Listener: return v.GetName() case *auth.Secret: return v.GetName() default: retu...
go
func GetResourceName(res Resource) string { switch v := res.(type) { case *v2.ClusterLoadAssignment: return v.GetClusterName() case *v2.Cluster: return v.GetName() case *v2.RouteConfiguration: return v.GetName() case *v2.Listener: return v.GetName() case *auth.Secret: return v.GetName() default: retu...
[ "func", "GetResourceName", "(", "res", "Resource", ")", "string", "{", "switch", "v", ":=", "res", ".", "(", "type", ")", "{", "case", "*", "v2", ".", "ClusterLoadAssignment", ":", "return", "v", ".", "GetClusterName", "(", ")", "\n", "case", "*", "v2"...
// GetResourceName returns the resource name for a valid xDS response type.
[ "GetResourceName", "returns", "the", "resource", "name", "for", "a", "valid", "xDS", "response", "type", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/pkg/cache/resource.go#L58-L73
25,161
envoyproxy/go-control-plane
envoy/config/filter/http/squash/v2/squash.pb.validate.go
Validate
func (m *Squash) Validate() error { if m == nil { return nil } if len(m.GetCluster()) < 1 { return SquashValidationError{ field: "Cluster", reason: "value length must be at least 1 bytes", } } { tmp := m.GetAttachmentTemplate() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { ...
go
func (m *Squash) Validate() error { if m == nil { return nil } if len(m.GetCluster()) < 1 { return SquashValidationError{ field: "Cluster", reason: "value length must be at least 1 bytes", } } { tmp := m.GetAttachmentTemplate() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { ...
[ "func", "(", "m", "*", "Squash", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetCluster", "(", ")", ")", "<", "1", "{", "return", "SquashValidationError", ...
// Validate checks the field values on Squash with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Squash", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/http/squash/v2/squash.pb.validate.go#L38-L111
25,162
envoyproxy/go-control-plane
envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go
Validate
func (m *Rds) Validate() error { if m == nil { return nil } { tmp := m.GetConfigSource() if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RdsValidationError{ field: "ConfigSource", reason: "embedded message failed validation", ...
go
func (m *Rds) Validate() error { if m == nil { return nil } { tmp := m.GetConfigSource() if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RdsValidationError{ field: "ConfigSource", reason: "embedded message failed validation", ...
[ "func", "(", "m", "*", "Rds", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetConfigSource", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface", "{...
// Validate checks the field values on Rds with the rules defined in the proto // definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Rds", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go#L463-L491
25,163
envoyproxy/go-control-plane
envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go
Validate
func (m *HttpFilter) Validate() error { if m == nil { return nil } if len(m.GetName()) < 1 { return HttpFilterValidationError{ field: "Name", reason: "value length must be at least 1 bytes", } } switch m.ConfigType.(type) { case *HttpFilter_Config: { tmp := m.GetConfig() if v, ok := inte...
go
func (m *HttpFilter) Validate() error { if m == nil { return nil } if len(m.GetName()) < 1 { return HttpFilterValidationError{ field: "Name", reason: "value length must be at least 1 bytes", } } switch m.ConfigType.(type) { case *HttpFilter_Config: { tmp := m.GetConfig() if v, ok := inte...
[ "func", "(", "m", "*", "HttpFilter", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetName", "(", ")", ")", "<", "1", "{", "return", "HttpFilterValidationError...
// Validate checks the field values on HttpFilter with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HttpFilter", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go#L549-L600
25,164
envoyproxy/go-control-plane
envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go
Validate
func (m *HttpConnectionManager_Tracing) Validate() error { if m == nil { return nil } if _, ok := HttpConnectionManager_Tracing_OperationName_name[int32(m.GetOperationName())]; !ok { return HttpConnectionManager_TracingValidationError{ field: "OperationName", reason: "value must be one of the defined enu...
go
func (m *HttpConnectionManager_Tracing) Validate() error { if m == nil { return nil } if _, ok := HttpConnectionManager_Tracing_OperationName_name[int32(m.GetOperationName())]; !ok { return HttpConnectionManager_TracingValidationError{ field: "OperationName", reason: "value must be one of the defined enu...
[ "func", "(", "m", "*", "HttpConnectionManager_Tracing", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "_", ",", "ok", ":=", "HttpConnectionManager_Tracing_OperationName_name", "[", "int32", "(...
// Validate checks the field values on HttpConnectionManager_Tracing with the // rules defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HttpConnectionManager_Tracing", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned",...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go#L659-L719
25,165
envoyproxy/go-control-plane
envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go
Validate
func (m *HttpConnectionManager_SetCurrentClientCertDetails) Validate() error { if m == nil { return nil } { tmp := m.GetSubject() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HttpConnectionManager_SetCurrentClientCertDetailsValidationE...
go
func (m *HttpConnectionManager_SetCurrentClientCertDetails) Validate() error { if m == nil { return nil } { tmp := m.GetSubject() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return HttpConnectionManager_SetCurrentClientCertDetailsValidationE...
[ "func", "(", "m", "*", "HttpConnectionManager_SetCurrentClientCertDetails", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetSubject", "(", ")", "\n\n", "if", "v", ...
// Validate checks the field values on // HttpConnectionManager_SetCurrentClientCertDetails with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HttpConnectionManager_SetCurrentClientCertDetails", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go#L852-L879
25,166
envoyproxy/go-control-plane
envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go
Validate
func (m *HttpConnectionManager_UpgradeConfig) Validate() error { if m == nil { return nil } // no validation rules for UpgradeType for idx, item := range m.GetFilters() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); er...
go
func (m *HttpConnectionManager_UpgradeConfig) Validate() error { if m == nil { return nil } // no validation rules for UpgradeType for idx, item := range m.GetFilters() { _, _ = idx, item { tmp := item if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); er...
[ "func", "(", "m", "*", "HttpConnectionManager_UpgradeConfig", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for UpgradeType", "for", "idx", ",", "item", ":=", "range", "m", "...
// Validate checks the field values on HttpConnectionManager_UpgradeConfig with // the rules defined in the proto definition for this message. If any rules // are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "HttpConnectionManager_UpgradeConfig", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "retu...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.pb.validate.go#L948-L991
25,167
envoyproxy/go-control-plane
envoy/config/overload/v2alpha/overload.pb.validate.go
Validate
func (m *ResourceMonitor) Validate() error { if m == nil { return nil } if len(m.GetName()) < 1 { return ResourceMonitorValidationError{ field: "Name", reason: "value length must be at least 1 bytes", } } switch m.ConfigType.(type) { case *ResourceMonitor_Config: { tmp := m.GetConfig() i...
go
func (m *ResourceMonitor) Validate() error { if m == nil { return nil } if len(m.GetName()) < 1 { return ResourceMonitorValidationError{ field: "Name", reason: "value length must be at least 1 bytes", } } switch m.ConfigType.(type) { case *ResourceMonitor_Config: { tmp := m.GetConfig() i...
[ "func", "(", "m", "*", "ResourceMonitor", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetName", "(", ")", ")", "<", "1", "{", "return", "ResourceMonitorValid...
// Validate checks the field values on ResourceMonitor with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ResourceMonitor", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/overload/v2alpha/overload.pb.validate.go#L39-L90
25,168
envoyproxy/go-control-plane
envoy/config/overload/v2alpha/overload.pb.validate.go
Validate
func (m *ThresholdTrigger) Validate() error { if m == nil { return nil } if val := m.GetValue(); val < 0 || val > 1 { return ThresholdTriggerValidationError{ field: "Value", reason: "value must be inside range [0, 1]", } } return nil }
go
func (m *ThresholdTrigger) Validate() error { if m == nil { return nil } if val := m.GetValue(); val < 0 || val > 1 { return ThresholdTriggerValidationError{ field: "Value", reason: "value must be inside range [0, 1]", } } return nil }
[ "func", "(", "m", "*", "ThresholdTrigger", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "val", ":=", "m", ".", "GetValue", "(", ")", ";", "val", "<", "0", "||", "val", ">", "1",...
// Validate checks the field values on ThresholdTrigger with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ThresholdTrigger", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/overload/v2alpha/overload.pb.validate.go#L149-L162
25,169
envoyproxy/go-control-plane
envoy/config/overload/v2alpha/overload.pb.validate.go
Validate
func (m *Trigger) Validate() error { if m == nil { return nil } if len(m.GetName()) < 1 { return TriggerValidationError{ field: "Name", reason: "value length must be at least 1 bytes", } } switch m.TriggerOneof.(type) { case *Trigger_Threshold: { tmp := m.GetThreshold() if v, ok := inter...
go
func (m *Trigger) Validate() error { if m == nil { return nil } if len(m.GetName()) < 1 { return TriggerValidationError{ field: "Name", reason: "value length must be at least 1 bytes", } } switch m.TriggerOneof.(type) { case *Trigger_Threshold: { tmp := m.GetThreshold() if v, ok := inter...
[ "func", "(", "m", "*", "Trigger", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetName", "(", ")", ")", "<", "1", "{", "return", "TriggerValidationError", "...
// Validate checks the field values on Trigger with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Trigger", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/overload/v2alpha/overload.pb.validate.go#L220-L260
25,170
envoyproxy/go-control-plane
envoy/config/overload/v2alpha/overload.pb.validate.go
Validate
func (m *OverloadAction) Validate() error { if m == nil { return nil } if len(m.GetName()) < 1 { return OverloadActionValidationError{ field: "Name", reason: "value length must be at least 1 bytes", } } if len(m.GetTriggers()) < 1 { return OverloadActionValidationError{ field: "Triggers", r...
go
func (m *OverloadAction) Validate() error { if m == nil { return nil } if len(m.GetName()) < 1 { return OverloadActionValidationError{ field: "Name", reason: "value length must be at least 1 bytes", } } if len(m.GetTriggers()) < 1 { return OverloadActionValidationError{ field: "Triggers", r...
[ "func", "(", "m", "*", "OverloadAction", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetName", "(", ")", ")", "<", "1", "{", "return", "OverloadActionValidat...
// Validate checks the field values on OverloadAction with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "OverloadAction", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/overload/v2alpha/overload.pb.validate.go#L319-L359
25,171
envoyproxy/go-control-plane
envoy/config/overload/v2alpha/overload.pb.validate.go
Validate
func (m *OverloadManager) Validate() error { if m == nil { return nil } { tmp := m.GetRefreshInterval() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return OverloadManagerValidationError{ field: "RefreshInterval", reason: "embedded...
go
func (m *OverloadManager) Validate() error { if m == nil { return nil } { tmp := m.GetRefreshInterval() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return OverloadManagerValidationError{ field: "RefreshInterval", reason: "embedded...
[ "func", "(", "m", "*", "OverloadManager", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetRefreshInterval", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "i...
// Validate checks the field values on OverloadManager with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "OverloadManager", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/overload/v2alpha/overload.pb.validate.go#L418-L486
25,172
envoyproxy/go-control-plane
envoy/config/filter/http/rbac/v2/rbac.pb.validate.go
Validate
func (m *RBAC) Validate() error { if m == nil { return nil } { tmp := m.GetRules() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RBACValidationError{ field: "Rules", reason: "embedded message failed validation", cause: ...
go
func (m *RBAC) Validate() error { if m == nil { return nil } { tmp := m.GetRules() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RBACValidationError{ field: "Rules", reason: "embedded message failed validation", cause: ...
[ "func", "(", "m", "*", "RBAC", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetRules", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface", "{", "...
// Validate checks the field values on RBAC with the rules defined in the proto // definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RBAC", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/http/rbac/v2/rbac.pb.validate.go#L38-L74
25,173
envoyproxy/go-control-plane
envoy/config/filter/http/rbac/v2/rbac.pb.validate.go
Validate
func (m *RBACPerRoute) Validate() error { if m == nil { return nil } { tmp := m.GetRbac() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RBACPerRouteValidationError{ field: "Rbac", reason: "embedded message failed validation",...
go
func (m *RBACPerRoute) Validate() error { if m == nil { return nil } { tmp := m.GetRbac() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RBACPerRouteValidationError{ field: "Rbac", reason: "embedded message failed validation",...
[ "func", "(", "m", "*", "RBACPerRoute", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetRbac", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface", "...
// Validate checks the field values on RBACPerRoute with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "RBACPerRoute", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/filter/http/rbac/v2/rbac.pb.validate.go#L133-L154
25,174
envoyproxy/go-control-plane
envoy/api/v2/discovery.pb.validate.go
Validate
func (m *DiscoveryRequest) Validate() error { if m == nil { return nil } // no validation rules for VersionInfo { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return DiscoveryRequestValidationError{ field: "Node", ...
go
func (m *DiscoveryRequest) Validate() error { if m == nil { return nil } // no validation rules for VersionInfo { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return DiscoveryRequestValidationError{ field: "Node", ...
[ "func", "(", "m", "*", "DiscoveryRequest", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for VersionInfo", "{", "tmp", ":=", "m", ".", "GetNode", "(", ")", "\n\n", "if", ...
// Validate checks the field values on DiscoveryRequest with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "DiscoveryRequest", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/discovery.pb.validate.go#L39-L81
25,175
envoyproxy/go-control-plane
envoy/api/v2/discovery.pb.validate.go
Validate
func (m *DiscoveryResponse) Validate() error { if m == nil { return nil } // no validation rules for VersionInfo for idx, item := range m.GetResources() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { ...
go
func (m *DiscoveryResponse) Validate() error { if m == nil { return nil } // no validation rules for VersionInfo for idx, item := range m.GetResources() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { ...
[ "func", "(", "m", "*", "DiscoveryResponse", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for VersionInfo", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetResource...
// Validate checks the field values on DiscoveryResponse with the rules defined // in the proto definition for this message. If any rules are violated, an // error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "DiscoveryResponse", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/discovery.pb.validate.go#L140-L189
25,176
envoyproxy/go-control-plane
envoy/api/v2/discovery.pb.validate.go
Validate
func (m *DeltaDiscoveryRequest) Validate() error { if m == nil { return nil } { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return DeltaDiscoveryRequestValidationError{ field: "Node", reason: "embedded message f...
go
func (m *DeltaDiscoveryRequest) Validate() error { if m == nil { return nil } { tmp := m.GetNode() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return DeltaDiscoveryRequestValidationError{ field: "Node", reason: "embedded message f...
[ "func", "(", "m", "*", "DeltaDiscoveryRequest", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetNode", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interf...
// Validate checks the field values on DeltaDiscoveryRequest with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "DeltaDiscoveryRequest", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/discovery.pb.validate.go#L250-L292
25,177
envoyproxy/go-control-plane
envoy/api/v2/discovery.pb.validate.go
Validate
func (m *DeltaDiscoveryResponse) Validate() error { if m == nil { return nil } // no validation rules for SystemVersionInfo for idx, item := range m.GetResources() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err !=...
go
func (m *DeltaDiscoveryResponse) Validate() error { if m == nil { return nil } // no validation rules for SystemVersionInfo for idx, item := range m.GetResources() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err !=...
[ "func", "(", "m", "*", "DeltaDiscoveryResponse", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for SystemVersionInfo", "for", "idx", ",", "item", ":=", "range", "m", ".", "...
// Validate checks the field values on DeltaDiscoveryResponse with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "DeltaDiscoveryResponse", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/discovery.pb.validate.go#L353-L383
25,178
envoyproxy/go-control-plane
envoy/api/v2/discovery.pb.validate.go
Validate
func (m *Resource) Validate() error { if m == nil { return nil } // no validation rules for Name // no validation rules for Version { tmp := m.GetResource() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ResourceValidationError{ ...
go
func (m *Resource) Validate() error { if m == nil { return nil } // no validation rules for Name // no validation rules for Version { tmp := m.GetResource() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ResourceValidationError{ ...
[ "func", "(", "m", "*", "Resource", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for Name", "// no validation rules for Version", "{", "tmp", ":=", "m", ".", "GetResource", "...
// Validate checks the field values on Resource with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Resource", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/discovery.pb.validate.go#L443-L468
25,179
envoyproxy/go-control-plane
envoy/config/bootstrap/v2/bootstrap.pb.validate.go
Validate
func (m *Admin) Validate() error { if m == nil { return nil } // no validation rules for AccessLogPath // no validation rules for ProfilePath { tmp := m.GetAddress() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return AdminValidationError...
go
func (m *Admin) Validate() error { if m == nil { return nil } // no validation rules for AccessLogPath // no validation rules for ProfilePath { tmp := m.GetAddress() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return AdminValidationError...
[ "func", "(", "m", "*", "Admin", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for AccessLogPath", "// no validation rules for ProfilePath", "{", "tmp", ":=", "m", ".", "GetAddr...
// Validate checks the field values on Admin with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Admin", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/bootstrap/v2/bootstrap.pb.validate.go#L306-L331
25,180
envoyproxy/go-control-plane
envoy/config/bootstrap/v2/bootstrap.pb.validate.go
Validate
func (m *ClusterManager) Validate() error { if m == nil { return nil } // no validation rules for LocalClusterName { tmp := m.GetOutlierDetection() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ClusterManagerValidationError{ fiel...
go
func (m *ClusterManager) Validate() error { if m == nil { return nil } // no validation rules for LocalClusterName { tmp := m.GetOutlierDetection() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ClusterManagerValidationError{ fiel...
[ "func", "(", "m", "*", "ClusterManager", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for LocalClusterName", "{", "tmp", ":=", "m", ".", "GetOutlierDetection", "(", ")", "...
// Validate checks the field values on ClusterManager with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ClusterManager", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/bootstrap/v2/bootstrap.pb.validate.go#L390-L443
25,181
envoyproxy/go-control-plane
envoy/config/bootstrap/v2/bootstrap.pb.validate.go
Validate
func (m *Watchdog) Validate() error { if m == nil { return nil } { tmp := m.GetMissTimeout() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return WatchdogValidationError{ field: "MissTimeout", reason: "embedded message failed valida...
go
func (m *Watchdog) Validate() error { if m == nil { return nil } { tmp := m.GetMissTimeout() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return WatchdogValidationError{ field: "MissTimeout", reason: "embedded message failed valida...
[ "func", "(", "m", "*", "Watchdog", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetMissTimeout", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface", ...
// Validate checks the field values on Watchdog with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Watchdog", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/bootstrap/v2/bootstrap.pb.validate.go#L501-L567
25,182
envoyproxy/go-control-plane
envoy/config/bootstrap/v2/bootstrap.pb.validate.go
Validate
func (m *Runtime) Validate() error { if m == nil { return nil } if len(m.GetSymlinkRoot()) < 1 { return RuntimeValidationError{ field: "SymlinkRoot", reason: "value length must be at least 1 bytes", } } // no validation rules for Subdirectory // no validation rules for OverrideSubdirectory retur...
go
func (m *Runtime) Validate() error { if m == nil { return nil } if len(m.GetSymlinkRoot()) < 1 { return RuntimeValidationError{ field: "SymlinkRoot", reason: "value length must be at least 1 bytes", } } // no validation rules for Subdirectory // no validation rules for OverrideSubdirectory retur...
[ "func", "(", "m", "*", "Runtime", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetSymlinkRoot", "(", ")", ")", "<", "1", "{", "return", "RuntimeValidationErro...
// Validate checks the field values on Runtime with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Runtime", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/bootstrap/v2/bootstrap.pb.validate.go#L625-L642
25,183
envoyproxy/go-control-plane
envoy/config/bootstrap/v2/bootstrap.pb.validate.go
Validate
func (m *Bootstrap_StaticResources) Validate() error { if m == nil { return nil } for idx, item := range m.GetListeners() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return Bootstrap_StaticResources...
go
func (m *Bootstrap_StaticResources) Validate() error { if m == nil { return nil } for idx, item := range m.GetListeners() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return Bootstrap_StaticResources...
[ "func", "(", "m", "*", "Bootstrap_StaticResources", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetListeners", "(", ")", "{", "_", ",...
// Validate checks the field values on Bootstrap_StaticResources with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Bootstrap_StaticResources", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/bootstrap/v2/bootstrap.pb.validate.go#L701-L767
25,184
envoyproxy/go-control-plane
envoy/config/bootstrap/v2/bootstrap.pb.validate.go
Validate
func (m *Bootstrap_DynamicResources) Validate() error { if m == nil { return nil } { tmp := m.GetLdsConfig() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return Bootstrap_DynamicResourcesValidationError{ field: "LdsConfig", reason:...
go
func (m *Bootstrap_DynamicResources) Validate() error { if m == nil { return nil } { tmp := m.GetLdsConfig() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return Bootstrap_DynamicResourcesValidationError{ field: "LdsConfig", reason:...
[ "func", "(", "m", "*", "Bootstrap_DynamicResources", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetLdsConfig", "(", ")", "\n\n", "if", "v", ",", "ok", ":=",...
// Validate checks the field values on Bootstrap_DynamicResources with the // rules defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "Bootstrap_DynamicResources", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/config/bootstrap/v2/bootstrap.pb.validate.go#L828-L879
25,185
envoyproxy/go-control-plane
pkg/server/server.go
NewServer
func NewServer(config cache.Cache, callbacks Callbacks) Server { return &server{cache: config, callbacks: callbacks} }
go
func NewServer(config cache.Cache, callbacks Callbacks) Server { return &server{cache: config, callbacks: callbacks} }
[ "func", "NewServer", "(", "config", "cache", ".", "Cache", ",", "callbacks", "Callbacks", ")", "Server", "{", "return", "&", "server", "{", "cache", ":", "config", ",", "callbacks", ":", "callbacks", "}", "\n", "}" ]
// NewServer creates handlers from a config watcher and callbacks.
[ "NewServer", "creates", "handlers", "from", "a", "config", "watcher", "and", "callbacks", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/pkg/server/server.go#L69-L71
25,186
envoyproxy/go-control-plane
pkg/server/server.go
Cancel
func (values watches) Cancel() { if values.endpointCancel != nil { values.endpointCancel() } if values.clusterCancel != nil { values.clusterCancel() } if values.routeCancel != nil { values.routeCancel() } if values.listenerCancel != nil { values.listenerCancel() } if values.secretCancel != nil { valu...
go
func (values watches) Cancel() { if values.endpointCancel != nil { values.endpointCancel() } if values.clusterCancel != nil { values.clusterCancel() } if values.routeCancel != nil { values.routeCancel() } if values.listenerCancel != nil { values.listenerCancel() } if values.secretCancel != nil { valu...
[ "func", "(", "values", "watches", ")", "Cancel", "(", ")", "{", "if", "values", ".", "endpointCancel", "!=", "nil", "{", "values", ".", "endpointCancel", "(", ")", "\n", "}", "\n", "if", "values", ".", "clusterCancel", "!=", "nil", "{", "values", ".", ...
// Cancel all watches
[ "Cancel", "all", "watches" ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/pkg/server/server.go#L110-L126
25,187
envoyproxy/go-control-plane
pkg/server/server.go
handler
func (s *server) handler(stream stream, typeURL string) error { // a channel for receiving incoming requests reqCh := make(chan *v2.DiscoveryRequest) reqStop := int32(0) go func() { for { req, err := stream.Recv() if atomic.LoadInt32(&reqStop) != 0 { return } if err != nil { close(reqCh) r...
go
func (s *server) handler(stream stream, typeURL string) error { // a channel for receiving incoming requests reqCh := make(chan *v2.DiscoveryRequest) reqStop := int32(0) go func() { for { req, err := stream.Recv() if atomic.LoadInt32(&reqStop) != 0 { return } if err != nil { close(reqCh) r...
[ "func", "(", "s", "*", "server", ")", "handler", "(", "stream", "stream", ",", "typeURL", "string", ")", "error", "{", "// a channel for receiving incoming requests", "reqCh", ":=", "make", "(", "chan", "*", "v2", ".", "DiscoveryRequest", ")", "\n", "reqStop",...
// handler converts a blocking read call to channels and initiates stream processing
[ "handler", "converts", "a", "blocking", "read", "call", "to", "channels", "and", "initiates", "stream", "processing" ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/pkg/server/server.go#L304-L329
25,188
envoyproxy/go-control-plane
pkg/server/server.go
Fetch
func (s *server) Fetch(ctx context.Context, req *v2.DiscoveryRequest) (*v2.DiscoveryResponse, error) { if s.callbacks != nil { if err := s.callbacks.OnFetchRequest(ctx, req); err != nil { return nil, err } } resp, err := s.cache.Fetch(ctx, *req) if err != nil { return nil, err } out, err := createRespons...
go
func (s *server) Fetch(ctx context.Context, req *v2.DiscoveryRequest) (*v2.DiscoveryResponse, error) { if s.callbacks != nil { if err := s.callbacks.OnFetchRequest(ctx, req); err != nil { return nil, err } } resp, err := s.cache.Fetch(ctx, *req) if err != nil { return nil, err } out, err := createRespons...
[ "func", "(", "s", "*", "server", ")", "Fetch", "(", "ctx", "context", ".", "Context", ",", "req", "*", "v2", ".", "DiscoveryRequest", ")", "(", "*", "v2", ".", "DiscoveryResponse", ",", "error", ")", "{", "if", "s", ".", "callbacks", "!=", "nil", "...
// Fetch is the universal fetch method.
[ "Fetch", "is", "the", "universal", "fetch", "method", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/pkg/server/server.go#L356-L371
25,189
envoyproxy/go-control-plane
envoy/api/v2/core/grpc_service.pb.validate.go
Validate
func (m *GrpcService) Validate() error { if m == nil { return nil } { tmp := m.GetTimeout() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GrpcServiceValidationError{ field: "Timeout", reason: "embedded message failed validati...
go
func (m *GrpcService) Validate() error { if m == nil { return nil } { tmp := m.GetTimeout() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GrpcServiceValidationError{ field: "Timeout", reason: "embedded message failed validati...
[ "func", "(", "m", "*", "GrpcService", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetTimeout", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "interface", ...
// Validate checks the field values on GrpcService with the rules defined in // the proto definition for this message. If any rules are violated, an error // is returned.
[ "Validate", "checks", "the", "field", "values", "on", "GrpcService", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/grpc_service.pb.validate.go#L39-L124
25,190
envoyproxy/go-control-plane
envoy/api/v2/core/grpc_service.pb.validate.go
Validate
func (m *GrpcService_EnvoyGrpc) Validate() error { if m == nil { return nil } if len(m.GetClusterName()) < 1 { return GrpcService_EnvoyGrpcValidationError{ field: "ClusterName", reason: "value length must be at least 1 bytes", } } return nil }
go
func (m *GrpcService_EnvoyGrpc) Validate() error { if m == nil { return nil } if len(m.GetClusterName()) < 1 { return GrpcService_EnvoyGrpcValidationError{ field: "ClusterName", reason: "value length must be at least 1 bytes", } } return nil }
[ "func", "(", "m", "*", "GrpcService_EnvoyGrpc", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetClusterName", "(", ")", ")", "<", "1", "{", "return", "GrpcSer...
// Validate checks the field values on GrpcService_EnvoyGrpc with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "GrpcService_EnvoyGrpc", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/grpc_service.pb.validate.go#L183-L196
25,191
envoyproxy/go-control-plane
envoy/api/v2/core/grpc_service.pb.validate.go
Validate
func (m *GrpcService_GoogleGrpc) Validate() error { if m == nil { return nil } if len(m.GetTargetUri()) < 1 { return GrpcService_GoogleGrpcValidationError{ field: "TargetUri", reason: "value length must be at least 1 bytes", } } { tmp := m.GetChannelCredentials() if v, ok := interface{}(tmp).(i...
go
func (m *GrpcService_GoogleGrpc) Validate() error { if m == nil { return nil } if len(m.GetTargetUri()) < 1 { return GrpcService_GoogleGrpcValidationError{ field: "TargetUri", reason: "value length must be at least 1 bytes", } } { tmp := m.GetChannelCredentials() if v, ok := interface{}(tmp).(i...
[ "func", "(", "m", "*", "GrpcService_GoogleGrpc", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "if", "len", "(", "m", ".", "GetTargetUri", "(", ")", ")", "<", "1", "{", "return", "GrpcServ...
// Validate checks the field values on GrpcService_GoogleGrpc with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "GrpcService_GoogleGrpc", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/grpc_service.pb.validate.go#L257-L329
25,192
envoyproxy/go-control-plane
envoy/api/v2/core/grpc_service.pb.validate.go
Validate
func (m *GrpcService_GoogleGrpc_SslCredentials) Validate() error { if m == nil { return nil } { tmp := m.GetRootCerts() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GrpcService_GoogleGrpc_SslCredentialsValidationError{ field: "Ro...
go
func (m *GrpcService_GoogleGrpc_SslCredentials) Validate() error { if m == nil { return nil } { tmp := m.GetRootCerts() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GrpcService_GoogleGrpc_SslCredentialsValidationError{ field: "Ro...
[ "func", "(", "m", "*", "GrpcService_GoogleGrpc_SslCredentials", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetRootCerts", "(", ")", "\n\n", "if", "v", ",", "o...
// Validate checks the field values on GrpcService_GoogleGrpc_SslCredentials // with the rules defined in the proto definition for this message. If any // rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "GrpcService_GoogleGrpc_SslCredentials", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "re...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/grpc_service.pb.validate.go#L390-L441
25,193
envoyproxy/go-control-plane
envoy/api/v2/core/grpc_service.pb.validate.go
Validate
func (m *GrpcService_GoogleGrpc_ChannelCredentials) Validate() error { if m == nil { return nil } switch m.CredentialSpecifier.(type) { case *GrpcService_GoogleGrpc_ChannelCredentials_SslCredentials: { tmp := m.GetSslCredentials() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { ...
go
func (m *GrpcService_GoogleGrpc_ChannelCredentials) Validate() error { if m == nil { return nil } switch m.CredentialSpecifier.(type) { case *GrpcService_GoogleGrpc_ChannelCredentials_SslCredentials: { tmp := m.GetSslCredentials() if v, ok := interface{}(tmp).(interface{ Validate() error }); ok { ...
[ "func", "(", "m", "*", "GrpcService_GoogleGrpc_ChannelCredentials", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "switch", "m", ".", "CredentialSpecifier", ".", "(", "type", ")", "{", "case", "...
// Validate checks the field values on // GrpcService_GoogleGrpc_ChannelCredentials with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "GrpcService_GoogleGrpc_ChannelCredentials", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/grpc_service.pb.validate.go#L572-L639
25,194
envoyproxy/go-control-plane
envoy/api/v2/core/grpc_service.pb.validate.go
Validate
func (m *GrpcService_GoogleGrpc_CallCredentials) Validate() error { if m == nil { return nil } switch m.CredentialSpecifier.(type) { case *GrpcService_GoogleGrpc_CallCredentials_AccessToken: // no validation rules for AccessToken case *GrpcService_GoogleGrpc_CallCredentials_GoogleComputeEngine: { tmp ...
go
func (m *GrpcService_GoogleGrpc_CallCredentials) Validate() error { if m == nil { return nil } switch m.CredentialSpecifier.(type) { case *GrpcService_GoogleGrpc_CallCredentials_AccessToken: // no validation rules for AccessToken case *GrpcService_GoogleGrpc_CallCredentials_GoogleComputeEngine: { tmp ...
[ "func", "(", "m", "*", "GrpcService_GoogleGrpc_CallCredentials", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "switch", "m", ".", "CredentialSpecifier", ".", "(", "type", ")", "{", "case", "*",...
// Validate checks the field values on GrpcService_GoogleGrpc_CallCredentials // with the rules defined in the proto definition for this message. If any // rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "GrpcService_GoogleGrpc_CallCredentials", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "r...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/grpc_service.pb.validate.go#L701-L791
25,195
envoyproxy/go-control-plane
envoy/api/v2/core/grpc_service.pb.validate.go
Validate
func (m *GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin) Validate() error { if m == nil { return nil } // no validation rules for Name switch m.ConfigType.(type) { case *GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_Config: { tmp := m.GetConfig() if v, ok...
go
func (m *GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin) Validate() error { if m == nil { return nil } // no validation rules for Name switch m.ConfigType.(type) { case *GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin_Config: { tmp := m.GetConfig() if v, ok...
[ "func", "(", "m", "*", "GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for Name", "switch", "m", ".", "ConfigTyp...
// Validate checks the field values on // GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin with // the rules defined in the proto definition for this message. If any rules // are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "GrpcService_GoogleGrpc_CallCredentials_MetadataCredentialsFromPlugin", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", ...
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/api/v2/core/grpc_service.pb.validate.go#L1018-L1064
25,196
envoyproxy/go-control-plane
envoy/admin/v2alpha/config_dump.pb.validate.go
Validate
func (m *ConfigDump) Validate() error { if m == nil { return nil } for idx, item := range m.GetConfigs() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ConfigDumpValidationError{ field: f...
go
func (m *ConfigDump) Validate() error { if m == nil { return nil } for idx, item := range m.GetConfigs() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ConfigDumpValidationError{ field: f...
[ "func", "(", "m", "*", "ConfigDump", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetConfigs", "(", ")", "{", "_", ",", "_", "=", ...
// Validate checks the field values on ConfigDump with the rules defined in the // proto definition for this message. If any rules are violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ConfigDump", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/admin/v2alpha/config_dump.pb.validate.go#L38-L64
25,197
envoyproxy/go-control-plane
envoy/admin/v2alpha/config_dump.pb.validate.go
Validate
func (m *BootstrapConfigDump) Validate() error { if m == nil { return nil } { tmp := m.GetBootstrap() if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return BootstrapConfigDumpValidationError{ field: "Bootstrap", reason: "embedded me...
go
func (m *BootstrapConfigDump) Validate() error { if m == nil { return nil } { tmp := m.GetBootstrap() if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return BootstrapConfigDumpValidationError{ field: "Bootstrap", reason: "embedded me...
[ "func", "(", "m", "*", "BootstrapConfigDump", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "{", "tmp", ":=", "m", ".", "GetBootstrap", "(", ")", "\n\n", "if", "v", ",", "ok", ":=", "int...
// Validate checks the field values on BootstrapConfigDump with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "BootstrapConfigDump", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/admin/v2alpha/config_dump.pb.validate.go#L123-L159
25,198
envoyproxy/go-control-plane
envoy/admin/v2alpha/config_dump.pb.validate.go
Validate
func (m *ListenersConfigDump) Validate() error { if m == nil { return nil } // no validation rules for VersionInfo for idx, item := range m.GetStaticListeners() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != ni...
go
func (m *ListenersConfigDump) Validate() error { if m == nil { return nil } // no validation rules for VersionInfo for idx, item := range m.GetStaticListeners() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != ni...
[ "func", "(", "m", "*", "ListenersConfigDump", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for VersionInfo", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetStatic...
// Validate checks the field values on ListenersConfigDump with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ListenersConfigDump", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/admin/v2alpha/config_dump.pb.validate.go#L220-L308
25,199
envoyproxy/go-control-plane
envoy/admin/v2alpha/config_dump.pb.validate.go
Validate
func (m *ClustersConfigDump) Validate() error { if m == nil { return nil } // no validation rules for VersionInfo for idx, item := range m.GetStaticClusters() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil ...
go
func (m *ClustersConfigDump) Validate() error { if m == nil { return nil } // no validation rules for VersionInfo for idx, item := range m.GetStaticClusters() { _, _ = idx, item { tmp := item if v, ok := interface{}(&tmp).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil ...
[ "func", "(", "m", "*", "ClustersConfigDump", ")", "Validate", "(", ")", "error", "{", "if", "m", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// no validation rules for VersionInfo", "for", "idx", ",", "item", ":=", "range", "m", ".", "GetStaticC...
// Validate checks the field values on ClustersConfigDump with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned.
[ "Validate", "checks", "the", "field", "values", "on", "ClustersConfigDump", "with", "the", "rules", "defined", "in", "the", "proto", "definition", "for", "this", "message", ".", "If", "any", "rules", "are", "violated", "an", "error", "is", "returned", "." ]
9ffbaf293221f9fef735838632a9109d00aa2f4c
https://github.com/envoyproxy/go-control-plane/blob/9ffbaf293221f9fef735838632a9109d00aa2f4c/envoy/admin/v2alpha/config_dump.pb.validate.go#L369-L437