-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacl_validate_error_codes.go
55 lines (44 loc) · 1.78 KB
/
acl_validate_error_codes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Code generated by 'gen-errors'; DO NOT EDIT
package klev
const (
ErrACLActionInvalidObjectCode = "acl-action-invalid-object"
ErrACLActionMissingCode = "acl-action-missing"
ErrACLObjectEgressWebhookInvalidCode = "acl-object-egress-webhook-invalid"
ErrACLObjectFilterInvalidCode = "acl-object-filter-invalid"
ErrACLObjectIngressWebhookInvalidCode = "acl-object-ingress-webhook-invalid"
ErrACLObjectLogInvalidCode = "acl-object-log-invalid"
ErrACLObjectOffsetInvalidCode = "acl-object-offset-invalid"
ErrACLObjectTokenInvalidCode = "acl-object-token-invalid"
ErrACLSubjectActionInvalidCode = "acl-subject-action-invalid"
ErrACLSubjectMissingCode = "acl-subject-missing"
)
func IsErrACLActionInvalidObject(err error) bool {
return IsError(err, ErrACLActionInvalidObjectCode)
}
func IsErrACLActionMissing(err error) bool {
return IsError(err, ErrACLActionMissingCode)
}
func IsErrACLObjectEgressWebhookInvalid(err error) bool {
return IsError(err, ErrACLObjectEgressWebhookInvalidCode)
}
func IsErrACLObjectFilterInvalid(err error) bool {
return IsError(err, ErrACLObjectFilterInvalidCode)
}
func IsErrACLObjectIngressWebhookInvalid(err error) bool {
return IsError(err, ErrACLObjectIngressWebhookInvalidCode)
}
func IsErrACLObjectLogInvalid(err error) bool {
return IsError(err, ErrACLObjectLogInvalidCode)
}
func IsErrACLObjectOffsetInvalid(err error) bool {
return IsError(err, ErrACLObjectOffsetInvalidCode)
}
func IsErrACLObjectTokenInvalid(err error) bool {
return IsError(err, ErrACLObjectTokenInvalidCode)
}
func IsErrACLSubjectActionInvalid(err error) bool {
return IsError(err, ErrACLSubjectActionInvalidCode)
}
func IsErrACLSubjectMissing(err error) bool {
return IsError(err, ErrACLSubjectMissingCode)
}