mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-11 22:49:54 +00:00
* Add retag filter for protoc-gen-go * Delete .pb.go and make grpc find . -not -path './e/*' -name '*.pb.go' -delete && make grpc * make gen-resource-docs * Add comment listing the current consumers of open or hybrid api
2660 lines
91 KiB
Go
2660 lines
91 KiB
Go
// Copyright 2025 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.
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: teleport/legacy/client/proto/inventory.proto
|
|
|
|
// buf:lint:ignore PACKAGE_DIRECTORY_MATCH
|
|
// buf:lint:ignore PACKAGE_VERSION_SUFFIX
|
|
|
|
//go:build teleport_protoopaque
|
|
|
|
package proto
|
|
|
|
import (
|
|
v12 "github.com/gravitational/teleport/api/gen/proto/go/teleport/linuxdesktop/v1"
|
|
v11 "github.com/gravitational/teleport/api/gen/proto/go/teleport/presence/v1"
|
|
v1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/scopes/joining/v1"
|
|
types "github.com/gravitational/teleport/api/types"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// LabelUpdateKind is the type of service to update labels for.
|
|
// buf:lint:ignore ENUM_VALUE_PREFIX
|
|
// buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
|
|
type LabelUpdateKind int32
|
|
|
|
const (
|
|
// SSHServer is a label update for an SSH server.
|
|
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
|
|
LabelUpdateKind_SSHServer LabelUpdateKind = 0
|
|
// SSHServerCloudLabels is a label update for an SSH server coming from a
|
|
// cloud provider.
|
|
LabelUpdateKind_SSHServerCloudLabels LabelUpdateKind = 1
|
|
)
|
|
|
|
// Enum value maps for LabelUpdateKind.
|
|
var (
|
|
LabelUpdateKind_name = map[int32]string{
|
|
0: "SSHServer",
|
|
1: "SSHServerCloudLabels",
|
|
}
|
|
LabelUpdateKind_value = map[string]int32{
|
|
"SSHServer": 0,
|
|
"SSHServerCloudLabels": 1,
|
|
}
|
|
)
|
|
|
|
func (x LabelUpdateKind) Enum() *LabelUpdateKind {
|
|
p := new(LabelUpdateKind)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x LabelUpdateKind) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (LabelUpdateKind) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_teleport_legacy_client_proto_inventory_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (LabelUpdateKind) Type() protoreflect.EnumType {
|
|
return &file_teleport_legacy_client_proto_inventory_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x LabelUpdateKind) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// StopHeartbeatKind is the type of heartbeat to stop.
|
|
type StopHeartbeatKind int32
|
|
|
|
const (
|
|
StopHeartbeatKind_STOP_HEARTBEAT_KIND_UNSPECIFIED StopHeartbeatKind = 0
|
|
// STOP_HEARTBEAT_KIND_DATABASE_SERVER means stop a database server heartbeat.
|
|
StopHeartbeatKind_STOP_HEARTBEAT_KIND_DATABASE_SERVER StopHeartbeatKind = 1
|
|
)
|
|
|
|
// Enum value maps for StopHeartbeatKind.
|
|
var (
|
|
StopHeartbeatKind_name = map[int32]string{
|
|
0: "STOP_HEARTBEAT_KIND_UNSPECIFIED",
|
|
1: "STOP_HEARTBEAT_KIND_DATABASE_SERVER",
|
|
}
|
|
StopHeartbeatKind_value = map[string]int32{
|
|
"STOP_HEARTBEAT_KIND_UNSPECIFIED": 0,
|
|
"STOP_HEARTBEAT_KIND_DATABASE_SERVER": 1,
|
|
}
|
|
)
|
|
|
|
func (x StopHeartbeatKind) Enum() *StopHeartbeatKind {
|
|
p := new(StopHeartbeatKind)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x StopHeartbeatKind) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (StopHeartbeatKind) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_teleport_legacy_client_proto_inventory_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (StopHeartbeatKind) Type() protoreflect.EnumType {
|
|
return &file_teleport_legacy_client_proto_inventory_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x StopHeartbeatKind) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// UpstreamInventoryOneOf is the upstream message for the inventory control stream,
|
|
// sent from teleport instances to the auth server.
|
|
type UpstreamInventoryOneOf struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Msg isUpstreamInventoryOneOf_Msg `protobuf_oneof:"Msg"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) Reset() {
|
|
*x = UpstreamInventoryOneOf{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpstreamInventoryOneOf) ProtoMessage() {}
|
|
|
|
func (x *UpstreamInventoryOneOf) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) GetHello() *UpstreamInventoryHello {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Hello); ok {
|
|
return x.Hello
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) GetHeartbeat() *InventoryHeartbeat {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Heartbeat); ok {
|
|
return x.Heartbeat
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) GetPong() *UpstreamInventoryPong {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Pong); ok {
|
|
return x.Pong
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) GetAgentMetadata() *UpstreamInventoryAgentMetadata {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_AgentMetadata); ok {
|
|
return x.AgentMetadata
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) GetGoodbye() *UpstreamInventoryGoodbye {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Goodbye); ok {
|
|
return x.Goodbye
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) GetStopHeartbeat() *UpstreamInventoryStopHeartbeat {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_StopHeartbeat); ok {
|
|
return x.StopHeartbeat
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) SetHello(v *UpstreamInventoryHello) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_Hello{v}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) SetHeartbeat(v *InventoryHeartbeat) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_Heartbeat{v}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) SetPong(v *UpstreamInventoryPong) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_Pong{v}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) SetAgentMetadata(v *UpstreamInventoryAgentMetadata) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_AgentMetadata{v}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) SetGoodbye(v *UpstreamInventoryGoodbye) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_Goodbye{v}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) SetStopHeartbeat(v *UpstreamInventoryStopHeartbeat) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_StopHeartbeat{v}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) HasMsg() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_Msg != nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) HasHello() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Hello)
|
|
return ok
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) HasHeartbeat() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Heartbeat)
|
|
return ok
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) HasPong() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Pong)
|
|
return ok
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) HasAgentMetadata() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_AgentMetadata)
|
|
return ok
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) HasGoodbye() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Goodbye)
|
|
return ok
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) HasStopHeartbeat() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_StopHeartbeat)
|
|
return ok
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) ClearMsg() {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) ClearHello() {
|
|
if _, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Hello); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) ClearHeartbeat() {
|
|
if _, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Heartbeat); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) ClearPong() {
|
|
if _, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Pong); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) ClearAgentMetadata() {
|
|
if _, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_AgentMetadata); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) ClearGoodbye() {
|
|
if _, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_Goodbye); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
func (x *UpstreamInventoryOneOf) ClearStopHeartbeat() {
|
|
if _, ok := x.xxx_hidden_Msg.(*upstreamInventoryOneOf_StopHeartbeat); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
const UpstreamInventoryOneOf_Msg_not_set_case case_UpstreamInventoryOneOf_Msg = 0
|
|
const UpstreamInventoryOneOf_Hello_case case_UpstreamInventoryOneOf_Msg = 1
|
|
const UpstreamInventoryOneOf_Heartbeat_case case_UpstreamInventoryOneOf_Msg = 2
|
|
const UpstreamInventoryOneOf_Pong_case case_UpstreamInventoryOneOf_Msg = 3
|
|
const UpstreamInventoryOneOf_AgentMetadata_case case_UpstreamInventoryOneOf_Msg = 4
|
|
const UpstreamInventoryOneOf_Goodbye_case case_UpstreamInventoryOneOf_Msg = 5
|
|
const UpstreamInventoryOneOf_StopHeartbeat_case case_UpstreamInventoryOneOf_Msg = 6
|
|
|
|
func (x *UpstreamInventoryOneOf) WhichMsg() case_UpstreamInventoryOneOf_Msg {
|
|
if x == nil {
|
|
return UpstreamInventoryOneOf_Msg_not_set_case
|
|
}
|
|
switch x.xxx_hidden_Msg.(type) {
|
|
case *upstreamInventoryOneOf_Hello:
|
|
return UpstreamInventoryOneOf_Hello_case
|
|
case *upstreamInventoryOneOf_Heartbeat:
|
|
return UpstreamInventoryOneOf_Heartbeat_case
|
|
case *upstreamInventoryOneOf_Pong:
|
|
return UpstreamInventoryOneOf_Pong_case
|
|
case *upstreamInventoryOneOf_AgentMetadata:
|
|
return UpstreamInventoryOneOf_AgentMetadata_case
|
|
case *upstreamInventoryOneOf_Goodbye:
|
|
return UpstreamInventoryOneOf_Goodbye_case
|
|
case *upstreamInventoryOneOf_StopHeartbeat:
|
|
return UpstreamInventoryOneOf_StopHeartbeat_case
|
|
default:
|
|
return UpstreamInventoryOneOf_Msg_not_set_case
|
|
}
|
|
}
|
|
|
|
type UpstreamInventoryOneOf_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// buf:lint:ignore ONEOF_LOWER_SNAKE_CASE
|
|
|
|
// Fields of oneof xxx_hidden_Msg:
|
|
// Hello is the first message sent up the control stream.
|
|
Hello *UpstreamInventoryHello
|
|
// Heartbeat advertises instance status/liveness.
|
|
Heartbeat *InventoryHeartbeat
|
|
// UpstreamInventoryPong is a response to a ping (used for testing/debug).
|
|
Pong *UpstreamInventoryPong
|
|
// UpstreamInventoryAgentMetadata advertises instance metadata.
|
|
AgentMetadata *UpstreamInventoryAgentMetadata
|
|
// UpstreamInventoryGoodbye advertises that the instance is terminating.
|
|
Goodbye *UpstreamInventoryGoodbye
|
|
// UpstreamInventoryStopHeartbeat informs the upstream service that a
|
|
// heartbeat is stopping.
|
|
StopHeartbeat *UpstreamInventoryStopHeartbeat
|
|
// -- end of xxx_hidden_Msg
|
|
}
|
|
|
|
func (b0 UpstreamInventoryOneOf_builder) Build() *UpstreamInventoryOneOf {
|
|
m0 := &UpstreamInventoryOneOf{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
if b.Hello != nil {
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_Hello{b.Hello}
|
|
}
|
|
if b.Heartbeat != nil {
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_Heartbeat{b.Heartbeat}
|
|
}
|
|
if b.Pong != nil {
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_Pong{b.Pong}
|
|
}
|
|
if b.AgentMetadata != nil {
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_AgentMetadata{b.AgentMetadata}
|
|
}
|
|
if b.Goodbye != nil {
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_Goodbye{b.Goodbye}
|
|
}
|
|
if b.StopHeartbeat != nil {
|
|
x.xxx_hidden_Msg = &upstreamInventoryOneOf_StopHeartbeat{b.StopHeartbeat}
|
|
}
|
|
return m0
|
|
}
|
|
|
|
type case_UpstreamInventoryOneOf_Msg protoreflect.FieldNumber
|
|
|
|
func (x case_UpstreamInventoryOneOf_Msg) String() string {
|
|
md := file_teleport_legacy_client_proto_inventory_proto_msgTypes[0].Descriptor()
|
|
if x == 0 {
|
|
return "not set"
|
|
}
|
|
return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x))
|
|
}
|
|
|
|
type isUpstreamInventoryOneOf_Msg interface {
|
|
isUpstreamInventoryOneOf_Msg()
|
|
}
|
|
|
|
type upstreamInventoryOneOf_Hello struct {
|
|
// Hello is the first message sent up the control stream.
|
|
Hello *UpstreamInventoryHello `protobuf:"bytes,1,opt,name=Hello,proto3,oneof"`
|
|
}
|
|
|
|
type upstreamInventoryOneOf_Heartbeat struct {
|
|
// Heartbeat advertises instance status/liveness.
|
|
Heartbeat *InventoryHeartbeat `protobuf:"bytes,2,opt,name=Heartbeat,proto3,oneof"`
|
|
}
|
|
|
|
type upstreamInventoryOneOf_Pong struct {
|
|
// UpstreamInventoryPong is a response to a ping (used for testing/debug).
|
|
Pong *UpstreamInventoryPong `protobuf:"bytes,3,opt,name=Pong,proto3,oneof"`
|
|
}
|
|
|
|
type upstreamInventoryOneOf_AgentMetadata struct {
|
|
// UpstreamInventoryAgentMetadata advertises instance metadata.
|
|
AgentMetadata *UpstreamInventoryAgentMetadata `protobuf:"bytes,4,opt,name=AgentMetadata,proto3,oneof"`
|
|
}
|
|
|
|
type upstreamInventoryOneOf_Goodbye struct {
|
|
// UpstreamInventoryGoodbye advertises that the instance is terminating.
|
|
Goodbye *UpstreamInventoryGoodbye `protobuf:"bytes,5,opt,name=Goodbye,proto3,oneof"`
|
|
}
|
|
|
|
type upstreamInventoryOneOf_StopHeartbeat struct {
|
|
// UpstreamInventoryStopHeartbeat informs the upstream service that a
|
|
// heartbeat is stopping.
|
|
StopHeartbeat *UpstreamInventoryStopHeartbeat `protobuf:"bytes,6,opt,name=stop_heartbeat,json=stopHeartbeat,proto3,oneof"`
|
|
}
|
|
|
|
func (*upstreamInventoryOneOf_Hello) isUpstreamInventoryOneOf_Msg() {}
|
|
|
|
func (*upstreamInventoryOneOf_Heartbeat) isUpstreamInventoryOneOf_Msg() {}
|
|
|
|
func (*upstreamInventoryOneOf_Pong) isUpstreamInventoryOneOf_Msg() {}
|
|
|
|
func (*upstreamInventoryOneOf_AgentMetadata) isUpstreamInventoryOneOf_Msg() {}
|
|
|
|
func (*upstreamInventoryOneOf_Goodbye) isUpstreamInventoryOneOf_Msg() {}
|
|
|
|
func (*upstreamInventoryOneOf_StopHeartbeat) isUpstreamInventoryOneOf_Msg() {}
|
|
|
|
// DownstreamInventoryOneOf is the downstream message for the inventory control stream,
|
|
// sent from auth servers to teleport instances.
|
|
type DownstreamInventoryOneOf struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Msg isDownstreamInventoryOneOf_Msg `protobuf_oneof:"Msg"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) Reset() {
|
|
*x = DownstreamInventoryOneOf{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownstreamInventoryOneOf) ProtoMessage() {}
|
|
|
|
func (x *DownstreamInventoryOneOf) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) GetHello() *DownstreamInventoryHello {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_Hello); ok {
|
|
return x.Hello
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) GetPing() *DownstreamInventoryPing {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_Ping); ok {
|
|
return x.Ping
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) GetUpdateLabels() *DownstreamInventoryUpdateLabels {
|
|
if x != nil {
|
|
if x, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_UpdateLabels); ok {
|
|
return x.UpdateLabels
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) SetHello(v *DownstreamInventoryHello) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &downstreamInventoryOneOf_Hello{v}
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) SetPing(v *DownstreamInventoryPing) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &downstreamInventoryOneOf_Ping{v}
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) SetUpdateLabels(v *DownstreamInventoryUpdateLabels) {
|
|
if v == nil {
|
|
x.xxx_hidden_Msg = nil
|
|
return
|
|
}
|
|
x.xxx_hidden_Msg = &downstreamInventoryOneOf_UpdateLabels{v}
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) HasMsg() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_Msg != nil
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) HasHello() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_Hello)
|
|
return ok
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) HasPing() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_Ping)
|
|
return ok
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) HasUpdateLabels() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_UpdateLabels)
|
|
return ok
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) ClearMsg() {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) ClearHello() {
|
|
if _, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_Hello); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) ClearPing() {
|
|
if _, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_Ping); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
func (x *DownstreamInventoryOneOf) ClearUpdateLabels() {
|
|
if _, ok := x.xxx_hidden_Msg.(*downstreamInventoryOneOf_UpdateLabels); ok {
|
|
x.xxx_hidden_Msg = nil
|
|
}
|
|
}
|
|
|
|
const DownstreamInventoryOneOf_Msg_not_set_case case_DownstreamInventoryOneOf_Msg = 0
|
|
const DownstreamInventoryOneOf_Hello_case case_DownstreamInventoryOneOf_Msg = 1
|
|
const DownstreamInventoryOneOf_Ping_case case_DownstreamInventoryOneOf_Msg = 2
|
|
const DownstreamInventoryOneOf_UpdateLabels_case case_DownstreamInventoryOneOf_Msg = 3
|
|
|
|
func (x *DownstreamInventoryOneOf) WhichMsg() case_DownstreamInventoryOneOf_Msg {
|
|
if x == nil {
|
|
return DownstreamInventoryOneOf_Msg_not_set_case
|
|
}
|
|
switch x.xxx_hidden_Msg.(type) {
|
|
case *downstreamInventoryOneOf_Hello:
|
|
return DownstreamInventoryOneOf_Hello_case
|
|
case *downstreamInventoryOneOf_Ping:
|
|
return DownstreamInventoryOneOf_Ping_case
|
|
case *downstreamInventoryOneOf_UpdateLabels:
|
|
return DownstreamInventoryOneOf_UpdateLabels_case
|
|
default:
|
|
return DownstreamInventoryOneOf_Msg_not_set_case
|
|
}
|
|
}
|
|
|
|
type DownstreamInventoryOneOf_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// buf:lint:ignore ONEOF_LOWER_SNAKE_CASE
|
|
|
|
// Fields of oneof xxx_hidden_Msg:
|
|
// Hello is the first message sent down the control stream.
|
|
Hello *DownstreamInventoryHello
|
|
// Ping triggers an upstream pong (used for testing/debug).
|
|
Ping *DownstreamInventoryPing
|
|
// UpdateLabels updates the instance's labels.
|
|
UpdateLabels *DownstreamInventoryUpdateLabels
|
|
// -- end of xxx_hidden_Msg
|
|
}
|
|
|
|
func (b0 DownstreamInventoryOneOf_builder) Build() *DownstreamInventoryOneOf {
|
|
m0 := &DownstreamInventoryOneOf{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
if b.Hello != nil {
|
|
x.xxx_hidden_Msg = &downstreamInventoryOneOf_Hello{b.Hello}
|
|
}
|
|
if b.Ping != nil {
|
|
x.xxx_hidden_Msg = &downstreamInventoryOneOf_Ping{b.Ping}
|
|
}
|
|
if b.UpdateLabels != nil {
|
|
x.xxx_hidden_Msg = &downstreamInventoryOneOf_UpdateLabels{b.UpdateLabels}
|
|
}
|
|
return m0
|
|
}
|
|
|
|
type case_DownstreamInventoryOneOf_Msg protoreflect.FieldNumber
|
|
|
|
func (x case_DownstreamInventoryOneOf_Msg) String() string {
|
|
md := file_teleport_legacy_client_proto_inventory_proto_msgTypes[1].Descriptor()
|
|
if x == 0 {
|
|
return "not set"
|
|
}
|
|
return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x))
|
|
}
|
|
|
|
type isDownstreamInventoryOneOf_Msg interface {
|
|
isDownstreamInventoryOneOf_Msg()
|
|
}
|
|
|
|
type downstreamInventoryOneOf_Hello struct {
|
|
// Hello is the first message sent down the control stream.
|
|
Hello *DownstreamInventoryHello `protobuf:"bytes,1,opt,name=Hello,proto3,oneof"`
|
|
}
|
|
|
|
type downstreamInventoryOneOf_Ping struct {
|
|
// Ping triggers an upstream pong (used for testing/debug).
|
|
Ping *DownstreamInventoryPing `protobuf:"bytes,2,opt,name=Ping,proto3,oneof"`
|
|
}
|
|
|
|
type downstreamInventoryOneOf_UpdateLabels struct {
|
|
// UpdateLabels updates the instance's labels.
|
|
UpdateLabels *DownstreamInventoryUpdateLabels `protobuf:"bytes,3,opt,name=UpdateLabels,proto3,oneof"`
|
|
}
|
|
|
|
func (*downstreamInventoryOneOf_Hello) isDownstreamInventoryOneOf_Msg() {}
|
|
|
|
func (*downstreamInventoryOneOf_Ping) isDownstreamInventoryOneOf_Msg() {}
|
|
|
|
func (*downstreamInventoryOneOf_UpdateLabels) isDownstreamInventoryOneOf_Msg() {}
|
|
|
|
// DownstreamInventoryPing is sent down the inventory control stream.
|
|
type DownstreamInventoryPing struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_ID uint64 `protobuf:"varint,1,opt,name=ID,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownstreamInventoryPing) Reset() {
|
|
*x = DownstreamInventoryPing{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownstreamInventoryPing) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownstreamInventoryPing) ProtoMessage() {}
|
|
|
|
func (x *DownstreamInventoryPing) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *DownstreamInventoryPing) GetID() uint64 {
|
|
if x != nil {
|
|
return x.xxx_hidden_ID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DownstreamInventoryPing) SetID(v uint64) {
|
|
x.xxx_hidden_ID = v
|
|
}
|
|
|
|
type DownstreamInventoryPing_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
ID uint64
|
|
}
|
|
|
|
func (b0 DownstreamInventoryPing_builder) Build() *DownstreamInventoryPing {
|
|
m0 := &DownstreamInventoryPing{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_ID = b.ID
|
|
return m0
|
|
}
|
|
|
|
// UpstreamInventoryPong is sent up the inventory control stream in response to a downstream
|
|
// ping including the system clock of the downstream.
|
|
type UpstreamInventoryPong struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_ID uint64 `protobuf:"varint,1,opt,name=ID,proto3"`
|
|
xxx_hidden_SystemClock *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=SystemClock,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpstreamInventoryPong) Reset() {
|
|
*x = UpstreamInventoryPong{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpstreamInventoryPong) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpstreamInventoryPong) ProtoMessage() {}
|
|
|
|
func (x *UpstreamInventoryPong) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *UpstreamInventoryPong) GetID() uint64 {
|
|
if x != nil {
|
|
return x.xxx_hidden_ID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpstreamInventoryPong) GetSystemClock() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.xxx_hidden_SystemClock
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryPong) SetID(v uint64) {
|
|
x.xxx_hidden_ID = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryPong) SetSystemClock(v *timestamppb.Timestamp) {
|
|
x.xxx_hidden_SystemClock = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryPong) HasSystemClock() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_SystemClock != nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryPong) ClearSystemClock() {
|
|
x.xxx_hidden_SystemClock = nil
|
|
}
|
|
|
|
type UpstreamInventoryPong_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
ID uint64
|
|
// SystemClock advertises the system clock of the upstream.
|
|
SystemClock *timestamppb.Timestamp
|
|
}
|
|
|
|
func (b0 UpstreamInventoryPong_builder) Build() *UpstreamInventoryPong {
|
|
m0 := &UpstreamInventoryPong{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_ID = b.ID
|
|
x.xxx_hidden_SystemClock = b.SystemClock
|
|
return m0
|
|
}
|
|
|
|
// UpstreamInventoryHello is the hello message sent up the inventory control stream.
|
|
type UpstreamInventoryHello struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Version string `protobuf:"bytes,1,opt,name=Version,proto3"`
|
|
xxx_hidden_ServerID string `protobuf:"bytes,2,opt,name=ServerID,proto3"`
|
|
xxx_hidden_Services []string `protobuf:"bytes,3,rep,name=Services,proto3"`
|
|
xxx_hidden_Hostname string `protobuf:"bytes,4,opt,name=Hostname,proto3"`
|
|
xxx_hidden_ExternalUpgrader string `protobuf:"bytes,5,opt,name=ExternalUpgrader,proto3"`
|
|
xxx_hidden_ExternalUpgraderVersion string `protobuf:"bytes,6,opt,name=ExternalUpgraderVersion,proto3"`
|
|
xxx_hidden_UpdaterInfo *types.UpdaterV2Info `protobuf:"bytes,8,opt,name=UpdaterInfo,proto3"`
|
|
xxx_hidden_Scope string `protobuf:"bytes,9,opt,name=scope,proto3"`
|
|
xxx_hidden_ImmutableLabels *v1.ImmutableLabels `protobuf:"bytes,10,opt,name=immutable_labels,json=immutableLabels,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) Reset() {
|
|
*x = UpstreamInventoryHello{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpstreamInventoryHello) ProtoMessage() {}
|
|
|
|
func (x *UpstreamInventoryHello) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetVersion() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetServerID() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_ServerID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetServices() []string {
|
|
if x != nil {
|
|
return x.xxx_hidden_Services
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetHostname() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_Hostname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetExternalUpgrader() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_ExternalUpgrader
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetExternalUpgraderVersion() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_ExternalUpgraderVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetUpdaterInfo() *types.UpdaterV2Info {
|
|
if x != nil {
|
|
return x.xxx_hidden_UpdaterInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetScope() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_Scope
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) GetImmutableLabels() *v1.ImmutableLabels {
|
|
if x != nil {
|
|
return x.xxx_hidden_ImmutableLabels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetVersion(v string) {
|
|
x.xxx_hidden_Version = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetServerID(v string) {
|
|
x.xxx_hidden_ServerID = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetServices(v []string) {
|
|
x.xxx_hidden_Services = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetHostname(v string) {
|
|
x.xxx_hidden_Hostname = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetExternalUpgrader(v string) {
|
|
x.xxx_hidden_ExternalUpgrader = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetExternalUpgraderVersion(v string) {
|
|
x.xxx_hidden_ExternalUpgraderVersion = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetUpdaterInfo(v *types.UpdaterV2Info) {
|
|
x.xxx_hidden_UpdaterInfo = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetScope(v string) {
|
|
x.xxx_hidden_Scope = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) SetImmutableLabels(v *v1.ImmutableLabels) {
|
|
x.xxx_hidden_ImmutableLabels = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) HasUpdaterInfo() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_UpdaterInfo != nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) HasImmutableLabels() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_ImmutableLabels != nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) ClearUpdaterInfo() {
|
|
x.xxx_hidden_UpdaterInfo = nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryHello) ClearImmutableLabels() {
|
|
x.xxx_hidden_ImmutableLabels = nil
|
|
}
|
|
|
|
type UpstreamInventoryHello_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// Version advertises the teleport version of the instance.
|
|
Version string
|
|
// ServerID advertises the server ID of the instance.
|
|
ServerID string
|
|
// Services advertises the currently live services of the instance. note: this is
|
|
// distinct from the SystemRoles associated with a certificate in that a service may
|
|
// hold a system role that is not currently in use if it was granted that role by
|
|
// its auth token. i.e. Services is the subset of SystemRoles that are currently
|
|
// active.
|
|
Services []string
|
|
// Hostname is the hostname associated with the instance. This value is not required or guaranteed
|
|
// to be unique and its validity is not enforceable (i.e. join tokens do not constrain what an
|
|
// instance can claim its hostname to be). This value exists only to assist users in correlating
|
|
// instance resources with hosts.
|
|
Hostname string
|
|
// ExternalUpgrader identifies the external upgrader that the instance is configured to
|
|
// export schedules to (e.g. 'kube'). Empty if no upgrader is defined.
|
|
ExternalUpgrader string
|
|
// ExternalUpgraderVersion identifies the external upgrader version. Empty if no upgrader is defined.
|
|
ExternalUpgraderVersion string
|
|
// UpdaterInfo is used by Teleport to send information about how the Teleport updater is doing.
|
|
UpdaterInfo *types.UpdaterV2Info
|
|
// The advertized scope of the instance. An instance's scope can not change once assigned, so future
|
|
// heartbeats must include a scope value matching the one declared in the hello message.
|
|
Scope string
|
|
// The immutable labels reported by the instance. The hash of these labels is expected to match
|
|
// the hash included in the instance's certificate.
|
|
ImmutableLabels *v1.ImmutableLabels
|
|
}
|
|
|
|
func (b0 UpstreamInventoryHello_builder) Build() *UpstreamInventoryHello {
|
|
m0 := &UpstreamInventoryHello{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_Version = b.Version
|
|
x.xxx_hidden_ServerID = b.ServerID
|
|
x.xxx_hidden_Services = b.Services
|
|
x.xxx_hidden_Hostname = b.Hostname
|
|
x.xxx_hidden_ExternalUpgrader = b.ExternalUpgrader
|
|
x.xxx_hidden_ExternalUpgraderVersion = b.ExternalUpgraderVersion
|
|
x.xxx_hidden_UpdaterInfo = b.UpdaterInfo
|
|
x.xxx_hidden_Scope = b.Scope
|
|
x.xxx_hidden_ImmutableLabels = b.ImmutableLabels
|
|
return m0
|
|
}
|
|
|
|
// UpstreamInventoryAgentMetadata is the message sent up the inventory control stream containing
|
|
// metadata about the instance.
|
|
type UpstreamInventoryAgentMetadata struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_OS string `protobuf:"bytes,1,opt,name=OS,proto3"`
|
|
xxx_hidden_OSVersion string `protobuf:"bytes,2,opt,name=OSVersion,proto3"`
|
|
xxx_hidden_HostArchitecture string `protobuf:"bytes,3,opt,name=HostArchitecture,proto3"`
|
|
xxx_hidden_GlibcVersion string `protobuf:"bytes,4,opt,name=GlibcVersion,proto3"`
|
|
xxx_hidden_InstallMethods []string `protobuf:"bytes,5,rep,name=InstallMethods,proto3"`
|
|
xxx_hidden_ContainerRuntime string `protobuf:"bytes,6,opt,name=ContainerRuntime,proto3"`
|
|
xxx_hidden_ContainerOrchestrator string `protobuf:"bytes,7,opt,name=ContainerOrchestrator,proto3"`
|
|
xxx_hidden_CloudEnvironment string `protobuf:"bytes,8,opt,name=CloudEnvironment,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) Reset() {
|
|
*x = UpstreamInventoryAgentMetadata{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpstreamInventoryAgentMetadata) ProtoMessage() {}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) GetOS() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_OS
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) GetOSVersion() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_OSVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) GetHostArchitecture() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_HostArchitecture
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) GetGlibcVersion() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_GlibcVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) GetInstallMethods() []string {
|
|
if x != nil {
|
|
return x.xxx_hidden_InstallMethods
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) GetContainerRuntime() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_ContainerRuntime
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) GetContainerOrchestrator() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_ContainerOrchestrator
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) GetCloudEnvironment() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_CloudEnvironment
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) SetOS(v string) {
|
|
x.xxx_hidden_OS = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) SetOSVersion(v string) {
|
|
x.xxx_hidden_OSVersion = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) SetHostArchitecture(v string) {
|
|
x.xxx_hidden_HostArchitecture = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) SetGlibcVersion(v string) {
|
|
x.xxx_hidden_GlibcVersion = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) SetInstallMethods(v []string) {
|
|
x.xxx_hidden_InstallMethods = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) SetContainerRuntime(v string) {
|
|
x.xxx_hidden_ContainerRuntime = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) SetContainerOrchestrator(v string) {
|
|
x.xxx_hidden_ContainerOrchestrator = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryAgentMetadata) SetCloudEnvironment(v string) {
|
|
x.xxx_hidden_CloudEnvironment = v
|
|
}
|
|
|
|
type UpstreamInventoryAgentMetadata_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// OS advertises the instance OS ("darwin" or "linux").
|
|
OS string
|
|
// OSVersion advertises the instance OS version (e.g. "ubuntu 22.04").
|
|
OSVersion string
|
|
// HostArchitecture advertises the instance host architecture (e.g. "x86_64" or "arm64").
|
|
HostArchitecture string
|
|
// GlibcVersion advertises the instance glibc version of linux instances (e.g. "2.35").
|
|
GlibcVersion string
|
|
// InstallMethods advertises the install methods used for the instance (e.g. "dockerfile").
|
|
InstallMethods []string
|
|
// ContainerRuntime advertises the container runtime for the instance, if any (e.g. "docker").
|
|
ContainerRuntime string
|
|
// ContainerOrchestrator advertises the container orchestrator for the instance, if any
|
|
// (e.g. "kubernetes-v1.24.8-eks-ffeb93d").
|
|
ContainerOrchestrator string
|
|
// CloudEnvironment advertises the cloud environment for the instance, if any (e.g. "aws").
|
|
CloudEnvironment string
|
|
}
|
|
|
|
func (b0 UpstreamInventoryAgentMetadata_builder) Build() *UpstreamInventoryAgentMetadata {
|
|
m0 := &UpstreamInventoryAgentMetadata{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_OS = b.OS
|
|
x.xxx_hidden_OSVersion = b.OSVersion
|
|
x.xxx_hidden_HostArchitecture = b.HostArchitecture
|
|
x.xxx_hidden_GlibcVersion = b.GlibcVersion
|
|
x.xxx_hidden_InstallMethods = b.InstallMethods
|
|
x.xxx_hidden_ContainerRuntime = b.ContainerRuntime
|
|
x.xxx_hidden_ContainerOrchestrator = b.ContainerOrchestrator
|
|
x.xxx_hidden_CloudEnvironment = b.CloudEnvironment
|
|
return m0
|
|
}
|
|
|
|
// DownstreamInventoryHello is the hello message sent down the inventory control stream.
|
|
type DownstreamInventoryHello struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Version string `protobuf:"bytes,1,opt,name=Version,proto3"`
|
|
xxx_hidden_ServerID string `protobuf:"bytes,2,opt,name=ServerID,proto3"`
|
|
xxx_hidden_Capabilities *DownstreamInventoryHello_SupportedCapabilities `protobuf:"bytes,3,opt,name=Capabilities,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) Reset() {
|
|
*x = DownstreamInventoryHello{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownstreamInventoryHello) ProtoMessage() {}
|
|
|
|
func (x *DownstreamInventoryHello) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) GetVersion() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) GetServerID() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_ServerID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) GetCapabilities() *DownstreamInventoryHello_SupportedCapabilities {
|
|
if x != nil {
|
|
return x.xxx_hidden_Capabilities
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) SetVersion(v string) {
|
|
x.xxx_hidden_Version = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) SetServerID(v string) {
|
|
x.xxx_hidden_ServerID = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) SetCapabilities(v *DownstreamInventoryHello_SupportedCapabilities) {
|
|
x.xxx_hidden_Capabilities = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) HasCapabilities() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_Capabilities != nil
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello) ClearCapabilities() {
|
|
x.xxx_hidden_Capabilities = nil
|
|
}
|
|
|
|
type DownstreamInventoryHello_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// Version advertises the version of the auth server.
|
|
Version string
|
|
// ServerID advertises the server ID of the auth server.
|
|
ServerID string
|
|
// SupportedCapabilities advertises the supported features of the auth server.
|
|
Capabilities *DownstreamInventoryHello_SupportedCapabilities
|
|
}
|
|
|
|
func (b0 DownstreamInventoryHello_builder) Build() *DownstreamInventoryHello {
|
|
m0 := &DownstreamInventoryHello{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_Version = b.Version
|
|
x.xxx_hidden_ServerID = b.ServerID
|
|
x.xxx_hidden_Capabilities = b.Capabilities
|
|
return m0
|
|
}
|
|
|
|
// InventoryUpdateLabelsRequest is used to request that a specified instance
|
|
// update its labels.
|
|
type InventoryUpdateLabelsRequest struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_ServerID string `protobuf:"bytes,1,opt,name=ServerID,proto3"`
|
|
xxx_hidden_Kind LabelUpdateKind `protobuf:"varint,2,opt,name=Kind,proto3,enum=proto.LabelUpdateKind"`
|
|
xxx_hidden_Labels map[string]string `protobuf:"bytes,3,rep,name=Labels,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) Reset() {
|
|
*x = InventoryUpdateLabelsRequest{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InventoryUpdateLabelsRequest) ProtoMessage() {}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) GetServerID() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_ServerID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) GetKind() LabelUpdateKind {
|
|
if x != nil {
|
|
return x.xxx_hidden_Kind
|
|
}
|
|
return LabelUpdateKind_SSHServer
|
|
}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) GetLabels() map[string]string {
|
|
if x != nil {
|
|
return x.xxx_hidden_Labels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) SetServerID(v string) {
|
|
x.xxx_hidden_ServerID = v
|
|
}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) SetKind(v LabelUpdateKind) {
|
|
x.xxx_hidden_Kind = v
|
|
}
|
|
|
|
func (x *InventoryUpdateLabelsRequest) SetLabels(v map[string]string) {
|
|
x.xxx_hidden_Labels = v
|
|
}
|
|
|
|
type InventoryUpdateLabelsRequest_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// ServerID advertises the server ID of the instance.
|
|
ServerID string
|
|
// Kind is the type of service to update labels for.
|
|
Kind LabelUpdateKind
|
|
// Labels is the new set of labels for the instance.
|
|
Labels map[string]string
|
|
}
|
|
|
|
func (b0 InventoryUpdateLabelsRequest_builder) Build() *InventoryUpdateLabelsRequest {
|
|
m0 := &InventoryUpdateLabelsRequest{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_ServerID = b.ServerID
|
|
x.xxx_hidden_Kind = b.Kind
|
|
x.xxx_hidden_Labels = b.Labels
|
|
return m0
|
|
}
|
|
|
|
// DownstreamInventoryUpdateLabels is the message sent down the inventory
|
|
// control stream to update the instance's labels.
|
|
type DownstreamInventoryUpdateLabels struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Kind LabelUpdateKind `protobuf:"varint,1,opt,name=Kind,proto3,enum=proto.LabelUpdateKind"`
|
|
xxx_hidden_Labels map[string]string `protobuf:"bytes,2,rep,name=Labels,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownstreamInventoryUpdateLabels) Reset() {
|
|
*x = DownstreamInventoryUpdateLabels{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownstreamInventoryUpdateLabels) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownstreamInventoryUpdateLabels) ProtoMessage() {}
|
|
|
|
func (x *DownstreamInventoryUpdateLabels) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *DownstreamInventoryUpdateLabels) GetKind() LabelUpdateKind {
|
|
if x != nil {
|
|
return x.xxx_hidden_Kind
|
|
}
|
|
return LabelUpdateKind_SSHServer
|
|
}
|
|
|
|
func (x *DownstreamInventoryUpdateLabels) GetLabels() map[string]string {
|
|
if x != nil {
|
|
return x.xxx_hidden_Labels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DownstreamInventoryUpdateLabels) SetKind(v LabelUpdateKind) {
|
|
x.xxx_hidden_Kind = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryUpdateLabels) SetLabels(v map[string]string) {
|
|
x.xxx_hidden_Labels = v
|
|
}
|
|
|
|
type DownstreamInventoryUpdateLabels_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// Kind is the type of service to update labels for.
|
|
Kind LabelUpdateKind
|
|
// Labels is the new set of labels for the instance.
|
|
Labels map[string]string
|
|
}
|
|
|
|
func (b0 DownstreamInventoryUpdateLabels_builder) Build() *DownstreamInventoryUpdateLabels {
|
|
m0 := &DownstreamInventoryUpdateLabels{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_Kind = b.Kind
|
|
x.xxx_hidden_Labels = b.Labels
|
|
return m0
|
|
}
|
|
|
|
// InventoryHeartbeat announces information about instance state.
|
|
type InventoryHeartbeat struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_SSHServer *types.ServerV2 `protobuf:"bytes,1,opt,name=SSHServer,proto3"`
|
|
xxx_hidden_AppServer *types.AppServerV3 `protobuf:"bytes,2,opt,name=AppServer,proto3"`
|
|
xxx_hidden_DatabaseServer *types.DatabaseServerV3 `protobuf:"bytes,3,opt,name=DatabaseServer,proto3"`
|
|
xxx_hidden_KubernetesServer *types.KubernetesServerV3 `protobuf:"bytes,4,opt,name=KubernetesServer,proto3"`
|
|
xxx_hidden_RelayServer *v11.RelayServer `protobuf:"bytes,5,opt,name=relay_server,json=relayServer,proto3"`
|
|
xxx_hidden_LinuxDesktop *v12.LinuxDesktop `protobuf:"bytes,6,opt,name=linux_desktop,json=linuxDesktop,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) Reset() {
|
|
*x = InventoryHeartbeat{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InventoryHeartbeat) ProtoMessage() {}
|
|
|
|
func (x *InventoryHeartbeat) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) GetSSHServer() *types.ServerV2 {
|
|
if x != nil {
|
|
return x.xxx_hidden_SSHServer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) GetAppServer() *types.AppServerV3 {
|
|
if x != nil {
|
|
return x.xxx_hidden_AppServer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) GetDatabaseServer() *types.DatabaseServerV3 {
|
|
if x != nil {
|
|
return x.xxx_hidden_DatabaseServer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) GetKubernetesServer() *types.KubernetesServerV3 {
|
|
if x != nil {
|
|
return x.xxx_hidden_KubernetesServer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) GetRelayServer() *v11.RelayServer {
|
|
if x != nil {
|
|
return x.xxx_hidden_RelayServer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) GetLinuxDesktop() *v12.LinuxDesktop {
|
|
if x != nil {
|
|
return x.xxx_hidden_LinuxDesktop
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) SetSSHServer(v *types.ServerV2) {
|
|
x.xxx_hidden_SSHServer = v
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) SetAppServer(v *types.AppServerV3) {
|
|
x.xxx_hidden_AppServer = v
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) SetDatabaseServer(v *types.DatabaseServerV3) {
|
|
x.xxx_hidden_DatabaseServer = v
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) SetKubernetesServer(v *types.KubernetesServerV3) {
|
|
x.xxx_hidden_KubernetesServer = v
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) SetRelayServer(v *v11.RelayServer) {
|
|
x.xxx_hidden_RelayServer = v
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) SetLinuxDesktop(v *v12.LinuxDesktop) {
|
|
x.xxx_hidden_LinuxDesktop = v
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) HasSSHServer() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_SSHServer != nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) HasAppServer() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_AppServer != nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) HasDatabaseServer() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_DatabaseServer != nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) HasKubernetesServer() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_KubernetesServer != nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) HasRelayServer() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_RelayServer != nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) HasLinuxDesktop() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.xxx_hidden_LinuxDesktop != nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) ClearSSHServer() {
|
|
x.xxx_hidden_SSHServer = nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) ClearAppServer() {
|
|
x.xxx_hidden_AppServer = nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) ClearDatabaseServer() {
|
|
x.xxx_hidden_DatabaseServer = nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) ClearKubernetesServer() {
|
|
x.xxx_hidden_KubernetesServer = nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) ClearRelayServer() {
|
|
x.xxx_hidden_RelayServer = nil
|
|
}
|
|
|
|
func (x *InventoryHeartbeat) ClearLinuxDesktop() {
|
|
x.xxx_hidden_LinuxDesktop = nil
|
|
}
|
|
|
|
type InventoryHeartbeat_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// SSHServer is a complete ssh server spec to be heartbeated (note: the full spec is heartbeated
|
|
// in the interest of simple conversion from the old logic of heartbeating via UpsertNode, but
|
|
// we should be able to cut down on network usage fairly significantly by moving static values
|
|
// to the hello message and only heartbeating dynamic values here).
|
|
SSHServer *types.ServerV2
|
|
// AppServer is a complete app server spec to be heartbeated.
|
|
AppServer *types.AppServerV3
|
|
// DatabaseServer is a complete db server spec to be heartbeated.
|
|
DatabaseServer *types.DatabaseServerV3
|
|
// KubeServer is a complete kube server spec to be heartbeated.
|
|
KubernetesServer *types.KubernetesServerV3
|
|
// A relay_server to be heartbeated.
|
|
RelayServer *v11.RelayServer
|
|
// LinuxDesktop is a complete linux desktop spec to be heartbeated.
|
|
LinuxDesktop *v12.LinuxDesktop
|
|
}
|
|
|
|
func (b0 InventoryHeartbeat_builder) Build() *InventoryHeartbeat {
|
|
m0 := &InventoryHeartbeat{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_SSHServer = b.SSHServer
|
|
x.xxx_hidden_AppServer = b.AppServer
|
|
x.xxx_hidden_DatabaseServer = b.DatabaseServer
|
|
x.xxx_hidden_KubernetesServer = b.KubernetesServer
|
|
x.xxx_hidden_RelayServer = b.RelayServer
|
|
x.xxx_hidden_LinuxDesktop = b.LinuxDesktop
|
|
return m0
|
|
}
|
|
|
|
// UpstreamInventoryGoodbye informs the upstream service that instance
|
|
// is terminating
|
|
type UpstreamInventoryGoodbye struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_DeleteResources bool `protobuf:"varint,1,opt,name=DeleteResources,proto3"`
|
|
xxx_hidden_SoftReload bool `protobuf:"varint,2,opt,name=SoftReload,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpstreamInventoryGoodbye) Reset() {
|
|
*x = UpstreamInventoryGoodbye{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpstreamInventoryGoodbye) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpstreamInventoryGoodbye) ProtoMessage() {}
|
|
|
|
func (x *UpstreamInventoryGoodbye) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *UpstreamInventoryGoodbye) GetDeleteResources() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_DeleteResources
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpstreamInventoryGoodbye) GetSoftReload() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_SoftReload
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpstreamInventoryGoodbye) SetDeleteResources(v bool) {
|
|
x.xxx_hidden_DeleteResources = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryGoodbye) SetSoftReload(v bool) {
|
|
x.xxx_hidden_SoftReload = v
|
|
}
|
|
|
|
type UpstreamInventoryGoodbye_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// DeleteResources indicates that any heartbeats received from
|
|
// the instance should be terminated when the stream is closed.
|
|
DeleteResources bool
|
|
// SoftReload indicates that the instance started a new Teleport process
|
|
// and will gracefully exit once all the currently served sessions are over.
|
|
SoftReload bool
|
|
}
|
|
|
|
func (b0 UpstreamInventoryGoodbye_builder) Build() *UpstreamInventoryGoodbye {
|
|
m0 := &UpstreamInventoryGoodbye{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_DeleteResources = b.DeleteResources
|
|
x.xxx_hidden_SoftReload = b.SoftReload
|
|
return m0
|
|
}
|
|
|
|
// InventoryStatusRequest requests inventory status info.
|
|
type InventoryStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Connected bool `protobuf:"varint,1,opt,name=Connected,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InventoryStatusRequest) Reset() {
|
|
*x = InventoryStatusRequest{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InventoryStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InventoryStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *InventoryStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *InventoryStatusRequest) GetConnected() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_Connected
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *InventoryStatusRequest) SetConnected(v bool) {
|
|
x.xxx_hidden_Connected = v
|
|
}
|
|
|
|
type InventoryStatusRequest_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// Connected requests summary of the inventory control streams registered with
|
|
// the auth server that handles the request.
|
|
Connected bool
|
|
}
|
|
|
|
func (b0 InventoryStatusRequest_builder) Build() *InventoryStatusRequest {
|
|
m0 := &InventoryStatusRequest{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_Connected = b.Connected
|
|
return m0
|
|
}
|
|
|
|
// InventoryStatusSummary is the status summary returned by the GetInventoryStatus rpc.
|
|
type InventoryStatusSummary struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Connected *[]*UpstreamInventoryHello `protobuf:"bytes,1,rep,name=Connected,proto3"`
|
|
xxx_hidden_InstanceCount uint32 `protobuf:"varint,2,opt,name=InstanceCount,proto3"`
|
|
xxx_hidden_VersionCounts map[string]uint32 `protobuf:"bytes,3,rep,name=VersionCounts,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
|
xxx_hidden_UpgraderCounts map[string]uint32 `protobuf:"bytes,4,rep,name=UpgraderCounts,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
|
xxx_hidden_ServiceCounts map[string]uint32 `protobuf:"bytes,5,rep,name=ServiceCounts,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) Reset() {
|
|
*x = InventoryStatusSummary{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InventoryStatusSummary) ProtoMessage() {}
|
|
|
|
func (x *InventoryStatusSummary) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) GetConnected() []*UpstreamInventoryHello {
|
|
if x != nil {
|
|
if x.xxx_hidden_Connected != nil {
|
|
return *x.xxx_hidden_Connected
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) GetInstanceCount() uint32 {
|
|
if x != nil {
|
|
return x.xxx_hidden_InstanceCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) GetVersionCounts() map[string]uint32 {
|
|
if x != nil {
|
|
return x.xxx_hidden_VersionCounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) GetUpgraderCounts() map[string]uint32 {
|
|
if x != nil {
|
|
return x.xxx_hidden_UpgraderCounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) GetServiceCounts() map[string]uint32 {
|
|
if x != nil {
|
|
return x.xxx_hidden_ServiceCounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) SetConnected(v []*UpstreamInventoryHello) {
|
|
x.xxx_hidden_Connected = &v
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) SetInstanceCount(v uint32) {
|
|
x.xxx_hidden_InstanceCount = v
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) SetVersionCounts(v map[string]uint32) {
|
|
x.xxx_hidden_VersionCounts = v
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) SetUpgraderCounts(v map[string]uint32) {
|
|
x.xxx_hidden_UpgraderCounts = v
|
|
}
|
|
|
|
func (x *InventoryStatusSummary) SetServiceCounts(v map[string]uint32) {
|
|
x.xxx_hidden_ServiceCounts = v
|
|
}
|
|
|
|
type InventoryStatusSummary_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// Connected is a summary of the instances connected to the current auth server. Only set if
|
|
// the Connected flag in the status request is true.
|
|
Connected []*UpstreamInventoryHello
|
|
// InstanceCount is the total number of instance resources aggregated.
|
|
InstanceCount uint32
|
|
// VersionCounts aggregates unique version counts.
|
|
VersionCounts map[string]uint32
|
|
// UpgraderCounts aggregates the unique upgrader counts.
|
|
UpgraderCounts map[string]uint32
|
|
// ServiceCounts aggregates the number of services.
|
|
ServiceCounts map[string]uint32
|
|
}
|
|
|
|
func (b0 InventoryStatusSummary_builder) Build() *InventoryStatusSummary {
|
|
m0 := &InventoryStatusSummary{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_Connected = &b.Connected
|
|
x.xxx_hidden_InstanceCount = b.InstanceCount
|
|
x.xxx_hidden_VersionCounts = b.VersionCounts
|
|
x.xxx_hidden_UpgraderCounts = b.UpgraderCounts
|
|
x.xxx_hidden_ServiceCounts = b.ServiceCounts
|
|
return m0
|
|
}
|
|
|
|
// UpstreamInventoryStopHeartbeat informs the upstream service that the
|
|
// heartbeat is stopping.
|
|
type UpstreamInventoryStopHeartbeat struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_Kind StopHeartbeatKind `protobuf:"varint,1,opt,name=kind,proto3,enum=proto.StopHeartbeatKind"`
|
|
xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpstreamInventoryStopHeartbeat) Reset() {
|
|
*x = UpstreamInventoryStopHeartbeat{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpstreamInventoryStopHeartbeat) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpstreamInventoryStopHeartbeat) ProtoMessage() {}
|
|
|
|
func (x *UpstreamInventoryStopHeartbeat) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *UpstreamInventoryStopHeartbeat) GetKind() StopHeartbeatKind {
|
|
if x != nil {
|
|
return x.xxx_hidden_Kind
|
|
}
|
|
return StopHeartbeatKind_STOP_HEARTBEAT_KIND_UNSPECIFIED
|
|
}
|
|
|
|
func (x *UpstreamInventoryStopHeartbeat) GetName() string {
|
|
if x != nil {
|
|
return x.xxx_hidden_Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpstreamInventoryStopHeartbeat) SetKind(v StopHeartbeatKind) {
|
|
x.xxx_hidden_Kind = v
|
|
}
|
|
|
|
func (x *UpstreamInventoryStopHeartbeat) SetName(v string) {
|
|
x.xxx_hidden_Name = v
|
|
}
|
|
|
|
type UpstreamInventoryStopHeartbeat_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// Kind is the kind of heartbeat to stop.
|
|
Kind StopHeartbeatKind
|
|
// Name is the name of the heatbeat to stop.
|
|
Name string
|
|
}
|
|
|
|
func (b0 UpstreamInventoryStopHeartbeat_builder) Build() *UpstreamInventoryStopHeartbeat {
|
|
m0 := &UpstreamInventoryStopHeartbeat{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_Kind = b.Kind
|
|
x.xxx_hidden_Name = b.Name
|
|
return m0
|
|
}
|
|
|
|
// SupportedCapabilities indicate which features of the ICS that
|
|
// the connect auth server supports. This allows agents to determine
|
|
// how they should interact with the auth server to maintain compatibility.
|
|
type DownstreamInventoryHello_SupportedCapabilities struct {
|
|
state protoimpl.MessageState `protogen:"opaque.v1"`
|
|
xxx_hidden_ProxyHeartbeats bool `protobuf:"varint,1,opt,name=ProxyHeartbeats,proto3"`
|
|
xxx_hidden_ProxyCleanup bool `protobuf:"varint,2,opt,name=ProxyCleanup,proto3"`
|
|
xxx_hidden_AuthHeartbeats bool `protobuf:"varint,3,opt,name=AuthHeartbeats,proto3"`
|
|
xxx_hidden_AuthCleanup bool `protobuf:"varint,4,opt,name=AuthCleanup,proto3"`
|
|
xxx_hidden_NodeHeartbeats bool `protobuf:"varint,5,opt,name=NodeHeartbeats,proto3"`
|
|
xxx_hidden_NodeCleanup bool `protobuf:"varint,6,opt,name=NodeCleanup,proto3"`
|
|
xxx_hidden_AppHeartbeats bool `protobuf:"varint,7,opt,name=AppHeartbeats,proto3"`
|
|
xxx_hidden_AppCleanup bool `protobuf:"varint,8,opt,name=AppCleanup,proto3"`
|
|
xxx_hidden_DatabaseHeartbeats bool `protobuf:"varint,9,opt,name=DatabaseHeartbeats,proto3"`
|
|
xxx_hidden_DatabaseCleanup bool `protobuf:"varint,10,opt,name=DatabaseCleanup,proto3"`
|
|
xxx_hidden_DatabaseServiceHeartbeats bool `protobuf:"varint,11,opt,name=DatabaseServiceHeartbeats,proto3"`
|
|
xxx_hidden_DatabaseServiceCleanup bool `protobuf:"varint,12,opt,name=DatabaseServiceCleanup,proto3"`
|
|
xxx_hidden_WindowsDesktopHeartbeats bool `protobuf:"varint,13,opt,name=WindowsDesktopHeartbeats,proto3"`
|
|
xxx_hidden_WindowsDesktopCleanup bool `protobuf:"varint,14,opt,name=WindowsDesktopCleanup,proto3"`
|
|
xxx_hidden_WindowsDesktopServiceHeartbeats bool `protobuf:"varint,15,opt,name=WindowsDesktopServiceHeartbeats,proto3"`
|
|
xxx_hidden_WindowsDesktopServiceCleanup bool `protobuf:"varint,16,opt,name=WindowsDesktopServiceCleanup,proto3"`
|
|
xxx_hidden_KubernetesHeartbeats bool `protobuf:"varint,17,opt,name=KubernetesHeartbeats,proto3"`
|
|
xxx_hidden_KubernetesCleanup bool `protobuf:"varint,18,opt,name=KubernetesCleanup,proto3"`
|
|
xxx_hidden_RelayServerHeartbeatsCleanup bool `protobuf:"varint,19,opt,name=relay_server_heartbeats_cleanup,json=relayServerHeartbeatsCleanup,proto3"`
|
|
xxx_hidden_DatabaseHeartbeatGracefulStop bool `protobuf:"varint,20,opt,name=database_heartbeat_graceful_stop,json=databaseHeartbeatGracefulStop,proto3"`
|
|
xxx_hidden_LinuxDesktopHeartbeats bool `protobuf:"varint,21,opt,name=linux_desktop_heartbeats,json=linuxDesktopHeartbeats,proto3"`
|
|
xxx_hidden_LinuxDesktopCleanup bool `protobuf:"varint,22,opt,name=linux_desktop_cleanup,json=linuxDesktopCleanup,proto3"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) Reset() {
|
|
*x = DownstreamInventoryHello_SupportedCapabilities{}
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownstreamInventoryHello_SupportedCapabilities) ProtoMessage() {}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) ProtoReflect() protoreflect.Message {
|
|
mi := &file_teleport_legacy_client_proto_inventory_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetProxyHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_ProxyHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetProxyCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_ProxyCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetAuthHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_AuthHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetAuthCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_AuthCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetNodeHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_NodeHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetNodeCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_NodeCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetAppHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_AppHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetAppCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_AppCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetDatabaseHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_DatabaseHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetDatabaseCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_DatabaseCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetDatabaseServiceHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_DatabaseServiceHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetDatabaseServiceCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_DatabaseServiceCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetWindowsDesktopHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_WindowsDesktopHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetWindowsDesktopCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_WindowsDesktopCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetWindowsDesktopServiceHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_WindowsDesktopServiceHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetWindowsDesktopServiceCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_WindowsDesktopServiceCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetKubernetesHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_KubernetesHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetKubernetesCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_KubernetesCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetRelayServerHeartbeatsCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_RelayServerHeartbeatsCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetDatabaseHeartbeatGracefulStop() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_DatabaseHeartbeatGracefulStop
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetLinuxDesktopHeartbeats() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_LinuxDesktopHeartbeats
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) GetLinuxDesktopCleanup() bool {
|
|
if x != nil {
|
|
return x.xxx_hidden_LinuxDesktopCleanup
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetProxyHeartbeats(v bool) {
|
|
x.xxx_hidden_ProxyHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetProxyCleanup(v bool) {
|
|
x.xxx_hidden_ProxyCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetAuthHeartbeats(v bool) {
|
|
x.xxx_hidden_AuthHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetAuthCleanup(v bool) {
|
|
x.xxx_hidden_AuthCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetNodeHeartbeats(v bool) {
|
|
x.xxx_hidden_NodeHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetNodeCleanup(v bool) {
|
|
x.xxx_hidden_NodeCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetAppHeartbeats(v bool) {
|
|
x.xxx_hidden_AppHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetAppCleanup(v bool) {
|
|
x.xxx_hidden_AppCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetDatabaseHeartbeats(v bool) {
|
|
x.xxx_hidden_DatabaseHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetDatabaseCleanup(v bool) {
|
|
x.xxx_hidden_DatabaseCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetDatabaseServiceHeartbeats(v bool) {
|
|
x.xxx_hidden_DatabaseServiceHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetDatabaseServiceCleanup(v bool) {
|
|
x.xxx_hidden_DatabaseServiceCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetWindowsDesktopHeartbeats(v bool) {
|
|
x.xxx_hidden_WindowsDesktopHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetWindowsDesktopCleanup(v bool) {
|
|
x.xxx_hidden_WindowsDesktopCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetWindowsDesktopServiceHeartbeats(v bool) {
|
|
x.xxx_hidden_WindowsDesktopServiceHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetWindowsDesktopServiceCleanup(v bool) {
|
|
x.xxx_hidden_WindowsDesktopServiceCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetKubernetesHeartbeats(v bool) {
|
|
x.xxx_hidden_KubernetesHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetKubernetesCleanup(v bool) {
|
|
x.xxx_hidden_KubernetesCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetRelayServerHeartbeatsCleanup(v bool) {
|
|
x.xxx_hidden_RelayServerHeartbeatsCleanup = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetDatabaseHeartbeatGracefulStop(v bool) {
|
|
x.xxx_hidden_DatabaseHeartbeatGracefulStop = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetLinuxDesktopHeartbeats(v bool) {
|
|
x.xxx_hidden_LinuxDesktopHeartbeats = v
|
|
}
|
|
|
|
func (x *DownstreamInventoryHello_SupportedCapabilities) SetLinuxDesktopCleanup(v bool) {
|
|
x.xxx_hidden_LinuxDesktopCleanup = v
|
|
}
|
|
|
|
type DownstreamInventoryHello_SupportedCapabilities_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
// ProxyHeartbeats indicates the ICS supports heartbeating proxy servers.
|
|
ProxyHeartbeats bool
|
|
// ProxyCleanup indicates the ICS supports deleting proxies when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
ProxyCleanup bool
|
|
// ProxyHeartbeats indicates the ICS supports heartbeating proxy servers.
|
|
AuthHeartbeats bool
|
|
// ProxyCleanup indicates the ICS supports deleting proxies when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
AuthCleanup bool
|
|
// NodeHeartbeats indicates the ICS supports heartbeating ssh servers.
|
|
NodeHeartbeats bool
|
|
// NodeCleanup indicates the ICS supports deleting nodes when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
NodeCleanup bool
|
|
// AppHeartbeats indicates the ICS supports heartbeating app servers.
|
|
AppHeartbeats bool
|
|
// AppCleanup indicates the ICS supports deleting apps when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
AppCleanup bool
|
|
// DatabaseHeartbeats indicates the ICS supports heartbeating databases.
|
|
DatabaseHeartbeats bool
|
|
// DatabaseCleanup indicates the ICS supports deleting databases when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
DatabaseCleanup bool
|
|
// DatabaseServiceHeartbeats indicates the ICS supports heartbeating databse services.
|
|
DatabaseServiceHeartbeats bool
|
|
// DatabaseServiceCleanup indicates the ICS supports deleting database services when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
DatabaseServiceCleanup bool
|
|
// WindowsDesktopHeartbeats indicates the ICS supports heartbeating windows desktop servers.
|
|
WindowsDesktopHeartbeats bool
|
|
// WindowsDesktopCleanup indicates the ICS supports deleting windows desktops when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
WindowsDesktopCleanup bool
|
|
// WindowsDesktopHeartbeats indicates the ICS supports heartbeating windows desktop services.
|
|
WindowsDesktopServiceHeartbeats bool
|
|
// WindowsDesktopCleanup indicates the ICS supports deleting windows desktop services when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
WindowsDesktopServiceCleanup bool
|
|
// KubernetesHeartbeats indicates the ICS supports heartbeating kubernetes clusters.
|
|
KubernetesHeartbeats bool
|
|
// KubernetesCleanup indicates the ICS supports deleting kubernetes clusters when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
KubernetesCleanup bool
|
|
// Indicates that the ICS supports heartbeating relay_server entries as well as deleting them on disconnect if UpstreamInventoryGoodbye.DeleteResources is set.
|
|
RelayServerHeartbeatsCleanup bool
|
|
// DatabaseHeartbeatGracefulStop indicates the ICS supports stopping an individual database heartbeat.
|
|
DatabaseHeartbeatGracefulStop bool
|
|
// LinuxDesktopHeartbeats indicates the ICS supports heartbeating linux desktops.
|
|
LinuxDesktopHeartbeats bool
|
|
// LinuxDesktopCleanup indicates the ICS supports deleting linux desktops when UpstreamInventoryGoodbye.DeleteResources is set.
|
|
LinuxDesktopCleanup bool
|
|
}
|
|
|
|
func (b0 DownstreamInventoryHello_SupportedCapabilities_builder) Build() *DownstreamInventoryHello_SupportedCapabilities {
|
|
m0 := &DownstreamInventoryHello_SupportedCapabilities{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.xxx_hidden_ProxyHeartbeats = b.ProxyHeartbeats
|
|
x.xxx_hidden_ProxyCleanup = b.ProxyCleanup
|
|
x.xxx_hidden_AuthHeartbeats = b.AuthHeartbeats
|
|
x.xxx_hidden_AuthCleanup = b.AuthCleanup
|
|
x.xxx_hidden_NodeHeartbeats = b.NodeHeartbeats
|
|
x.xxx_hidden_NodeCleanup = b.NodeCleanup
|
|
x.xxx_hidden_AppHeartbeats = b.AppHeartbeats
|
|
x.xxx_hidden_AppCleanup = b.AppCleanup
|
|
x.xxx_hidden_DatabaseHeartbeats = b.DatabaseHeartbeats
|
|
x.xxx_hidden_DatabaseCleanup = b.DatabaseCleanup
|
|
x.xxx_hidden_DatabaseServiceHeartbeats = b.DatabaseServiceHeartbeats
|
|
x.xxx_hidden_DatabaseServiceCleanup = b.DatabaseServiceCleanup
|
|
x.xxx_hidden_WindowsDesktopHeartbeats = b.WindowsDesktopHeartbeats
|
|
x.xxx_hidden_WindowsDesktopCleanup = b.WindowsDesktopCleanup
|
|
x.xxx_hidden_WindowsDesktopServiceHeartbeats = b.WindowsDesktopServiceHeartbeats
|
|
x.xxx_hidden_WindowsDesktopServiceCleanup = b.WindowsDesktopServiceCleanup
|
|
x.xxx_hidden_KubernetesHeartbeats = b.KubernetesHeartbeats
|
|
x.xxx_hidden_KubernetesCleanup = b.KubernetesCleanup
|
|
x.xxx_hidden_RelayServerHeartbeatsCleanup = b.RelayServerHeartbeatsCleanup
|
|
x.xxx_hidden_DatabaseHeartbeatGracefulStop = b.DatabaseHeartbeatGracefulStop
|
|
x.xxx_hidden_LinuxDesktopHeartbeats = b.LinuxDesktopHeartbeats
|
|
x.xxx_hidden_LinuxDesktopCleanup = b.LinuxDesktopCleanup
|
|
return m0
|
|
}
|
|
|
|
var File_teleport_legacy_client_proto_inventory_proto protoreflect.FileDescriptor
|
|
|
|
const file_teleport_legacy_client_proto_inventory_proto_rawDesc = "" +
|
|
"\n" +
|
|
",teleport/legacy/client/proto/inventory.proto\x12\x05proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!teleport/legacy/types/types.proto\x1a,teleport/linuxdesktop/v1/linux_desktop.proto\x1a'teleport/presence/v1/relay_server.proto\x1a&teleport/scopes/joining/v1/token.proto\"\xa1\x03\n" +
|
|
"\x16UpstreamInventoryOneOf\x125\n" +
|
|
"\x05Hello\x18\x01 \x01(\v2\x1d.proto.UpstreamInventoryHelloH\x00R\x05Hello\x129\n" +
|
|
"\tHeartbeat\x18\x02 \x01(\v2\x19.proto.InventoryHeartbeatH\x00R\tHeartbeat\x122\n" +
|
|
"\x04Pong\x18\x03 \x01(\v2\x1c.proto.UpstreamInventoryPongH\x00R\x04Pong\x12M\n" +
|
|
"\rAgentMetadata\x18\x04 \x01(\v2%.proto.UpstreamInventoryAgentMetadataH\x00R\rAgentMetadata\x12;\n" +
|
|
"\aGoodbye\x18\x05 \x01(\v2\x1f.proto.UpstreamInventoryGoodbyeH\x00R\aGoodbye\x12N\n" +
|
|
"\x0estop_heartbeat\x18\x06 \x01(\v2%.proto.UpstreamInventoryStopHeartbeatH\x00R\rstopHeartbeatB\x05\n" +
|
|
"\x03Msg\"\xde\x01\n" +
|
|
"\x18DownstreamInventoryOneOf\x127\n" +
|
|
"\x05Hello\x18\x01 \x01(\v2\x1f.proto.DownstreamInventoryHelloH\x00R\x05Hello\x124\n" +
|
|
"\x04Ping\x18\x02 \x01(\v2\x1e.proto.DownstreamInventoryPingH\x00R\x04Ping\x12L\n" +
|
|
"\fUpdateLabels\x18\x03 \x01(\v2&.proto.DownstreamInventoryUpdateLabelsH\x00R\fUpdateLabelsB\x05\n" +
|
|
"\x03Msg\")\n" +
|
|
"\x17DownstreamInventoryPing\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\x04R\x02ID\"e\n" +
|
|
"\x15UpstreamInventoryPong\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\x04R\x02ID\x12<\n" +
|
|
"\vSystemClock\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\vSystemClock\"\xa7\x03\n" +
|
|
"\x16UpstreamInventoryHello\x12\x18\n" +
|
|
"\aVersion\x18\x01 \x01(\tR\aVersion\x12\x1a\n" +
|
|
"\bServerID\x18\x02 \x01(\tR\bServerID\x12\x1a\n" +
|
|
"\bServices\x18\x03 \x03(\tR\bServices\x12\x1a\n" +
|
|
"\bHostname\x18\x04 \x01(\tR\bHostname\x12*\n" +
|
|
"\x10ExternalUpgrader\x18\x05 \x01(\tR\x10ExternalUpgrader\x128\n" +
|
|
"\x17ExternalUpgraderVersion\x18\x06 \x01(\tR\x17ExternalUpgraderVersion\x126\n" +
|
|
"\vUpdaterInfo\x18\b \x01(\v2\x14.types.UpdaterV2InfoR\vUpdaterInfo\x12\x14\n" +
|
|
"\x05scope\x18\t \x01(\tR\x05scope\x12V\n" +
|
|
"\x10immutable_labels\x18\n" +
|
|
" \x01(\v2+.teleport.scopes.joining.v1.ImmutableLabelsR\x0fimmutableLabelsJ\x04\b\a\x10\bR\rUpdaterV2Info\"\xd4\x02\n" +
|
|
"\x1eUpstreamInventoryAgentMetadata\x12\x0e\n" +
|
|
"\x02OS\x18\x01 \x01(\tR\x02OS\x12\x1c\n" +
|
|
"\tOSVersion\x18\x02 \x01(\tR\tOSVersion\x12*\n" +
|
|
"\x10HostArchitecture\x18\x03 \x01(\tR\x10HostArchitecture\x12\"\n" +
|
|
"\fGlibcVersion\x18\x04 \x01(\tR\fGlibcVersion\x12&\n" +
|
|
"\x0eInstallMethods\x18\x05 \x03(\tR\x0eInstallMethods\x12*\n" +
|
|
"\x10ContainerRuntime\x18\x06 \x01(\tR\x10ContainerRuntime\x124\n" +
|
|
"\x15ContainerOrchestrator\x18\a \x01(\tR\x15ContainerOrchestrator\x12*\n" +
|
|
"\x10CloudEnvironment\x18\b \x01(\tR\x10CloudEnvironment\"\x9d\n" +
|
|
"\n" +
|
|
"\x18DownstreamInventoryHello\x12\x18\n" +
|
|
"\aVersion\x18\x01 \x01(\tR\aVersion\x12\x1a\n" +
|
|
"\bServerID\x18\x02 \x01(\tR\bServerID\x12Y\n" +
|
|
"\fCapabilities\x18\x03 \x01(\v25.proto.DownstreamInventoryHello.SupportedCapabilitiesR\fCapabilities\x1a\xef\b\n" +
|
|
"\x15SupportedCapabilities\x12(\n" +
|
|
"\x0fProxyHeartbeats\x18\x01 \x01(\bR\x0fProxyHeartbeats\x12\"\n" +
|
|
"\fProxyCleanup\x18\x02 \x01(\bR\fProxyCleanup\x12&\n" +
|
|
"\x0eAuthHeartbeats\x18\x03 \x01(\bR\x0eAuthHeartbeats\x12 \n" +
|
|
"\vAuthCleanup\x18\x04 \x01(\bR\vAuthCleanup\x12&\n" +
|
|
"\x0eNodeHeartbeats\x18\x05 \x01(\bR\x0eNodeHeartbeats\x12 \n" +
|
|
"\vNodeCleanup\x18\x06 \x01(\bR\vNodeCleanup\x12$\n" +
|
|
"\rAppHeartbeats\x18\a \x01(\bR\rAppHeartbeats\x12\x1e\n" +
|
|
"\n" +
|
|
"AppCleanup\x18\b \x01(\bR\n" +
|
|
"AppCleanup\x12.\n" +
|
|
"\x12DatabaseHeartbeats\x18\t \x01(\bR\x12DatabaseHeartbeats\x12(\n" +
|
|
"\x0fDatabaseCleanup\x18\n" +
|
|
" \x01(\bR\x0fDatabaseCleanup\x12<\n" +
|
|
"\x19DatabaseServiceHeartbeats\x18\v \x01(\bR\x19DatabaseServiceHeartbeats\x126\n" +
|
|
"\x16DatabaseServiceCleanup\x18\f \x01(\bR\x16DatabaseServiceCleanup\x12:\n" +
|
|
"\x18WindowsDesktopHeartbeats\x18\r \x01(\bR\x18WindowsDesktopHeartbeats\x124\n" +
|
|
"\x15WindowsDesktopCleanup\x18\x0e \x01(\bR\x15WindowsDesktopCleanup\x12H\n" +
|
|
"\x1fWindowsDesktopServiceHeartbeats\x18\x0f \x01(\bR\x1fWindowsDesktopServiceHeartbeats\x12B\n" +
|
|
"\x1cWindowsDesktopServiceCleanup\x18\x10 \x01(\bR\x1cWindowsDesktopServiceCleanup\x122\n" +
|
|
"\x14KubernetesHeartbeats\x18\x11 \x01(\bR\x14KubernetesHeartbeats\x12,\n" +
|
|
"\x11KubernetesCleanup\x18\x12 \x01(\bR\x11KubernetesCleanup\x12E\n" +
|
|
"\x1frelay_server_heartbeats_cleanup\x18\x13 \x01(\bR\x1crelayServerHeartbeatsCleanup\x12G\n" +
|
|
" database_heartbeat_graceful_stop\x18\x14 \x01(\bR\x1ddatabaseHeartbeatGracefulStop\x128\n" +
|
|
"\x18linux_desktop_heartbeats\x18\x15 \x01(\bR\x16linuxDesktopHeartbeats\x122\n" +
|
|
"\x15linux_desktop_cleanup\x18\x16 \x01(\bR\x13linuxDesktopCleanup\"\xea\x01\n" +
|
|
"\x1cInventoryUpdateLabelsRequest\x12\x1a\n" +
|
|
"\bServerID\x18\x01 \x01(\tR\bServerID\x12*\n" +
|
|
"\x04Kind\x18\x02 \x01(\x0e2\x16.proto.LabelUpdateKindR\x04Kind\x12G\n" +
|
|
"\x06Labels\x18\x03 \x03(\v2/.proto.InventoryUpdateLabelsRequest.LabelsEntryR\x06Labels\x1a9\n" +
|
|
"\vLabelsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xd4\x01\n" +
|
|
"\x1fDownstreamInventoryUpdateLabels\x12*\n" +
|
|
"\x04Kind\x18\x01 \x01(\x0e2\x16.proto.LabelUpdateKindR\x04Kind\x12J\n" +
|
|
"\x06Labels\x18\x02 \x03(\v22.proto.DownstreamInventoryUpdateLabels.LabelsEntryR\x06Labels\x1a9\n" +
|
|
"\vLabelsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x90\x03\n" +
|
|
"\x12InventoryHeartbeat\x12-\n" +
|
|
"\tSSHServer\x18\x01 \x01(\v2\x0f.types.ServerV2R\tSSHServer\x120\n" +
|
|
"\tAppServer\x18\x02 \x01(\v2\x12.types.AppServerV3R\tAppServer\x12?\n" +
|
|
"\x0eDatabaseServer\x18\x03 \x01(\v2\x17.types.DatabaseServerV3R\x0eDatabaseServer\x12E\n" +
|
|
"\x10KubernetesServer\x18\x04 \x01(\v2\x19.types.KubernetesServerV3R\x10KubernetesServer\x12D\n" +
|
|
"\frelay_server\x18\x05 \x01(\v2!.teleport.presence.v1.RelayServerR\vrelayServer\x12K\n" +
|
|
"\rlinux_desktop\x18\x06 \x01(\v2&.teleport.linuxdesktop.v1.LinuxDesktopR\flinuxDesktop\"d\n" +
|
|
"\x18UpstreamInventoryGoodbye\x12(\n" +
|
|
"\x0fDeleteResources\x18\x01 \x01(\bR\x0fDeleteResources\x12\x1e\n" +
|
|
"\n" +
|
|
"SoftReload\x18\x02 \x01(\bR\n" +
|
|
"SoftReload\"6\n" +
|
|
"\x16InventoryStatusRequest\x12\x1c\n" +
|
|
"\tConnected\x18\x01 \x01(\bR\tConnected\"\xcd\x04\n" +
|
|
"\x16InventoryStatusSummary\x12;\n" +
|
|
"\tConnected\x18\x01 \x03(\v2\x1d.proto.UpstreamInventoryHelloR\tConnected\x12$\n" +
|
|
"\rInstanceCount\x18\x02 \x01(\rR\rInstanceCount\x12V\n" +
|
|
"\rVersionCounts\x18\x03 \x03(\v20.proto.InventoryStatusSummary.VersionCountsEntryR\rVersionCounts\x12Y\n" +
|
|
"\x0eUpgraderCounts\x18\x04 \x03(\v21.proto.InventoryStatusSummary.UpgraderCountsEntryR\x0eUpgraderCounts\x12V\n" +
|
|
"\rServiceCounts\x18\x05 \x03(\v20.proto.InventoryStatusSummary.ServiceCountsEntryR\rServiceCounts\x1a@\n" +
|
|
"\x12VersionCountsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\rR\x05value:\x028\x01\x1aA\n" +
|
|
"\x13UpgraderCountsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\rR\x05value:\x028\x01\x1a@\n" +
|
|
"\x12ServiceCountsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\rR\x05value:\x028\x01\"b\n" +
|
|
"\x1eUpstreamInventoryStopHeartbeat\x12,\n" +
|
|
"\x04kind\x18\x01 \x01(\x0e2\x18.proto.StopHeartbeatKindR\x04kind\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name*:\n" +
|
|
"\x0fLabelUpdateKind\x12\r\n" +
|
|
"\tSSHServer\x10\x00\x12\x18\n" +
|
|
"\x14SSHServerCloudLabels\x10\x01*a\n" +
|
|
"\x11StopHeartbeatKind\x12#\n" +
|
|
"\x1fSTOP_HEARTBEAT_KIND_UNSPECIFIED\x10\x00\x12'\n" +
|
|
"#STOP_HEARTBEAT_KIND_DATABASE_SERVER\x10\x01B4Z2github.com/gravitational/teleport/api/client/protob\x06proto3"
|
|
|
|
var file_teleport_legacy_client_proto_inventory_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_teleport_legacy_client_proto_inventory_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
|
var file_teleport_legacy_client_proto_inventory_proto_goTypes = []any{
|
|
(LabelUpdateKind)(0), // 0: proto.LabelUpdateKind
|
|
(StopHeartbeatKind)(0), // 1: proto.StopHeartbeatKind
|
|
(*UpstreamInventoryOneOf)(nil), // 2: proto.UpstreamInventoryOneOf
|
|
(*DownstreamInventoryOneOf)(nil), // 3: proto.DownstreamInventoryOneOf
|
|
(*DownstreamInventoryPing)(nil), // 4: proto.DownstreamInventoryPing
|
|
(*UpstreamInventoryPong)(nil), // 5: proto.UpstreamInventoryPong
|
|
(*UpstreamInventoryHello)(nil), // 6: proto.UpstreamInventoryHello
|
|
(*UpstreamInventoryAgentMetadata)(nil), // 7: proto.UpstreamInventoryAgentMetadata
|
|
(*DownstreamInventoryHello)(nil), // 8: proto.DownstreamInventoryHello
|
|
(*InventoryUpdateLabelsRequest)(nil), // 9: proto.InventoryUpdateLabelsRequest
|
|
(*DownstreamInventoryUpdateLabels)(nil), // 10: proto.DownstreamInventoryUpdateLabels
|
|
(*InventoryHeartbeat)(nil), // 11: proto.InventoryHeartbeat
|
|
(*UpstreamInventoryGoodbye)(nil), // 12: proto.UpstreamInventoryGoodbye
|
|
(*InventoryStatusRequest)(nil), // 13: proto.InventoryStatusRequest
|
|
(*InventoryStatusSummary)(nil), // 14: proto.InventoryStatusSummary
|
|
(*UpstreamInventoryStopHeartbeat)(nil), // 15: proto.UpstreamInventoryStopHeartbeat
|
|
(*DownstreamInventoryHello_SupportedCapabilities)(nil), // 16: proto.DownstreamInventoryHello.SupportedCapabilities
|
|
nil, // 17: proto.InventoryUpdateLabelsRequest.LabelsEntry
|
|
nil, // 18: proto.DownstreamInventoryUpdateLabels.LabelsEntry
|
|
nil, // 19: proto.InventoryStatusSummary.VersionCountsEntry
|
|
nil, // 20: proto.InventoryStatusSummary.UpgraderCountsEntry
|
|
nil, // 21: proto.InventoryStatusSummary.ServiceCountsEntry
|
|
(*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp
|
|
(*types.UpdaterV2Info)(nil), // 23: types.UpdaterV2Info
|
|
(*v1.ImmutableLabels)(nil), // 24: teleport.scopes.joining.v1.ImmutableLabels
|
|
(*types.ServerV2)(nil), // 25: types.ServerV2
|
|
(*types.AppServerV3)(nil), // 26: types.AppServerV3
|
|
(*types.DatabaseServerV3)(nil), // 27: types.DatabaseServerV3
|
|
(*types.KubernetesServerV3)(nil), // 28: types.KubernetesServerV3
|
|
(*v11.RelayServer)(nil), // 29: teleport.presence.v1.RelayServer
|
|
(*v12.LinuxDesktop)(nil), // 30: teleport.linuxdesktop.v1.LinuxDesktop
|
|
}
|
|
var file_teleport_legacy_client_proto_inventory_proto_depIdxs = []int32{
|
|
6, // 0: proto.UpstreamInventoryOneOf.Hello:type_name -> proto.UpstreamInventoryHello
|
|
11, // 1: proto.UpstreamInventoryOneOf.Heartbeat:type_name -> proto.InventoryHeartbeat
|
|
5, // 2: proto.UpstreamInventoryOneOf.Pong:type_name -> proto.UpstreamInventoryPong
|
|
7, // 3: proto.UpstreamInventoryOneOf.AgentMetadata:type_name -> proto.UpstreamInventoryAgentMetadata
|
|
12, // 4: proto.UpstreamInventoryOneOf.Goodbye:type_name -> proto.UpstreamInventoryGoodbye
|
|
15, // 5: proto.UpstreamInventoryOneOf.stop_heartbeat:type_name -> proto.UpstreamInventoryStopHeartbeat
|
|
8, // 6: proto.DownstreamInventoryOneOf.Hello:type_name -> proto.DownstreamInventoryHello
|
|
4, // 7: proto.DownstreamInventoryOneOf.Ping:type_name -> proto.DownstreamInventoryPing
|
|
10, // 8: proto.DownstreamInventoryOneOf.UpdateLabels:type_name -> proto.DownstreamInventoryUpdateLabels
|
|
22, // 9: proto.UpstreamInventoryPong.SystemClock:type_name -> google.protobuf.Timestamp
|
|
23, // 10: proto.UpstreamInventoryHello.UpdaterInfo:type_name -> types.UpdaterV2Info
|
|
24, // 11: proto.UpstreamInventoryHello.immutable_labels:type_name -> teleport.scopes.joining.v1.ImmutableLabels
|
|
16, // 12: proto.DownstreamInventoryHello.Capabilities:type_name -> proto.DownstreamInventoryHello.SupportedCapabilities
|
|
0, // 13: proto.InventoryUpdateLabelsRequest.Kind:type_name -> proto.LabelUpdateKind
|
|
17, // 14: proto.InventoryUpdateLabelsRequest.Labels:type_name -> proto.InventoryUpdateLabelsRequest.LabelsEntry
|
|
0, // 15: proto.DownstreamInventoryUpdateLabels.Kind:type_name -> proto.LabelUpdateKind
|
|
18, // 16: proto.DownstreamInventoryUpdateLabels.Labels:type_name -> proto.DownstreamInventoryUpdateLabels.LabelsEntry
|
|
25, // 17: proto.InventoryHeartbeat.SSHServer:type_name -> types.ServerV2
|
|
26, // 18: proto.InventoryHeartbeat.AppServer:type_name -> types.AppServerV3
|
|
27, // 19: proto.InventoryHeartbeat.DatabaseServer:type_name -> types.DatabaseServerV3
|
|
28, // 20: proto.InventoryHeartbeat.KubernetesServer:type_name -> types.KubernetesServerV3
|
|
29, // 21: proto.InventoryHeartbeat.relay_server:type_name -> teleport.presence.v1.RelayServer
|
|
30, // 22: proto.InventoryHeartbeat.linux_desktop:type_name -> teleport.linuxdesktop.v1.LinuxDesktop
|
|
6, // 23: proto.InventoryStatusSummary.Connected:type_name -> proto.UpstreamInventoryHello
|
|
19, // 24: proto.InventoryStatusSummary.VersionCounts:type_name -> proto.InventoryStatusSummary.VersionCountsEntry
|
|
20, // 25: proto.InventoryStatusSummary.UpgraderCounts:type_name -> proto.InventoryStatusSummary.UpgraderCountsEntry
|
|
21, // 26: proto.InventoryStatusSummary.ServiceCounts:type_name -> proto.InventoryStatusSummary.ServiceCountsEntry
|
|
1, // 27: proto.UpstreamInventoryStopHeartbeat.kind:type_name -> proto.StopHeartbeatKind
|
|
28, // [28:28] is the sub-list for method output_type
|
|
28, // [28:28] is the sub-list for method input_type
|
|
28, // [28:28] is the sub-list for extension type_name
|
|
28, // [28:28] is the sub-list for extension extendee
|
|
0, // [0:28] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_teleport_legacy_client_proto_inventory_proto_init() }
|
|
func file_teleport_legacy_client_proto_inventory_proto_init() {
|
|
if File_teleport_legacy_client_proto_inventory_proto != nil {
|
|
return
|
|
}
|
|
file_teleport_legacy_client_proto_inventory_proto_msgTypes[0].OneofWrappers = []any{
|
|
(*upstreamInventoryOneOf_Hello)(nil),
|
|
(*upstreamInventoryOneOf_Heartbeat)(nil),
|
|
(*upstreamInventoryOneOf_Pong)(nil),
|
|
(*upstreamInventoryOneOf_AgentMetadata)(nil),
|
|
(*upstreamInventoryOneOf_Goodbye)(nil),
|
|
(*upstreamInventoryOneOf_StopHeartbeat)(nil),
|
|
}
|
|
file_teleport_legacy_client_proto_inventory_proto_msgTypes[1].OneofWrappers = []any{
|
|
(*downstreamInventoryOneOf_Hello)(nil),
|
|
(*downstreamInventoryOneOf_Ping)(nil),
|
|
(*downstreamInventoryOneOf_UpdateLabels)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_teleport_legacy_client_proto_inventory_proto_rawDesc), len(file_teleport_legacy_client_proto_inventory_proto_rawDesc)),
|
|
NumEnums: 2,
|
|
NumMessages: 20,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_teleport_legacy_client_proto_inventory_proto_goTypes,
|
|
DependencyIndexes: file_teleport_legacy_client_proto_inventory_proto_depIdxs,
|
|
EnumInfos: file_teleport_legacy_client_proto_inventory_proto_enumTypes,
|
|
MessageInfos: file_teleport_legacy_client_proto_inventory_proto_msgTypes,
|
|
}.Build()
|
|
File_teleport_legacy_client_proto_inventory_proto = out.File
|
|
file_teleport_legacy_client_proto_inventory_proto_goTypes = nil
|
|
file_teleport_legacy_client_proto_inventory_proto_depIdxs = nil
|
|
}
|