diff --git a/.gitignore b/.gitignore index 1722056ec97cc..fa99124f6222e 100644 --- a/.gitignore +++ b/.gitignore @@ -81,8 +81,8 @@ ssh.config go.work go.work.sum -# Buf side-effects -/github.com +# gogoproto side-effects +/gogogen node_modules .air.toml diff --git a/api/gen/proto/go/attestation/v1/attestation.pb.go b/api/gen/proto/go/attestation/v1/attestation.pb.go index a148fa6afde89..ec54d67ecd2a5 100644 --- a/api/gen/proto/go/attestation/v1/attestation.pb.go +++ b/api/gen/proto/go/attestation/v1/attestation.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: teleport/attestation/v1/attestation.proto -package v1 +package attestation import ( fmt "fmt" @@ -169,7 +169,7 @@ func init() { } var fileDescriptor_99516272d9ee5937 = []byte{ - // 243 bytes of a gzipped FileDescriptorProto + // 246 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2c, 0x49, 0xcd, 0x49, 0x2d, 0xc8, 0x2f, 0x2a, 0xd1, 0x4f, 0x2c, 0x29, 0x49, 0x2d, 0x2e, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0x44, 0xe6, 0xea, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x89, 0xc3, 0x94, 0xea, @@ -180,12 +180,12 @@ var fileDescriptor_99516272d9ee5937 = []byte{ 0xa4, 0xa1, 0x86, 0x63, 0x93, 0x76, 0x12, 0xe7, 0x12, 0xc5, 0x6a, 0xa7, 0x52, 0x2a, 0x97, 0x34, 0x1e, 0x63, 0x85, 0xa4, 0xb9, 0x38, 0x8b, 0x73, 0xf2, 0x4b, 0xe2, 0x93, 0x53, 0x8b, 0x20, 0xee, 0xe3, 0x09, 0xe2, 0x00, 0x09, 0x38, 0xa7, 0x16, 0x95, 0x08, 0x69, 0x72, 0x09, 0x20, 0x1b, 0x0a, - 0x56, 0xc3, 0x04, 0x56, 0xc3, 0x8f, 0x24, 0x0e, 0x52, 0xea, 0xe4, 0x7f, 0xe2, 0x91, 0x1c, 0xe3, - 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x46, 0x39, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, + 0x56, 0xc3, 0x04, 0x56, 0xc3, 0x8f, 0x24, 0x0e, 0x52, 0xea, 0x14, 0x7d, 0xe2, 0x91, 0x1c, 0xe3, + 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x46, 0xf9, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0x17, 0x25, 0x96, 0x65, 0x42, 0x54, 0x26, 0xe6, 0xe8, 0x23, 0xc2, 0xbf, 0x20, 0x53, 0x3f, 0x3d, 0x35, 0x4f, 0x1f, 0x1c, 0xd8, 0xfa, 0xe9, 0xf9, 0x68, 0x11, - 0x92, 0xc4, 0x06, 0x96, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x5e, 0x52, 0x76, 0xb2, - 0x01, 0x00, 0x00, + 0x62, 0x8d, 0xc4, 0x4d, 0x62, 0x03, 0x2b, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x4d, + 0x00, 0x93, 0xbe, 0x01, 0x00, 0x00, } func (m *AttestationStatement) Marshal() (dAtA []byte, err error) { diff --git a/api/gen/proto/go/teleport/loginrule/v1/loginrule.pb.go b/api/gen/proto/go/teleport/loginrule/v1/loginrule.pb.go index ae9119e6cad50..2897d58e19a5b 100644 --- a/api/gen/proto/go/teleport/loginrule/v1/loginrule.pb.go +++ b/api/gen/proto/go/teleport/loginrule/v1/loginrule.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: teleport/loginrule/v1/loginrule.proto -package v1 +package loginrulev1 import ( fmt "fmt" @@ -124,29 +124,30 @@ func init() { } var fileDescriptor_c9a95c6ef6e34e65 = []byte{ - // 352 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x52, 0x41, 0x4b, 0xeb, 0x40, - 0x10, 0x66, 0xdb, 0xd7, 0xf7, 0x9a, 0x2d, 0x3c, 0xeb, 0x82, 0x12, 0x72, 0x28, 0x51, 0x10, 0x02, - 0xd5, 0x5d, 0x5a, 0x2f, 0xe2, 0x51, 0x28, 0x78, 0xb0, 0x1e, 0x62, 0xe9, 0xc1, 0x8b, 0x6c, 0xeb, - 0x10, 0x17, 0xd3, 0xec, 0xb2, 0x99, 0x44, 0xf3, 0xf3, 0xbc, 0x79, 0xf4, 0x27, 0x48, 0x7f, 0x89, - 0x34, 0x69, 0x13, 0x84, 0x5e, 0x96, 0xf9, 0xe6, 0xfb, 0x66, 0x76, 0xbe, 0x9d, 0xa5, 0x67, 0x08, - 0x31, 0x18, 0x6d, 0x51, 0xc4, 0x3a, 0x52, 0x89, 0xcd, 0x62, 0x10, 0xf9, 0xa8, 0x01, 0xdc, 0x58, - 0x8d, 0x9a, 0x1d, 0xed, 0x64, 0xbc, 0x61, 0xf2, 0x91, 0x77, 0xd2, 0x54, 0x43, 0x24, 0x97, 0x85, - 0xc0, 0xc2, 0x40, 0x5a, 0x9d, 0x55, 0xa5, 0x77, 0xb1, 0x5f, 0xf2, 0x66, 0xa5, 0x31, 0x60, 0x9b, - 0xa0, 0x92, 0x9f, 0x7e, 0xb4, 0xa8, 0x73, 0xb7, 0xb9, 0x22, 0xcc, 0x62, 0x60, 0x43, 0xda, 0x5d, - 0x01, 0xca, 0x67, 0x89, 0xd2, 0x25, 0x3e, 0x09, 0x7a, 0xe3, 0x03, 0x5e, 0x35, 0x9f, 0x6e, 0xd3, - 0x61, 0x2d, 0x60, 0x2e, 0xfd, 0x97, 0x83, 0x4d, 0x95, 0x4e, 0xdc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ytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xc1, 0x4a, 0xf3, 0x40, + 0x10, 0xc7, 0xd9, 0xf6, 0xeb, 0x67, 0xb3, 0x05, 0xad, 0x0b, 0x4a, 0xc8, 0xa1, 0x44, 0x41, 0x08, + 0x54, 0x77, 0x69, 0xbd, 0x88, 0xde, 0x84, 0xde, 0xac, 0x87, 0x58, 0x3c, 0x78, 0x91, 0x6d, 0x1d, + 0xe2, 0x62, 0x9a, 0x5d, 0x36, 0x93, 0x68, 0x1e, 0xcf, 0x9b, 0x47, 0x1f, 0x41, 0xfa, 0x24, 0xd2, + 0xa4, 0x4d, 0x10, 0x7a, 0x59, 0xe6, 0x3f, 0xf3, 0x9b, 0xd9, 0x99, 0x9d, 0xa5, 0x67, 0x08, 0x31, + 0x18, 0x6d, 0x51, 0xc4, 0x3a, 0x52, 0x89, 0xcd, 0x62, 0x10, 0xf9, 0xa8, 0x11, 0xdc, 0x58, 0x8d, + 0x9a, 0x1d, 0x6d, 0x31, 0xde, 0x44, 0xf2, 0x91, 0x77, 0xd2, 0x64, 0x43, 0x24, 0x17, 0x85, 0xc0, + 0xc2, 0x40, 0x5a, 0x9d, 0x55, 0xa6, 0x77, 0xb1, 0x1b, 0x79, 0xb7, 0xd2, 0x18, 0xb0, 0x8d, 0x51, + 0xe1, 0xa7, 0x9f, 0x2d, 0xea, 0xdc, 0xad, 0xaf, 0x08, 0xb3, 0x18, 0xd8, 0x90, 0x76, 0x97, 0x80, + 0xf2, 0x45, 0xa2, 0x74, 0x89, 0x4f, 0x82, 0xde, 0xf8, 0x80, 0x57, 0xc5, 0xa7, 0x1b, 0x77, 0x58, + 0x03, 0xcc, 0xa5, 0x7b, 0x39, 0xd8, 0x54, 0xe9, 0xc4, 0x6d, 0xf9, 0x24, 0x70, 0xc2, 0xad, 0x64, + 0x1e, 0xed, 0x1a, 0xab, 0xb4, 0x55, 0x58, 0xb8, 0x6d, 0x9f, 0x04, 0x9d, 0xb0, 0xd6, 0xec, 0x9e, + 0x52, 0xb4, 0x52, 0x61, 0xfa, 0xbc, 0x94, 0xc6, 0xfd, 0xe7, 0xb7, 0x83, 0xde, 0x58, 0xf0, 0x9d, + 0xe3, 0xf2, 0xba, 0x31, 0x3e, 0x2b, 0x53, 0xa6, 0xd2, 0x4c, 0x12, 0xb4, 0x45, 0xe8, 0xe0, 0x56, + 0xb3, 0x21, 0x3d, 0xdc, 0xd4, 0x83, 0x0f, 0x63, 0x21, 0x2d, 0xfb, 0xe9, 0x94, 0xfd, 0xf4, 0xab, + 0xc0, 0xa4, 0xf6, 0x7b, 0x33, 0xba, 0xff, 0xb7, 0x12, 0xeb, 0xd3, 0xf6, 0x1b, 0x14, 0xe5, 0xb0, + 0x4e, 0xb8, 0x36, 0xd9, 0x39, 0xed, 0xe4, 0x32, 0xce, 0xa0, 0x1c, 0xaa, 0x37, 0x3e, 0xe6, 0xf5, + 0x8b, 0x3d, 0xa0, 0x55, 0x49, 0xf4, 0xb8, 0x0e, 0xa6, 0x61, 0x05, 0x5d, 0xb7, 0xae, 0xc8, 0xed, + 0xfc, 0x6b, 0x35, 0x20, 0xdf, 0xab, 0x01, 0xf9, 0x59, 0x0d, 0xc8, 0xd3, 0x2c, 0x52, 0xf8, 0x9a, + 0xcd, 0xf9, 0x42, 0x2f, 0x45, 0x64, 0x65, 0xae, 0x50, 0xa2, 0xd2, 0x89, 0x8c, 0x45, 0xbd, 0x19, + 0x69, 0x94, 0x88, 0x20, 0x11, 0xe5, 0x0a, 0x44, 0xa4, 0xc5, 0xce, 0x4f, 0x71, 0x53, 0x8b, 0x7c, + 0x34, 0xff, 0x5f, 0xb2, 0x97, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x7b, 0x61, 0x48, 0x40, + 0x02, 0x00, 0x00, } func (m *LoginRule) Marshal() (dAtA []byte, err error) { diff --git a/api/gen/proto/go/teleport/loginrule/v1/loginrule_service.pb.go b/api/gen/proto/go/teleport/loginrule/v1/loginrule_service.pb.go index 5422e70c670ea..ad1d4a6865b87 100644 --- a/api/gen/proto/go/teleport/loginrule/v1/loginrule_service.pb.go +++ b/api/gen/proto/go/teleport/loginrule/v1/loginrule_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: teleport/loginrule/v1/loginrule_service.proto -package v1 +package loginrulev1 import ( context "context" @@ -356,35 +356,36 @@ func init() { } var fileDescriptor_512a9b51702351ee = []byte{ - // 446 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x8a, 0xd4, 0x40, - 0x10, 0x26, 0xba, 0x8a, 0x53, 0xab, 0x8e, 0xb4, 0xec, 0x30, 0x64, 0x71, 0x18, 0x06, 0x14, 0x95, - 0x9d, 0x6e, 0x76, 0x7d, 0x00, 0xf1, 0x0f, 0x3d, 0xec, 0x41, 0x66, 0x54, 0x54, 0x84, 0x90, 0x2c, - 0x65, 0xdb, 0xd8, 0x49, 0xc7, 0x74, 0x27, 0xe8, 0xde, 0xc4, 0x97, 0xf3, 0xe8, 0x23, 0xc8, 0x3c, - 0x89, 0x74, 0x62, 0x12, 0xcd, 0x76, 0x98, 0x1c, 0xf6, 0x96, 0x54, 0x7d, 0xf5, 0x55, 0x55, 0xd7, - 0xc7, 0x07, 0x4b, 0x83, 0x12, 0x53, 0x95, 0x19, 0x26, 0x15, 0x17, 0x49, 0x96, 0x4b, 0x64, 0xc5, - 0x61, 0xfb, 0x13, 0x68, 0xcc, 0x0a, 0x71, 0x82, 0x34, 0xcd, 0x94, 0x51, 0x64, 0xaf, 0x86, 0xd3, - 0x06, 0x41, 0x8b, 0x43, 0x7f, 0x9f, 0x2b, 0xc5, 0x25, 0xb2, 0x12, 0x14, 0xe5, 0x1f, 0x19, 0xc6, - 0xa9, 0xf9, 0x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0xba, 0x65, 0xe2, 0x6f, 0x5d, 0xcd, 0xf6, - 0xe8, 0xe8, 0xa0, 0xb7, 0x87, 0x5b, 0x2f, 0x03, 0x7a, 0x7c, 0x80, 0xab, 0xff, 0x0a, 0x82, 0xdc, - 0xef, 0xa9, 0x70, 0xa8, 0x66, 0x00, 0x7b, 0x0c, 0xd7, 0xff, 0xbf, 0x36, 0x39, 0xe8, 0xab, 0x71, - 0x49, 0xcd, 0x5f, 0x0e, 0x44, 0xff, 0x95, 0xd0, 0x5b, 0x18, 0x77, 0xee, 0xda, 0xfb, 0x60, 0xee, - 0xfb, 0xfb, 0x13, 0x5a, 0x59, 0x03, 0xad, 0xad, 0x81, 0x3e, 0xb3, 0xd6, 0xf0, 0xf8, 0xcd, 0xcf, - 0xcd, 0xcc, 0xfb, 0xb5, 0x99, 0x79, 0xbf, 0x37, 0x33, 0xef, 0xfd, 0x0b, 0x2e, 0xcc, 0xa7, 0x3c, - 0xa2, 0x27, 0x2a, 0x66, 0x3c, 0x0b, 0x0b, 0x61, 0x42, 0x23, 0x54, 0x12, 0x4a, 0xd6, 0x78, 0x47, - 0x98, 0x0a, 0xc6, 0x31, 0xa9, 0x2c, 0x86, 0x71, 0xc5, 0x9c, 0xae, 0x12, 0x5d, 0x2e, 0xf3, 0x0f, - 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0x30, 0xda, 0x01, 0x82, 0xd8, 0x04, 0x00, 0x00, + // 450 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x8b, 0xd4, 0x40, + 0x10, 0x25, 0xba, 0x8a, 0x53, 0xab, 0x8e, 0xb4, 0xec, 0x30, 0x64, 0x71, 0x18, 0x06, 0x14, 0x95, + 0x9d, 0x6e, 0x66, 0x3d, 0x7a, 0x10, 0xbf, 0xf0, 0xb2, 0x07, 0x99, 0x59, 0x41, 0x45, 0x08, 0xc9, + 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0xbc, 0x23, + 0x4c, 0x05, 0xe3, 0x98, 0x54, 0x16, 0xc3, 0xb8, 0x62, 0x4e, 0x57, 0x79, 0xdc, 0x5c, 0x8a, 0x55, + 0x74, 0xb5, 0xc4, 0x3e, 0xfa, 0x13, 0x00, 0x00, 0xff, 0xff, 0x22, 0xb3, 0xca, 0xf7, 0xe4, 0x04, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/api/gen/proto/go/usageevents/v1/usageevents.pb.go b/api/gen/proto/go/usageevents/v1/usageevents.pb.go index 36033888d48a4..8b5199c42f4a9 100644 --- a/api/gen/proto/go/usageevents/v1/usageevents.pb.go +++ b/api/gen/proto/go/usageevents/v1/usageevents.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: teleport/usageevents/v1/usageevents.proto -package v1 +package usageeventsv1 import ( fmt "fmt" @@ -2135,129 +2135,129 @@ func init() { } var fileDescriptor_94cf2ca1c69fd564 = []byte{ - // 1949 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x9a, 0xcd, 0x6f, 0xe4, 0x48, - 0xf9, 0xc7, 0xed, 0xce, 0x4c, 0x26, 0x53, 0xb3, 0x93, 0xf4, 0xd6, 0x6f, 0x76, 0xa6, 0x33, 0x79, - 0xef, 0x79, 0x4b, 0x32, 0xa3, 0xf4, 0x66, 0x76, 0x7f, 0xb0, 0xb0, 0x0b, 0xa3, 0x8e, 0xdb, 0x89, - 0x7b, 0x27, 0x49, 0xf7, 0x96, 0xbb, 0x67, 0x05, 0x97, 0x52, 0xc5, 0xae, 0xf4, 0x58, 0xe3, 0xb6, - 0x5b, 0x76, 0xb9, 0x43, 0x0b, 0xa1, 0x15, 0x08, 0x21, 0xa4, 0x91, 0x10, 0xdc, 0x90, 0x90, 0x90, - 0x10, 0x1c, 0x10, 0xe2, 0xce, 0x99, 0x1b, 0x47, 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xc4, 0xac, 0xc4, 0xbf, 0xfc, 0x20, 0x3d, 0xa3, 0xd2, 0xa1, 0x56, - 0x85, 0xff, 0xcc, 0xa3, 0xd2, 0xb1, 0x47, 0x7e, 0x0a, 0x72, 0x36, 0xcf, 0x07, 0x3e, 0xf8, 0x4f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x1f, 0xda, 0x74, 0x2c, 0x22, 0x00, 0x00, + // 1952 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x9a, 0x5b, 0x6f, 0xe4, 0x48, + 0x15, 0xc7, 0xed, 0xce, 0x5c, 0x32, 0x35, 0x3b, 0x49, 0x6f, 0x31, 0x3b, 0xd3, 0x99, 0xdc, 0x7b, + 0x6e, 0x49, 0x66, 0x94, 0xde, 0xcc, 0x2e, 0xb0, 0x30, 0x0b, 0xa3, 0x8e, 0xdb, 0x89, 0x7b, 0x27, + 0x49, 0xf7, 0x96, 0xbb, 0x67, 0x05, 0x12, 0x2a, 0x55, 0xec, 0x4a, 0x8f, 0x35, 0x6e, 0xbb, 0x65, + 0x97, 0x3b, 0xb4, 0x10, 0x5a, 0x81, 0x10, 0x42, 0x1a, 0x09, 0xc1, 0x1b, 0x12, 0x12, 0x12, 0x82, + 0x07, 0x84, 0x78, 0xe7, 0x99, 0x37, 0x1e, 0xf9, 0x08, 0x68, 0xbe, 0x03, 0x0f, 0x20, 0xd0, 0x22, + 0x97, 0xaf, 0x7d, 0xb5, 0x19, 0xf1, 0x94, 0x7d, 0x8b, 0x5d, 0xa7, 0xce, 0xf9, 0x9d, 0x53, 0x65, + 0xbb, 0xfe, 0x27, 0x0d, 0xb6, 0x19, 0x35, 0x69, 0xcf, 0x76, 0x58, 0xc5, 0x73, 0x49, 0x87, 0xd2, + 0x3e, 0xb5, 0x98, 0x5b, 0xe9, 0xef, 0xa5, 0x2f, 0x77, 0x7b, 0x8e, 0xcd, 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 0x6b, 0x11, 0xdc, 0x4d, 0xd1, 0x11, 0x5d, 0xc7, 0x67, 0x86, 0xe3, 0x32, 0x1c, + 0x2d, 0x7f, 0xc8, 0x75, 0x89, 0x73, 0x7d, 0x9c, 0xcd, 0x35, 0xbd, 0x27, 0xa1, 0x08, 0x68, 0x2d, + 0x46, 0x9a, 0x68, 0x36, 0x5a, 0xab, 0x09, 0x34, 0x26, 0x61, 0xf1, 0xea, 0x5c, 0xce, 0x5b, 0xab, + 0x8c, 0x06, 0xc8, 0x50, 0xad, 0xa6, 0xdb, 0xc2, 0x9f, 0x88, 0x60, 0x23, 0x45, 0xe7, 0x52, 0x86, + 0xb5, 0xb8, 0x57, 0x82, 0x5d, 0xde, 0xe7, 0x28, 0x5d, 0xe1, 0x50, 0xdf, 0xcc, 0x86, 0x9a, 0xd6, + 0x69, 0x51, 0x04, 0xb4, 0x12, 0xd3, 0x4c, 0x30, 0x82, 0xbf, 0x10, 0xc1, 0xbd, 0x14, 0x86, 0x13, + 0x8a, 0x12, 0xac, 0x45, 0x1d, 0x97, 0x08, 0xe5, 0x2a, 0x47, 0xf9, 0x76, 0x36, 0xca, 0xac, 0x9e, + 0x8d, 0x22, 0xa0, 0x8d, 0x18, 0x67, 0x8a, 0x61, 0x54, 0x19, 0x27, 0xec, 0x82, 0x60, 0xcd, 0xd6, + 0xf9, 0x79, 0x20, 0xe8, 0xc2, 0x84, 0xcb, 0x35, 0x9f, 0x59, 0x99, 0x8c, 0x1e, 0x4e, 0x50, 0x99, + 0xe9, 0x46, 0xf0, 0xfb, 0x60, 0x65, 0x12, 0x45, 0x6f, 0x10, 0x12, 0x5c, 0xe3, 0x04, 0x5f, 0xcb, + 0x4f, 0x90, 0x6e, 0x02, 0x29, 0x02, 0x2a, 0x8d, 0x45, 0x0f, 0x0d, 0xe0, 0x0f, 0xc0, 0xea, 0x78, + 0xe4, 0x9e, 0x63, 0x58, 0x2c, 0x0c, 0x0d, 0x78, 0xe8, 0xaf, 0xe7, 0x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15, 0x35, 0x36, 0x02, 0x49, 0x1d, 0x92, 0x16, 0x39, 0xe9, 0x27, 0xb9, 0xd6, 0x2f, + 0x97, 0x4a, 0x57, 0x04, 0xb4, 0x97, 0x5e, 0xd4, 0x7c, 0xd2, 0xfe, 0xcf, 0x22, 0xf8, 0x30, 0x57, + 0x0e, 0x49, 0xb9, 0x03, 0xfe, 0x77, 0x39, 0xff, 0xe1, 0x5b, 0xf3, 0x0f, 0x4b, 0x03, 0x45, 0x40, + 0xbb, 0x59, 0xf0, 0x23, 0x62, 0xe2, 0x37, 0x22, 0x78, 0x94, 0x26, 0x27, 0x9e, 0x7f, 0xf2, 0x88, + 0xe5, 0x2a, 0x4e, 0x24, 0x5c, 0x00, 0x0c, 0x39, 0xf0, 0xb3, 0x1c, 0xc0, 0xb3, 0x74, 0xaf, 0x22, + 0xa0, 0x07, 0x09, 0xe8, 0x4c, 0x85, 0xfc, 0x07, 0x11, 0x54, 0x32, 0x76, 0xae, 0x41, 0xba, 0xb8, + 0xc7, 0x25, 0x62, 0x08, 0xf9, 0x15, 0x0e, 0xb9, 0xff, 0x36, 0xfb, 0x77, 0x58, 0x6d, 0x2a, 0x02, + 0xda, 0x9e, 0xb1, 0x89, 0xeb, 0xa4, 0x9b, 0x96, 0xa6, 0xbf, 0x14, 0xc1, 0x83, 0x34, 0x6a, 0x2f, + 0x56, 0x70, 0x63, 0xeb, 0x7e, 0x93, 0x13, 0x3e, 0xcd, 0x41, 0x38, 0x4d, 0x06, 0x2a, 0x02, 0x2a, + 0x27, 0x68, 0x53, 0xc5, 0xe2, 0x8f, 0x45, 0xb0, 0x99, 0x66, 0x62, 0xd4, 0x65, 0x3e, 0x8d, 0x35, + 0xf4, 0x3e, 0x7e, 0x2f, 0xf3, 0xeb, 0x37, 0x43, 0x93, 0x29, 0x02, 0x5a, 0x4d, 0x48, 0x26, 0x89, + 0x36, 0x07, 0x2c, 0xa7, 0x19, 0xa2, 0x73, 0x6e, 0xf4, 0x1d, 0xba, 0x95, 0x21, 0x44, 0xa6, 0x89, + 0xa2, 0xe0, 0xb3, 0x3b, 0x45, 0x30, 0x99, 0xa0, 0xe4, 0x19, 0xfe, 0x21, 0x8c, 0x30, 0x8a, 0x2d, + 0x7a, 0x8e, 0x1d, 0xdb, 0x8c, 0x8e, 0x1b, 0xb7, 0x79, 0xc0, 0x27, 0x33, 0x02, 0x4e, 0x91, 0x23, + 0x8a, 0x80, 0x6e, 0x7a, 0xc6, 0xf8, 0x20, 0x1c, 0xf0, 0x8f, 0xfc, 0x68, 0x34, 0x97, 0xf4, 0xa3, + 0x90, 0xa5, 0xcc, 0x0a, 0xcf, 0x10, 0x39, 0x41, 0xa2, 0x93, 0x0d, 0xe0, 0xe7, 0x60, 0x7d, 0x52, + 0xa2, 0x5c, 0x04, 0x85, 0xc1, 0x97, 0x32, 0x3f, 0x30, 0x33, 0x05, 0x94, 0x22, 0xa0, 0x3b, 0xa3, + 0x59, 0x27, 0x26, 0xf0, 0xb7, 0xc1, 0x2b, 0x64, 0x94, 0xa0, 0x6f, 0xd0, 0x73, 0xac, 0xa7, 0x45, + 0x56, 0x48, 0x73, 0x87, 0xd3, 0x48, 0x79, 0x69, 0x66, 0x68, 0x35, 0x45, 0x40, 0xf7, 0x47, 0xc0, + 0x26, 0x5b, 0xef, 0x5f, 0x05, 0x97, 0x79, 0x80, 0x4f, 0x2e, 0xcd, 0x17, 0x8a, 0x73, 0xfe, 0x77, + 0x3b, 0x3e, 0x24, 0x77, 0x28, 0x8b, 0xcf, 0x45, 0x1c, 0x70, 0xe7, 0x8f, 0x57, 0x92, 0xff, 0xbc, + 0x45, 0x6f, 0x23, 0xb8, 0x09, 0x56, 0x6b, 0x75, 0x55, 0x6a, 0xbc, 0x90, 0x11, 0x46, 0xb2, 0xda, + 0x68, 0x23, 0x49, 0xc6, 0xed, 0x13, 0xb5, 0x29, 0x4b, 0xf5, 0x83, 0xba, 0x5c, 0x2b, 0x0a, 0x70, + 0x05, 0x94, 0xc6, 0x4d,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6f, 0x64, 0xc4, 0x41, 0x72, 0xad, + 0x3e, 0xbc, 0xf4, 0x0b, 0x79, 0x17, 0xe5, 0x50, 0x6a, 0x16, 0x17, 0x73, 0x2d, 0x8a, 0x6f, 0x59, + 0xcc, 0x5d, 0x1e, 0xdf, 0xfa, 0xdd, 0x9d, 0xdf, 0x89, 0x60, 0x61, 0xf8, 0x5f, 0xbc, 0x70, 0x1d, + 0x2c, 0xc7, 0x0e, 0xd4, 0x56, 0xb5, 0xd5, 0x56, 0x47, 0x1e, 0x94, 0x65, 0x70, 0x7b, 0xd4, 0x40, + 0x6d, 0x4b, 0x92, 0xac, 0xaa, 0x45, 0x71, 0xe2, 0xe0, 0xf3, 0x7a, 0xb3, 0x29, 0xd7, 0x8a, 0x05, + 0xb8, 0x04, 0xde, 0x1b, 0x1d, 0x94, 0x11, 0x6a, 0xa0, 0xe2, 0xdc, 0xa4, 0x79, 0xd5, 0xfd, 0x06, + 0xe2, 0x7b, 0x7e, 0xff, 0x7b, 0x7f, 0x7d, 0xb3, 0x26, 0xfe, 0xed, 0xcd, 0x9a, 0xf8, 0xf7, 0x37, + 0x6b, 0xe2, 0x77, 0x1b, 0x1d, 0x83, 0xbd, 0xf4, 0x4e, 0x77, 0x35, 0xbb, 0x5b, 0xe9, 0x38, 0xa4, + 0x6f, 0x04, 0xaf, 0x0a, 0x62, 0x56, 0xe2, 0x5f, 0x7e, 0x90, 0x9e, 0x51, 0xe9, 0x50, 0xab, 0xc2, + 0x7f, 0xe6, 0x51, 0xe9, 0xd8, 0x23, 0x3f, 0x05, 0x79, 0x9a, 0xba, 0xec, 0xef, 0x9d, 0x5e, 0xe1, + 0x66, 0x1f, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x68, 0x31, 0xe6, 0x0a, 0x3a, 0x22, 0x00, 0x00, } func (m *UIBannerClickEvent) Marshal() (dAtA []byte, err error) { diff --git a/api/proto/teleport/attestation/v1/attestation.proto b/api/proto/teleport/attestation/v1/attestation.proto index 2b91ed1aa1828..abbd1ee458c64 100644 --- a/api/proto/teleport/attestation/v1/attestation.proto +++ b/api/proto/teleport/attestation/v1/attestation.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package teleport.attestation.v1; -option go_package = "github.com/gravitational/teleport/api/gen/proto/go/attestation/v1"; +option go_package = "github.com/gravitational/teleport/api/gen/proto/go/attestation/v1;attestation"; // AttestationStatement is an attestation statement for a hardware private key. message AttestationStatement { diff --git a/api/proto/teleport/loginrule/v1/loginrule.proto b/api/proto/teleport/loginrule/v1/loginrule.proto index ac7ebad737e9f..72c0e2fb8c0fa 100644 --- a/api/proto/teleport/loginrule/v1/loginrule.proto +++ b/api/proto/teleport/loginrule/v1/loginrule.proto @@ -19,7 +19,7 @@ package teleport.loginrule.v1; import "teleport/legacy/types/types.proto"; import "teleport/legacy/types/wrappers/wrappers.proto"; -option go_package = "github.com/gravitational/teleport/api/gen/proto/go/teleport/loginrule/v1"; +option go_package = "github.com/gravitational/teleport/api/gen/proto/go/teleport/loginrule/v1;loginrulev1"; // LoginRule is a resource to configure rules and logic which should run during // Teleport user login. diff --git a/api/proto/teleport/loginrule/v1/loginrule_service.proto b/api/proto/teleport/loginrule/v1/loginrule_service.proto index ac2fd63b9fb14..be21666327c90 100644 --- a/api/proto/teleport/loginrule/v1/loginrule_service.proto +++ b/api/proto/teleport/loginrule/v1/loginrule_service.proto @@ -19,7 +19,7 @@ package teleport.loginrule.v1; import "google/protobuf/empty.proto"; import "teleport/loginrule/v1/loginrule.proto"; -option go_package = "github.com/gravitational/teleport/api/gen/proto/go/teleport/loginrule/v1"; +option go_package = "github.com/gravitational/teleport/api/gen/proto/go/teleport/loginrule/v1;loginrulev1"; // LoginRuleService provides CRUD methods for the LoginRule resource. service LoginRuleService { diff --git a/api/proto/teleport/usageevents/v1/usageevents.proto b/api/proto/teleport/usageevents/v1/usageevents.proto index 0bb238e7683f8..2f13f76e18e6e 100644 --- a/api/proto/teleport/usageevents/v1/usageevents.proto +++ b/api/proto/teleport/usageevents/v1/usageevents.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package teleport.usageevents.v1; -option go_package = "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1"; +option go_package = "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1;usageeventsv1"; // UIBannerClickEvent is a usage event sent by the UI when the upgrade // banner is clicked. diff --git a/buf-connect-go.gen.yaml b/buf-connect-go.gen.yaml index e642b049138e7..115009d95967e 100644 --- a/buf-connect-go.gen.yaml +++ b/buf-connect-go.gen.yaml @@ -1,8 +1,16 @@ version: v1 plugins: - name: go - path: lib/prehog/bin/protoc-gen-go + path: + - go + - run + - google.golang.org/protobuf/cmd/protoc-gen-go out: . + opt: module=github.com/gravitational/teleport - name: connect-go - path: lib/prehog/bin/protoc-gen-connect-go + path: + - go + - run + - github.com/bufbuild/connect-go/cmd/protoc-gen-connect-go out: . + opt: module=github.com/gravitational/teleport diff --git a/buf-go.gen.yaml b/buf-go.gen.yaml index f5a59f2e3c7d9..8658cd3947a64 100644 --- a/buf-go.gen.yaml +++ b/buf-go.gen.yaml @@ -1,12 +1,11 @@ -# This buf-go.gen.yaml is based on how lib/teleterm's buf.gen.yaml looked like, not on v12 equivalent. version: v1 plugins: - # Generated using an old version of protoc-gen-go - we can't use the latest - # plugins because Teleport itself depends on an old google.golang.org/grpc - # version. - # protoc itself may be the latest one. - # $ go install github.com/golang/protobuf/protoc-gen-go@v1.4.3 - name: go + path: + - go + - run + - github.com/golang/protobuf/protoc-gen-go out: . opt: - plugins=grpc + - module=github.com/gravitational/teleport diff --git a/buf-gogo.gen.yaml b/buf-gogo.gen.yaml index 0f1a13f064c74..be4708733309e 100644 --- a/buf-gogo.gen.yaml +++ b/buf-gogo.gen.yaml @@ -1,5 +1,5 @@ version: v1 plugins: - name: gogofast - out: . + out: ./gogogen opt: plugins=grpc diff --git a/build.assets/Dockerfile b/build.assets/Dockerfile index c74224c9aff07..ad726b01d7125 100644 --- a/build.assets/Dockerfile +++ b/build.assets/Dockerfile @@ -241,7 +241,6 @@ RUN (npm install --global grpc_tools_node_protoc_ts@5.0.1 grpc-tools@1.12.4) # Install protobuf and grpc build tools. ARG PROTOC_VER ARG GOGO_PROTO_TAG -ENV GOGOPROTO_ROOT ${GOPATH}/src/github.com/gogo/protobuf RUN (export PROTOC_TARBALL=protoc-${PROTOC_VER}-linux-$(if [ "$BUILDARCH" = "amd64" ]; then echo "x86_64"; else echo "aarch_64"; fi).zip && \ curl -fsSL -o /tmp/${PROTOC_TARBALL} https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/${PROTOC_TARBALL} && \ @@ -249,13 +248,7 @@ RUN (export PROTOC_TARBALL=protoc-${PROTOC_VER}-linux-$(if [ "$BUILDARCH" = "amd chmod -R a+r /usr/local/include/google/protobuf && \ chmod -R a+xr /usr/local/bin/protoc && \ rm /tmp/${PROTOC_TARBALL}) -RUN (git clone https://github.com/gogo/protobuf.git --branch ${GOGO_PROTO_TAG} --depth 1 ${GOPATH}/src/github.com/gogo/protobuf && \ - cd ${GOPATH}/src/github.com/gogo/protobuf && \ - make install && \ - make clean) -ENV PROTO_INCLUDE "/usr/local/include":"/go/src":"/go/src/github.com/gogo/protobuf/protobuf":"${GOGOPROTO_ROOT}":"${GOGOPROTO_ROOT}/protobuf" -# Install protoc-gen-go for lib/teleterm as #17267 and #17302 were not backported to v11. -RUN go install github.com/golang/protobuf/protoc-gen-go@v1.4.3 +RUN go install github.com/gogo/protobuf/protoc-gen-gogofast@${GOGO_PROTO_TAG} # Install addlicense. RUN go install github.com/google/addlicense@v1.0.0 diff --git a/build.assets/genproto.sh b/build.assets/genproto.sh index a5281a6f216a4..82d3c90b03bcf 100755 --- a/build.assets/genproto.sh +++ b/build.assets/genproto.sh @@ -7,15 +7,22 @@ main() { cd "$(dirname "$0")" # ./build-assets/ cd ../ # teleport root - # Generated protos are written to - # /github.com/gravitational/teleport/..., so we copy them to - # the correct relative path. - trap 'rm -fr github.com' EXIT # don't leave github.com/ behind - rm -fr api/gen/proto gen/proto # cleanup gen/proto folders - - # Generate Gogo protos. - buf generate --template=buf-gogo.gen.yaml api/proto - buf generate --template=buf-gogo.gen.yaml proto + # Clean gen/proto directories before regenerating them. Legacy protos are + # generated all over the directory tree, so they won't get cleaned up + # automatically if the proto is deleted. + rm -fr api/gen/proto gen/proto + + # Generate Gogo protos. Generated protos are written to + # gogogen/github.com/gravitational/teleport/..., so we copy them to the + # correct relative path. This is in lieu of the module= option, which would do + # this for us (and which is what we use for the non-gogo protogen). + rm -fr gogogen + trap 'rm -fr gogogen' EXIT # don't leave files behind + buf generate --template=buf-gogo.gen.yaml + cp -r gogogen/github.com/gravitational/teleport/. . + # error out if there's anything outside of github.com/gravitational/teleport + rm -fr gogogen/github.com/gravitational/teleport + rmdir gogogen/github.com/gravitational gogogen/github.com gogogen # Generate protoc-gen-go protos. buf generate --template=buf-go.gen.yaml \ @@ -28,8 +35,6 @@ main() { # Generate JS protos. buf generate --template=buf-js.gen.yaml \ --path=proto/teleport/lib/teleterm/ - - cp -r github.com/gravitational/teleport/* . } main "$@" diff --git a/e_imports.go b/e_imports.go index c5d9bf9fe3271..4f207eaa78744 100644 --- a/e_imports.go +++ b/e_imports.go @@ -1,4 +1,4 @@ -//go:build eimports +//go:build e_imports && !e_imports // Copyright 2022 Gravitational, Inc // diff --git a/gen/proto/go/prehog/v1alpha/v1alphaconnect/teleport.connect.go b/gen/proto/go/prehog/v1alpha/prehogv1alphaconnect/teleport.connect.go similarity index 99% rename from gen/proto/go/prehog/v1alpha/v1alphaconnect/teleport.connect.go rename to gen/proto/go/prehog/v1alpha/prehogv1alphaconnect/teleport.connect.go index a064e55645752..416286f61e2d2 100644 --- a/gen/proto/go/prehog/v1alpha/v1alphaconnect/teleport.connect.go +++ b/gen/proto/go/prehog/v1alpha/prehogv1alphaconnect/teleport.connect.go @@ -2,7 +2,7 @@ // // Source: prehog/v1alpha/teleport.proto -package v1alphaconnect +package prehogv1alphaconnect import ( context "context" diff --git a/gen/proto/go/prehog/v1alpha/teleport.pb.go b/gen/proto/go/prehog/v1alpha/teleport.pb.go index 0260b3854543d..6839f8f807e0d 100644 --- a/gen/proto/go/prehog/v1alpha/teleport.pb.go +++ b/gen/proto/go/prehog/v1alpha/teleport.pb.go @@ -18,7 +18,7 @@ // protoc (unknown) // source: prehog/v1alpha/teleport.proto -package v1alpha +package prehogv1alpha import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -3842,11 +3842,12 @@ var file_prehog_v1alpha_teleport_proto_rawDesc = []byte{ 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x4d, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x67, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/access_request.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/access_request.pb.go index a899d0ba1c8d9..0e05d8f0cfbdd 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/access_request.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/access_request.pb.go @@ -14,14 +14,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/access_request.proto -package v1 +package teletermv1 import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" @@ -36,10 +35,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - type AccessRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -510,13 +505,13 @@ var file_teleport_lib_teleterm_v1_access_request_proto_rawDesc = []byte{ 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x49, - 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x54, + 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x72, 0x6d, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/auth_settings.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/auth_settings.pb.go index 647cc493d6a3e..8ff0ae7a19877 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/auth_settings.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/auth_settings.pb.go @@ -14,14 +14,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/auth_settings.proto -package v1 +package teletermv1 import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -35,10 +34,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // AuthSettings contains the form of authentication the auth server supports. type AuthSettings struct { state protoimpl.MessageState @@ -258,12 +253,13 @@ var file_teleport_lib_teleterm_v1_auth_settings_proto_rawDesc = []byte{ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x49, 0x5a, - 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, + 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x54, 0x5a, + 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, + 0x6d, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/cluster.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/cluster.pb.go index fe5d6d47db0dd..5d2ca50bcee3b 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/cluster.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/cluster.pb.go @@ -14,14 +14,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/cluster.proto -package v1 +package teletermv1 import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -35,10 +34,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // Cluster describes cluster fields type Cluster struct { state protoimpl.MessageState @@ -638,12 +633,12 @@ var file_teleport_lib_teleterm_v1_cluster_proto_rawDesc = []byte{ 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x73, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x77, 0x73, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, - 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/database.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/database.pb.go index 190bad323ce07..b8da49db56f86 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/database.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/database.pb.go @@ -14,14 +14,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/database.proto -package v1 +package teletermv1 import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -35,10 +34,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // Database describes a database type Database struct { state protoimpl.MessageState @@ -174,12 +169,13 @@ var file_teleport_lib_teleterm_v1_database_proto_rawDesc = []byte{ 0x12, 0x37, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, + 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, - 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/gateway.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/gateway.pb.go index ba5d14be916fe..045274d476075 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/gateway.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/gateway.pb.go @@ -14,14 +14,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/gateway.proto -package v1 +package teletermv1 import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -35,10 +34,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // Gateway is Teleterm's name for a connection to a resource like a database or a web app // established through our ALPN proxy. // @@ -199,12 +194,13 @@ var file_teleport_lib_teleterm_v1_gateway_proto_rawDesc = []byte{ 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x62, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/kube.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/kube.pb.go index d053cea8e7421..ff56d25e408e9 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/kube.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/kube.pb.go @@ -14,14 +14,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/kube.proto -package v1 +package teletermv1 import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -35,10 +34,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // Kube describes connected Kubernetes cluster type Kube struct { state protoimpl.MessageState @@ -121,12 +116,13 @@ var file_teleport_lib_teleterm_v1_kube_proto_rawDesc = []byte{ 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x49, 0x5a, 0x47, + 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, + 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/label.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/label.pb.go index 364792d628880..ed18faa119b88 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/label.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/label.pb.go @@ -14,14 +14,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/label.proto -package v1 +package teletermv1 import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -35,10 +34,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // Label describes a label type Label struct { state protoimpl.MessageState @@ -107,12 +102,13 @@ var file_teleport_lib_teleterm_v1_label_proto_rawDesc = []byte{ 0x22, 0x31, 0x0a, 0x05, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6c, 0x75, 0x65, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, - 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/server.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/server.pb.go index 6e4f5af7caac3..6351462b41289 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/server.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/server.pb.go @@ -14,14 +14,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/server.proto -package v1 +package teletermv1 import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -35,10 +34,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // Server describes connected Server type Server struct { state protoimpl.MessageState @@ -153,12 +148,13 @@ var file_teleport_lib_teleterm_v1_server_proto_rawDesc = []byte{ 0x12, 0x37, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, + 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, - 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/service.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/service.pb.go index a19c3b4dbc513..7d74437460964 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/service.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/service.pb.go @@ -14,15 +14,14 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/service.proto -package v1 +package teletermv1 import ( context "context" - proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -39,10 +38,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - // PasswordlessPrompt describes different prompts we need from users // during the passwordless login flow. type PasswordlessPrompt int32 @@ -3465,12 +3460,13 @@ var file_teleport_lib_teleterm_v1_service_proto_rawDesc = []byte{ 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x30, 0x01, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x65, 0x73, 0x73, 0x30, 0x01, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x3b, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service.pb.go b/gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service.pb.go index 44d8e275a0c87..fc40392287b26 100644 --- a/gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service.pb.go +++ b/gen/proto/go/teleport/lib/teleterm/v1/tshd_events_service.pb.go @@ -14,15 +14,14 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.23.0 +// protoc-gen-go v1.28.1 // protoc (unknown) // source: teleport/lib/teleterm/v1/tshd_events_service.proto -package v1 +package teletermv1 import ( context "context" - proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -39,10 +38,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - type ReloginRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -448,12 +443,13 @@ var file_teleport_lib_teleterm_v1_tshd_events_service_proto_rawDesc = []byte{ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x49, 0x5a, 0x47, 0x67, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/lib/prehog/bin/protoc-gen-connect-go b/lib/prehog/bin/protoc-gen-connect-go deleted file mode 100755 index e9da1bd9b59b7..0000000000000 --- a/lib/prehog/bin/protoc-gen-connect-go +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# uses the version from go.mod -exec go run github.com/bufbuild/connect-go/cmd/protoc-gen-connect-go "$@" diff --git a/lib/prehog/bin/protoc-gen-go b/lib/prehog/bin/protoc-gen-go deleted file mode 100755 index 7dd2a7909d712..0000000000000 --- a/lib/prehog/bin/protoc-gen-go +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# uses the version from go.mod -exec go run google.golang.org/protobuf/cmd/protoc-gen-go "$@" diff --git a/lib/usagereporter/teleport/types.go b/lib/usagereporter/teleport/types.go index 14ea4ccbf6052..9bacb62fd4b30 100644 --- a/lib/usagereporter/teleport/types.go +++ b/lib/usagereporter/teleport/types.go @@ -22,7 +22,7 @@ import ( "github.com/gravitational/teleport" usageeventsv1 "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1" - prehogv1 "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" + prehogv1a "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" "github.com/gravitational/teleport/lib/utils" ) @@ -30,17 +30,17 @@ import ( type Anonymizable interface { // Anonymize uses the given anonymizer to anonymize the event and converts // it into a partially filled SubmitEventRequest. - Anonymize(utils.Anonymizer) prehogv1.SubmitEventRequest + Anonymize(utils.Anonymizer) prehogv1a.SubmitEventRequest } // UserLoginEvent is an event emitted when a user logs into Teleport, // potentially via SSO. -type UserLoginEvent prehogv1.UserLoginEvent +type UserLoginEvent prehogv1a.UserLoginEvent -func (u *UserLoginEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UserLogin{ - UserLogin: &prehogv1.UserLoginEvent{ +func (u *UserLoginEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UserLogin{ + UserLogin: &prehogv1a.UserLoginEvent{ UserName: a.AnonymizeString(u.UserName), ConnectorType: u.ConnectorType, }, @@ -49,12 +49,12 @@ func (u *UserLoginEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventReque } // SSOCreateEvent is emitted when an SSO connector has been created. -type SSOCreateEvent prehogv1.SSOCreateEvent +type SSOCreateEvent prehogv1a.SSOCreateEvent -func (u *SSOCreateEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_SsoCreate{ - SsoCreate: &prehogv1.SSOCreateEvent{ +func (u *SSOCreateEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_SsoCreate{ + SsoCreate: &prehogv1a.SSOCreateEvent{ ConnectorType: u.ConnectorType, }, }, @@ -63,12 +63,12 @@ func (u *SSOCreateEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventReque // SessionStartEvent is an event emitted when some Teleport session has started // (ssh, etc). -type SessionStartEvent prehogv1.SessionStartEvent +type SessionStartEvent prehogv1a.SessionStartEvent -func (u *SessionStartEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_SessionStartV2{ - SessionStartV2: &prehogv1.SessionStartEvent{ +func (u *SessionStartEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_SessionStartV2{ + SessionStartV2: &prehogv1a.SessionStartEvent{ UserName: a.AnonymizeString(u.UserName), SessionType: u.SessionType, }, @@ -78,12 +78,12 @@ func (u *SessionStartEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRe // ResourceCreateEvent is an event emitted when various resource types have been // created. -type ResourceCreateEvent prehogv1.ResourceCreateEvent +type ResourceCreateEvent prehogv1a.ResourceCreateEvent -func (u *ResourceCreateEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_ResourceCreate{ - ResourceCreate: &prehogv1.ResourceCreateEvent{ +func (u *ResourceCreateEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_ResourceCreate{ + ResourceCreate: &prehogv1a.ResourceCreateEvent{ ResourceType: u.ResourceType, }, }, @@ -91,12 +91,12 @@ func (u *ResourceCreateEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEvent } // UIBannerClickEvent is a UI event sent when a banner is clicked. -type UIBannerClickEvent prehogv1.UIBannerClickEvent +type UIBannerClickEvent prehogv1a.UIBannerClickEvent -func (u *UIBannerClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiBannerClick{ - UiBannerClick: &prehogv1.UIBannerClickEvent{ +func (u *UIBannerClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiBannerClick{ + UiBannerClick: &prehogv1a.UIBannerClickEvent{ UserName: a.AnonymizeString(u.UserName), Alert: u.Alert, }, @@ -106,12 +106,12 @@ func (u *UIBannerClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventR // UIOnboardCompleteGoToDashboardClickEvent is a UI event sent when // onboarding is complete. -type UIOnboardCompleteGoToDashboardClickEvent prehogv1.UIOnboardCompleteGoToDashboardClickEvent +type UIOnboardCompleteGoToDashboardClickEvent prehogv1a.UIOnboardCompleteGoToDashboardClickEvent -func (u *UIOnboardCompleteGoToDashboardClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiOnboardCompleteGoToDashboardClick{ - UiOnboardCompleteGoToDashboardClick: &prehogv1.UIOnboardCompleteGoToDashboardClickEvent{ +func (u *UIOnboardCompleteGoToDashboardClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiOnboardCompleteGoToDashboardClick{ + UiOnboardCompleteGoToDashboardClick: &prehogv1a.UIOnboardCompleteGoToDashboardClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -120,12 +120,12 @@ func (u *UIOnboardCompleteGoToDashboardClickEvent) Anonymize(a utils.Anonymizer) // UIOnboardAddFirstResourceClickEvent is a UI event sent when a user // clicks the "add first resource" button. -type UIOnboardAddFirstResourceClickEvent prehogv1.UIOnboardAddFirstResourceClickEvent +type UIOnboardAddFirstResourceClickEvent prehogv1a.UIOnboardAddFirstResourceClickEvent -func (u *UIOnboardAddFirstResourceClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiOnboardAddFirstResourceClick{ - UiOnboardAddFirstResourceClick: &prehogv1.UIOnboardAddFirstResourceClickEvent{ +func (u *UIOnboardAddFirstResourceClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiOnboardAddFirstResourceClick{ + UiOnboardAddFirstResourceClick: &prehogv1a.UIOnboardAddFirstResourceClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -134,12 +134,12 @@ func (u *UIOnboardAddFirstResourceClickEvent) Anonymize(a utils.Anonymizer) preh // UIOnboardAddFirstResourceLaterClickEvent is a UI event sent when a user // clicks the "add first resource later" button. -type UIOnboardAddFirstResourceLaterClickEvent prehogv1.UIOnboardAddFirstResourceLaterClickEvent +type UIOnboardAddFirstResourceLaterClickEvent prehogv1a.UIOnboardAddFirstResourceLaterClickEvent -func (u *UIOnboardAddFirstResourceLaterClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiOnboardAddFirstResourceLaterClick{ - UiOnboardAddFirstResourceLaterClick: &prehogv1.UIOnboardAddFirstResourceLaterClickEvent{ +func (u *UIOnboardAddFirstResourceLaterClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiOnboardAddFirstResourceLaterClick{ + UiOnboardAddFirstResourceLaterClick: &prehogv1a.UIOnboardAddFirstResourceLaterClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -148,12 +148,12 @@ func (u *UIOnboardAddFirstResourceLaterClickEvent) Anonymize(a utils.Anonymizer) // UIOnboardSetCredentialSubmitEvent is an UI event sent during registration // when the user configures login credentials. -type UIOnboardSetCredentialSubmitEvent prehogv1.UIOnboardSetCredentialSubmitEvent +type UIOnboardSetCredentialSubmitEvent prehogv1a.UIOnboardSetCredentialSubmitEvent -func (u *UIOnboardSetCredentialSubmitEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiOnboardSetCredentialSubmit{ - UiOnboardSetCredentialSubmit: &prehogv1.UIOnboardSetCredentialSubmitEvent{ +func (u *UIOnboardSetCredentialSubmitEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiOnboardSetCredentialSubmit{ + UiOnboardSetCredentialSubmit: &prehogv1a.UIOnboardSetCredentialSubmitEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -162,12 +162,12 @@ func (u *UIOnboardSetCredentialSubmitEvent) Anonymize(a utils.Anonymizer) prehog // UIOnboardRegisterChallengeSubmitEvent is a UI event sent during registration // when the MFA challenge is completed. -type UIOnboardRegisterChallengeSubmitEvent prehogv1.UIOnboardRegisterChallengeSubmitEvent +type UIOnboardRegisterChallengeSubmitEvent prehogv1a.UIOnboardRegisterChallengeSubmitEvent -func (u *UIOnboardRegisterChallengeSubmitEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiOnboardRegisterChallengeSubmit{ - UiOnboardRegisterChallengeSubmit: &prehogv1.UIOnboardRegisterChallengeSubmitEvent{ +func (u *UIOnboardRegisterChallengeSubmitEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiOnboardRegisterChallengeSubmit{ + UiOnboardRegisterChallengeSubmit: &prehogv1a.UIOnboardRegisterChallengeSubmitEvent{ UserName: a.AnonymizeString(u.UserName), MfaType: u.MfaType, LoginFlow: u.LoginFlow, @@ -177,12 +177,12 @@ func (u *UIOnboardRegisterChallengeSubmitEvent) Anonymize(a utils.Anonymizer) pr } // UIRecoveryCodesContinueClickEvent is a UI event sent when a user configures recovery codes. -type UIRecoveryCodesContinueClickEvent prehogv1.UIRecoveryCodesContinueClickEvent +type UIRecoveryCodesContinueClickEvent prehogv1a.UIRecoveryCodesContinueClickEvent -func (u *UIRecoveryCodesContinueClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiRecoveryCodesContinueClick{ - UiRecoveryCodesContinueClick: &prehogv1.UIRecoveryCodesContinueClickEvent{ +func (u *UIRecoveryCodesContinueClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiRecoveryCodesContinueClick{ + UiRecoveryCodesContinueClick: &prehogv1a.UIRecoveryCodesContinueClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -190,12 +190,12 @@ func (u *UIRecoveryCodesContinueClickEvent) Anonymize(a utils.Anonymizer) prehog } // UIRecoveryCodesCopyClickEvent is a UI event sent when a user copies recovery codes. -type UIRecoveryCodesCopyClickEvent prehogv1.UIRecoveryCodesCopyClickEvent +type UIRecoveryCodesCopyClickEvent prehogv1a.UIRecoveryCodesCopyClickEvent -func (u *UIRecoveryCodesCopyClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiRecoveryCodesCopyClick{ - UiRecoveryCodesCopyClick: &prehogv1.UIRecoveryCodesCopyClickEvent{ +func (u *UIRecoveryCodesCopyClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiRecoveryCodesCopyClick{ + UiRecoveryCodesCopyClick: &prehogv1a.UIRecoveryCodesCopyClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -203,12 +203,12 @@ func (u *UIRecoveryCodesCopyClickEvent) Anonymize(a utils.Anonymizer) prehogv1.S } // UsageUIRecoveryCodesPrintClick is a UI event sent when a user prints recovery codes. -type UsageUIRecoveryCodesPrintClick prehogv1.UIRecoveryCodesPrintClickEvent +type UsageUIRecoveryCodesPrintClick prehogv1a.UIRecoveryCodesPrintClickEvent -func (u *UsageUIRecoveryCodesPrintClick) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiRecoveryCodesPrintClick{ - UiRecoveryCodesPrintClick: &prehogv1.UIRecoveryCodesPrintClickEvent{ +func (u *UsageUIRecoveryCodesPrintClick) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiRecoveryCodesPrintClick{ + UiRecoveryCodesPrintClick: &prehogv1a.UIRecoveryCodesPrintClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -216,17 +216,17 @@ func (u *UsageUIRecoveryCodesPrintClick) Anonymize(a utils.Anonymizer) prehogv1. } // RoleCreateEvent is an event emitted when a custom role is created. -type RoleCreateEvent prehogv1.RoleCreateEvent +type RoleCreateEvent prehogv1a.RoleCreateEvent -func (u *RoleCreateEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { +func (u *RoleCreateEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { role := u.RoleName if !slices.Contains(teleport.PresetRoles, u.RoleName) { role = a.AnonymizeString(u.RoleName) } - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_RoleCreate{ - RoleCreate: &prehogv1.RoleCreateEvent{ + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_RoleCreate{ + RoleCreate: &prehogv1a.RoleCreateEvent{ UserName: a.AnonymizeString(u.UserName), RoleName: role, }, @@ -235,12 +235,12 @@ func (u *RoleCreateEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequ } // UICreateNewRoleClickEvent is a UI event sent when a user prints recovery codes. -type UICreateNewRoleClickEvent prehogv1.UICreateNewRoleClickEvent +type UICreateNewRoleClickEvent prehogv1a.UICreateNewRoleClickEvent -func (u *UICreateNewRoleClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiCreateNewRoleClick{ - UiCreateNewRoleClick: &prehogv1.UICreateNewRoleClickEvent{ +func (u *UICreateNewRoleClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiCreateNewRoleClick{ + UiCreateNewRoleClick: &prehogv1a.UICreateNewRoleClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -248,12 +248,12 @@ func (u *UICreateNewRoleClickEvent) Anonymize(a utils.Anonymizer) prehogv1.Submi } // UICreateNewRoleSaveClickEvent is a UI event sent when a user prints recovery codes. -type UICreateNewRoleSaveClickEvent prehogv1.UICreateNewRoleSaveClickEvent +type UICreateNewRoleSaveClickEvent prehogv1a.UICreateNewRoleSaveClickEvent -func (u *UICreateNewRoleSaveClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiCreateNewRoleSaveClick{ - UiCreateNewRoleSaveClick: &prehogv1.UICreateNewRoleSaveClickEvent{ +func (u *UICreateNewRoleSaveClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiCreateNewRoleSaveClick{ + UiCreateNewRoleSaveClick: &prehogv1a.UICreateNewRoleSaveClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -261,12 +261,12 @@ func (u *UICreateNewRoleSaveClickEvent) Anonymize(a utils.Anonymizer) prehogv1.S } // UICreateNewRoleCancelClickEvent is a UI event sent when a user prints recovery codes. -type UICreateNewRoleCancelClickEvent prehogv1.UICreateNewRoleCancelClickEvent +type UICreateNewRoleCancelClickEvent prehogv1a.UICreateNewRoleCancelClickEvent -func (u *UICreateNewRoleCancelClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiCreateNewRoleCancelClick{ - UiCreateNewRoleCancelClick: &prehogv1.UICreateNewRoleCancelClickEvent{ +func (u *UICreateNewRoleCancelClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiCreateNewRoleCancelClick{ + UiCreateNewRoleCancelClick: &prehogv1a.UICreateNewRoleCancelClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -274,12 +274,12 @@ func (u *UICreateNewRoleCancelClickEvent) Anonymize(a utils.Anonymizer) prehogv1 } // UICreateNewRoleViewDocumentationClickEvent is a UI event sent when a user prints recovery codes. -type UICreateNewRoleViewDocumentationClickEvent prehogv1.UICreateNewRoleViewDocumentationClickEvent +type UICreateNewRoleViewDocumentationClickEvent prehogv1a.UICreateNewRoleViewDocumentationClickEvent -func (u *UICreateNewRoleViewDocumentationClickEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiCreateNewRoleViewDocumentationClick{ - UiCreateNewRoleViewDocumentationClick: &prehogv1.UICreateNewRoleViewDocumentationClickEvent{ +func (u *UICreateNewRoleViewDocumentationClickEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiCreateNewRoleViewDocumentationClick{ + UiCreateNewRoleViewDocumentationClick: &prehogv1a.UICreateNewRoleViewDocumentationClickEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -288,12 +288,12 @@ func (u *UICreateNewRoleViewDocumentationClickEvent) Anonymize(a utils.Anonymize // UserCertificateIssuedEvent is an event emitted when a certificate has been // issued, used to track the duration and restriction. -type UserCertificateIssuedEvent prehogv1.UserCertificateIssuedEvent +type UserCertificateIssuedEvent prehogv1a.UserCertificateIssuedEvent -func (u *UserCertificateIssuedEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UserCertificateIssuedEvent{ - UserCertificateIssuedEvent: &prehogv1.UserCertificateIssuedEvent{ +func (u *UserCertificateIssuedEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UserCertificateIssuedEvent{ + UserCertificateIssuedEvent: &prehogv1a.UserCertificateIssuedEvent{ UserName: a.AnonymizeString(u.UserName), Ttl: u.Ttl, IsBot: u.IsBot, @@ -308,12 +308,12 @@ func (u *UserCertificateIssuedEvent) Anonymize(a utils.Anonymizer) prehogv1.Subm // KubeRequestEvent is an event emitted when a Kubernetes API request is // handled. -type KubeRequestEvent prehogv1.KubeRequestEvent +type KubeRequestEvent prehogv1a.KubeRequestEvent -func (u *KubeRequestEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_KubeRequest{ - KubeRequest: &prehogv1.KubeRequestEvent{ +func (u *KubeRequestEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_KubeRequest{ + KubeRequest: &prehogv1a.KubeRequestEvent{ UserName: a.AnonymizeString(u.UserName), }, }, @@ -321,12 +321,12 @@ func (u *KubeRequestEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventReq } // SFTPEvent is an event emitted for each file operation in a SFTP connection. -type SFTPEvent prehogv1.SFTPEvent +type SFTPEvent prehogv1a.SFTPEvent -func (u *SFTPEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_Sftp{ - Sftp: &prehogv1.SFTPEvent{ +func (u *SFTPEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_Sftp{ + Sftp: &prehogv1a.SFTPEvent{ UserName: a.AnonymizeString(u.UserName), Action: u.Action, }, @@ -335,12 +335,12 @@ func (u *SFTPEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { } // AgentMetadataEvent is an event emitted after an agent first connects to the auth server. -type AgentMetadataEvent prehogv1.AgentMetadataEvent +type AgentMetadataEvent prehogv1a.AgentMetadataEvent -func (u *AgentMetadataEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_AgentMetadataEvent{ - AgentMetadataEvent: &prehogv1.AgentMetadataEvent{ +func (u *AgentMetadataEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_AgentMetadataEvent{ + AgentMetadataEvent: &prehogv1a.AgentMetadataEvent{ Version: u.Version, HostId: a.AnonymizeString(u.HostId), Services: u.Services, diff --git a/lib/usagereporter/teleport/types_discover.go b/lib/usagereporter/teleport/types_discover.go index ef92ba6dfbe47..11a27f27d295c 100644 --- a/lib/usagereporter/teleport/types_discover.go +++ b/lib/usagereporter/teleport/types_discover.go @@ -20,18 +20,18 @@ import ( "github.com/gravitational/trace" usageeventsv1 "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1" - prehogv1 "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" + prehogv1a "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" "github.com/gravitational/teleport/lib/utils" ) -func discoverMetadataToPrehog(u *usageeventsv1.DiscoverMetadata, identityUsername string) *prehogv1.DiscoverMetadata { - return &prehogv1.DiscoverMetadata{ +func discoverMetadataToPrehog(u *usageeventsv1.DiscoverMetadata, identityUsername string) *prehogv1a.DiscoverMetadata { + return &prehogv1a.DiscoverMetadata{ Id: u.Id, UserName: identityUsername, } } -func validateDiscoverMetadata(u *prehogv1.DiscoverMetadata) error { +func validateDiscoverMetadata(u *prehogv1a.DiscoverMetadata) error { if u == nil { return trace.BadParameter("metadata is required") } @@ -43,48 +43,48 @@ func validateDiscoverMetadata(u *prehogv1.DiscoverMetadata) error { return nil } -func discoverResourceToPrehog(u *usageeventsv1.DiscoverResourceMetadata) *prehogv1.DiscoverResourceMetadata { - return &prehogv1.DiscoverResourceMetadata{ - Resource: prehogv1.DiscoverResource(u.Resource), +func discoverResourceToPrehog(u *usageeventsv1.DiscoverResourceMetadata) *prehogv1a.DiscoverResourceMetadata { + return &prehogv1a.DiscoverResourceMetadata{ + Resource: prehogv1a.DiscoverResource(u.Resource), } } -func validateDiscoverResourceMetadata(u *prehogv1.DiscoverResourceMetadata) error { +func validateDiscoverResourceMetadata(u *prehogv1a.DiscoverResourceMetadata) error { if u == nil { return trace.BadParameter("resource is required") } - if u.Resource == prehogv1.DiscoverResource_DISCOVER_RESOURCE_UNSPECIFIED { + if u.Resource == prehogv1a.DiscoverResource_DISCOVER_RESOURCE_UNSPECIFIED { return trace.BadParameter("invalid resource") } return nil } -func discoverStatusToPrehog(u *usageeventsv1.DiscoverStepStatus) *prehogv1.DiscoverStepStatus { - return &prehogv1.DiscoverStepStatus{ - Status: prehogv1.DiscoverStatus(u.Status), +func discoverStatusToPrehog(u *usageeventsv1.DiscoverStepStatus) *prehogv1a.DiscoverStepStatus { + return &prehogv1a.DiscoverStepStatus{ + Status: prehogv1a.DiscoverStatus(u.Status), Error: u.Error, } } -func validateDiscoverStatus(u *prehogv1.DiscoverStepStatus) error { +func validateDiscoverStatus(u *prehogv1a.DiscoverStepStatus) error { if u == nil { return trace.BadParameter("status is required") } - if u.Status == prehogv1.DiscoverStatus_DISCOVER_STATUS_UNSPECIFIED { + if u.Status == prehogv1a.DiscoverStatus_DISCOVER_STATUS_UNSPECIFIED { return trace.BadParameter("invalid status.status") } - if u.Status == prehogv1.DiscoverStatus_DISCOVER_STATUS_ERROR && len(u.Error) == 0 { + if u.Status == prehogv1a.DiscoverStatus_DISCOVER_STATUS_ERROR && len(u.Error) == 0 { return trace.BadParameter("status.error is required when status.status is ERROR") } return nil } -func validateDiscoverBaseEventFields(md *prehogv1.DiscoverMetadata, res *prehogv1.DiscoverResourceMetadata, st *prehogv1.DiscoverStepStatus) error { +func validateDiscoverBaseEventFields(md *prehogv1a.DiscoverMetadata, res *prehogv1a.DiscoverResourceMetadata, st *prehogv1a.DiscoverStepStatus) error { if err := validateDiscoverMetadata(md); err != nil { return trace.Wrap(err) } @@ -101,7 +101,7 @@ func validateDiscoverBaseEventFields(md *prehogv1.DiscoverMetadata, res *prehogv } // UIDiscoverStartedEvent is a UI event sent when a user starts the Discover Wizard. -type UIDiscoverStartedEvent prehogv1.UIDiscoverStartedEvent +type UIDiscoverStartedEvent prehogv1a.UIDiscoverStartedEvent func (u *UIDiscoverStartedEvent) CheckAndSetDefaults() error { if err := validateDiscoverMetadata(u.Metadata); err != nil { @@ -114,11 +114,11 @@ func (u *UIDiscoverStartedEvent) CheckAndSetDefaults() error { return nil } -func (u *UIDiscoverStartedEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverStartedEvent{ - UiDiscoverStartedEvent: &prehogv1.UIDiscoverStartedEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverStartedEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverStartedEvent{ + UiDiscoverStartedEvent: &prehogv1a.UIDiscoverStartedEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -129,17 +129,17 @@ func (u *UIDiscoverStartedEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEv } // UIDiscoverResourceSelectionEvent is a UI event sent when a user starts the Discover Wizard. -type UIDiscoverResourceSelectionEvent prehogv1.UIDiscoverResourceSelectionEvent +type UIDiscoverResourceSelectionEvent prehogv1a.UIDiscoverResourceSelectionEvent func (u *UIDiscoverResourceSelectionEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverResourceSelectionEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverResourceSelectionEvent{ - UiDiscoverResourceSelectionEvent: &prehogv1.UIDiscoverResourceSelectionEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverResourceSelectionEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverResourceSelectionEvent{ + UiDiscoverResourceSelectionEvent: &prehogv1a.UIDiscoverResourceSelectionEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -157,17 +157,17 @@ func (u *UIDiscoverResourceSelectionEvent) Anonymize(a utils.Anonymizer) prehogv // // For Database Access this step is the installation of the teleport 'install-db' script. // It can be skipped if the cluster already has a Database Service capable of proxying the database. -type UIDiscoverDeployServiceEvent prehogv1.UIDiscoverDeployServiceEvent +type UIDiscoverDeployServiceEvent prehogv1a.UIDiscoverDeployServiceEvent func (u *UIDiscoverDeployServiceEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverDeployServiceEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverDeployServiceEvent{ - UiDiscoverDeployServiceEvent: &prehogv1.UIDiscoverDeployServiceEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverDeployServiceEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverDeployServiceEvent{ + UiDiscoverDeployServiceEvent: &prehogv1a.UIDiscoverDeployServiceEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -180,17 +180,17 @@ func (u *UIDiscoverDeployServiceEvent) Anonymize(a utils.Anonymizer) prehogv1.Su // UIDiscoverDatabaseRegisterEvent is emitted when a user registers a database resource // and goes to the next step. -type UIDiscoverDatabaseRegisterEvent prehogv1.UIDiscoverDatabaseRegisterEvent +type UIDiscoverDatabaseRegisterEvent prehogv1a.UIDiscoverDatabaseRegisterEvent func (u *UIDiscoverDatabaseRegisterEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverDatabaseRegisterEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverDatabaseRegisterEvent{ - UiDiscoverDatabaseRegisterEvent: &prehogv1.UIDiscoverDatabaseRegisterEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverDatabaseRegisterEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverDatabaseRegisterEvent{ + UiDiscoverDatabaseRegisterEvent: &prehogv1a.UIDiscoverDatabaseRegisterEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -203,17 +203,17 @@ func (u *UIDiscoverDatabaseRegisterEvent) Anonymize(a utils.Anonymizer) prehogv1 // UIDiscoverDatabaseConfigureMTLSEvent is emitted when a user configures mutual TLS for self-hosted database // and goes to the next step. -type UIDiscoverDatabaseConfigureMTLSEvent prehogv1.UIDiscoverDatabaseConfigureMTLSEvent +type UIDiscoverDatabaseConfigureMTLSEvent prehogv1a.UIDiscoverDatabaseConfigureMTLSEvent func (u *UIDiscoverDatabaseConfigureMTLSEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverDatabaseConfigureMTLSEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverDatabaseConfigureMtlsEvent{ - UiDiscoverDatabaseConfigureMtlsEvent: &prehogv1.UIDiscoverDatabaseConfigureMTLSEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverDatabaseConfigureMTLSEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverDatabaseConfigureMtlsEvent{ + UiDiscoverDatabaseConfigureMtlsEvent: &prehogv1a.UIDiscoverDatabaseConfigureMTLSEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -226,17 +226,17 @@ func (u *UIDiscoverDatabaseConfigureMTLSEvent) Anonymize(a utils.Anonymizer) pre // UIDiscoverDesktopActiveDirectoryToolsInstallEvent is emitted when the user is asked to run the install Active Directory tools script. // This happens on the Desktop flow. -type UIDiscoverDesktopActiveDirectoryToolsInstallEvent prehogv1.UIDiscoverDesktopActiveDirectoryToolsInstallEvent +type UIDiscoverDesktopActiveDirectoryToolsInstallEvent prehogv1a.UIDiscoverDesktopActiveDirectoryToolsInstallEvent func (u *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverDesktopActiveDirectoryToolsInstallEvent{ - UiDiscoverDesktopActiveDirectoryToolsInstallEvent: &prehogv1.UIDiscoverDesktopActiveDirectoryToolsInstallEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverDesktopActiveDirectoryToolsInstallEvent{ + UiDiscoverDesktopActiveDirectoryToolsInstallEvent: &prehogv1a.UIDiscoverDesktopActiveDirectoryToolsInstallEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -249,17 +249,17 @@ func (u *UIDiscoverDesktopActiveDirectoryToolsInstallEvent) Anonymize(a utils.An // UIDiscoverDesktopActiveDirectoryConfigureEvent is emitted when the user is asked to run the Configure Active Directory script. // This happens on the Desktop flow. -type UIDiscoverDesktopActiveDirectoryConfigureEvent prehogv1.UIDiscoverDesktopActiveDirectoryConfigureEvent +type UIDiscoverDesktopActiveDirectoryConfigureEvent prehogv1a.UIDiscoverDesktopActiveDirectoryConfigureEvent func (u *UIDiscoverDesktopActiveDirectoryConfigureEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverDesktopActiveDirectoryConfigureEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverDesktopActiveDirectoryConfigureEvent{ - UiDiscoverDesktopActiveDirectoryConfigureEvent: &prehogv1.UIDiscoverDesktopActiveDirectoryConfigureEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverDesktopActiveDirectoryConfigureEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverDesktopActiveDirectoryConfigureEvent{ + UiDiscoverDesktopActiveDirectoryConfigureEvent: &prehogv1a.UIDiscoverDesktopActiveDirectoryConfigureEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -272,7 +272,7 @@ func (u *UIDiscoverDesktopActiveDirectoryConfigureEvent) Anonymize(a utils.Anony // UIDiscoverAutoDiscoveredResourcesEvent is emitted when the user is presented with the list of auto discovered resources. // resources_count field must contain the number of discovered resources when the user leaves the screen. -type UIDiscoverAutoDiscoveredResourcesEvent prehogv1.UIDiscoverAutoDiscoveredResourcesEvent +type UIDiscoverAutoDiscoveredResourcesEvent prehogv1a.UIDiscoverAutoDiscoveredResourcesEvent func (u *UIDiscoverAutoDiscoveredResourcesEvent) CheckAndSetDefaults() error { if u.ResourcesCount < 0 { @@ -281,11 +281,11 @@ func (u *UIDiscoverAutoDiscoveredResourcesEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverAutoDiscoveredResourcesEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ - UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1.UIDiscoverAutoDiscoveredResourcesEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverAutoDiscoveredResourcesEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1a.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -299,17 +299,17 @@ func (u *UIDiscoverAutoDiscoveredResourcesEvent) Anonymize(a utils.Anonymizer) p // UIDiscoverDatabaseConfigureIAMPolicyEvent is emitted when a user configured IAM for RDS database // and proceeded to the next step. -type UIDiscoverDatabaseConfigureIAMPolicyEvent prehogv1.UIDiscoverDatabaseConfigureIAMPolicyEvent +type UIDiscoverDatabaseConfigureIAMPolicyEvent prehogv1a.UIDiscoverDatabaseConfigureIAMPolicyEvent func (u *UIDiscoverDatabaseConfigureIAMPolicyEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverDatabaseConfigureIAMPolicyEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverDatabaseConfigureIamPolicyEvent{ - UiDiscoverDatabaseConfigureIamPolicyEvent: &prehogv1.UIDiscoverDatabaseConfigureIAMPolicyEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverDatabaseConfigureIAMPolicyEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverDatabaseConfigureIamPolicyEvent{ + UiDiscoverDatabaseConfigureIamPolicyEvent: &prehogv1a.UIDiscoverDatabaseConfigureIAMPolicyEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -322,17 +322,17 @@ func (u *UIDiscoverDatabaseConfigureIAMPolicyEvent) Anonymize(a utils.Anonymizer // UIDiscoverPrincipalsConfigureEvent emitted on "Setup Access" screen when user has updated their principals // and proceeded to the next step. -type UIDiscoverPrincipalsConfigureEvent prehogv1.UIDiscoverPrincipalsConfigureEvent +type UIDiscoverPrincipalsConfigureEvent prehogv1a.UIDiscoverPrincipalsConfigureEvent func (u *UIDiscoverPrincipalsConfigureEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverPrincipalsConfigureEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverPrincipalsConfigureEvent{ - UiDiscoverPrincipalsConfigureEvent: &prehogv1.UIDiscoverPrincipalsConfigureEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverPrincipalsConfigureEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverPrincipalsConfigureEvent{ + UiDiscoverPrincipalsConfigureEvent: &prehogv1a.UIDiscoverPrincipalsConfigureEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -345,17 +345,17 @@ func (u *UIDiscoverPrincipalsConfigureEvent) Anonymize(a utils.Anonymizer) preho // UIDiscoverTestConnectionEvent emitted on the "Test Connection" screen // when the user clicked tested connection to their resource. -type UIDiscoverTestConnectionEvent prehogv1.UIDiscoverTestConnectionEvent +type UIDiscoverTestConnectionEvent prehogv1a.UIDiscoverTestConnectionEvent func (u *UIDiscoverTestConnectionEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverTestConnectionEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverTestConnectionEvent{ - UiDiscoverTestConnectionEvent: &prehogv1.UIDiscoverTestConnectionEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverTestConnectionEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverTestConnectionEvent{ + UiDiscoverTestConnectionEvent: &prehogv1a.UIDiscoverTestConnectionEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, @@ -367,17 +367,17 @@ func (u *UIDiscoverTestConnectionEvent) Anonymize(a utils.Anonymizer) prehogv1.S } // UIDiscoverCompletedEvent is emitted when user completes the Discover wizard. -type UIDiscoverCompletedEvent prehogv1.UIDiscoverCompletedEvent +type UIDiscoverCompletedEvent prehogv1a.UIDiscoverCompletedEvent func (u *UIDiscoverCompletedEvent) CheckAndSetDefaults() error { return trace.Wrap(validateDiscoverBaseEventFields(u.Metadata, u.Resource, u.Status)) } -func (u *UIDiscoverCompletedEvent) Anonymize(a utils.Anonymizer) prehogv1.SubmitEventRequest { - return prehogv1.SubmitEventRequest{ - Event: &prehogv1.SubmitEventRequest_UiDiscoverCompletedEvent{ - UiDiscoverCompletedEvent: &prehogv1.UIDiscoverCompletedEvent{ - Metadata: &prehogv1.DiscoverMetadata{ +func (u *UIDiscoverCompletedEvent) Anonymize(a utils.Anonymizer) prehogv1a.SubmitEventRequest { + return prehogv1a.SubmitEventRequest{ + Event: &prehogv1a.SubmitEventRequest_UiDiscoverCompletedEvent{ + UiDiscoverCompletedEvent: &prehogv1a.UIDiscoverCompletedEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: u.Metadata.Id, UserName: a.AnonymizeString(u.Metadata.UserName), }, diff --git a/lib/usagereporter/teleport/usagereporter.go b/lib/usagereporter/teleport/usagereporter.go index e7b3483b7048d..78d8de161b84a 100644 --- a/lib/usagereporter/teleport/usagereporter.go +++ b/lib/usagereporter/teleport/usagereporter.go @@ -30,8 +30,8 @@ import ( "google.golang.org/protobuf/types/known/timestamppb" "github.com/gravitational/teleport/api/types" - prehogv1 "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" - prehogv1c "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha/v1alphaconnect" + prehogv1a "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" + prehogv1ac "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha/prehogv1alphaconnect" "github.com/gravitational/teleport/lib/defaults" "github.com/gravitational/teleport/lib/observability/metrics" "github.com/gravitational/teleport/lib/usagereporter" @@ -78,7 +78,7 @@ type UsageReporter interface { // anonymized with the cluster name. type TeleportUsageReporter struct { // usageReporter is an actual reporter that batches and sends events - usageReporter *usagereporter.UsageReporter[prehogv1.SubmitEventRequest] + usageReporter *usagereporter.UsageReporter[prehogv1a.SubmitEventRequest] // anonymizer is the anonymizer used for filtered audit events. anonymizer utils.Anonymizer // clusterName is the cluster's name, used for anonymization and as an event @@ -103,7 +103,7 @@ func (t *TeleportUsageReporter) Run(ctx context.Context) { t.usageReporter.Run(ctx) } -type SubmitFunc = usagereporter.SubmitFunc[prehogv1.SubmitEventRequest] +type SubmitFunc = usagereporter.SubmitFunc[prehogv1a.SubmitEventRequest] func NewTeleportUsageReporter(log logrus.FieldLogger, clusterName types.ClusterName, submitter SubmitFunc) (*TeleportUsageReporter, error) { if log == nil { @@ -122,7 +122,7 @@ func NewTeleportUsageReporter(log logrus.FieldLogger, clusterName types.ClusterN clock := clockwork.NewRealClock() - reporter := usagereporter.NewUsageReporter(&usagereporter.Options[prehogv1.SubmitEventRequest]{ + reporter := usagereporter.NewUsageReporter(&usagereporter.Options[prehogv1a.SubmitEventRequest]{ Log: log, Submit: submitter, MinBatchSize: usageReporterMinBatchSize, @@ -178,15 +178,15 @@ func NewPrehogSubmitter(ctx context.Context, prehogEndpoint string, clientCert * } httpClient.Timeout = 5 * time.Second - client := prehogv1c.NewTeleportReportingServiceClient(httpClient, prehogEndpoint) + client := prehogv1ac.NewTeleportReportingServiceClient(httpClient, prehogEndpoint) - return func(reporter *usagereporter.UsageReporter[prehogv1.SubmitEventRequest], events []*usagereporter.SubmittedEvent[prehogv1.SubmitEventRequest]) ([]*usagereporter.SubmittedEvent[prehogv1.SubmitEventRequest], error) { - evs := make([]*prehogv1.SubmitEventRequest, 0, len(events)) + return func(reporter *usagereporter.UsageReporter[prehogv1a.SubmitEventRequest], events []*usagereporter.SubmittedEvent[prehogv1a.SubmitEventRequest]) ([]*usagereporter.SubmittedEvent[prehogv1a.SubmitEventRequest], error) { + evs := make([]*prehogv1a.SubmitEventRequest, 0, len(events)) for _, e := range events { evs = append(evs, e.Event) } - req := connect.NewRequest(&prehogv1.SubmitEventsRequest{ + req := connect.NewRequest(&prehogv1a.SubmitEventsRequest{ Events: evs, }) if _, err := client.SubmitEvents(ctx, req); err != nil { diff --git a/lib/usagereporter/teleport/usagereporter_test.go b/lib/usagereporter/teleport/usagereporter_test.go index 419b545bad7e4..682917d186bf7 100644 --- a/lib/usagereporter/teleport/usagereporter_test.go +++ b/lib/usagereporter/teleport/usagereporter_test.go @@ -21,7 +21,7 @@ import ( "github.com/stretchr/testify/require" usageeventsv1 "github.com/gravitational/teleport/api/gen/proto/go/usageevents/v1" - prehogv1 "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" + prehogv1a "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha" "github.com/gravitational/teleport/lib/utils" ) @@ -36,7 +36,7 @@ func TestConvertUsageEvent(t *testing.T) { event *usageeventsv1.UsageEventOneOf identityUsername string errCheck require.ErrorAssertionFunc - expected *prehogv1.SubmitEventRequest + expected *prehogv1a.SubmitEventRequest }{ { name: "discover started event", @@ -48,13 +48,13 @@ func TestConvertUsageEvent(t *testing.T) { }}, identityUsername: "myuser", errCheck: require.NoError, - expected: &prehogv1.SubmitEventRequest{Event: &prehogv1.SubmitEventRequest_UiDiscoverStartedEvent{ - UiDiscoverStartedEvent: &prehogv1.UIDiscoverStartedEvent{ - Metadata: &prehogv1.DiscoverMetadata{ + expected: &prehogv1a.SubmitEventRequest{Event: &prehogv1a.SubmitEventRequest_UiDiscoverStartedEvent{ + UiDiscoverStartedEvent: &prehogv1a.UIDiscoverStartedEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: "someid", UserName: expectedAnonymizedUserString, }, - Status: &prehogv1.DiscoverStepStatus{Status: prehogv1.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + Status: &prehogv1a.DiscoverStepStatus{Status: prehogv1a.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, }, }}, }, @@ -69,14 +69,14 @@ func TestConvertUsageEvent(t *testing.T) { }}, identityUsername: "myuser", errCheck: require.NoError, - expected: &prehogv1.SubmitEventRequest{Event: &prehogv1.SubmitEventRequest_UiDiscoverResourceSelectionEvent{ - UiDiscoverResourceSelectionEvent: &prehogv1.UIDiscoverResourceSelectionEvent{ - Metadata: &prehogv1.DiscoverMetadata{ + expected: &prehogv1a.SubmitEventRequest{Event: &prehogv1a.SubmitEventRequest_UiDiscoverResourceSelectionEvent{ + UiDiscoverResourceSelectionEvent: &prehogv1a.UIDiscoverResourceSelectionEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: "someid", UserName: expectedAnonymizedUserString, }, - Resource: &prehogv1.DiscoverResourceMetadata{Resource: prehogv1.DiscoverResource_DISCOVER_RESOURCE_SERVER}, - Status: &prehogv1.DiscoverStepStatus{Status: prehogv1.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + Resource: &prehogv1a.DiscoverResourceMetadata{Resource: prehogv1a.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &prehogv1a.DiscoverStepStatus{Status: prehogv1a.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, }, }}, }, @@ -134,14 +134,14 @@ func TestConvertUsageEvent(t *testing.T) { }}, identityUsername: "myuser", errCheck: require.NoError, - expected: &prehogv1.SubmitEventRequest{Event: &prehogv1.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ - UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1.UIDiscoverAutoDiscoveredResourcesEvent{ - Metadata: &prehogv1.DiscoverMetadata{ + expected: &prehogv1a.SubmitEventRequest{Event: &prehogv1a.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1a.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: "someid", UserName: expectedAnonymizedUserString, }, - Resource: &prehogv1.DiscoverResourceMetadata{Resource: prehogv1.DiscoverResource_DISCOVER_RESOURCE_SERVER}, - Status: &prehogv1.DiscoverStepStatus{Status: prehogv1.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + Resource: &prehogv1a.DiscoverResourceMetadata{Resource: prehogv1a.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &prehogv1a.DiscoverStepStatus{Status: prehogv1a.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, ResourcesCount: 0, }, }}, @@ -158,14 +158,14 @@ func TestConvertUsageEvent(t *testing.T) { }}, identityUsername: "myuser", errCheck: require.NoError, - expected: &prehogv1.SubmitEventRequest{Event: &prehogv1.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ - UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1.UIDiscoverAutoDiscoveredResourcesEvent{ - Metadata: &prehogv1.DiscoverMetadata{ + expected: &prehogv1a.SubmitEventRequest{Event: &prehogv1a.SubmitEventRequest_UiDiscoverAutoDiscoveredResourcesEvent{ + UiDiscoverAutoDiscoveredResourcesEvent: &prehogv1a.UIDiscoverAutoDiscoveredResourcesEvent{ + Metadata: &prehogv1a.DiscoverMetadata{ Id: "someid", UserName: expectedAnonymizedUserString, }, - Resource: &prehogv1.DiscoverResourceMetadata{Resource: prehogv1.DiscoverResource_DISCOVER_RESOURCE_SERVER}, - Status: &prehogv1.DiscoverStepStatus{Status: prehogv1.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, + Resource: &prehogv1a.DiscoverResourceMetadata{Resource: prehogv1a.DiscoverResource_DISCOVER_RESOURCE_SERVER}, + Status: &prehogv1a.DiscoverStepStatus{Status: prehogv1a.DiscoverStatus_DISCOVER_STATUS_SUCCESS}, ResourcesCount: 2, }, }}, diff --git a/proto/prehog/v1alpha/teleport.proto b/proto/prehog/v1alpha/teleport.proto index 1bf3629d7d6dc..665de919c0002 100644 --- a/proto/prehog/v1alpha/teleport.proto +++ b/proto/prehog/v1alpha/teleport.proto @@ -19,7 +19,7 @@ package prehog.v1alpha; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/prehog/v1alpha;prehogv1alpha"; message UserLoginEvent { // anonymized diff --git a/proto/teleport/lib/teleterm/v1/access_request.proto b/proto/teleport/lib/teleterm/v1/access_request.proto index b437953f36f68..b865f0d774deb 100644 --- a/proto/teleport/lib/teleterm/v1/access_request.proto +++ b/proto/teleport/lib/teleterm/v1/access_request.proto @@ -18,7 +18,7 @@ package teleport.lib.teleterm.v1; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; message AccessRequest { string id = 1; diff --git a/proto/teleport/lib/teleterm/v1/auth_settings.proto b/proto/teleport/lib/teleterm/v1/auth_settings.proto index 3cd826b2bce18..7be6e36a2d220 100644 --- a/proto/teleport/lib/teleterm/v1/auth_settings.proto +++ b/proto/teleport/lib/teleterm/v1/auth_settings.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // AuthSettings contains the form of authentication the auth server supports. message AuthSettings { diff --git a/proto/teleport/lib/teleterm/v1/cluster.proto b/proto/teleport/lib/teleterm/v1/cluster.proto index 742d0aa79ae18..e809a098c2f02 100644 --- a/proto/teleport/lib/teleterm/v1/cluster.proto +++ b/proto/teleport/lib/teleterm/v1/cluster.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // Cluster describes cluster fields message Cluster { diff --git a/proto/teleport/lib/teleterm/v1/database.proto b/proto/teleport/lib/teleterm/v1/database.proto index 88956b0c447aa..6c8ce59ddb6ea 100644 --- a/proto/teleport/lib/teleterm/v1/database.proto +++ b/proto/teleport/lib/teleterm/v1/database.proto @@ -18,7 +18,7 @@ package teleport.lib.teleterm.v1; import "teleport/lib/teleterm/v1/label.proto"; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // Database describes a database message Database { diff --git a/proto/teleport/lib/teleterm/v1/gateway.proto b/proto/teleport/lib/teleterm/v1/gateway.proto index 4d0f53d2003ec..9ff4757366c13 100644 --- a/proto/teleport/lib/teleterm/v1/gateway.proto +++ b/proto/teleport/lib/teleterm/v1/gateway.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // Gateway is Teleterm's name for a connection to a resource like a database or a web app // established through our ALPN proxy. diff --git a/proto/teleport/lib/teleterm/v1/kube.proto b/proto/teleport/lib/teleterm/v1/kube.proto index df4f668788f56..270361bce69ed 100644 --- a/proto/teleport/lib/teleterm/v1/kube.proto +++ b/proto/teleport/lib/teleterm/v1/kube.proto @@ -18,7 +18,7 @@ package teleport.lib.teleterm.v1; import "teleport/lib/teleterm/v1/label.proto"; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // Kube describes connected Kubernetes cluster message Kube { diff --git a/proto/teleport/lib/teleterm/v1/label.proto b/proto/teleport/lib/teleterm/v1/label.proto index 365fd8ba64e26..d377140b6dab8 100644 --- a/proto/teleport/lib/teleterm/v1/label.proto +++ b/proto/teleport/lib/teleterm/v1/label.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // Label describes a label message Label { diff --git a/proto/teleport/lib/teleterm/v1/server.proto b/proto/teleport/lib/teleterm/v1/server.proto index 176f32f4ee903..703654da32c0e 100644 --- a/proto/teleport/lib/teleterm/v1/server.proto +++ b/proto/teleport/lib/teleterm/v1/server.proto @@ -18,7 +18,7 @@ package teleport.lib.teleterm.v1; import "teleport/lib/teleterm/v1/label.proto"; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // Server describes connected Server message Server { diff --git a/proto/teleport/lib/teleterm/v1/service.proto b/proto/teleport/lib/teleterm/v1/service.proto index 2949452a697cf..3baaf8707a136 100644 --- a/proto/teleport/lib/teleterm/v1/service.proto +++ b/proto/teleport/lib/teleterm/v1/service.proto @@ -24,7 +24,7 @@ import "teleport/lib/teleterm/v1/gateway.proto"; import "teleport/lib/teleterm/v1/kube.proto"; import "teleport/lib/teleterm/v1/server.proto"; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // TerminalService describes Teleterm service service TerminalService { diff --git a/proto/teleport/lib/teleterm/v1/tshd_events_service.proto b/proto/teleport/lib/teleterm/v1/tshd_events_service.proto index 7769e16214869..86732b2a041e0 100644 --- a/proto/teleport/lib/teleterm/v1/tshd_events_service.proto +++ b/proto/teleport/lib/teleterm/v1/tshd_events_service.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package teleport.lib.teleterm.v1; -option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"; +option go_package = "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1;teletermv1"; // TshdEventsService is served by the Electron app. The tsh daemon calls this service to notify the // app about actions that happen outside of the app itself. diff --git a/protogen.go b/protogen.go new file mode 100644 index 0000000000000..5a6fb62f64913 --- /dev/null +++ b/protogen.go @@ -0,0 +1,26 @@ +//go:build protogen && !protogen + +// Copyright 2023 Gravitational, Inc +// +// 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. + +package teleport + +// This file is needed to keep a dependency on the go protogen tools we `go run` +// during our code generation + +import ( + _ "github.com/bufbuild/connect-go/cmd/protoc-gen-connect-go" + _ "github.com/golang/protobuf/protoc-gen-go" + _ "google.golang.org/protobuf/cmd/protoc-gen-go" +) diff --git a/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_grpc_pb.d.ts b/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_grpc_pb.d.ts deleted file mode 100644 index de0f49eac3008..0000000000000 --- a/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_grpc_pb.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Copyright 2023 Gravitational, Inc - * - * 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. - */ - -// package: -// file: v1/ptyHostService.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as grpc from "grpc"; -import * as v1_ptyHostService_pb from "../v1/ptyHostService_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; - -interface IPtyHostService extends grpc.ServiceDefinition { - createPtyProcess: IPtyHostService_ICreatePtyProcess; - exchangeEvents: IPtyHostService_IExchangeEvents; - getCwd: IPtyHostService_IGetCwd; -} - -interface IPtyHostService_ICreatePtyProcess extends grpc.MethodDefinition { - path: "/PtyHost/CreatePtyProcess"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPtyHostService_IExchangeEvents extends grpc.MethodDefinition { - path: "/PtyHost/ExchangeEvents"; - requestStream: true; - responseStream: true; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} -interface IPtyHostService_IGetCwd extends grpc.MethodDefinition { - path: "/PtyHost/GetCwd"; - requestStream: false; - responseStream: false; - requestSerialize: grpc.serialize; - requestDeserialize: grpc.deserialize; - responseSerialize: grpc.serialize; - responseDeserialize: grpc.deserialize; -} - -export const PtyHostService: IPtyHostService; - -export interface IPtyHostServer { - createPtyProcess: grpc.handleUnaryCall; - exchangeEvents: grpc.handleBidiStreamingCall; - getCwd: grpc.handleUnaryCall; -} - -export interface IPtyHostClient { - createPtyProcess(request: v1_ptyHostService_pb.PtyCreate, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyId) => void): grpc.ClientUnaryCall; - createPtyProcess(request: v1_ptyHostService_pb.PtyCreate, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyId) => void): grpc.ClientUnaryCall; - createPtyProcess(request: v1_ptyHostService_pb.PtyCreate, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyId) => void): grpc.ClientUnaryCall; - exchangeEvents(): grpc.ClientDuplexStream; - exchangeEvents(options: Partial): grpc.ClientDuplexStream; - exchangeEvents(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - getCwd(request: v1_ptyHostService_pb.PtyId, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyCwd) => void): grpc.ClientUnaryCall; - getCwd(request: v1_ptyHostService_pb.PtyId, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyCwd) => void): grpc.ClientUnaryCall; - getCwd(request: v1_ptyHostService_pb.PtyId, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyCwd) => void): grpc.ClientUnaryCall; -} - -export class PtyHostClient extends grpc.Client implements IPtyHostClient { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - public createPtyProcess(request: v1_ptyHostService_pb.PtyCreate, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyId) => void): grpc.ClientUnaryCall; - public createPtyProcess(request: v1_ptyHostService_pb.PtyCreate, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyId) => void): grpc.ClientUnaryCall; - public createPtyProcess(request: v1_ptyHostService_pb.PtyCreate, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyId) => void): grpc.ClientUnaryCall; - public exchangeEvents(options?: Partial): grpc.ClientDuplexStream; - public exchangeEvents(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; - public getCwd(request: v1_ptyHostService_pb.PtyId, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyCwd) => void): grpc.ClientUnaryCall; - public getCwd(request: v1_ptyHostService_pb.PtyId, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyCwd) => void): grpc.ClientUnaryCall; - public getCwd(request: v1_ptyHostService_pb.PtyId, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: v1_ptyHostService_pb.PtyCwd) => void): grpc.ClientUnaryCall; -} diff --git a/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_grpc_pb.js b/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_grpc_pb.js deleted file mode 100644 index 9a618a443665e..0000000000000 --- a/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_grpc_pb.js +++ /dev/null @@ -1,103 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; - -/* eslint-disable */ - -var grpc = require('@grpc/grpc-js'); -var v1_ptyHostService_pb = require('../v1/ptyHostService_pb.js'); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); - -function serialize_PtyClientEvent(arg) { - if (!(arg instanceof v1_ptyHostService_pb.PtyClientEvent)) { - throw new Error('Expected argument of type PtyClientEvent'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_PtyClientEvent(buffer_arg) { - return v1_ptyHostService_pb.PtyClientEvent.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_PtyCreate(arg) { - if (!(arg instanceof v1_ptyHostService_pb.PtyCreate)) { - throw new Error('Expected argument of type PtyCreate'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_PtyCreate(buffer_arg) { - return v1_ptyHostService_pb.PtyCreate.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_PtyCwd(arg) { - if (!(arg instanceof v1_ptyHostService_pb.PtyCwd)) { - throw new Error('Expected argument of type PtyCwd'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_PtyCwd(buffer_arg) { - return v1_ptyHostService_pb.PtyCwd.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_PtyId(arg) { - if (!(arg instanceof v1_ptyHostService_pb.PtyId)) { - throw new Error('Expected argument of type PtyId'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_PtyId(buffer_arg) { - return v1_ptyHostService_pb.PtyId.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_PtyServerEvent(arg) { - if (!(arg instanceof v1_ptyHostService_pb.PtyServerEvent)) { - throw new Error('Expected argument of type PtyServerEvent'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_PtyServerEvent(buffer_arg) { - return v1_ptyHostService_pb.PtyServerEvent.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var PtyHostService = exports.PtyHostService = { - createPtyProcess: { - path: '/PtyHost/CreatePtyProcess', - requestStream: false, - responseStream: false, - requestType: v1_ptyHostService_pb.PtyCreate, - responseType: v1_ptyHostService_pb.PtyId, - requestSerialize: serialize_PtyCreate, - requestDeserialize: deserialize_PtyCreate, - responseSerialize: serialize_PtyId, - responseDeserialize: deserialize_PtyId, - }, - exchangeEvents: { - path: '/PtyHost/ExchangeEvents', - requestStream: true, - responseStream: true, - requestType: v1_ptyHostService_pb.PtyClientEvent, - responseType: v1_ptyHostService_pb.PtyServerEvent, - requestSerialize: serialize_PtyClientEvent, - requestDeserialize: deserialize_PtyClientEvent, - responseSerialize: serialize_PtyServerEvent, - responseDeserialize: deserialize_PtyServerEvent, - }, - getCwd: { - path: '/PtyHost/GetCwd', - requestStream: false, - responseStream: false, - requestType: v1_ptyHostService_pb.PtyId, - responseType: v1_ptyHostService_pb.PtyCwd, - requestSerialize: serialize_PtyId, - requestDeserialize: deserialize_PtyId, - responseSerialize: serialize_PtyCwd, - responseDeserialize: deserialize_PtyCwd, - }, -}; - -exports.PtyHostClient = grpc.makeGenericClientConstructor(PtyHostService); diff --git a/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_pb.d.ts b/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_pb.d.ts deleted file mode 100644 index 8aea5482c92b8..0000000000000 --- a/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_pb.d.ts +++ /dev/null @@ -1,360 +0,0 @@ -/** - * Copyright 2023 Gravitational, Inc - * - * 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. - */ - -// package: -// file: v1/ptyHostService.proto - -/* tslint:disable */ -/* eslint-disable */ - -import * as jspb from "google-protobuf"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; - -export class PtyId extends jspb.Message { - getId(): string; - setId(value: string): PtyId; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyId.AsObject; - static toObject(includeInstance: boolean, msg: PtyId): PtyId.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyId, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyId; - static deserializeBinaryFromReader(message: PtyId, reader: jspb.BinaryReader): PtyId; -} - -export namespace PtyId { - export type AsObject = { - id: string, - } -} - -export class PtyCreate extends jspb.Message { - getPath(): string; - setPath(value: string): PtyCreate; - - clearArgsList(): void; - getArgsList(): Array; - setArgsList(value: Array): PtyCreate; - addArgs(value: string, index?: number): string; - - getCwd(): string; - setCwd(value: string): PtyCreate; - - - hasInitCommand(): boolean; - clearInitCommand(): void; - getInitCommand(): string; - setInitCommand(value: string): PtyCreate; - - - hasEnv(): boolean; - clearEnv(): void; - getEnv(): google_protobuf_struct_pb.Struct | undefined; - setEnv(value?: google_protobuf_struct_pb.Struct): PtyCreate; - - - getInitCommandCase(): PtyCreate.InitCommandCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyCreate.AsObject; - static toObject(includeInstance: boolean, msg: PtyCreate): PtyCreate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyCreate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyCreate; - static deserializeBinaryFromReader(message: PtyCreate, reader: jspb.BinaryReader): PtyCreate; -} - -export namespace PtyCreate { - export type AsObject = { - path: string, - argsList: Array, - cwd: string, - initCommand: string, - env?: google_protobuf_struct_pb.Struct.AsObject, - } - - export enum InitCommandCase { - _INIT_COMMAND_NOT_SET = 0, - - INIT_COMMAND = 6, - - } - -} - -export class PtyClientEvent extends jspb.Message { - - hasStart(): boolean; - clearStart(): void; - getStart(): PtyEventStart | undefined; - setStart(value?: PtyEventStart): PtyClientEvent; - - - hasResize(): boolean; - clearResize(): void; - getResize(): PtyEventResize | undefined; - setResize(value?: PtyEventResize): PtyClientEvent; - - - hasData(): boolean; - clearData(): void; - getData(): PtyEventData | undefined; - setData(value?: PtyEventData): PtyClientEvent; - - - getEventCase(): PtyClientEvent.EventCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyClientEvent.AsObject; - static toObject(includeInstance: boolean, msg: PtyClientEvent): PtyClientEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyClientEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyClientEvent; - static deserializeBinaryFromReader(message: PtyClientEvent, reader: jspb.BinaryReader): PtyClientEvent; -} - -export namespace PtyClientEvent { - export type AsObject = { - start?: PtyEventStart.AsObject, - resize?: PtyEventResize.AsObject, - data?: PtyEventData.AsObject, - } - - export enum EventCase { - EVENT_NOT_SET = 0, - - START = 2, - - RESIZE = 3, - - DATA = 4, - - } - -} - -export class PtyServerEvent extends jspb.Message { - - hasResize(): boolean; - clearResize(): void; - getResize(): PtyEventResize | undefined; - setResize(value?: PtyEventResize): PtyServerEvent; - - - hasData(): boolean; - clearData(): void; - getData(): PtyEventData | undefined; - setData(value?: PtyEventData): PtyServerEvent; - - - hasOpen(): boolean; - clearOpen(): void; - getOpen(): PtyEventOpen | undefined; - setOpen(value?: PtyEventOpen): PtyServerEvent; - - - hasExit(): boolean; - clearExit(): void; - getExit(): PtyEventExit | undefined; - setExit(value?: PtyEventExit): PtyServerEvent; - - - getEventCase(): PtyServerEvent.EventCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyServerEvent.AsObject; - static toObject(includeInstance: boolean, msg: PtyServerEvent): PtyServerEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyServerEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyServerEvent; - static deserializeBinaryFromReader(message: PtyServerEvent, reader: jspb.BinaryReader): PtyServerEvent; -} - -export namespace PtyServerEvent { - export type AsObject = { - resize?: PtyEventResize.AsObject, - data?: PtyEventData.AsObject, - open?: PtyEventOpen.AsObject, - exit?: PtyEventExit.AsObject, - } - - export enum EventCase { - EVENT_NOT_SET = 0, - - RESIZE = 1, - - DATA = 2, - - OPEN = 3, - - EXIT = 4, - - } - -} - -export class PtyEventStart extends jspb.Message { - getColumns(): number; - setColumns(value: number): PtyEventStart; - - getRows(): number; - setRows(value: number): PtyEventStart; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyEventStart.AsObject; - static toObject(includeInstance: boolean, msg: PtyEventStart): PtyEventStart.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyEventStart, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyEventStart; - static deserializeBinaryFromReader(message: PtyEventStart, reader: jspb.BinaryReader): PtyEventStart; -} - -export namespace PtyEventStart { - export type AsObject = { - columns: number, - rows: number, - } -} - -export class PtyEventData extends jspb.Message { - getMessage(): string; - setMessage(value: string): PtyEventData; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyEventData.AsObject; - static toObject(includeInstance: boolean, msg: PtyEventData): PtyEventData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyEventData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyEventData; - static deserializeBinaryFromReader(message: PtyEventData, reader: jspb.BinaryReader): PtyEventData; -} - -export namespace PtyEventData { - export type AsObject = { - message: string, - } -} - -export class PtyEventResize extends jspb.Message { - getColumns(): number; - setColumns(value: number): PtyEventResize; - - getRows(): number; - setRows(value: number): PtyEventResize; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyEventResize.AsObject; - static toObject(includeInstance: boolean, msg: PtyEventResize): PtyEventResize.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyEventResize, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyEventResize; - static deserializeBinaryFromReader(message: PtyEventResize, reader: jspb.BinaryReader): PtyEventResize; -} - -export namespace PtyEventResize { - export type AsObject = { - columns: number, - rows: number, - } -} - -export class PtyEventOpen extends jspb.Message { - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyEventOpen.AsObject; - static toObject(includeInstance: boolean, msg: PtyEventOpen): PtyEventOpen.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyEventOpen, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyEventOpen; - static deserializeBinaryFromReader(message: PtyEventOpen, reader: jspb.BinaryReader): PtyEventOpen; -} - -export namespace PtyEventOpen { - export type AsObject = { - } -} - -export class PtyEventExit extends jspb.Message { - getExitCode(): number; - setExitCode(value: number): PtyEventExit; - - - hasSignal(): boolean; - clearSignal(): void; - getSignal(): number; - setSignal(value: number): PtyEventExit; - - - getSignalCase(): PtyEventExit.SignalCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyEventExit.AsObject; - static toObject(includeInstance: boolean, msg: PtyEventExit): PtyEventExit.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyEventExit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyEventExit; - static deserializeBinaryFromReader(message: PtyEventExit, reader: jspb.BinaryReader): PtyEventExit; -} - -export namespace PtyEventExit { - export type AsObject = { - exitCode: number, - signal: number, - } - - export enum SignalCase { - _SIGNAL_NOT_SET = 0, - - SIGNAL = 2, - - } - -} - -export class PtyCwd extends jspb.Message { - getCwd(): string; - setCwd(value: string): PtyCwd; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PtyCwd.AsObject; - static toObject(includeInstance: boolean, msg: PtyCwd): PtyCwd.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PtyCwd, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PtyCwd; - static deserializeBinaryFromReader(message: PtyCwd, reader: jspb.BinaryReader): PtyCwd; -} - -export namespace PtyCwd { - export type AsObject = { - cwd: string, - } -} diff --git a/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_pb.js b/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_pb.js deleted file mode 100644 index 7173095091774..0000000000000 --- a/web/packages/teleterm/src/sharedProcess/ptyHost/v1/ptyHostService_pb.js +++ /dev/null @@ -1,2157 +0,0 @@ -// source: v1/ptyHostService.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -goog.exportSymbol('proto.PtyClientEvent', null, global); -goog.exportSymbol('proto.PtyClientEvent.EventCase', null, global); -goog.exportSymbol('proto.PtyCreate', null, global); -goog.exportSymbol('proto.PtyCwd', null, global); -goog.exportSymbol('proto.PtyEventData', null, global); -goog.exportSymbol('proto.PtyEventExit', null, global); -goog.exportSymbol('proto.PtyEventOpen', null, global); -goog.exportSymbol('proto.PtyEventResize', null, global); -goog.exportSymbol('proto.PtyEventStart', null, global); -goog.exportSymbol('proto.PtyId', null, global); -goog.exportSymbol('proto.PtyServerEvent', null, global); -goog.exportSymbol('proto.PtyServerEvent.EventCase', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyId = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PtyId, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyId.displayName = 'proto.PtyId'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyCreate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.PtyCreate.repeatedFields_, null); -}; -goog.inherits(proto.PtyCreate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyCreate.displayName = 'proto.PtyCreate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyClientEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.PtyClientEvent.oneofGroups_); -}; -goog.inherits(proto.PtyClientEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyClientEvent.displayName = 'proto.PtyClientEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyServerEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.PtyServerEvent.oneofGroups_); -}; -goog.inherits(proto.PtyServerEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyServerEvent.displayName = 'proto.PtyServerEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyEventStart = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PtyEventStart, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyEventStart.displayName = 'proto.PtyEventStart'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyEventData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PtyEventData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyEventData.displayName = 'proto.PtyEventData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyEventResize = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PtyEventResize, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyEventResize.displayName = 'proto.PtyEventResize'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyEventOpen = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PtyEventOpen, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyEventOpen.displayName = 'proto.PtyEventOpen'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyEventExit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PtyEventExit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyEventExit.displayName = 'proto.PtyEventExit'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.PtyCwd = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.PtyCwd, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.PtyCwd.displayName = 'proto.PtyCwd'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyId.prototype.toObject = function(opt_includeInstance) { - return proto.PtyId.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyId} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyId.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyId} - */ -proto.PtyId.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyId; - return proto.PtyId.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyId} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyId} - */ -proto.PtyId.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyId.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyId.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyId} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyId.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.PtyId.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PtyId} returns this - */ -proto.PtyId.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.PtyCreate.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyCreate.prototype.toObject = function(opt_includeInstance) { - return proto.PtyCreate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyCreate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyCreate.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 3, ""), - argsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - cwd: jspb.Message.getFieldWithDefault(msg, 5, ""), - initCommand: jspb.Message.getFieldWithDefault(msg, 6, ""), - env: (f = msg.getEnv()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyCreate} - */ -proto.PtyCreate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyCreate; - return proto.PtyCreate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyCreate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyCreate} - */ -proto.PtyCreate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addArgs(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setCwd(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setInitCommand(value); - break; - case 7: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setEnv(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyCreate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyCreate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyCreate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyCreate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getArgsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getCwd(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString( - 6, - f - ); - } - f = message.getEnv(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string path = 3; - * @return {string} - */ -proto.PtyCreate.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PtyCreate} returns this - */ -proto.PtyCreate.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string args = 4; - * @return {!Array} - */ -proto.PtyCreate.prototype.getArgsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.PtyCreate} returns this - */ -proto.PtyCreate.prototype.setArgsList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.PtyCreate} returns this - */ -proto.PtyCreate.prototype.addArgs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.PtyCreate} returns this - */ -proto.PtyCreate.prototype.clearArgsList = function() { - return this.setArgsList([]); -}; - - -/** - * optional string cwd = 5; - * @return {string} - */ -proto.PtyCreate.prototype.getCwd = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PtyCreate} returns this - */ -proto.PtyCreate.prototype.setCwd = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string init_command = 6; - * @return {string} - */ -proto.PtyCreate.prototype.getInitCommand = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PtyCreate} returns this - */ -proto.PtyCreate.prototype.setInitCommand = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.PtyCreate} returns this - */ -proto.PtyCreate.prototype.clearInitCommand = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyCreate.prototype.hasInitCommand = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional google.protobuf.Struct env = 7; - * @return {?proto.google.protobuf.Struct} - */ -proto.PtyCreate.prototype.getEnv = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.PtyCreate} returns this -*/ -proto.PtyCreate.prototype.setEnv = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.PtyCreate} returns this - */ -proto.PtyCreate.prototype.clearEnv = function() { - return this.setEnv(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyCreate.prototype.hasEnv = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.PtyClientEvent.oneofGroups_ = [[2,3,4]]; - -/** - * @enum {number} - */ -proto.PtyClientEvent.EventCase = { - EVENT_NOT_SET: 0, - START: 2, - RESIZE: 3, - DATA: 4 -}; - -/** - * @return {proto.PtyClientEvent.EventCase} - */ -proto.PtyClientEvent.prototype.getEventCase = function() { - return /** @type {proto.PtyClientEvent.EventCase} */(jspb.Message.computeOneofCase(this, proto.PtyClientEvent.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyClientEvent.prototype.toObject = function(opt_includeInstance) { - return proto.PtyClientEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyClientEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyClientEvent.toObject = function(includeInstance, msg) { - var f, obj = { - start: (f = msg.getStart()) && proto.PtyEventStart.toObject(includeInstance, f), - resize: (f = msg.getResize()) && proto.PtyEventResize.toObject(includeInstance, f), - data: (f = msg.getData()) && proto.PtyEventData.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyClientEvent} - */ -proto.PtyClientEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyClientEvent; - return proto.PtyClientEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyClientEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyClientEvent} - */ -proto.PtyClientEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.PtyEventStart; - reader.readMessage(value,proto.PtyEventStart.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new proto.PtyEventResize; - reader.readMessage(value,proto.PtyEventResize.deserializeBinaryFromReader); - msg.setResize(value); - break; - case 4: - var value = new proto.PtyEventData; - reader.readMessage(value,proto.PtyEventData.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyClientEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyClientEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyClientEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyClientEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.PtyEventStart.serializeBinaryToWriter - ); - } - f = message.getResize(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.PtyEventResize.serializeBinaryToWriter - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.PtyEventData.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PtyEventStart start = 2; - * @return {?proto.PtyEventStart} - */ -proto.PtyClientEvent.prototype.getStart = function() { - return /** @type{?proto.PtyEventStart} */ ( - jspb.Message.getWrapperField(this, proto.PtyEventStart, 2)); -}; - - -/** - * @param {?proto.PtyEventStart|undefined} value - * @return {!proto.PtyClientEvent} returns this -*/ -proto.PtyClientEvent.prototype.setStart = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.PtyClientEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.PtyClientEvent} returns this - */ -proto.PtyClientEvent.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyClientEvent.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PtyEventResize resize = 3; - * @return {?proto.PtyEventResize} - */ -proto.PtyClientEvent.prototype.getResize = function() { - return /** @type{?proto.PtyEventResize} */ ( - jspb.Message.getWrapperField(this, proto.PtyEventResize, 3)); -}; - - -/** - * @param {?proto.PtyEventResize|undefined} value - * @return {!proto.PtyClientEvent} returns this -*/ -proto.PtyClientEvent.prototype.setResize = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.PtyClientEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.PtyClientEvent} returns this - */ -proto.PtyClientEvent.prototype.clearResize = function() { - return this.setResize(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyClientEvent.prototype.hasResize = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional PtyEventData data = 4; - * @return {?proto.PtyEventData} - */ -proto.PtyClientEvent.prototype.getData = function() { - return /** @type{?proto.PtyEventData} */ ( - jspb.Message.getWrapperField(this, proto.PtyEventData, 4)); -}; - - -/** - * @param {?proto.PtyEventData|undefined} value - * @return {!proto.PtyClientEvent} returns this -*/ -proto.PtyClientEvent.prototype.setData = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.PtyClientEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.PtyClientEvent} returns this - */ -proto.PtyClientEvent.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyClientEvent.prototype.hasData = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.PtyServerEvent.oneofGroups_ = [[1,2,3,4]]; - -/** - * @enum {number} - */ -proto.PtyServerEvent.EventCase = { - EVENT_NOT_SET: 0, - RESIZE: 1, - DATA: 2, - OPEN: 3, - EXIT: 4 -}; - -/** - * @return {proto.PtyServerEvent.EventCase} - */ -proto.PtyServerEvent.prototype.getEventCase = function() { - return /** @type {proto.PtyServerEvent.EventCase} */(jspb.Message.computeOneofCase(this, proto.PtyServerEvent.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyServerEvent.prototype.toObject = function(opt_includeInstance) { - return proto.PtyServerEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyServerEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyServerEvent.toObject = function(includeInstance, msg) { - var f, obj = { - resize: (f = msg.getResize()) && proto.PtyEventResize.toObject(includeInstance, f), - data: (f = msg.getData()) && proto.PtyEventData.toObject(includeInstance, f), - open: (f = msg.getOpen()) && proto.PtyEventOpen.toObject(includeInstance, f), - exit: (f = msg.getExit()) && proto.PtyEventExit.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyServerEvent} - */ -proto.PtyServerEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyServerEvent; - return proto.PtyServerEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyServerEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyServerEvent} - */ -proto.PtyServerEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.PtyEventResize; - reader.readMessage(value,proto.PtyEventResize.deserializeBinaryFromReader); - msg.setResize(value); - break; - case 2: - var value = new proto.PtyEventData; - reader.readMessage(value,proto.PtyEventData.deserializeBinaryFromReader); - msg.setData(value); - break; - case 3: - var value = new proto.PtyEventOpen; - reader.readMessage(value,proto.PtyEventOpen.deserializeBinaryFromReader); - msg.setOpen(value); - break; - case 4: - var value = new proto.PtyEventExit; - reader.readMessage(value,proto.PtyEventExit.deserializeBinaryFromReader); - msg.setExit(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyServerEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyServerEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyServerEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyServerEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResize(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.PtyEventResize.serializeBinaryToWriter - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.PtyEventData.serializeBinaryToWriter - ); - } - f = message.getOpen(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.PtyEventOpen.serializeBinaryToWriter - ); - } - f = message.getExit(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.PtyEventExit.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PtyEventResize resize = 1; - * @return {?proto.PtyEventResize} - */ -proto.PtyServerEvent.prototype.getResize = function() { - return /** @type{?proto.PtyEventResize} */ ( - jspb.Message.getWrapperField(this, proto.PtyEventResize, 1)); -}; - - -/** - * @param {?proto.PtyEventResize|undefined} value - * @return {!proto.PtyServerEvent} returns this -*/ -proto.PtyServerEvent.prototype.setResize = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.PtyServerEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.PtyServerEvent} returns this - */ -proto.PtyServerEvent.prototype.clearResize = function() { - return this.setResize(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyServerEvent.prototype.hasResize = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional PtyEventData data = 2; - * @return {?proto.PtyEventData} - */ -proto.PtyServerEvent.prototype.getData = function() { - return /** @type{?proto.PtyEventData} */ ( - jspb.Message.getWrapperField(this, proto.PtyEventData, 2)); -}; - - -/** - * @param {?proto.PtyEventData|undefined} value - * @return {!proto.PtyServerEvent} returns this -*/ -proto.PtyServerEvent.prototype.setData = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.PtyServerEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.PtyServerEvent} returns this - */ -proto.PtyServerEvent.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyServerEvent.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PtyEventOpen open = 3; - * @return {?proto.PtyEventOpen} - */ -proto.PtyServerEvent.prototype.getOpen = function() { - return /** @type{?proto.PtyEventOpen} */ ( - jspb.Message.getWrapperField(this, proto.PtyEventOpen, 3)); -}; - - -/** - * @param {?proto.PtyEventOpen|undefined} value - * @return {!proto.PtyServerEvent} returns this -*/ -proto.PtyServerEvent.prototype.setOpen = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.PtyServerEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.PtyServerEvent} returns this - */ -proto.PtyServerEvent.prototype.clearOpen = function() { - return this.setOpen(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyServerEvent.prototype.hasOpen = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional PtyEventExit exit = 4; - * @return {?proto.PtyEventExit} - */ -proto.PtyServerEvent.prototype.getExit = function() { - return /** @type{?proto.PtyEventExit} */ ( - jspb.Message.getWrapperField(this, proto.PtyEventExit, 4)); -}; - - -/** - * @param {?proto.PtyEventExit|undefined} value - * @return {!proto.PtyServerEvent} returns this -*/ -proto.PtyServerEvent.prototype.setExit = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.PtyServerEvent.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.PtyServerEvent} returns this - */ -proto.PtyServerEvent.prototype.clearExit = function() { - return this.setExit(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyServerEvent.prototype.hasExit = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyEventStart.prototype.toObject = function(opt_includeInstance) { - return proto.PtyEventStart.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyEventStart} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventStart.toObject = function(includeInstance, msg) { - var f, obj = { - columns: jspb.Message.getFieldWithDefault(msg, 2, 0), - rows: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyEventStart} - */ -proto.PtyEventStart.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyEventStart; - return proto.PtyEventStart.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyEventStart} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyEventStart} - */ -proto.PtyEventStart.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setColumns(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRows(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyEventStart.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyEventStart.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyEventStart} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventStart.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getColumns(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getRows(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 columns = 2; - * @return {number} - */ -proto.PtyEventStart.prototype.getColumns = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.PtyEventStart} returns this - */ -proto.PtyEventStart.prototype.setColumns = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 rows = 3; - * @return {number} - */ -proto.PtyEventStart.prototype.getRows = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.PtyEventStart} returns this - */ -proto.PtyEventStart.prototype.setRows = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyEventData.prototype.toObject = function(opt_includeInstance) { - return proto.PtyEventData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyEventData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventData.toObject = function(includeInstance, msg) { - var f, obj = { - message: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyEventData} - */ -proto.PtyEventData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyEventData; - return proto.PtyEventData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyEventData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyEventData} - */ -proto.PtyEventData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyEventData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyEventData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyEventData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string message = 2; - * @return {string} - */ -proto.PtyEventData.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PtyEventData} returns this - */ -proto.PtyEventData.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyEventResize.prototype.toObject = function(opt_includeInstance) { - return proto.PtyEventResize.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyEventResize} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventResize.toObject = function(includeInstance, msg) { - var f, obj = { - columns: jspb.Message.getFieldWithDefault(msg, 2, 0), - rows: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyEventResize} - */ -proto.PtyEventResize.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyEventResize; - return proto.PtyEventResize.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyEventResize} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyEventResize} - */ -proto.PtyEventResize.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setColumns(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRows(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyEventResize.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyEventResize.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyEventResize} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventResize.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getColumns(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getRows(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 columns = 2; - * @return {number} - */ -proto.PtyEventResize.prototype.getColumns = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.PtyEventResize} returns this - */ -proto.PtyEventResize.prototype.setColumns = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 rows = 3; - * @return {number} - */ -proto.PtyEventResize.prototype.getRows = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.PtyEventResize} returns this - */ -proto.PtyEventResize.prototype.setRows = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyEventOpen.prototype.toObject = function(opt_includeInstance) { - return proto.PtyEventOpen.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyEventOpen} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventOpen.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyEventOpen} - */ -proto.PtyEventOpen.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyEventOpen; - return proto.PtyEventOpen.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyEventOpen} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyEventOpen} - */ -proto.PtyEventOpen.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyEventOpen.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyEventOpen.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyEventOpen} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventOpen.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyEventExit.prototype.toObject = function(opt_includeInstance) { - return proto.PtyEventExit.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyEventExit} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventExit.toObject = function(includeInstance, msg) { - var f, obj = { - exitCode: jspb.Message.getFieldWithDefault(msg, 1, 0), - signal: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyEventExit} - */ -proto.PtyEventExit.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyEventExit; - return proto.PtyEventExit.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyEventExit} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyEventExit} - */ -proto.PtyEventExit.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setExitCode(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSignal(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyEventExit.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyEventExit.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyEventExit} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyEventExit.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getExitCode(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 exit_code = 1; - * @return {number} - */ -proto.PtyEventExit.prototype.getExitCode = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.PtyEventExit} returns this - */ -proto.PtyEventExit.prototype.setExitCode = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 signal = 2; - * @return {number} - */ -proto.PtyEventExit.prototype.getSignal = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.PtyEventExit} returns this - */ -proto.PtyEventExit.prototype.setSignal = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.PtyEventExit} returns this - */ -proto.PtyEventExit.prototype.clearSignal = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.PtyEventExit.prototype.hasSignal = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.PtyCwd.prototype.toObject = function(opt_includeInstance) { - return proto.PtyCwd.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.PtyCwd} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyCwd.toObject = function(includeInstance, msg) { - var f, obj = { - cwd: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.PtyCwd} - */ -proto.PtyCwd.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.PtyCwd; - return proto.PtyCwd.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.PtyCwd} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.PtyCwd} - */ -proto.PtyCwd.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCwd(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.PtyCwd.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.PtyCwd.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.PtyCwd} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.PtyCwd.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCwd(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string cwd = 1; - * @return {string} - */ -proto.PtyCwd.prototype.getCwd = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.PtyCwd} returns this - */ -proto.PtyCwd.prototype.setCwd = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -goog.object.extend(exports, proto);