build(deps): bump cloud.google.com/go/storage from 1.18.2 to 1.22.0
Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.18.2 to 1.22.0. - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-cloud-go/compare/storage/v1.18.2...spanner/v1.22.0) --- updated-dependencies: - dependency-name: cloud.google.com/go/storage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
2ad93b28db
commit
9336d66c32
809 changed files with 84313 additions and 268932 deletions
201
vendor/github.com/cncf/xds/go/LICENSE
generated
vendored
201
vendor/github.com/cncf/xds/go/LICENSE
generated
vendored
|
|
@ -1,201 +0,0 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
231
vendor/github.com/cncf/xds/go/udpa/annotations/migrate.pb.go
generated
vendored
231
vendor/github.com/cncf/xds/go/udpa/annotations/migrate.pb.go
generated
vendored
|
|
@ -1,231 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: udpa/annotations/migrate.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type MigrateAnnotation struct {
|
||||
Rename string `protobuf:"bytes,1,opt,name=rename,proto3" json:"rename,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MigrateAnnotation) Reset() { *m = MigrateAnnotation{} }
|
||||
func (m *MigrateAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*MigrateAnnotation) ProtoMessage() {}
|
||||
func (*MigrateAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ba8191732d0e246d, []int{0}
|
||||
}
|
||||
|
||||
func (m *MigrateAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_MigrateAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *MigrateAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_MigrateAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *MigrateAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MigrateAnnotation.Merge(m, src)
|
||||
}
|
||||
func (m *MigrateAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_MigrateAnnotation.Size(m)
|
||||
}
|
||||
func (m *MigrateAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MigrateAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MigrateAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *MigrateAnnotation) GetRename() string {
|
||||
if m != nil {
|
||||
return m.Rename
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type FieldMigrateAnnotation struct {
|
||||
Rename string `protobuf:"bytes,1,opt,name=rename,proto3" json:"rename,omitempty"`
|
||||
OneofPromotion string `protobuf:"bytes,2,opt,name=oneof_promotion,json=oneofPromotion,proto3" json:"oneof_promotion,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FieldMigrateAnnotation) Reset() { *m = FieldMigrateAnnotation{} }
|
||||
func (m *FieldMigrateAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*FieldMigrateAnnotation) ProtoMessage() {}
|
||||
func (*FieldMigrateAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ba8191732d0e246d, []int{1}
|
||||
}
|
||||
|
||||
func (m *FieldMigrateAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FieldMigrateAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FieldMigrateAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FieldMigrateAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FieldMigrateAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FieldMigrateAnnotation.Merge(m, src)
|
||||
}
|
||||
func (m *FieldMigrateAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_FieldMigrateAnnotation.Size(m)
|
||||
}
|
||||
func (m *FieldMigrateAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FieldMigrateAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FieldMigrateAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *FieldMigrateAnnotation) GetRename() string {
|
||||
if m != nil {
|
||||
return m.Rename
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *FieldMigrateAnnotation) GetOneofPromotion() string {
|
||||
if m != nil {
|
||||
return m.OneofPromotion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type FileMigrateAnnotation struct {
|
||||
MoveToPackage string `protobuf:"bytes,2,opt,name=move_to_package,json=moveToPackage,proto3" json:"move_to_package,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FileMigrateAnnotation) Reset() { *m = FileMigrateAnnotation{} }
|
||||
func (m *FileMigrateAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*FileMigrateAnnotation) ProtoMessage() {}
|
||||
func (*FileMigrateAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ba8191732d0e246d, []int{2}
|
||||
}
|
||||
|
||||
func (m *FileMigrateAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FileMigrateAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FileMigrateAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FileMigrateAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FileMigrateAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FileMigrateAnnotation.Merge(m, src)
|
||||
}
|
||||
func (m *FileMigrateAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_FileMigrateAnnotation.Size(m)
|
||||
}
|
||||
func (m *FileMigrateAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FileMigrateAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FileMigrateAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *FileMigrateAnnotation) GetMoveToPackage() string {
|
||||
if m != nil {
|
||||
return m.MoveToPackage
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var E_MessageMigrate = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.MessageOptions)(nil),
|
||||
ExtensionType: (*MigrateAnnotation)(nil),
|
||||
Field: 171962766,
|
||||
Name: "udpa.annotations.message_migrate",
|
||||
Tag: "bytes,171962766,opt,name=message_migrate",
|
||||
Filename: "udpa/annotations/migrate.proto",
|
||||
}
|
||||
|
||||
var E_FieldMigrate = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.FieldOptions)(nil),
|
||||
ExtensionType: (*FieldMigrateAnnotation)(nil),
|
||||
Field: 171962766,
|
||||
Name: "udpa.annotations.field_migrate",
|
||||
Tag: "bytes,171962766,opt,name=field_migrate",
|
||||
Filename: "udpa/annotations/migrate.proto",
|
||||
}
|
||||
|
||||
var E_EnumMigrate = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.EnumOptions)(nil),
|
||||
ExtensionType: (*MigrateAnnotation)(nil),
|
||||
Field: 171962766,
|
||||
Name: "udpa.annotations.enum_migrate",
|
||||
Tag: "bytes,171962766,opt,name=enum_migrate",
|
||||
Filename: "udpa/annotations/migrate.proto",
|
||||
}
|
||||
|
||||
var E_EnumValueMigrate = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.EnumValueOptions)(nil),
|
||||
ExtensionType: (*MigrateAnnotation)(nil),
|
||||
Field: 171962766,
|
||||
Name: "udpa.annotations.enum_value_migrate",
|
||||
Tag: "bytes,171962766,opt,name=enum_value_migrate",
|
||||
Filename: "udpa/annotations/migrate.proto",
|
||||
}
|
||||
|
||||
var E_FileMigrate = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.FileOptions)(nil),
|
||||
ExtensionType: (*FileMigrateAnnotation)(nil),
|
||||
Field: 171962766,
|
||||
Name: "udpa.annotations.file_migrate",
|
||||
Tag: "bytes,171962766,opt,name=file_migrate",
|
||||
Filename: "udpa/annotations/migrate.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MigrateAnnotation)(nil), "udpa.annotations.MigrateAnnotation")
|
||||
proto.RegisterType((*FieldMigrateAnnotation)(nil), "udpa.annotations.FieldMigrateAnnotation")
|
||||
proto.RegisterType((*FileMigrateAnnotation)(nil), "udpa.annotations.FileMigrateAnnotation")
|
||||
proto.RegisterExtension(E_MessageMigrate)
|
||||
proto.RegisterExtension(E_FieldMigrate)
|
||||
proto.RegisterExtension(E_EnumMigrate)
|
||||
proto.RegisterExtension(E_EnumValueMigrate)
|
||||
proto.RegisterExtension(E_FileMigrate)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("udpa/annotations/migrate.proto", fileDescriptor_ba8191732d0e246d) }
|
||||
|
||||
var fileDescriptor_ba8191732d0e246d = []byte{
|
||||
// 349 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcd, 0x4a, 0xfb, 0x40,
|
||||
0x14, 0xc5, 0xe9, 0x7f, 0x51, 0xf8, 0x4f, 0x3f, 0x0d, 0x58, 0x8a, 0xf8, 0x51, 0x2b, 0xd8, 0x82,
|
||||
0x30, 0x01, 0xdd, 0x75, 0x23, 0x2e, 0xec, 0xae, 0x58, 0x83, 0x08, 0xae, 0xc2, 0xb4, 0xbd, 0x09,
|
||||
0xa1, 0x99, 0xb9, 0x43, 0x32, 0xa9, 0x6f, 0xe1, 0x4b, 0xfa, 0x20, 0xca, 0x4c, 0x92, 0xb6, 0x38,
|
||||
0x41, 0xa4, 0xcb, 0x9c, 0x7b, 0xef, 0xf9, 0xe5, 0x1c, 0x86, 0x9c, 0x67, 0x2b, 0xc9, 0x5c, 0x26,
|
||||
0x04, 0x2a, 0xa6, 0x22, 0x14, 0xa9, 0xcb, 0xa3, 0x30, 0x61, 0x0a, 0xa8, 0x4c, 0x50, 0xa1, 0xd3,
|
||||
0xd5, 0x73, 0xba, 0x37, 0x3f, 0x19, 0x84, 0x88, 0x61, 0x0c, 0xae, 0x99, 0x2f, 0xb2, 0xc0, 0x5d,
|
||||
0x41, 0xba, 0x4c, 0x22, 0xa9, 0x30, 0xc9, 0x6f, 0x86, 0x37, 0xe4, 0x68, 0x96, 0x9b, 0x3c, 0x6c,
|
||||
0xef, 0x9c, 0x1e, 0xa9, 0x27, 0x20, 0x18, 0x87, 0x7e, 0x6d, 0x50, 0x1b, 0xff, 0xf7, 0x8a, 0xaf,
|
||||
0xe1, 0x1b, 0xe9, 0x4d, 0x23, 0x88, 0x57, 0x7f, 0xbe, 0x70, 0x46, 0xa4, 0x83, 0x02, 0x30, 0xf0,
|
||||
0x65, 0x82, 0x1c, 0xf5, 0x6a, 0xff, 0x9f, 0x59, 0x68, 0x1b, 0x79, 0x5e, 0xaa, 0xc3, 0x7b, 0x72,
|
||||
0x3c, 0x8d, 0x62, 0xb0, 0x9d, 0xaf, 0x49, 0x87, 0xe3, 0x06, 0x7c, 0x85, 0xbe, 0x64, 0xcb, 0x35,
|
||||
0x0b, 0xa1, 0x70, 0x68, 0x69, 0xf9, 0x05, 0xe7, 0xb9, 0x38, 0x91, 0xa4, 0xc3, 0x21, 0x4d, 0x59,
|
||||
0x08, 0x7e, 0xd1, 0x8a, 0x73, 0x41, 0xf3, 0xf8, 0xb4, 0x8c, 0x4f, 0x67, 0xf9, 0xc6, 0x93, 0x34,
|
||||
0xf5, 0xf4, 0x3f, 0x3e, 0xbf, 0x9e, 0x07, 0xb5, 0x71, 0xe3, 0xf6, 0x8a, 0xfe, 0xac, 0x8e, 0x5a,
|
||||
0x7f, 0xe2, 0xb5, 0x0b, 0xff, 0x62, 0x32, 0x41, 0xd2, 0x0a, 0x74, 0x1b, 0x5b, 0xde, 0x99, 0xc5,
|
||||
0x33, 0x6d, 0x59, 0xb4, 0xb1, 0x4d, 0xab, 0xae, 0xd5, 0x6b, 0x06, 0x7b, 0xfa, 0x24, 0x24, 0x4d,
|
||||
0x10, 0x19, 0xdf, 0xf2, 0x4e, 0x2d, 0xde, 0xa3, 0xc8, 0xf8, 0x61, 0xe1, 0x1a, 0xda, 0xb9, 0x04,
|
||||
0xbd, 0x13, 0xc7, 0x80, 0x36, 0x2c, 0xce, 0x76, 0x75, 0x5e, 0x56, 0xe2, 0x5e, 0xf5, 0xce, 0x61,
|
||||
0xcc, 0x2e, 0x94, 0xf7, 0x25, 0x78, 0x4d, 0x9a, 0x41, 0x14, 0xc3, 0x2f, 0x09, 0xf5, 0x23, 0xb1,
|
||||
0x68, 0xa3, 0xaa, 0x42, 0x2b, 0x1e, 0x93, 0xd7, 0x08, 0x76, 0xf2, 0xa2, 0x6e, 0x4c, 0xef, 0xbe,
|
||||
0x03, 0x00, 0x00, 0xff, 0xff, 0x62, 0x65, 0xc8, 0x45, 0x57, 0x03, 0x00, 0x00,
|
||||
}
|
||||
246
vendor/github.com/cncf/xds/go/udpa/annotations/migrate.pb.validate.go
generated
vendored
246
vendor/github.com/cncf/xds/go/udpa/annotations/migrate.pb.validate.go
generated
vendored
|
|
@ -1,246 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: udpa/annotations/migrate.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _migrate_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on MigrateAnnotation with the rules defined
|
||||
// in the proto definition for this message. If any rules are violated, an
|
||||
// error is returned.
|
||||
func (m *MigrateAnnotation) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// no validation rules for Rename
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MigrateAnnotationValidationError is the validation error returned by
|
||||
// MigrateAnnotation.Validate if the designated constraints aren't met.
|
||||
type MigrateAnnotationValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e MigrateAnnotationValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e MigrateAnnotationValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e MigrateAnnotationValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e MigrateAnnotationValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e MigrateAnnotationValidationError) ErrorName() string {
|
||||
return "MigrateAnnotationValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e MigrateAnnotationValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sMigrateAnnotation.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = MigrateAnnotationValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = MigrateAnnotationValidationError{}
|
||||
|
||||
// Validate checks the field values on FieldMigrateAnnotation with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *FieldMigrateAnnotation) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// no validation rules for Rename
|
||||
|
||||
// no validation rules for OneofPromotion
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// FieldMigrateAnnotationValidationError is the validation error returned by
|
||||
// FieldMigrateAnnotation.Validate if the designated constraints aren't met.
|
||||
type FieldMigrateAnnotationValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e FieldMigrateAnnotationValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e FieldMigrateAnnotationValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e FieldMigrateAnnotationValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e FieldMigrateAnnotationValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e FieldMigrateAnnotationValidationError) ErrorName() string {
|
||||
return "FieldMigrateAnnotationValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e FieldMigrateAnnotationValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sFieldMigrateAnnotation.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = FieldMigrateAnnotationValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = FieldMigrateAnnotationValidationError{}
|
||||
|
||||
// Validate checks the field values on FileMigrateAnnotation with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *FileMigrateAnnotation) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// no validation rules for MoveToPackage
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// FileMigrateAnnotationValidationError is the validation error returned by
|
||||
// FileMigrateAnnotation.Validate if the designated constraints aren't met.
|
||||
type FileMigrateAnnotationValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e FileMigrateAnnotationValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e FileMigrateAnnotationValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e FileMigrateAnnotationValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e FileMigrateAnnotationValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e FileMigrateAnnotationValidationError) ErrorName() string {
|
||||
return "FileMigrateAnnotationValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e FileMigrateAnnotationValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sFileMigrateAnnotation.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = FileMigrateAnnotationValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = FileMigrateAnnotationValidationError{}
|
||||
109
vendor/github.com/cncf/xds/go/udpa/annotations/security.pb.go
generated
vendored
109
vendor/github.com/cncf/xds/go/udpa/annotations/security.pb.go
generated
vendored
|
|
@ -1,109 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: udpa/annotations/security.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
|
||||
_ "github.com/golang/protobuf/ptypes/any"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type FieldSecurityAnnotation struct {
|
||||
ConfigureForUntrustedDownstream bool `protobuf:"varint,1,opt,name=configure_for_untrusted_downstream,json=configureForUntrustedDownstream,proto3" json:"configure_for_untrusted_downstream,omitempty"`
|
||||
ConfigureForUntrustedUpstream bool `protobuf:"varint,2,opt,name=configure_for_untrusted_upstream,json=configureForUntrustedUpstream,proto3" json:"configure_for_untrusted_upstream,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FieldSecurityAnnotation) Reset() { *m = FieldSecurityAnnotation{} }
|
||||
func (m *FieldSecurityAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*FieldSecurityAnnotation) ProtoMessage() {}
|
||||
func (*FieldSecurityAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_43b150013eccfb0a, []int{0}
|
||||
}
|
||||
|
||||
func (m *FieldSecurityAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FieldSecurityAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FieldSecurityAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FieldSecurityAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *FieldSecurityAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FieldSecurityAnnotation.Merge(m, src)
|
||||
}
|
||||
func (m *FieldSecurityAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_FieldSecurityAnnotation.Size(m)
|
||||
}
|
||||
func (m *FieldSecurityAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FieldSecurityAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FieldSecurityAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *FieldSecurityAnnotation) GetConfigureForUntrustedDownstream() bool {
|
||||
if m != nil {
|
||||
return m.ConfigureForUntrustedDownstream
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *FieldSecurityAnnotation) GetConfigureForUntrustedUpstream() bool {
|
||||
if m != nil {
|
||||
return m.ConfigureForUntrustedUpstream
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var E_Security = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.FieldOptions)(nil),
|
||||
ExtensionType: (*FieldSecurityAnnotation)(nil),
|
||||
Field: 11122993,
|
||||
Name: "udpa.annotations.security",
|
||||
Tag: "bytes,11122993,opt,name=security",
|
||||
Filename: "udpa/annotations/security.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*FieldSecurityAnnotation)(nil), "udpa.annotations.FieldSecurityAnnotation")
|
||||
proto.RegisterExtension(E_Security)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("udpa/annotations/security.proto", fileDescriptor_43b150013eccfb0a) }
|
||||
|
||||
var fileDescriptor_43b150013eccfb0a = []byte{
|
||||
// 276 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xb1, 0x4a, 0x03, 0x31,
|
||||
0x18, 0xc7, 0xb9, 0x82, 0xe5, 0x88, 0x8b, 0xdc, 0xd2, 0x5a, 0x38, 0x7a, 0x74, 0xaa, 0x4b, 0x02,
|
||||
0xba, 0xb9, 0x29, 0x52, 0x07, 0x07, 0xa1, 0xd2, 0xf9, 0x48, 0x2f, 0xb9, 0x23, 0x70, 0xe6, 0x0b,
|
||||
0xc9, 0x17, 0xc5, 0xcd, 0xa7, 0x71, 0x15, 0x57, 0x9f, 0xc0, 0xd5, 0x57, 0xf1, 0x09, 0xc4, 0x5c,
|
||||
0xee, 0x90, 0x6a, 0xb7, 0x84, 0xef, 0xf7, 0xfd, 0x92, 0xff, 0x9f, 0xcc, 0xbd, 0x30, 0x9c, 0x71,
|
||||
0xad, 0x01, 0x39, 0x2a, 0xd0, 0x8e, 0x39, 0x59, 0x79, 0xab, 0xf0, 0x89, 0x1a, 0x0b, 0x08, 0xd9,
|
||||
0xd1, 0x0f, 0x40, 0x7f, 0x01, 0xb3, 0xfc, 0xef, 0x0a, 0x72, 0xf4, 0xae, 0x5b, 0x98, 0x1d, 0x37,
|
||||
0x00, 0x4d, 0x2b, 0x59, 0xb8, 0x6d, 0x7d, 0xcd, 0xb8, 0x8e, 0xae, 0x59, 0xb1, 0x3b, 0x12, 0xd2,
|
||||
0x55, 0x56, 0x19, 0x04, 0x1b, 0x89, 0xc9, 0x03, 0x6f, 0x95, 0xe0, 0x28, 0x59, 0x7f, 0xe8, 0x06,
|
||||
0x8b, 0xd7, 0x84, 0x4c, 0x56, 0x4a, 0xb6, 0xe2, 0x2e, 0x7e, 0xef, 0x62, 0x78, 0x3f, 0xbb, 0x21,
|
||||
0x8b, 0x0a, 0x74, 0xad, 0x1a, 0x6f, 0x65, 0x59, 0x83, 0x2d, 0xbd, 0x46, 0xeb, 0x1d, 0x4a, 0x51,
|
||||
0x0a, 0x78, 0xd4, 0x0e, 0xad, 0xe4, 0xf7, 0xd3, 0xa4, 0x48, 0x96, 0xe9, 0x7a, 0x3e, 0x90, 0x2b,
|
||||
0xb0, 0x9b, 0x9e, 0xbb, 0x1a, 0xb0, 0xec, 0x9a, 0x14, 0xfb, 0x64, 0xde, 0x44, 0xd5, 0x28, 0xa8,
|
||||
0xf2, 0x7f, 0x55, 0x9b, 0x08, 0x9d, 0x37, 0x24, 0xed, 0xab, 0xcc, 0x72, 0xda, 0x25, 0xa7, 0x7d,
|
||||
0x72, 0x1a, 0xb2, 0xdc, 0x9a, 0xd0, 0xdf, 0xf4, 0xed, 0xeb, 0xe5, 0xa0, 0x48, 0x96, 0x87, 0xa7,
|
||||
0x27, 0x74, 0xb7, 0x6d, 0xba, 0x27, 0xf4, 0x7a, 0x90, 0x5f, 0xa6, 0xef, 0xcf, 0x1f, 0x9f, 0xe3,
|
||||
0x51, 0x9a, 0x6c, 0xc7, 0x41, 0x7f, 0xf6, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xc9, 0xf3, 0x6a, 0x56,
|
||||
0xd5, 0x01, 0x00, 0x00,
|
||||
}
|
||||
108
vendor/github.com/cncf/xds/go/udpa/annotations/security.pb.validate.go
generated
vendored
108
vendor/github.com/cncf/xds/go/udpa/annotations/security.pb.validate.go
generated
vendored
|
|
@ -1,108 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: udpa/annotations/security.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _security_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on FieldSecurityAnnotation with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *FieldSecurityAnnotation) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// no validation rules for ConfigureForUntrustedDownstream
|
||||
|
||||
// no validation rules for ConfigureForUntrustedUpstream
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// FieldSecurityAnnotationValidationError is the validation error returned by
|
||||
// FieldSecurityAnnotation.Validate if the designated constraints aren't met.
|
||||
type FieldSecurityAnnotationValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e FieldSecurityAnnotationValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e FieldSecurityAnnotationValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e FieldSecurityAnnotationValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e FieldSecurityAnnotationValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e FieldSecurityAnnotationValidationError) ErrorName() string {
|
||||
return "FieldSecurityAnnotationValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e FieldSecurityAnnotationValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sFieldSecurityAnnotation.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = FieldSecurityAnnotationValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = FieldSecurityAnnotationValidationError{}
|
||||
50
vendor/github.com/cncf/xds/go/udpa/annotations/sensitive.pb.go
generated
vendored
50
vendor/github.com/cncf/xds/go/udpa/annotations/sensitive.pb.go
generated
vendored
|
|
@ -1,50 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: udpa/annotations/sensitive.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
var E_Sensitive = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.FieldOptions)(nil),
|
||||
ExtensionType: (*bool)(nil),
|
||||
Field: 76569463,
|
||||
Name: "udpa.annotations.sensitive",
|
||||
Tag: "varint,76569463,opt,name=sensitive",
|
||||
Filename: "udpa/annotations/sensitive.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterExtension(E_Sensitive)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("udpa/annotations/sensitive.proto", fileDescriptor_abbd0dde0408189d) }
|
||||
|
||||
var fileDescriptor_abbd0dde0408189d = []byte{
|
||||
// 134 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x4d, 0x29, 0x48,
|
||||
0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x4e, 0xcd,
|
||||
0x2b, 0xce, 0x2c, 0xc9, 0x2c, 0x4b, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x00, 0xa9,
|
||||
0xd0, 0x43, 0x52, 0x21, 0xa5, 0x90, 0x9e, 0x9f, 0x9f, 0x9e, 0x93, 0xaa, 0x0f, 0x96, 0x4f, 0x2a,
|
||||
0x4d, 0xd3, 0x4f, 0x49, 0x2d, 0x4e, 0x2e, 0xca, 0x2c, 0x28, 0xc9, 0x2f, 0x82, 0xe8, 0xb1, 0xb2,
|
||||
0xe3, 0xe2, 0x84, 0x1b, 0x23, 0x24, 0xab, 0x07, 0x51, 0xaf, 0x07, 0x53, 0xaf, 0xe7, 0x96, 0x99,
|
||||
0x9a, 0x93, 0xe2, 0x5f, 0x00, 0x36, 0x4d, 0xe2, 0xfb, 0xb6, 0x83, 0x2a, 0x0a, 0x8c, 0x1a, 0x1c,
|
||||
0x41, 0x08, 0x2d, 0x49, 0x6c, 0x60, 0xa5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xba,
|
||||
0xeb, 0x73, 0x9e, 0x00, 0x00, 0x00,
|
||||
}
|
||||
37
vendor/github.com/cncf/xds/go/udpa/annotations/sensitive.pb.validate.go
generated
vendored
37
vendor/github.com/cncf/xds/go/udpa/annotations/sensitive.pb.validate.go
generated
vendored
|
|
@ -1,37 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: udpa/annotations/sensitive.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _sensitive_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
141
vendor/github.com/cncf/xds/go/udpa/annotations/status.pb.go
generated
vendored
141
vendor/github.com/cncf/xds/go/udpa/annotations/status.pb.go
generated
vendored
|
|
@ -1,141 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: udpa/annotations/status.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type PackageVersionStatus int32
|
||||
|
||||
const (
|
||||
PackageVersionStatus_UNKNOWN PackageVersionStatus = 0
|
||||
PackageVersionStatus_FROZEN PackageVersionStatus = 1
|
||||
PackageVersionStatus_ACTIVE PackageVersionStatus = 2
|
||||
PackageVersionStatus_NEXT_MAJOR_VERSION_CANDIDATE PackageVersionStatus = 3
|
||||
)
|
||||
|
||||
var PackageVersionStatus_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "FROZEN",
|
||||
2: "ACTIVE",
|
||||
3: "NEXT_MAJOR_VERSION_CANDIDATE",
|
||||
}
|
||||
|
||||
var PackageVersionStatus_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"FROZEN": 1,
|
||||
"ACTIVE": 2,
|
||||
"NEXT_MAJOR_VERSION_CANDIDATE": 3,
|
||||
}
|
||||
|
||||
func (x PackageVersionStatus) String() string {
|
||||
return proto.EnumName(PackageVersionStatus_name, int32(x))
|
||||
}
|
||||
|
||||
func (PackageVersionStatus) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_011cc2e7e491b0ff, []int{0}
|
||||
}
|
||||
|
||||
type StatusAnnotation struct {
|
||||
WorkInProgress bool `protobuf:"varint,1,opt,name=work_in_progress,json=workInProgress,proto3" json:"work_in_progress,omitempty"`
|
||||
PackageVersionStatus PackageVersionStatus `protobuf:"varint,2,opt,name=package_version_status,json=packageVersionStatus,proto3,enum=udpa.annotations.PackageVersionStatus" json:"package_version_status,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *StatusAnnotation) Reset() { *m = StatusAnnotation{} }
|
||||
func (m *StatusAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*StatusAnnotation) ProtoMessage() {}
|
||||
func (*StatusAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_011cc2e7e491b0ff, []int{0}
|
||||
}
|
||||
|
||||
func (m *StatusAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StatusAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *StatusAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_StatusAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *StatusAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StatusAnnotation.Merge(m, src)
|
||||
}
|
||||
func (m *StatusAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_StatusAnnotation.Size(m)
|
||||
}
|
||||
func (m *StatusAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_StatusAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_StatusAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *StatusAnnotation) GetWorkInProgress() bool {
|
||||
if m != nil {
|
||||
return m.WorkInProgress
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *StatusAnnotation) GetPackageVersionStatus() PackageVersionStatus {
|
||||
if m != nil {
|
||||
return m.PackageVersionStatus
|
||||
}
|
||||
return PackageVersionStatus_UNKNOWN
|
||||
}
|
||||
|
||||
var E_FileStatus = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.FileOptions)(nil),
|
||||
ExtensionType: (*StatusAnnotation)(nil),
|
||||
Field: 222707719,
|
||||
Name: "udpa.annotations.file_status",
|
||||
Tag: "bytes,222707719,opt,name=file_status",
|
||||
Filename: "udpa/annotations/status.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("udpa.annotations.PackageVersionStatus", PackageVersionStatus_name, PackageVersionStatus_value)
|
||||
proto.RegisterType((*StatusAnnotation)(nil), "udpa.annotations.StatusAnnotation")
|
||||
proto.RegisterExtension(E_FileStatus)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("udpa/annotations/status.proto", fileDescriptor_011cc2e7e491b0ff) }
|
||||
|
||||
var fileDescriptor_011cc2e7e491b0ff = []byte{
|
||||
// 305 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x50, 0x4f, 0x4b, 0xc3, 0x30,
|
||||
0x1c, 0xb5, 0x13, 0xa6, 0x64, 0x30, 0x42, 0x18, 0x32, 0x64, 0x42, 0xd9, 0x41, 0x8a, 0x87, 0x14,
|
||||
0xe6, 0xcd, 0x5b, 0xd9, 0x3a, 0xa8, 0x62, 0x3a, 0xba, 0x39, 0x45, 0x94, 0xd0, 0x6d, 0x59, 0x89,
|
||||
0x1b, 0x49, 0x48, 0x32, 0xbd, 0x7a, 0xf3, 0x33, 0xe8, 0xa7, 0x95, 0x36, 0x53, 0x64, 0xee, 0x16,
|
||||
0xde, 0xbf, 0xbc, 0xdf, 0x03, 0x67, 0x9b, 0x85, 0xca, 0xc3, 0x5c, 0x08, 0x69, 0x73, 0xcb, 0xa5,
|
||||
0x30, 0xa1, 0xb1, 0xb9, 0xdd, 0x18, 0xac, 0xb4, 0xb4, 0x12, 0xc1, 0x92, 0xc6, 0x7f, 0xe8, 0x53,
|
||||
0xbf, 0x90, 0xb2, 0x58, 0xb3, 0xb0, 0xe2, 0x67, 0x9b, 0x65, 0xb8, 0x60, 0x66, 0xae, 0xb9, 0xb2,
|
||||
0x52, 0x3b, 0x4f, 0xf7, 0xcb, 0x03, 0x70, 0x5c, 0x85, 0x44, 0xbf, 0x3e, 0x14, 0x00, 0xf8, 0x26,
|
||||
0xf5, 0x8a, 0x72, 0x41, 0x95, 0x96, 0x85, 0x66, 0xc6, 0xb4, 0x3d, 0xdf, 0x0b, 0x8e, 0xb3, 0x66,
|
||||
0x89, 0x27, 0x62, 0xb4, 0x45, 0xd1, 0x13, 0x38, 0x51, 0xf9, 0x7c, 0x95, 0x17, 0x8c, 0xbe, 0x32,
|
||||
0x6d, 0xb8, 0x14, 0xd4, 0x55, 0x6a, 0xd7, 0x7c, 0x2f, 0x68, 0xf6, 0xce, 0xf1, 0x6e, 0x27, 0x3c,
|
||||
0x72, 0xfa, 0xa9, 0x93, 0xbb, 0xbf, 0xb3, 0x96, 0xda, 0x83, 0x5e, 0x3c, 0x83, 0xd6, 0x3e, 0x35,
|
||||
0x6a, 0x80, 0xa3, 0x3b, 0x72, 0x43, 0xd2, 0x7b, 0x02, 0x0f, 0x10, 0x00, 0xf5, 0x61, 0x96, 0x3e,
|
||||
0xc6, 0x04, 0x7a, 0xe5, 0x3b, 0xea, 0x4f, 0x92, 0x69, 0x0c, 0x6b, 0xc8, 0x07, 0x1d, 0x12, 0x3f,
|
||||
0x4c, 0xe8, 0x6d, 0x74, 0x9d, 0x66, 0x74, 0x1a, 0x67, 0xe3, 0x24, 0x25, 0xb4, 0x1f, 0x91, 0x41,
|
||||
0x32, 0x88, 0x26, 0x31, 0x3c, 0xbc, 0x5a, 0x80, 0xc6, 0x92, 0xaf, 0xd9, 0xb6, 0x31, 0xea, 0x60,
|
||||
0xb7, 0x16, 0xfe, 0x59, 0x0b, 0x0f, 0xf9, 0x9a, 0xa5, 0xaa, 0xaa, 0xdd, 0xfe, 0x78, 0xff, 0x7c,
|
||||
0xf1, 0xbd, 0xa0, 0xd1, 0xeb, 0xfe, 0x3f, 0x69, 0x77, 0xc0, 0x0c, 0x94, 0xb9, 0x0e, 0x9d, 0xd5,
|
||||
0xab, 0xb8, 0xcb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x58, 0x12, 0xee, 0xf3, 0xbd, 0x01, 0x00,
|
||||
0x00,
|
||||
}
|
||||
106
vendor/github.com/cncf/xds/go/udpa/annotations/status.pb.validate.go
generated
vendored
106
vendor/github.com/cncf/xds/go/udpa/annotations/status.pb.validate.go
generated
vendored
|
|
@ -1,106 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: udpa/annotations/status.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _status_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on StatusAnnotation with the rules defined
|
||||
// in the proto definition for this message. If any rules are violated, an
|
||||
// error is returned.
|
||||
func (m *StatusAnnotation) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// no validation rules for WorkInProgress
|
||||
|
||||
// no validation rules for PackageVersionStatus
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// StatusAnnotationValidationError is the validation error returned by
|
||||
// StatusAnnotation.Validate if the designated constraints aren't met.
|
||||
type StatusAnnotationValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e StatusAnnotationValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e StatusAnnotationValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e StatusAnnotationValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e StatusAnnotationValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e StatusAnnotationValidationError) ErrorName() string { return "StatusAnnotationValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e StatusAnnotationValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sStatusAnnotation.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = StatusAnnotationValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = StatusAnnotationValidationError{}
|
||||
94
vendor/github.com/cncf/xds/go/udpa/annotations/versioning.pb.go
generated
vendored
94
vendor/github.com/cncf/xds/go/udpa/annotations/versioning.pb.go
generated
vendored
|
|
@ -1,94 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: udpa/annotations/versioning.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type VersioningAnnotation struct {
|
||||
PreviousMessageType string `protobuf:"bytes,1,opt,name=previous_message_type,json=previousMessageType,proto3" json:"previous_message_type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *VersioningAnnotation) Reset() { *m = VersioningAnnotation{} }
|
||||
func (m *VersioningAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*VersioningAnnotation) ProtoMessage() {}
|
||||
func (*VersioningAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5bc0544382e16cfc, []int{0}
|
||||
}
|
||||
|
||||
func (m *VersioningAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_VersioningAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *VersioningAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_VersioningAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *VersioningAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_VersioningAnnotation.Merge(m, src)
|
||||
}
|
||||
func (m *VersioningAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_VersioningAnnotation.Size(m)
|
||||
}
|
||||
func (m *VersioningAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_VersioningAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_VersioningAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *VersioningAnnotation) GetPreviousMessageType() string {
|
||||
if m != nil {
|
||||
return m.PreviousMessageType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var E_Versioning = &proto.ExtensionDesc{
|
||||
ExtendedType: (*descriptor.MessageOptions)(nil),
|
||||
ExtensionType: (*VersioningAnnotation)(nil),
|
||||
Field: 7881811,
|
||||
Name: "udpa.annotations.versioning",
|
||||
Tag: "bytes,7881811,opt,name=versioning",
|
||||
Filename: "udpa/annotations/versioning.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*VersioningAnnotation)(nil), "udpa.annotations.VersioningAnnotation")
|
||||
proto.RegisterExtension(E_Versioning)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("udpa/annotations/versioning.proto", fileDescriptor_5bc0544382e16cfc) }
|
||||
|
||||
var fileDescriptor_5bc0544382e16cfc = []byte{
|
||||
// 193 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x4d, 0x29, 0x48,
|
||||
0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x4b, 0x2d,
|
||||
0x2a, 0xce, 0xcc, 0xcf, 0xcb, 0xcc, 0x4b, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x00,
|
||||
0x29, 0xd1, 0x43, 0x52, 0x22, 0xa5, 0x90, 0x9e, 0x9f, 0x9f, 0x9e, 0x93, 0xaa, 0x0f, 0x96, 0x4f,
|
||||
0x2a, 0x4d, 0xd3, 0x4f, 0x49, 0x2d, 0x4e, 0x2e, 0xca, 0x2c, 0x28, 0xc9, 0x2f, 0x82, 0xe8, 0x51,
|
||||
0xf2, 0xe2, 0x12, 0x09, 0x83, 0x9b, 0xe3, 0x08, 0xd7, 0x2a, 0x64, 0xc4, 0x25, 0x5a, 0x50, 0x94,
|
||||
0x5a, 0x96, 0x99, 0x5f, 0x5a, 0x1c, 0x9f, 0x9b, 0x5a, 0x5c, 0x9c, 0x98, 0x9e, 0x1a, 0x5f, 0x52,
|
||||
0x59, 0x90, 0x2a, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x24, 0x0c, 0x93, 0xf4, 0x85, 0xc8, 0x85,
|
||||
0x54, 0x16, 0xa4, 0x5a, 0x65, 0x71, 0x71, 0x21, 0xdc, 0x24, 0x24, 0xaf, 0x07, 0xb1, 0x5c, 0x0f,
|
||||
0x66, 0xb9, 0x1e, 0x54, 0xad, 0x7f, 0x01, 0xd8, 0x71, 0x12, 0x97, 0x3b, 0x1e, 0x32, 0x2b, 0x30,
|
||||
0x6a, 0x70, 0x1b, 0xa9, 0xe9, 0xa1, 0x3b, 0x5c, 0x0f, 0x9b, 0x9b, 0x82, 0x90, 0x4c, 0x4f, 0x62,
|
||||
0x03, 0x9b, 0x6a, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x9c, 0xb8, 0x85, 0x17, 0x01, 0x00,
|
||||
0x00,
|
||||
}
|
||||
106
vendor/github.com/cncf/xds/go/udpa/annotations/versioning.pb.validate.go
generated
vendored
106
vendor/github.com/cncf/xds/go/udpa/annotations/versioning.pb.validate.go
generated
vendored
|
|
@ -1,106 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: udpa/annotations/versioning.proto
|
||||
|
||||
package udpa_annotations
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _versioning_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on VersioningAnnotation with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *VersioningAnnotation) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// no validation rules for PreviousMessageType
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// VersioningAnnotationValidationError is the validation error returned by
|
||||
// VersioningAnnotation.Validate if the designated constraints aren't met.
|
||||
type VersioningAnnotationValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e VersioningAnnotationValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e VersioningAnnotationValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e VersioningAnnotationValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e VersioningAnnotationValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e VersioningAnnotationValidationError) ErrorName() string {
|
||||
return "VersioningAnnotationValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e VersioningAnnotationValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sVersioningAnnotation.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = VersioningAnnotationValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = VersioningAnnotationValidationError{}
|
||||
84
vendor/github.com/cncf/xds/go/xds/core/v3/authority.pb.go
generated
vendored
84
vendor/github.com/cncf/xds/go/xds/core/v3/authority.pb.go
generated
vendored
|
|
@ -1,84 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: xds/core/v3/authority.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
_ "github.com/cncf/xds/go/udpa/annotations"
|
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type Authority struct {
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Authority) Reset() { *m = Authority{} }
|
||||
func (m *Authority) String() string { return proto.CompactTextString(m) }
|
||||
func (*Authority) ProtoMessage() {}
|
||||
func (*Authority) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_74635363e1fbb077, []int{0}
|
||||
}
|
||||
|
||||
func (m *Authority) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Authority.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Authority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Authority.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Authority) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Authority.Merge(m, src)
|
||||
}
|
||||
func (m *Authority) XXX_Size() int {
|
||||
return xxx_messageInfo_Authority.Size(m)
|
||||
}
|
||||
func (m *Authority) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Authority.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Authority proto.InternalMessageInfo
|
||||
|
||||
func (m *Authority) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Authority)(nil), "xds.core.v3.Authority")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("xds/core/v3/authority.proto", fileDescriptor_74635363e1fbb077) }
|
||||
|
||||
var fileDescriptor_74635363e1fbb077 = []byte{
|
||||
// 182 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xae, 0x48, 0x29, 0xd6,
|
||||
0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x33, 0xd6, 0x4f, 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, 0x2c,
|
||||
0xa9, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xae, 0x48, 0x29, 0xd6, 0x03, 0x49, 0xea,
|
||||
0x95, 0x19, 0x4b, 0xc9, 0x96, 0xa6, 0x14, 0x24, 0xea, 0x27, 0xe6, 0xe5, 0xe5, 0x97, 0x24, 0x96,
|
||||
0x64, 0xe6, 0xe7, 0x15, 0xeb, 0x17, 0x97, 0x24, 0x96, 0x94, 0x16, 0x43, 0xd4, 0x4a, 0x89, 0x97,
|
||||
0x25, 0xe6, 0x64, 0xa6, 0x24, 0x96, 0xa4, 0xea, 0xc3, 0x18, 0x10, 0x09, 0x25, 0x0d, 0x2e, 0x4e,
|
||||
0x47, 0x98, 0xb9, 0x42, 0xd2, 0x5c, 0x2c, 0x79, 0x89, 0xb9, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a,
|
||||
0x9c, 0x4e, 0xec, 0xbf, 0x9c, 0x58, 0x8a, 0x98, 0x04, 0x18, 0x83, 0xc0, 0x82, 0x4e, 0xe6, 0xbb,
|
||||
0x1a, 0x4e, 0x5c, 0x64, 0x63, 0xe2, 0x60, 0xe4, 0x92, 0x4e, 0xce, 0xcf, 0xd5, 0x4b, 0xcf, 0x2c,
|
||||
0xc9, 0x28, 0x4d, 0xd2, 0x03, 0x59, 0xab, 0x87, 0xe4, 0x10, 0x27, 0x3e, 0xb8, 0x71, 0x01, 0x20,
|
||||
0x0b, 0x02, 0x18, 0x93, 0xd8, 0xc0, 0x36, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x21,
|
||||
0x66, 0x70, 0xcd, 0x00, 0x00, 0x00,
|
||||
}
|
||||
108
vendor/github.com/cncf/xds/go/xds/core/v3/authority.pb.validate.go
generated
vendored
108
vendor/github.com/cncf/xds/go/xds/core/v3/authority.pb.validate.go
generated
vendored
|
|
@ -1,108 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/core/v3/authority.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _authority_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on Authority with the rules defined in the
|
||||
// proto definition for this message. If any rules are violated, an error is returned.
|
||||
func (m *Authority) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if utf8.RuneCountInString(m.GetName()) < 1 {
|
||||
return AuthorityValidationError{
|
||||
field: "Name",
|
||||
reason: "value length must be at least 1 runes",
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// AuthorityValidationError is the validation error returned by
|
||||
// Authority.Validate if the designated constraints aren't met.
|
||||
type AuthorityValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e AuthorityValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e AuthorityValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e AuthorityValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e AuthorityValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e AuthorityValidationError) ErrorName() string { return "AuthorityValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e AuthorityValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sAuthority.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = AuthorityValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = AuthorityValidationError{}
|
||||
194
vendor/github.com/cncf/xds/go/xds/core/v3/collection_entry.pb.go
generated
vendored
194
vendor/github.com/cncf/xds/go/xds/core/v3/collection_entry.pb.go
generated
vendored
|
|
@ -1,194 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: xds/core/v3/collection_entry.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
_ "github.com/cncf/xds/go/udpa/annotations"
|
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
any "github.com/golang/protobuf/ptypes/any"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type CollectionEntry struct {
|
||||
// Types that are valid to be assigned to ResourceSpecifier:
|
||||
// *CollectionEntry_Locator
|
||||
// *CollectionEntry_InlineEntry_
|
||||
ResourceSpecifier isCollectionEntry_ResourceSpecifier `protobuf_oneof:"resource_specifier"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CollectionEntry) Reset() { *m = CollectionEntry{} }
|
||||
func (m *CollectionEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*CollectionEntry) ProtoMessage() {}
|
||||
func (*CollectionEntry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5b15c821e5994c90, []int{0}
|
||||
}
|
||||
|
||||
func (m *CollectionEntry) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CollectionEntry.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CollectionEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CollectionEntry.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CollectionEntry) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CollectionEntry.Merge(m, src)
|
||||
}
|
||||
func (m *CollectionEntry) XXX_Size() int {
|
||||
return xxx_messageInfo_CollectionEntry.Size(m)
|
||||
}
|
||||
func (m *CollectionEntry) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CollectionEntry.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CollectionEntry proto.InternalMessageInfo
|
||||
|
||||
type isCollectionEntry_ResourceSpecifier interface {
|
||||
isCollectionEntry_ResourceSpecifier()
|
||||
}
|
||||
|
||||
type CollectionEntry_Locator struct {
|
||||
Locator *ResourceLocator `protobuf:"bytes,1,opt,name=locator,proto3,oneof"`
|
||||
}
|
||||
|
||||
type CollectionEntry_InlineEntry_ struct {
|
||||
InlineEntry *CollectionEntry_InlineEntry `protobuf:"bytes,2,opt,name=inline_entry,json=inlineEntry,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*CollectionEntry_Locator) isCollectionEntry_ResourceSpecifier() {}
|
||||
|
||||
func (*CollectionEntry_InlineEntry_) isCollectionEntry_ResourceSpecifier() {}
|
||||
|
||||
func (m *CollectionEntry) GetResourceSpecifier() isCollectionEntry_ResourceSpecifier {
|
||||
if m != nil {
|
||||
return m.ResourceSpecifier
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CollectionEntry) GetLocator() *ResourceLocator {
|
||||
if x, ok := m.GetResourceSpecifier().(*CollectionEntry_Locator); ok {
|
||||
return x.Locator
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CollectionEntry) GetInlineEntry() *CollectionEntry_InlineEntry {
|
||||
if x, ok := m.GetResourceSpecifier().(*CollectionEntry_InlineEntry_); ok {
|
||||
return x.InlineEntry
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*CollectionEntry) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*CollectionEntry_Locator)(nil),
|
||||
(*CollectionEntry_InlineEntry_)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
type CollectionEntry_InlineEntry struct {
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Resource *any.Any `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CollectionEntry_InlineEntry) Reset() { *m = CollectionEntry_InlineEntry{} }
|
||||
func (m *CollectionEntry_InlineEntry) String() string { return proto.CompactTextString(m) }
|
||||
func (*CollectionEntry_InlineEntry) ProtoMessage() {}
|
||||
func (*CollectionEntry_InlineEntry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_5b15c821e5994c90, []int{0, 0}
|
||||
}
|
||||
|
||||
func (m *CollectionEntry_InlineEntry) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CollectionEntry_InlineEntry.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CollectionEntry_InlineEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CollectionEntry_InlineEntry.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CollectionEntry_InlineEntry) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CollectionEntry_InlineEntry.Merge(m, src)
|
||||
}
|
||||
func (m *CollectionEntry_InlineEntry) XXX_Size() int {
|
||||
return xxx_messageInfo_CollectionEntry_InlineEntry.Size(m)
|
||||
}
|
||||
func (m *CollectionEntry_InlineEntry) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CollectionEntry_InlineEntry.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CollectionEntry_InlineEntry proto.InternalMessageInfo
|
||||
|
||||
func (m *CollectionEntry_InlineEntry) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CollectionEntry_InlineEntry) GetVersion() string {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CollectionEntry_InlineEntry) GetResource() *any.Any {
|
||||
if m != nil {
|
||||
return m.Resource
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*CollectionEntry)(nil), "xds.core.v3.CollectionEntry")
|
||||
proto.RegisterType((*CollectionEntry_InlineEntry)(nil), "xds.core.v3.CollectionEntry.InlineEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("xds/core/v3/collection_entry.proto", fileDescriptor_5b15c821e5994c90) }
|
||||
|
||||
var fileDescriptor_5b15c821e5994c90 = []byte{
|
||||
// 375 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xcf, 0x6b, 0xdb, 0x30,
|
||||
0x1c, 0xc5, 0xe3, 0x64, 0xe4, 0x87, 0x3c, 0x18, 0x88, 0x8c, 0x38, 0x59, 0x06, 0x23, 0xec, 0x10,
|
||||
0x18, 0x96, 0x42, 0x72, 0xd9, 0x06, 0x3b, 0xc4, 0x63, 0x90, 0xc1, 0x06, 0xc1, 0xc7, 0x36, 0x6d,
|
||||
0x50, 0x6c, 0x25, 0x15, 0x38, 0x52, 0x90, 0x64, 0x93, 0xf4, 0x50, 0x7a, 0xef, 0x7f, 0xd4, 0x6b,
|
||||
0x2f, 0xbd, 0xf6, 0xbf, 0x29, 0x3d, 0x15, 0xcb, 0x76, 0x9a, 0xe4, 0x26, 0xf1, 0x3e, 0x4f, 0xef,
|
||||
0x7d, 0xf5, 0x05, 0xbd, 0x6d, 0xa8, 0x70, 0x20, 0x24, 0xc5, 0xc9, 0x08, 0x07, 0x22, 0x8a, 0x68,
|
||||
0xa0, 0x99, 0xe0, 0x73, 0xca, 0xb5, 0xdc, 0xa1, 0x8d, 0x14, 0x5a, 0x40, 0x7b, 0x1b, 0x2a, 0x94,
|
||||
0x32, 0x28, 0x19, 0x75, 0xda, 0x2b, 0x21, 0x56, 0x11, 0xc5, 0x46, 0x5a, 0xc4, 0x4b, 0x4c, 0x78,
|
||||
0xce, 0x75, 0x3e, 0xc7, 0xe1, 0x86, 0x60, 0xc2, 0xb9, 0xd0, 0x24, 0x7d, 0x44, 0x61, 0xa5, 0x89,
|
||||
0x8e, 0x55, 0x2e, 0x1f, 0x45, 0x49, 0xaa, 0x44, 0x2c, 0x03, 0x3a, 0x8f, 0x44, 0x40, 0xb4, 0x90,
|
||||
0x39, 0xd3, 0x4a, 0x48, 0xc4, 0x42, 0xa2, 0x29, 0x2e, 0x0e, 0x99, 0xd0, 0x7b, 0x28, 0x83, 0x0f,
|
||||
0xbf, 0xf7, 0xf5, 0xfe, 0xa4, 0xed, 0xe0, 0x77, 0x50, 0xcb, 0xdd, 0x8e, 0xf5, 0xc5, 0xea, 0xdb,
|
||||
0xc3, 0x2e, 0x3a, 0x68, 0x8a, 0xfc, 0x3c, 0xe2, 0x5f, 0xc6, 0x4c, 0x4a, 0x7e, 0x81, 0xc3, 0xff,
|
||||
0xe0, 0x3d, 0xe3, 0x11, 0xe3, 0x34, 0x9b, 0xd3, 0x29, 0x1b, 0x7b, 0xff, 0xc8, 0x7e, 0x92, 0x86,
|
||||
0xfe, 0x1a, 0x83, 0x39, 0x4f, 0x4a, 0xbe, 0xcd, 0xde, 0xae, 0x9d, 0x3b, 0x0b, 0xd8, 0x07, 0x32,
|
||||
0x1c, 0x80, 0x77, 0x9c, 0xac, 0xa9, 0x69, 0xd5, 0xf0, 0xba, 0x2f, 0x5e, 0x5b, 0xb6, 0x86, 0x1f,
|
||||
0x2f, 0xcf, 0x07, 0xee, 0x0f, 0xe2, 0x5e, 0x8f, 0xdd, 0xb3, 0xf9, 0xcc, 0x9d, 0xa1, 0x9b, 0x9f,
|
||||
0x17, 0xdf, 0xbe, 0xfa, 0x86, 0x84, 0x0e, 0xa8, 0x25, 0x54, 0x2a, 0x26, 0xb8, 0xe9, 0xd2, 0xf0,
|
||||
0x8b, 0x2b, 0x1c, 0x80, 0x7a, 0xf1, 0x57, 0x4e, 0xc5, 0xd4, 0x6c, 0xa2, 0x6c, 0x05, 0xa8, 0x58,
|
||||
0x01, 0x1a, 0xf3, 0x9d, 0xbf, 0xa7, 0xbc, 0x36, 0x80, 0xfb, 0xdf, 0x55, 0x1b, 0x1a, 0xb0, 0x25,
|
||||
0xa3, 0x12, 0x56, 0x9e, 0x3d, 0xcb, 0xfb, 0x75, 0x7f, 0xfb, 0xf8, 0x54, 0x2d, 0xd7, 0x2d, 0xf0,
|
||||
0x29, 0x10, 0x6b, 0xb4, 0x62, 0xfa, 0x2a, 0x5e, 0xa0, 0x74, 0x6d, 0x87, 0xa3, 0x7b, 0xcd, 0x93,
|
||||
0xd9, 0xa7, 0x69, 0xd0, 0xd4, 0x5a, 0x54, 0x4d, 0xe2, 0xe8, 0x35, 0x00, 0x00, 0xff, 0xff, 0x8a,
|
||||
0x35, 0xc0, 0xf2, 0x35, 0x02, 0x00, 0x00,
|
||||
}
|
||||
225
vendor/github.com/cncf/xds/go/xds/core/v3/collection_entry.pb.validate.go
generated
vendored
225
vendor/github.com/cncf/xds/go/xds/core/v3/collection_entry.pb.validate.go
generated
vendored
|
|
@ -1,225 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/core/v3/collection_entry.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _collection_entry_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on CollectionEntry with the rules defined
|
||||
// in the proto definition for this message. If any rules are violated, an
|
||||
// error is returned.
|
||||
func (m *CollectionEntry) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
switch m.ResourceSpecifier.(type) {
|
||||
|
||||
case *CollectionEntry_Locator:
|
||||
|
||||
if v, ok := interface{}(m.GetLocator()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return CollectionEntryValidationError{
|
||||
field: "Locator",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case *CollectionEntry_InlineEntry_:
|
||||
|
||||
if v, ok := interface{}(m.GetInlineEntry()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return CollectionEntryValidationError{
|
||||
field: "InlineEntry",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
default:
|
||||
return CollectionEntryValidationError{
|
||||
field: "ResourceSpecifier",
|
||||
reason: "value is required",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// CollectionEntryValidationError is the validation error returned by
|
||||
// CollectionEntry.Validate if the designated constraints aren't met.
|
||||
type CollectionEntryValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e CollectionEntryValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e CollectionEntryValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e CollectionEntryValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e CollectionEntryValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e CollectionEntryValidationError) ErrorName() string { return "CollectionEntryValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e CollectionEntryValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sCollectionEntry.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = CollectionEntryValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = CollectionEntryValidationError{}
|
||||
|
||||
// Validate checks the field values on CollectionEntry_InlineEntry with the
|
||||
// rules defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *CollectionEntry_InlineEntry) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !_CollectionEntry_InlineEntry_Name_Pattern.MatchString(m.GetName()) {
|
||||
return CollectionEntry_InlineEntryValidationError{
|
||||
field: "Name",
|
||||
reason: "value does not match regex pattern \"^[0-9a-zA-Z_\\\\-\\\\.~:]+$\"",
|
||||
}
|
||||
}
|
||||
|
||||
// no validation rules for Version
|
||||
|
||||
if v, ok := interface{}(m.GetResource()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return CollectionEntry_InlineEntryValidationError{
|
||||
field: "Resource",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// CollectionEntry_InlineEntryValidationError is the validation error returned
|
||||
// by CollectionEntry_InlineEntry.Validate if the designated constraints
|
||||
// aren't met.
|
||||
type CollectionEntry_InlineEntryValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e CollectionEntry_InlineEntryValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e CollectionEntry_InlineEntryValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e CollectionEntry_InlineEntryValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e CollectionEntry_InlineEntryValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e CollectionEntry_InlineEntryValidationError) ErrorName() string {
|
||||
return "CollectionEntry_InlineEntryValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e CollectionEntry_InlineEntryValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sCollectionEntry_InlineEntry.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = CollectionEntry_InlineEntryValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = CollectionEntry_InlineEntryValidationError{}
|
||||
|
||||
var _CollectionEntry_InlineEntry_Name_Pattern = regexp.MustCompile("^[0-9a-zA-Z_\\-\\.~:]+$")
|
||||
86
vendor/github.com/cncf/xds/go/xds/core/v3/context_params.pb.go
generated
vendored
86
vendor/github.com/cncf/xds/go/xds/core/v3/context_params.pb.go
generated
vendored
|
|
@ -1,86 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: xds/core/v3/context_params.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
_ "github.com/cncf/xds/go/udpa/annotations"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type ContextParams struct {
|
||||
Params map[string]string `protobuf:"bytes,1,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ContextParams) Reset() { *m = ContextParams{} }
|
||||
func (m *ContextParams) String() string { return proto.CompactTextString(m) }
|
||||
func (*ContextParams) ProtoMessage() {}
|
||||
func (*ContextParams) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a77d5b5f2f15aa7c, []int{0}
|
||||
}
|
||||
|
||||
func (m *ContextParams) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ContextParams.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ContextParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ContextParams.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ContextParams) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ContextParams.Merge(m, src)
|
||||
}
|
||||
func (m *ContextParams) XXX_Size() int {
|
||||
return xxx_messageInfo_ContextParams.Size(m)
|
||||
}
|
||||
func (m *ContextParams) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ContextParams.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ContextParams proto.InternalMessageInfo
|
||||
|
||||
func (m *ContextParams) GetParams() map[string]string {
|
||||
if m != nil {
|
||||
return m.Params
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ContextParams)(nil), "xds.core.v3.ContextParams")
|
||||
proto.RegisterMapType((map[string]string)(nil), "xds.core.v3.ContextParams.ParamsEntry")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("xds/core/v3/context_params.proto", fileDescriptor_a77d5b5f2f15aa7c) }
|
||||
|
||||
var fileDescriptor_a77d5b5f2f15aa7c = []byte{
|
||||
// 221 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xa8, 0x48, 0x29, 0xd6,
|
||||
0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x33, 0xd6, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xad, 0x28, 0x89,
|
||||
0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xae, 0x48,
|
||||
0x29, 0xd6, 0x03, 0xa9, 0xd0, 0x2b, 0x33, 0x96, 0x92, 0x2d, 0x4d, 0x29, 0x48, 0xd4, 0x4f, 0xcc,
|
||||
0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x85,
|
||||
0xaa, 0x55, 0xea, 0x62, 0xe4, 0xe2, 0x75, 0x86, 0x18, 0x12, 0x00, 0x36, 0x43, 0xc8, 0x8e, 0x8b,
|
||||
0x0d, 0x62, 0x9a, 0x04, 0xa3, 0x02, 0xb3, 0x06, 0xb7, 0x91, 0x9a, 0x1e, 0x92, 0x71, 0x7a, 0x28,
|
||||
0x6a, 0xf5, 0x20, 0x94, 0x6b, 0x5e, 0x49, 0x51, 0x65, 0x10, 0x54, 0x97, 0x94, 0x25, 0x17, 0x37,
|
||||
0x92, 0xb0, 0x90, 0x00, 0x17, 0x73, 0x76, 0x6a, 0xa5, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10,
|
||||
0x88, 0x29, 0x24, 0xc2, 0xc5, 0x5a, 0x96, 0x98, 0x53, 0x9a, 0x2a, 0xc1, 0x04, 0x16, 0x83, 0x70,
|
||||
0xac, 0x98, 0x2c, 0x18, 0x9d, 0xac, 0x77, 0x35, 0x9c, 0xb8, 0xc8, 0xc6, 0xc4, 0xc1, 0xc8, 0x25,
|
||||
0x9d, 0x9c, 0x9f, 0xab, 0x97, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x07, 0xf2, 0x00, 0xb2, 0x1b,
|
||||
0x9c, 0x84, 0x50, 0x1c, 0x11, 0x00, 0xf2, 0x47, 0x00, 0x63, 0x12, 0x1b, 0xd8, 0x43, 0xc6, 0x80,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x4e, 0x2e, 0x13, 0x20, 0x01, 0x00, 0x00,
|
||||
}
|
||||
104
vendor/github.com/cncf/xds/go/xds/core/v3/context_params.pb.validate.go
generated
vendored
104
vendor/github.com/cncf/xds/go/xds/core/v3/context_params.pb.validate.go
generated
vendored
|
|
@ -1,104 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/core/v3/context_params.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _context_params_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on ContextParams with the rules defined in
|
||||
// the proto definition for this message. If any rules are violated, an error
|
||||
// is returned.
|
||||
func (m *ContextParams) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// no validation rules for Params
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextParamsValidationError is the validation error returned by
|
||||
// ContextParams.Validate if the designated constraints aren't met.
|
||||
type ContextParamsValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e ContextParamsValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e ContextParamsValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e ContextParamsValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e ContextParamsValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e ContextParamsValidationError) ErrorName() string { return "ContextParamsValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e ContextParamsValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sContextParams.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = ContextParamsValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = ContextParamsValidationError{}
|
||||
104
vendor/github.com/cncf/xds/go/xds/core/v3/resource.pb.go
generated
vendored
104
vendor/github.com/cncf/xds/go/xds/core/v3/resource.pb.go
generated
vendored
|
|
@ -1,104 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: xds/core/v3/resource.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
_ "github.com/cncf/xds/go/udpa/annotations"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
any "github.com/golang/protobuf/ptypes/any"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type Resource struct {
|
||||
Name *ResourceName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Resource *any.Any `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Resource) Reset() { *m = Resource{} }
|
||||
func (m *Resource) String() string { return proto.CompactTextString(m) }
|
||||
func (*Resource) ProtoMessage() {}
|
||||
func (*Resource) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_acbac04701714df2, []int{0}
|
||||
}
|
||||
|
||||
func (m *Resource) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Resource.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Resource) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Resource.Merge(m, src)
|
||||
}
|
||||
func (m *Resource) XXX_Size() int {
|
||||
return xxx_messageInfo_Resource.Size(m)
|
||||
}
|
||||
func (m *Resource) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Resource.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Resource proto.InternalMessageInfo
|
||||
|
||||
func (m *Resource) GetName() *ResourceName {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Resource) GetVersion() string {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Resource) GetResource() *any.Any {
|
||||
if m != nil {
|
||||
return m.Resource
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Resource)(nil), "xds.core.v3.Resource")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("xds/core/v3/resource.proto", fileDescriptor_acbac04701714df2) }
|
||||
|
||||
var fileDescriptor_acbac04701714df2 = []byte{
|
||||
// 241 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xaa, 0x48, 0x29, 0xd6,
|
||||
0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x33, 0xd6, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, 0x4e,
|
||||
0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xae, 0x48, 0x29, 0xd6, 0x03, 0xc9, 0xe9, 0x95,
|
||||
0x19, 0x4b, 0x49, 0xa6, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4, 0xea, 0x83, 0xa5, 0x92, 0x4a, 0xd3, 0xf4,
|
||||
0x13, 0xf3, 0x2a, 0x21, 0xea, 0xa4, 0x64, 0x4b, 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2,
|
||||
0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0x8b, 0xa1, 0xd2,
|
||||
0xf2, 0xd8, 0xac, 0x88, 0xcf, 0x4b, 0xcc, 0x85, 0xda, 0xa3, 0xd4, 0xca, 0xc8, 0xc5, 0x11, 0x04,
|
||||
0x15, 0x17, 0xd2, 0xe5, 0x62, 0x01, 0x49, 0x49, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x49, 0xea,
|
||||
0x21, 0xb9, 0x41, 0x0f, 0xa6, 0xc8, 0x2f, 0x31, 0x37, 0x35, 0x08, 0xac, 0x4c, 0x48, 0x82, 0x8b,
|
||||
0xbd, 0x2c, 0xb5, 0xa8, 0x38, 0x33, 0x3f, 0x4f, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08, 0xc6,
|
||||
0x15, 0x32, 0xe0, 0xe2, 0x80, 0x59, 0x26, 0xc1, 0x0c, 0x36, 0x4c, 0x44, 0x0f, 0xe2, 0x07, 0x3d,
|
||||
0x98, 0x1f, 0xf4, 0x1c, 0xf3, 0x2a, 0x83, 0xe0, 0xaa, 0x9c, 0xcc, 0x76, 0x35, 0x9c, 0xb8, 0xc8,
|
||||
0xc6, 0xc4, 0xc1, 0xc8, 0x25, 0x9d, 0x9c, 0x9f, 0xab, 0x97, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4,
|
||||
0x07, 0xf2, 0x1c, 0xb2, 0x2b, 0x9c, 0x78, 0x61, 0xce, 0x08, 0x00, 0x19, 0x13, 0xc0, 0x98, 0xc4,
|
||||
0x06, 0x36, 0xcf, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x85, 0xe4, 0x8c, 0x4c, 0x01, 0x00,
|
||||
0x00,
|
||||
}
|
||||
123
vendor/github.com/cncf/xds/go/xds/core/v3/resource.pb.validate.go
generated
vendored
123
vendor/github.com/cncf/xds/go/xds/core/v3/resource.pb.validate.go
generated
vendored
|
|
@ -1,123 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/core/v3/resource.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _resource_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// 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.
|
||||
func (m *Resource) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if v, ok := interface{}(m.GetName()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return ResourceValidationError{
|
||||
field: "Name",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// no validation rules for Version
|
||||
|
||||
if v, ok := interface{}(m.GetResource()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return ResourceValidationError{
|
||||
field: "Resource",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ResourceValidationError is the validation error returned by
|
||||
// Resource.Validate if the designated constraints aren't met.
|
||||
type ResourceValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e ResourceValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e ResourceValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e ResourceValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e ResourceValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e ResourceValidationError) ErrorName() string { return "ResourceValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e ResourceValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sResource.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = ResourceValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = ResourceValidationError{}
|
||||
279
vendor/github.com/cncf/xds/go/xds/core/v3/resource_locator.pb.go
generated
vendored
279
vendor/github.com/cncf/xds/go/xds/core/v3/resource_locator.pb.go
generated
vendored
|
|
@ -1,279 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: xds/core/v3/resource_locator.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
_ "github.com/cncf/xds/go/udpa/annotations"
|
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type ResourceLocator_Scheme int32
|
||||
|
||||
const (
|
||||
ResourceLocator_XDSTP ResourceLocator_Scheme = 0
|
||||
ResourceLocator_HTTP ResourceLocator_Scheme = 1
|
||||
ResourceLocator_FILE ResourceLocator_Scheme = 2
|
||||
)
|
||||
|
||||
var ResourceLocator_Scheme_name = map[int32]string{
|
||||
0: "XDSTP",
|
||||
1: "HTTP",
|
||||
2: "FILE",
|
||||
}
|
||||
|
||||
var ResourceLocator_Scheme_value = map[string]int32{
|
||||
"XDSTP": 0,
|
||||
"HTTP": 1,
|
||||
"FILE": 2,
|
||||
}
|
||||
|
||||
func (x ResourceLocator_Scheme) String() string {
|
||||
return proto.EnumName(ResourceLocator_Scheme_name, int32(x))
|
||||
}
|
||||
|
||||
func (ResourceLocator_Scheme) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_eb09b3779eaf3665, []int{0, 0}
|
||||
}
|
||||
|
||||
type ResourceLocator struct {
|
||||
Scheme ResourceLocator_Scheme `protobuf:"varint,1,opt,name=scheme,proto3,enum=xds.core.v3.ResourceLocator_Scheme" json:"scheme,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"`
|
||||
ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
|
||||
// Types that are valid to be assigned to ContextParamSpecifier:
|
||||
// *ResourceLocator_ExactContext
|
||||
ContextParamSpecifier isResourceLocator_ContextParamSpecifier `protobuf_oneof:"context_param_specifier"`
|
||||
Directives []*ResourceLocator_Directive `protobuf:"bytes,6,rep,name=directives,proto3" json:"directives,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ResourceLocator) Reset() { *m = ResourceLocator{} }
|
||||
func (m *ResourceLocator) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResourceLocator) ProtoMessage() {}
|
||||
func (*ResourceLocator) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_eb09b3779eaf3665, []int{0}
|
||||
}
|
||||
|
||||
func (m *ResourceLocator) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ResourceLocator.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ResourceLocator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ResourceLocator.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ResourceLocator) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ResourceLocator.Merge(m, src)
|
||||
}
|
||||
func (m *ResourceLocator) XXX_Size() int {
|
||||
return xxx_messageInfo_ResourceLocator.Size(m)
|
||||
}
|
||||
func (m *ResourceLocator) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ResourceLocator.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ResourceLocator proto.InternalMessageInfo
|
||||
|
||||
func (m *ResourceLocator) GetScheme() ResourceLocator_Scheme {
|
||||
if m != nil {
|
||||
return m.Scheme
|
||||
}
|
||||
return ResourceLocator_XDSTP
|
||||
}
|
||||
|
||||
func (m *ResourceLocator) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ResourceLocator) GetAuthority() string {
|
||||
if m != nil {
|
||||
return m.Authority
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ResourceLocator) GetResourceType() string {
|
||||
if m != nil {
|
||||
return m.ResourceType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type isResourceLocator_ContextParamSpecifier interface {
|
||||
isResourceLocator_ContextParamSpecifier()
|
||||
}
|
||||
|
||||
type ResourceLocator_ExactContext struct {
|
||||
ExactContext *ContextParams `protobuf:"bytes,5,opt,name=exact_context,json=exactContext,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ResourceLocator_ExactContext) isResourceLocator_ContextParamSpecifier() {}
|
||||
|
||||
func (m *ResourceLocator) GetContextParamSpecifier() isResourceLocator_ContextParamSpecifier {
|
||||
if m != nil {
|
||||
return m.ContextParamSpecifier
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResourceLocator) GetExactContext() *ContextParams {
|
||||
if x, ok := m.GetContextParamSpecifier().(*ResourceLocator_ExactContext); ok {
|
||||
return x.ExactContext
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResourceLocator) GetDirectives() []*ResourceLocator_Directive {
|
||||
if m != nil {
|
||||
return m.Directives
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*ResourceLocator) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*ResourceLocator_ExactContext)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
type ResourceLocator_Directive struct {
|
||||
// Types that are valid to be assigned to Directive:
|
||||
// *ResourceLocator_Directive_Alt
|
||||
// *ResourceLocator_Directive_Entry
|
||||
Directive isResourceLocator_Directive_Directive `protobuf_oneof:"directive"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ResourceLocator_Directive) Reset() { *m = ResourceLocator_Directive{} }
|
||||
func (m *ResourceLocator_Directive) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResourceLocator_Directive) ProtoMessage() {}
|
||||
func (*ResourceLocator_Directive) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_eb09b3779eaf3665, []int{0, 0}
|
||||
}
|
||||
|
||||
func (m *ResourceLocator_Directive) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ResourceLocator_Directive.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ResourceLocator_Directive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ResourceLocator_Directive.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ResourceLocator_Directive) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ResourceLocator_Directive.Merge(m, src)
|
||||
}
|
||||
func (m *ResourceLocator_Directive) XXX_Size() int {
|
||||
return xxx_messageInfo_ResourceLocator_Directive.Size(m)
|
||||
}
|
||||
func (m *ResourceLocator_Directive) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ResourceLocator_Directive.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ResourceLocator_Directive proto.InternalMessageInfo
|
||||
|
||||
type isResourceLocator_Directive_Directive interface {
|
||||
isResourceLocator_Directive_Directive()
|
||||
}
|
||||
|
||||
type ResourceLocator_Directive_Alt struct {
|
||||
Alt *ResourceLocator `protobuf:"bytes,1,opt,name=alt,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ResourceLocator_Directive_Entry struct {
|
||||
Entry string `protobuf:"bytes,2,opt,name=entry,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ResourceLocator_Directive_Alt) isResourceLocator_Directive_Directive() {}
|
||||
|
||||
func (*ResourceLocator_Directive_Entry) isResourceLocator_Directive_Directive() {}
|
||||
|
||||
func (m *ResourceLocator_Directive) GetDirective() isResourceLocator_Directive_Directive {
|
||||
if m != nil {
|
||||
return m.Directive
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResourceLocator_Directive) GetAlt() *ResourceLocator {
|
||||
if x, ok := m.GetDirective().(*ResourceLocator_Directive_Alt); ok {
|
||||
return x.Alt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResourceLocator_Directive) GetEntry() string {
|
||||
if x, ok := m.GetDirective().(*ResourceLocator_Directive_Entry); ok {
|
||||
return x.Entry
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*ResourceLocator_Directive) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*ResourceLocator_Directive_Alt)(nil),
|
||||
(*ResourceLocator_Directive_Entry)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("xds.core.v3.ResourceLocator_Scheme", ResourceLocator_Scheme_name, ResourceLocator_Scheme_value)
|
||||
proto.RegisterType((*ResourceLocator)(nil), "xds.core.v3.ResourceLocator")
|
||||
proto.RegisterType((*ResourceLocator_Directive)(nil), "xds.core.v3.ResourceLocator.Directive")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("xds/core/v3/resource_locator.proto", fileDescriptor_eb09b3779eaf3665) }
|
||||
|
||||
var fileDescriptor_eb09b3779eaf3665 = []byte{
|
||||
// 481 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x41, 0x6f, 0xd3, 0x30,
|
||||
0x14, 0xc7, 0xeb, 0xb4, 0x0d, 0x8d, 0xbb, 0x8d, 0xc8, 0x42, 0x2c, 0x84, 0x22, 0xa2, 0x82, 0xa0,
|
||||
0x12, 0x34, 0x99, 0xd2, 0x03, 0x02, 0x89, 0xc3, 0xcc, 0x36, 0x15, 0x69, 0x87, 0x28, 0xeb, 0x01,
|
||||
0xc1, 0x20, 0xf2, 0x12, 0x43, 0x2d, 0xb5, 0x71, 0x64, 0x3b, 0x55, 0xcb, 0x01, 0x21, 0x4e, 0x9c,
|
||||
0xf8, 0x40, 0x7c, 0x02, 0xae, 0x7c, 0x1b, 0xd4, 0x13, 0x4a, 0xd2, 0x76, 0xdd, 0x0e, 0xbb, 0x59,
|
||||
0xef, 0xfd, 0xde, 0xd3, 0xff, 0xfd, 0xfd, 0x87, 0xdd, 0x79, 0x22, 0xbd, 0x98, 0x0b, 0xea, 0xcd,
|
||||
0x06, 0x9e, 0xa0, 0x92, 0xe7, 0x22, 0xa6, 0xd1, 0x84, 0xc7, 0x44, 0x71, 0xe1, 0x66, 0x82, 0x2b,
|
||||
0x8e, 0xda, 0xf3, 0x44, 0xba, 0x05, 0xe3, 0xce, 0x06, 0xf6, 0x83, 0x3c, 0xc9, 0x88, 0x47, 0xd2,
|
||||
0x94, 0x2b, 0xa2, 0x18, 0x4f, 0xa5, 0x27, 0x15, 0x51, 0xb9, 0xac, 0x58, 0xdb, 0xd9, 0xde, 0x17,
|
||||
0xf3, 0x54, 0xd1, 0xb9, 0x8a, 0x32, 0x22, 0xc8, 0x74, 0x4d, 0xec, 0xcf, 0xc8, 0x84, 0x25, 0x44,
|
||||
0x51, 0x6f, 0xfd, 0xa8, 0x1a, 0xdd, 0x5f, 0x0d, 0x78, 0x3b, 0x5c, 0x29, 0x38, 0xad, 0x04, 0xa0,
|
||||
0x63, 0xa8, 0xcb, 0x78, 0x4c, 0xa7, 0xd4, 0x02, 0x0e, 0xe8, 0xed, 0xf9, 0x8f, 0xdc, 0x2d, 0x2d,
|
||||
0xee, 0x35, 0xda, 0x3d, 0x2b, 0x51, 0xdc, 0x5a, 0xe2, 0xe6, 0x0f, 0xa0, 0x99, 0x20, 0x5c, 0x0d,
|
||||
0xa3, 0x3d, 0xa8, 0xb1, 0xc4, 0xd2, 0x1c, 0xd0, 0x33, 0x42, 0x8d, 0x25, 0xa8, 0x03, 0x0d, 0x92,
|
||||
0xab, 0x31, 0x17, 0x4c, 0x2d, 0xac, 0x7a, 0x59, 0xbe, 0x2c, 0xa0, 0xe7, 0x70, 0x77, 0xe3, 0x84,
|
||||
0x5a, 0x64, 0xd4, 0x6a, 0x14, 0x04, 0xbe, 0xb5, 0xc4, 0x0d, 0x51, 0x6c, 0xdd, 0x59, 0x77, 0x47,
|
||||
0x8b, 0x8c, 0xa2, 0x43, 0xb8, 0x4b, 0xe7, 0x24, 0x56, 0xd1, 0xea, 0x5a, 0xab, 0xe9, 0x80, 0x5e,
|
||||
0xdb, 0xb7, 0xaf, 0x28, 0x7d, 0x53, 0xf5, 0x82, 0xd2, 0x88, 0x61, 0x2d, 0xdc, 0x29, 0x47, 0x56,
|
||||
0x55, 0x74, 0x02, 0x61, 0xc2, 0x04, 0x8d, 0x15, 0x9b, 0x51, 0x69, 0xe9, 0x4e, 0xbd, 0xd7, 0xf6,
|
||||
0x9f, 0xdc, 0x78, 0xe9, 0xd1, 0x1a, 0x0f, 0xb7, 0x26, 0xed, 0x9f, 0x00, 0x1a, 0x9b, 0x0e, 0x3a,
|
||||
0x80, 0x75, 0x32, 0x51, 0xa5, 0x71, 0x6d, 0xbf, 0x73, 0xd3, 0xba, 0x61, 0x2d, 0x2c, 0x50, 0xf4,
|
||||
0x02, 0x36, 0x69, 0xaa, 0xc4, 0xa2, 0x72, 0x0a, 0x3f, 0x5c, 0xe2, 0x8e, 0xb0, 0x4d, 0xe0, 0xdf,
|
||||
0xfd, 0xf4, 0xe1, 0xa0, 0xff, 0x92, 0xf4, 0xbf, 0x1e, 0xf6, 0xdf, 0x47, 0xe7, 0xfd, 0x73, 0xd7,
|
||||
0xfb, 0xf6, 0xea, 0xe3, 0xb3, 0xc7, 0xc3, 0x5a, 0x58, 0xf1, 0xd8, 0x84, 0xc6, 0x46, 0x06, 0xaa,
|
||||
0xff, 0xc3, 0xa0, 0xfb, 0x14, 0xea, 0xd5, 0x6f, 0x20, 0x03, 0x36, 0xdf, 0x1d, 0x9d, 0x8d, 0x02,
|
||||
0xb3, 0x86, 0x5a, 0xb0, 0x31, 0x1c, 0x8d, 0x02, 0x13, 0x14, 0xaf, 0x93, 0xb7, 0xa7, 0xc7, 0xa6,
|
||||
0x86, 0xef, 0xc1, 0xfd, 0x2b, 0x31, 0x89, 0x64, 0x46, 0x63, 0xf6, 0x99, 0x51, 0x81, 0x5f, 0xff,
|
||||
0xfe, 0xfe, 0xe7, 0xaf, 0xae, 0xb5, 0x00, 0xbc, 0x1f, 0xf3, 0xa9, 0xfb, 0x85, 0xa9, 0x71, 0x7e,
|
||||
0xe1, 0x16, 0xf9, 0xdb, 0x3e, 0x06, 0xdf, 0xb9, 0x76, 0x4d, 0x50, 0xa4, 0x29, 0x00, 0x17, 0x7a,
|
||||
0x19, 0xab, 0xc1, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x46, 0x23, 0x9e, 0xd8, 0xe3, 0x02, 0x00,
|
||||
0x00,
|
||||
}
|
||||
258
vendor/github.com/cncf/xds/go/xds/core/v3/resource_locator.pb.validate.go
generated
vendored
258
vendor/github.com/cncf/xds/go/xds/core/v3/resource_locator.pb.validate.go
generated
vendored
|
|
@ -1,258 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/core/v3/resource_locator.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _resource_locator_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on ResourceLocator with the rules defined
|
||||
// in the proto definition for this message. If any rules are violated, an
|
||||
// error is returned.
|
||||
func (m *ResourceLocator) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if _, ok := ResourceLocator_Scheme_name[int32(m.GetScheme())]; !ok {
|
||||
return ResourceLocatorValidationError{
|
||||
field: "Scheme",
|
||||
reason: "value must be one of the defined enum values",
|
||||
}
|
||||
}
|
||||
|
||||
// no validation rules for Id
|
||||
|
||||
// no validation rules for Authority
|
||||
|
||||
if utf8.RuneCountInString(m.GetResourceType()) < 1 {
|
||||
return ResourceLocatorValidationError{
|
||||
field: "ResourceType",
|
||||
reason: "value length must be at least 1 runes",
|
||||
}
|
||||
}
|
||||
|
||||
for idx, item := range m.GetDirectives() {
|
||||
_, _ = idx, item
|
||||
|
||||
if v, ok := interface{}(item).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return ResourceLocatorValidationError{
|
||||
field: fmt.Sprintf("Directives[%v]", idx),
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
switch m.ContextParamSpecifier.(type) {
|
||||
|
||||
case *ResourceLocator_ExactContext:
|
||||
|
||||
if v, ok := interface{}(m.GetExactContext()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return ResourceLocatorValidationError{
|
||||
field: "ExactContext",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ResourceLocatorValidationError is the validation error returned by
|
||||
// ResourceLocator.Validate if the designated constraints aren't met.
|
||||
type ResourceLocatorValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e ResourceLocatorValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e ResourceLocatorValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e ResourceLocatorValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e ResourceLocatorValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e ResourceLocatorValidationError) ErrorName() string { return "ResourceLocatorValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e ResourceLocatorValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sResourceLocator.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = ResourceLocatorValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = ResourceLocatorValidationError{}
|
||||
|
||||
// Validate checks the field values on ResourceLocator_Directive with the rules
|
||||
// defined in the proto definition for this message. If any rules are
|
||||
// violated, an error is returned.
|
||||
func (m *ResourceLocator_Directive) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
switch m.Directive.(type) {
|
||||
|
||||
case *ResourceLocator_Directive_Alt:
|
||||
|
||||
if v, ok := interface{}(m.GetAlt()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return ResourceLocator_DirectiveValidationError{
|
||||
field: "Alt",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case *ResourceLocator_Directive_Entry:
|
||||
|
||||
if utf8.RuneCountInString(m.GetEntry()) < 1 {
|
||||
return ResourceLocator_DirectiveValidationError{
|
||||
field: "Entry",
|
||||
reason: "value length must be at least 1 runes",
|
||||
}
|
||||
}
|
||||
|
||||
if !_ResourceLocator_Directive_Entry_Pattern.MatchString(m.GetEntry()) {
|
||||
return ResourceLocator_DirectiveValidationError{
|
||||
field: "Entry",
|
||||
reason: "value does not match regex pattern \"^[0-9a-zA-Z_\\\\-\\\\./~:]+$\"",
|
||||
}
|
||||
}
|
||||
|
||||
default:
|
||||
return ResourceLocator_DirectiveValidationError{
|
||||
field: "Directive",
|
||||
reason: "value is required",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ResourceLocator_DirectiveValidationError is the validation error returned by
|
||||
// ResourceLocator_Directive.Validate if the designated constraints aren't met.
|
||||
type ResourceLocator_DirectiveValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e ResourceLocator_DirectiveValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e ResourceLocator_DirectiveValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e ResourceLocator_DirectiveValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e ResourceLocator_DirectiveValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e ResourceLocator_DirectiveValidationError) ErrorName() string {
|
||||
return "ResourceLocator_DirectiveValidationError"
|
||||
}
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e ResourceLocator_DirectiveValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sResourceLocator_Directive.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = ResourceLocator_DirectiveValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = ResourceLocator_DirectiveValidationError{}
|
||||
|
||||
var _ResourceLocator_Directive_Entry_Pattern = regexp.MustCompile("^[0-9a-zA-Z_\\-\\./~:]+$")
|
||||
113
vendor/github.com/cncf/xds/go/xds/core/v3/resource_name.pb.go
generated
vendored
113
vendor/github.com/cncf/xds/go/xds/core/v3/resource_name.pb.go
generated
vendored
|
|
@ -1,113 +0,0 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: xds/core/v3/resource_name.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
_ "github.com/cncf/xds/go/udpa/annotations"
|
||||
_ "github.com/envoyproxy/protoc-gen-validate/validate"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type ResourceName struct {
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
|
||||
ResourceType string `protobuf:"bytes,3,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
|
||||
Context *ContextParams `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ResourceName) Reset() { *m = ResourceName{} }
|
||||
func (m *ResourceName) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResourceName) ProtoMessage() {}
|
||||
func (*ResourceName) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_142e5d243416c11e, []int{0}
|
||||
}
|
||||
|
||||
func (m *ResourceName) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ResourceName.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ResourceName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ResourceName.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ResourceName) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ResourceName.Merge(m, src)
|
||||
}
|
||||
func (m *ResourceName) XXX_Size() int {
|
||||
return xxx_messageInfo_ResourceName.Size(m)
|
||||
}
|
||||
func (m *ResourceName) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ResourceName.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ResourceName proto.InternalMessageInfo
|
||||
|
||||
func (m *ResourceName) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ResourceName) GetAuthority() string {
|
||||
if m != nil {
|
||||
return m.Authority
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ResourceName) GetResourceType() string {
|
||||
if m != nil {
|
||||
return m.ResourceType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ResourceName) GetContext() *ContextParams {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ResourceName)(nil), "xds.core.v3.ResourceName")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("xds/core/v3/resource_name.proto", fileDescriptor_142e5d243416c11e) }
|
||||
|
||||
var fileDescriptor_142e5d243416c11e = []byte{
|
||||
// 271 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x31, 0x4e, 0xc3, 0x30,
|
||||
0x14, 0x86, 0xe5, 0x50, 0xb5, 0xd4, 0x2d, 0x08, 0xb2, 0x10, 0x05, 0x10, 0x11, 0x53, 0x07, 0x64,
|
||||
0x4b, 0x84, 0x89, 0x31, 0xec, 0x28, 0x8a, 0xd8, 0xab, 0xd7, 0xd8, 0xa2, 0x96, 0x48, 0x1c, 0xd9,
|
||||
0xcf, 0x51, 0xb2, 0x71, 0x14, 0xce, 0xc1, 0x09, 0x58, 0xb9, 0x0e, 0x13, 0x4a, 0xd2, 0x40, 0x36,
|
||||
0xeb, 0xfd, 0x9f, 0xed, 0xff, 0x7b, 0xf4, 0xa6, 0x11, 0x96, 0xe7, 0xda, 0x48, 0x5e, 0xc7, 0xdc,
|
||||
0x48, 0xab, 0x9d, 0xc9, 0xe5, 0xb6, 0x84, 0x42, 0xb2, 0xca, 0x68, 0xd4, 0xfe, 0xaa, 0x11, 0x96,
|
||||
0x75, 0x00, 0xab, 0xe3, 0xf0, 0xda, 0x89, 0x0a, 0x38, 0x94, 0xa5, 0x46, 0x40, 0xa5, 0x4b, 0xcb,
|
||||
0x2d, 0x02, 0x3a, 0x3b, 0xb0, 0x61, 0x34, 0x7d, 0x2c, 0xd7, 0x25, 0xca, 0x06, 0xb7, 0x15, 0x18,
|
||||
0x28, 0x46, 0xe2, 0xa2, 0x86, 0x37, 0x25, 0x00, 0x25, 0x1f, 0x0f, 0x43, 0x70, 0xfb, 0x41, 0xe8,
|
||||
0x3a, 0x3b, 0x7c, 0xff, 0x0c, 0x85, 0xf4, 0x4f, 0xa9, 0xa7, 0x44, 0x40, 0x22, 0xb2, 0x59, 0x66,
|
||||
0x9e, 0x12, 0xfe, 0x15, 0x5d, 0x82, 0xc3, 0xbd, 0x36, 0x0a, 0xdb, 0xc0, 0xeb, 0xc7, 0xff, 0x03,
|
||||
0xff, 0x8e, 0x9e, 0xfc, 0x95, 0xc7, 0xb6, 0x92, 0xc1, 0x51, 0x47, 0x24, 0x8b, 0x9f, 0x64, 0x66,
|
||||
0xbc, 0x33, 0x92, 0xad, 0xc7, 0xf4, 0xa5, 0xad, 0xa4, 0xff, 0x40, 0x17, 0x87, 0x76, 0xc1, 0x2c,
|
||||
0x22, 0x9b, 0xd5, 0x7d, 0xc8, 0x26, 0x96, 0xec, 0x69, 0xc8, 0xd2, 0xbe, 0x78, 0x36, 0xa2, 0xc9,
|
||||
0xe3, 0xe7, 0xfb, 0xd7, 0xf7, 0xdc, 0x3b, 0x26, 0xf4, 0x32, 0xd7, 0x05, 0x7b, 0x55, 0xb8, 0x77,
|
||||
0x3b, 0xd6, 0x6d, 0x64, 0x7a, 0x3b, 0x39, 0x9f, 0x6a, 0xa4, 0x9d, 0x5c, 0x4a, 0x76, 0xf3, 0xde,
|
||||
0x32, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x99, 0xd1, 0xf6, 0x6f, 0x01, 0x00, 0x00,
|
||||
}
|
||||
123
vendor/github.com/cncf/xds/go/xds/core/v3/resource_name.pb.validate.go
generated
vendored
123
vendor/github.com/cncf/xds/go/xds/core/v3/resource_name.pb.validate.go
generated
vendored
|
|
@ -1,123 +0,0 @@
|
|||
// Code generated by protoc-gen-validate. DO NOT EDIT.
|
||||
// source: xds/core/v3/resource_name.proto
|
||||
|
||||
package xds_core_v3
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/mail"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
var (
|
||||
_ = bytes.MinRead
|
||||
_ = errors.New("")
|
||||
_ = fmt.Print
|
||||
_ = utf8.UTFMax
|
||||
_ = (*regexp.Regexp)(nil)
|
||||
_ = (*strings.Reader)(nil)
|
||||
_ = net.IPv4len
|
||||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _resource_name_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on ResourceName with the rules defined in
|
||||
// the proto definition for this message. If any rules are violated, an error
|
||||
// is returned.
|
||||
func (m *ResourceName) Validate() error {
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// no validation rules for Id
|
||||
|
||||
// no validation rules for Authority
|
||||
|
||||
if utf8.RuneCountInString(m.GetResourceType()) < 1 {
|
||||
return ResourceNameValidationError{
|
||||
field: "ResourceType",
|
||||
reason: "value length must be at least 1 runes",
|
||||
}
|
||||
}
|
||||
|
||||
if v, ok := interface{}(m.GetContext()).(interface{ Validate() error }); ok {
|
||||
if err := v.Validate(); err != nil {
|
||||
return ResourceNameValidationError{
|
||||
field: "Context",
|
||||
reason: "embedded message failed validation",
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ResourceNameValidationError is the validation error returned by
|
||||
// ResourceName.Validate if the designated constraints aren't met.
|
||||
type ResourceNameValidationError struct {
|
||||
field string
|
||||
reason string
|
||||
cause error
|
||||
key bool
|
||||
}
|
||||
|
||||
// Field function returns field value.
|
||||
func (e ResourceNameValidationError) Field() string { return e.field }
|
||||
|
||||
// Reason function returns reason value.
|
||||
func (e ResourceNameValidationError) Reason() string { return e.reason }
|
||||
|
||||
// Cause function returns cause value.
|
||||
func (e ResourceNameValidationError) Cause() error { return e.cause }
|
||||
|
||||
// Key function returns key value.
|
||||
func (e ResourceNameValidationError) Key() bool { return e.key }
|
||||
|
||||
// ErrorName returns error name.
|
||||
func (e ResourceNameValidationError) ErrorName() string { return "ResourceNameValidationError" }
|
||||
|
||||
// Error satisfies the builtin error interface
|
||||
func (e ResourceNameValidationError) Error() string {
|
||||
cause := ""
|
||||
if e.cause != nil {
|
||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
||||
}
|
||||
|
||||
key := ""
|
||||
if e.key {
|
||||
key = "key for "
|
||||
}
|
||||
|
||||
return fmt.Sprintf(
|
||||
"invalid %sResourceName.%s: %s%s",
|
||||
key,
|
||||
e.field,
|
||||
e.reason,
|
||||
cause)
|
||||
}
|
||||
|
||||
var _ error = ResourceNameValidationError{}
|
||||
|
||||
var _ interface {
|
||||
Field() string
|
||||
Reason() string
|
||||
Key() bool
|
||||
Cause() error
|
||||
ErrorName() string
|
||||
} = ResourceNameValidationError{}
|
||||
Loading…
Add table
Add a link
Reference in a new issue