connector

package
v2.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 12

Documentation

Index

Constants

View Source
const (
	Connector_Version_FullMethodName                 = "/telepresence.connector.Connector/Version"
	Connector_RootDaemonVersion_FullMethodName       = "/telepresence.connector.Connector/RootDaemonVersion"
	Connector_TrafficManagerVersion_FullMethodName   = "/telepresence.connector.Connector/TrafficManagerVersion"
	Connector_AgentImageFQN_FullMethodName           = "/telepresence.connector.Connector/AgentImageFQN"
	Connector_GetIntercept_FullMethodName            = "/telepresence.connector.Connector/GetIntercept"
	Connector_Connect_FullMethodName                 = "/telepresence.connector.Connector/Connect"
	Connector_Disconnect_FullMethodName              = "/telepresence.connector.Connector/Disconnect"
	Connector_GetClusterSubnets_FullMethodName       = "/telepresence.connector.Connector/GetClusterSubnets"
	Connector_Status_FullMethodName                  = "/telepresence.connector.Connector/Status"
	Connector_CanIntercept_FullMethodName            = "/telepresence.connector.Connector/CanIntercept"
	Connector_CreateIntercept_FullMethodName         = "/telepresence.connector.Connector/CreateIntercept"
	Connector_RemoveIntercept_FullMethodName         = "/telepresence.connector.Connector/RemoveIntercept"
	Connector_UpdateIntercept_FullMethodName         = "/telepresence.connector.Connector/UpdateIntercept"
	Connector_Uninstall_FullMethodName               = "/telepresence.connector.Connector/Uninstall"
	Connector_List_FullMethodName                    = "/telepresence.connector.Connector/List"
	Connector_WatchWorkloads_FullMethodName          = "/telepresence.connector.Connector/WatchWorkloads"
	Connector_SetLogLevel_FullMethodName             = "/telepresence.connector.Connector/SetLogLevel"
	Connector_Quit_FullMethodName                    = "/telepresence.connector.Connector/Quit"
	Connector_GatherLogs_FullMethodName              = "/telepresence.connector.Connector/GatherLogs"
	Connector_GatherTraces_FullMethodName            = "/telepresence.connector.Connector/GatherTraces"
	Connector_AddInterceptor_FullMethodName          = "/telepresence.connector.Connector/AddInterceptor"
	Connector_RemoveInterceptor_FullMethodName       = "/telepresence.connector.Connector/RemoveInterceptor"
	Connector_GetNamespaces_FullMethodName           = "/telepresence.connector.Connector/GetNamespaces"
	Connector_RemoteMountAvailability_FullMethodName = "/telepresence.connector.Connector/RemoteMountAvailability"
	Connector_GetConfig_FullMethodName               = "/telepresence.connector.Connector/GetConfig"
	Connector_SetDNSExcludes_FullMethodName          = "/telepresence.connector.Connector/SetDNSExcludes"
	Connector_SetDNSMappings_FullMethodName          = "/telepresence.connector.Connector/SetDNSMappings"
)
View Source
const (
	ManagerProxy_Version_FullMethodName          = "/telepresence.connector.ManagerProxy/Version"
	ManagerProxy_GetClientConfig_FullMethodName  = "/telepresence.connector.ManagerProxy/GetClientConfig"
	ManagerProxy_EnsureAgent_FullMethodName      = "/telepresence.connector.ManagerProxy/EnsureAgent"
	ManagerProxy_WatchClusterInfo_FullMethodName = "/telepresence.connector.ManagerProxy/WatchClusterInfo"
	ManagerProxy_LookupDNS_FullMethodName        = "/telepresence.connector.ManagerProxy/LookupDNS"
	ManagerProxy_Tunnel_FullMethodName           = "/telepresence.connector.ManagerProxy/Tunnel"
)

Variables

View Source
var (
	ConnectInfo_ErrType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "UNAUTHORIZED",
		5: "UNAUTHENTICATED",
		2: "ALREADY_CONNECTED",
		7: "MUST_RESTART",
		3: "DISCONNECTED",
		4: "CLUSTER_FAILED",
		6: "TRAFFIC_MANAGER_FAILED",
		8: "DAEMON_FAILED",
	}
	ConnectInfo_ErrType_value = map[string]int32{
		"UNSPECIFIED":            0,
		"UNAUTHORIZED":           1,
		"UNAUTHENTICATED":        5,
		"ALREADY_CONNECTED":      2,
		"MUST_RESTART":           7,
		"DISCONNECTED":           3,
		"CLUSTER_FAILED":         4,
		"TRAFFIC_MANAGER_FAILED": 6,
		"DAEMON_FAILED":          8,
	}
)

Enum value maps for ConnectInfo_ErrType.

View Source
var (
	UninstallRequest_UninstallType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "NAMED_AGENTS",
		2: "ALL_AGENTS",
	}
	UninstallRequest_UninstallType_value = map[string]int32{
		"UNSPECIFIED":  0,
		"NAMED_AGENTS": 1,
		"ALL_AGENTS":   2,
	}
)

Enum value maps for UninstallRequest_UninstallType.

View Source
var (
	ListRequest_Filter_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "INTERCEPTS",
		2: "INSTALLED_AGENTS",
		3: "INTERCEPTABLE",
		4: "EVERYTHING",
	}
	ListRequest_Filter_value = map[string]int32{
		"UNSPECIFIED":      0,
		"INTERCEPTS":       1,
		"INSTALLED_AGENTS": 2,
		"INTERCEPTABLE":    3,
		"EVERYTHING":       4,
	}
)

Enum value maps for ListRequest_Filter.

View Source
var (
	LogLevelRequest_Scope_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "LOCAL_ONLY",
		2: "REMOTE_ONLY",
	}
	LogLevelRequest_Scope_value = map[string]int32{
		"UNSPECIFIED": 0,
		"LOCAL_ONLY":  1,
		"REMOTE_ONLY": 2,
	}
)

Enum value maps for LogLevelRequest_Scope.

View Source
var Connector_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "telepresence.connector.Connector",
	HandlerType: (*ConnectorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Version",
			Handler:    _Connector_Version_Handler,
		},
		{
			MethodName: "RootDaemonVersion",
			Handler:    _Connector_RootDaemonVersion_Handler,
		},
		{
			MethodName: "TrafficManagerVersion",
			Handler:    _Connector_TrafficManagerVersion_Handler,
		},
		{
			MethodName: "AgentImageFQN",
			Handler:    _Connector_AgentImageFQN_Handler,
		},
		{
			MethodName: "GetIntercept",
			Handler:    _Connector_GetIntercept_Handler,
		},
		{
			MethodName: "Connect",
			Handler:    _Connector_Connect_Handler,
		},
		{
			MethodName: "Disconnect",
			Handler:    _Connector_Disconnect_Handler,
		},
		{
			MethodName: "GetClusterSubnets",
			Handler:    _Connector_GetClusterSubnets_Handler,
		},
		{
			MethodName: "Status",
			Handler:    _Connector_Status_Handler,
		},
		{
			MethodName: "CanIntercept",
			Handler:    _Connector_CanIntercept_Handler,
		},
		{
			MethodName: "CreateIntercept",
			Handler:    _Connector_CreateIntercept_Handler,
		},
		{
			MethodName: "RemoveIntercept",
			Handler:    _Connector_RemoveIntercept_Handler,
		},
		{
			MethodName: "UpdateIntercept",
			Handler:    _Connector_UpdateIntercept_Handler,
		},
		{
			MethodName: "Uninstall",
			Handler:    _Connector_Uninstall_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Connector_List_Handler,
		},
		{
			MethodName: "SetLogLevel",
			Handler:    _Connector_SetLogLevel_Handler,
		},
		{
			MethodName: "Quit",
			Handler:    _Connector_Quit_Handler,
		},
		{
			MethodName: "GatherLogs",
			Handler:    _Connector_GatherLogs_Handler,
		},
		{
			MethodName: "GatherTraces",
			Handler:    _Connector_GatherTraces_Handler,
		},
		{
			MethodName: "AddInterceptor",
			Handler:    _Connector_AddInterceptor_Handler,
		},
		{
			MethodName: "RemoveInterceptor",
			Handler:    _Connector_RemoveInterceptor_Handler,
		},
		{
			MethodName: "GetNamespaces",
			Handler:    _Connector_GetNamespaces_Handler,
		},
		{
			MethodName: "RemoteMountAvailability",
			Handler:    _Connector_RemoteMountAvailability_Handler,
		},
		{
			MethodName: "GetConfig",
			Handler:    _Connector_GetConfig_Handler,
		},
		{
			MethodName: "SetDNSExcludes",
			Handler:    _Connector_SetDNSExcludes_Handler,
		},
		{
			MethodName: "SetDNSMappings",
			Handler:    _Connector_SetDNSMappings_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "WatchWorkloads",
			Handler:       _Connector_WatchWorkloads_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "connector/connector.proto",
}

Connector_ServiceDesc is the grpc.ServiceDesc for Connector service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_connector_connector_proto protoreflect.FileDescriptor
View Source
var ManagerProxy_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "telepresence.connector.ManagerProxy",
	HandlerType: (*ManagerProxyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Version",
			Handler:    _ManagerProxy_Version_Handler,
		},
		{
			MethodName: "GetClientConfig",
			Handler:    _ManagerProxy_GetClientConfig_Handler,
		},
		{
			MethodName: "EnsureAgent",
			Handler:    _ManagerProxy_EnsureAgent_Handler,
		},
		{
			MethodName: "LookupDNS",
			Handler:    _ManagerProxy_LookupDNS_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "WatchClusterInfo",
			Handler:       _ManagerProxy_WatchClusterInfo_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Tunnel",
			Handler:       _ManagerProxy_Tunnel_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "connector/connector.proto",
}

ManagerProxy_ServiceDesc is the grpc.ServiceDesc for ManagerProxy service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterConnectorServer

func RegisterConnectorServer(s grpc.ServiceRegistrar, srv ConnectorServer)

func RegisterManagerProxyServer added in v2.9.5

func RegisterManagerProxyServer(s grpc.ServiceRegistrar, srv ManagerProxyServer)

Types

type ClientConfig added in v2.9.0

type ClientConfig struct {
	Json []byte `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientConfig) Descriptor deprecated added in v2.9.0

func (*ClientConfig) Descriptor() ([]byte, []int)

Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.

func (*ClientConfig) GetJson added in v2.9.0

func (x *ClientConfig) GetJson() []byte

func (*ClientConfig) ProtoMessage added in v2.9.0

func (*ClientConfig) ProtoMessage()

func (*ClientConfig) ProtoReflect added in v2.9.0

func (x *ClientConfig) ProtoReflect() protoreflect.Message

func (*ClientConfig) Reset added in v2.9.0

func (x *ClientConfig) Reset()

func (*ClientConfig) String added in v2.9.0

func (x *ClientConfig) String() string

type ClusterSubnets added in v2.9.5

type ClusterSubnets struct {

	// pod_subnets are the subnets that pods go into
	PodSubnets []*manager.IPNet `protobuf:"bytes,1,rep,name=pod_subnets,json=podSubnets,proto3" json:"pod_subnets,omitempty"`
	// svc_subnets are subnets that services go into
	SvcSubnets []*manager.IPNet `protobuf:"bytes,2,rep,name=svc_subnets,json=svcSubnets,proto3" json:"svc_subnets,omitempty"`
	// contains filtered or unexported fields
}

ClusterSubnets are the cluster subnets that the daemon has detected that need to be routed

func (*ClusterSubnets) Descriptor deprecated added in v2.9.5

func (*ClusterSubnets) Descriptor() ([]byte, []int)

Deprecated: Use ClusterSubnets.ProtoReflect.Descriptor instead.

func (*ClusterSubnets) GetPodSubnets added in v2.9.5

func (x *ClusterSubnets) GetPodSubnets() []*manager.IPNet

func (*ClusterSubnets) GetSvcSubnets added in v2.9.5

func (x *ClusterSubnets) GetSvcSubnets() []*manager.IPNet

func (*ClusterSubnets) ProtoMessage added in v2.9.5

func (*ClusterSubnets) ProtoMessage()

func (*ClusterSubnets) ProtoReflect added in v2.9.5

func (x *ClusterSubnets) ProtoReflect() protoreflect.Message

func (*ClusterSubnets) Reset added in v2.9.5

func (x *ClusterSubnets) Reset()

func (*ClusterSubnets) String added in v2.9.5

func (x *ClusterSubnets) String() string

type ConnectInfo

type ConnectInfo struct {
	Error ConnectInfo_ErrType `protobuf:"varint,1,opt,name=error,proto3,enum=telepresence.connector.ConnectInfo_ErrType" json:"error,omitempty"`
	// only set for some error codes, see above
	ErrorText      string              `protobuf:"bytes,2,opt,name=error_text,json=errorText,proto3" json:"error_text,omitempty"`
	ErrorCategory  int32               `protobuf:"varint,12,opt,name=error_category,json=errorCategory,proto3" json:"error_category,omitempty"`
	ClusterServer  string              `protobuf:"bytes,3,opt,name=cluster_server,json=clusterServer,proto3" json:"cluster_server,omitempty"`
	ClusterContext string              `protobuf:"bytes,4,opt,name=cluster_context,json=clusterContext,proto3" json:"cluster_context,omitempty"`
	Version        *common.VersionInfo `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	// The name of the connection
	ConnectionName string `protobuf:"bytes,16,opt,name=connection_name,json=connectionName,proto3" json:"connection_name,omitempty"`
	// The kubernetes flags from the telepresence connect command when the connection was established
	KubeFlags map[string]string `` /* 177-byte string literal not displayed */
	// the namespace that the connector is connected to.
	Namespace        string                         `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ManagerInstallId string                         `protobuf:"bytes,7,opt,name=manager_install_id,json=managerInstallId,proto3" json:"manager_install_id,omitempty"`
	Intercepts       *manager.InterceptInfoSnapshot `protobuf:"bytes,8,opt,name=intercepts,proto3" json:"intercepts,omitempty"`
	SessionInfo      *manager.SessionInfo           `protobuf:"bytes,10,opt,name=session_info,json=sessionInfo,proto3" json:"session_info,omitempty"`
	// cluster_id
	// deprecated. Use manager_install_id
	ClusterId          string                      `protobuf:"bytes,11,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	DaemonStatus       *daemon.DaemonStatus        `protobuf:"bytes,13,opt,name=daemon_status,json=daemonStatus,proto3" json:"daemon_status,omitempty"`
	ManagerNamespace   string                      `protobuf:"bytes,14,opt,name=manager_namespace,json=managerNamespace,proto3" json:"manager_namespace,omitempty"`
	MappedNamespaces   []string                    `protobuf:"bytes,15,rep,name=mapped_namespaces,json=mappedNamespaces,proto3" json:"mapped_namespaces,omitempty"`
	SubnetViaWorkloads []*daemon.SubnetViaWorkload `protobuf:"bytes,18,rep,name=subnet_via_workloads,json=subnetViaWorkloads,proto3" json:"subnet_via_workloads,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectInfo) Descriptor deprecated

func (*ConnectInfo) Descriptor() ([]byte, []int)

Deprecated: Use ConnectInfo.ProtoReflect.Descriptor instead.

func (*ConnectInfo) GetClusterContext

func (x *ConnectInfo) GetClusterContext() string

func (*ConnectInfo) GetClusterId

func (x *ConnectInfo) GetClusterId() string

func (*ConnectInfo) GetClusterServer

func (x *ConnectInfo) GetClusterServer() string

func (*ConnectInfo) GetConnectionName added in v2.16.0

func (x *ConnectInfo) GetConnectionName() string

func (*ConnectInfo) GetDaemonStatus added in v2.8.0

func (x *ConnectInfo) GetDaemonStatus() *daemon.DaemonStatus

func (*ConnectInfo) GetError

func (x *ConnectInfo) GetError() ConnectInfo_ErrType

func (*ConnectInfo) GetErrorCategory added in v2.4.3

func (x *ConnectInfo) GetErrorCategory() int32

func (*ConnectInfo) GetErrorText

func (x *ConnectInfo) GetErrorText() string

func (*ConnectInfo) GetIntercepts

func (x *ConnectInfo) GetIntercepts() *manager.InterceptInfoSnapshot

func (*ConnectInfo) GetKubeFlags added in v2.16.0

func (x *ConnectInfo) GetKubeFlags() map[string]string

func (*ConnectInfo) GetManagerInstallId added in v2.18.0

func (x *ConnectInfo) GetManagerInstallId() string

func (*ConnectInfo) GetManagerNamespace added in v2.11.0

func (x *ConnectInfo) GetManagerNamespace() string

func (*ConnectInfo) GetMappedNamespaces added in v2.13.0

func (x *ConnectInfo) GetMappedNamespaces() []string

func (*ConnectInfo) GetNamespace added in v2.16.0

func (x *ConnectInfo) GetNamespace() string

func (*ConnectInfo) GetSessionInfo

func (x *ConnectInfo) GetSessionInfo() *manager.SessionInfo

func (*ConnectInfo) GetSubnetViaWorkloads added in v2.18.0

func (x *ConnectInfo) GetSubnetViaWorkloads() []*daemon.SubnetViaWorkload

func (*ConnectInfo) GetVersion added in v2.10.0

func (x *ConnectInfo) GetVersion() *common.VersionInfo

func (*ConnectInfo) ProtoMessage

func (*ConnectInfo) ProtoMessage()

func (*ConnectInfo) ProtoReflect

func (x *ConnectInfo) ProtoReflect() protoreflect.Message

func (*ConnectInfo) Reset

func (x *ConnectInfo) Reset()

func (*ConnectInfo) String

func (x *ConnectInfo) String() string

type ConnectInfo_ErrType

type ConnectInfo_ErrType int32
const (
	ConnectInfo_UNSPECIFIED       ConnectInfo_ErrType = 0 // success
	ConnectInfo_UNAUTHORIZED      ConnectInfo_ErrType = 1 // not authorized to connect
	ConnectInfo_UNAUTHENTICATED   ConnectInfo_ErrType = 5 // not logged in
	ConnectInfo_ALREADY_CONNECTED ConnectInfo_ErrType = 2 // success
	ConnectInfo_MUST_RESTART      ConnectInfo_ErrType = 7 // would-be-success, but kubeconfig has changed
	// failure: Connect has not yet been called (only returned from Status)
	ConnectInfo_DISCONNECTED ConnectInfo_ErrType = 3
	// failure: error parsing kubeconfig or talking to the cluster; error_text and error_category are set
	ConnectInfo_CLUSTER_FAILED ConnectInfo_ErrType = 4
	// failure: error talking to the in-cluster traffic-manager; error_text and error_category are set
	ConnectInfo_TRAFFIC_MANAGER_FAILED ConnectInfo_ErrType = 6
	// failure: error talking to the on-laptop root daemon; error_text and error_category are set
	ConnectInfo_DAEMON_FAILED ConnectInfo_ErrType = 8
)

func (ConnectInfo_ErrType) Descriptor

func (ConnectInfo_ErrType) Enum

func (ConnectInfo_ErrType) EnumDescriptor deprecated

func (ConnectInfo_ErrType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConnectInfo_ErrType.Descriptor instead.

func (ConnectInfo_ErrType) Number

func (ConnectInfo_ErrType) String

func (x ConnectInfo_ErrType) String() string

func (ConnectInfo_ErrType) Type

type ConnectRequest

type ConnectRequest struct {

	// The kubernetes flags from the telepresence connect command
	KubeFlags map[string]string `` /* 176-byte string literal not displayed */
	// The kubernetes flags used by a containerized daemon
	ContainerKubeFlagOverrides map[string]string           `` /* 231-byte string literal not displayed */
	MappedNamespaces           []string                    `protobuf:"bytes,2,rep,name=mapped_namespaces,json=mappedNamespaces,proto3" json:"mapped_namespaces,omitempty"`
	Name                       string                      `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	IsPodDaemon                bool                        `protobuf:"varint,4,opt,name=is_pod_daemon,json=isPodDaemon,proto3" json:"is_pod_daemon,omitempty"`
	AlsoProxy                  []string                    `protobuf:"bytes,5,rep,name=also_proxy,json=alsoProxy,proto3" json:"also_proxy,omitempty"`    // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED
	NeverProxy                 []string                    `protobuf:"bytes,6,rep,name=never_proxy,json=neverProxy,proto3" json:"never_proxy,omitempty"` // protolint:disable:this REPEATED_FIELD_NAMES_PLURALIZED
	AllowConflictingSubnets    []string                    ``                                                                                            /* 133-byte string literal not displayed */
	SubnetViaWorkloads         []*daemon.SubnetViaWorkload `protobuf:"bytes,11,rep,name=subnet_via_workloads,json=subnetViaWorkloads,proto3" json:"subnet_via_workloads,omitempty"`
	ManagerNamespace           string                      `protobuf:"bytes,7,opt,name=manager_namespace,json=managerNamespace,proto3" json:"manager_namespace,omitempty"`
	Environment                map[string]string           `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

ConnectRequest contains the information needed to connect ot a cluster.

func (*ConnectRequest) Descriptor deprecated

func (*ConnectRequest) Descriptor() ([]byte, []int)

Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.

func (*ConnectRequest) GetAllowConflictingSubnets added in v2.17.0

func (x *ConnectRequest) GetAllowConflictingSubnets() []string

func (*ConnectRequest) GetAlsoProxy added in v2.11.0

func (x *ConnectRequest) GetAlsoProxy() []string

func (*ConnectRequest) GetContainerKubeFlagOverrides added in v2.16.0

func (x *ConnectRequest) GetContainerKubeFlagOverrides() map[string]string

func (*ConnectRequest) GetEnvironment added in v2.16.0

func (x *ConnectRequest) GetEnvironment() map[string]string

func (*ConnectRequest) GetIsPodDaemon added in v2.7.0

func (x *ConnectRequest) GetIsPodDaemon() bool

func (*ConnectRequest) GetKubeFlags

func (x *ConnectRequest) GetKubeFlags() map[string]string

func (*ConnectRequest) GetManagerNamespace added in v2.11.0

func (x *ConnectRequest) GetManagerNamespace() string

func (*ConnectRequest) GetMappedNamespaces

func (x *ConnectRequest) GetMappedNamespaces() []string

func (*ConnectRequest) GetName added in v2.16.0

func (x *ConnectRequest) GetName() string

func (*ConnectRequest) GetNeverProxy added in v2.11.0

func (x *ConnectRequest) GetNeverProxy() []string

func (*ConnectRequest) GetSubnetViaWorkloads added in v2.18.0

func (x *ConnectRequest) GetSubnetViaWorkloads() []*daemon.SubnetViaWorkload

func (*ConnectRequest) ProtoMessage

func (*ConnectRequest) ProtoMessage()

func (*ConnectRequest) ProtoReflect

func (x *ConnectRequest) ProtoReflect() protoreflect.Message

func (*ConnectRequest) Reset

func (x *ConnectRequest) Reset()

func (*ConnectRequest) String

func (x *ConnectRequest) String() string

type ConnectorClient

type ConnectorClient interface {
	// Returns version information from the Connector
	Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.VersionInfo, error)
	// Returns version information from the Root Daemon
	RootDaemonVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.VersionInfo, error)
	// Returns version information from the Traffic Manager
	TrafficManagerVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.VersionInfo, error)
	// Returns the fully qualified image name of the traffic-agent that the agent-injector is configured to inject.
	AgentImageFQN(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*manager.AgentImageFQN, error)
	// GetIntercept gets info from intercept name
	GetIntercept(ctx context.Context, in *manager.GetInterceptRequest, opts ...grpc.CallOption) (*manager.InterceptInfo, error)
	// Connects to the cluster and connects the laptop's network (via
	// the daemon process) to the cluster's network.  A result code of
	// UNSPECIFIED indicates that the connection was successfully
	// initiated; if already connected, then either ALREADY_CONNECTED or
	// MUST_RESTART is returned, based on whether the current connection
	// is in agreement with the ConnectionRequest.
	Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (*ConnectInfo, error)
	// Disconnects the cluster
	Disconnect(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GetClusterSubnets gets the outbound info that has been set on daemon
	GetClusterSubnets(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClusterSubnets, error)
	// Status returns the status of the current connection or DISCONNECTED
	// if no connection has been established.
	Status(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ConnectInfo, error)
	// Queries the connector whether it is possible to create the given intercept.
	CanIntercept(ctx context.Context, in *CreateInterceptRequest, opts ...grpc.CallOption) (*InterceptResult, error)
	// Adds an intercept to a workload.  Requires having already called
	// Connect.
	CreateIntercept(ctx context.Context, in *CreateInterceptRequest, opts ...grpc.CallOption) (*InterceptResult, error)
	// Deactivates and removes an existent workload intercept.
	// Requires having already called Connect.
	RemoveIntercept(ctx context.Context, in *manager.RemoveInterceptRequest2, opts ...grpc.CallOption) (*InterceptResult, error)
	UpdateIntercept(ctx context.Context, in *manager.UpdateInterceptRequest, opts ...grpc.CallOption) (*manager.InterceptInfo, error)
	// Uninstalls traffic-agents from the cluster.
	// Requires having already called Connect.
	Uninstall(ctx context.Context, in *UninstallRequest, opts ...grpc.CallOption) (*common.Result, error)
	// Returns a list of workloads and their current intercept status.
	// Requires having already called Connect.
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*WorkloadInfoSnapshot, error)
	// Watch all workloads in the mapped namespaces
	WatchWorkloads(ctx context.Context, in *WatchWorkloadsRequest, opts ...grpc.CallOption) (Connector_WatchWorkloadsClient, error)
	// SetLogLevel will temporarily change the log-level of the traffic-manager, traffic-agent, and user and root daemons.
	SetLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Quits (terminates) the connector process.
	Quit(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GatherLogs will acquire logs for the various Telepresence components in kubernetes
	// (pending the request) and return them to the caller
	GatherLogs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (*LogsResponse, error)
	// GatherTraces will acquire traces for the various Telepresence components in kubernetes
	// (pending the request) and save them in a file.
	GatherTraces(ctx context.Context, in *TracesRequest, opts ...grpc.CallOption) (*common.Result, error)
	// AddInterceptor tells the connector that a given process is serving a specific
	// intercept. The connector must kill this process when the intercept ends
	AddInterceptor(ctx context.Context, in *Interceptor, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// RemoveInterceptor removes a previously added interceptor
	RemoveInterceptor(ctx context.Context, in *Interceptor, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GetNamespaces gets the mapped namespaces with an optional prefix
	GetNamespaces(ctx context.Context, in *GetNamespacesRequest, opts ...grpc.CallOption) (*GetNamespacesResponse, error)
	// RemoteMountAvailability checks if remote mounts are possible using the given
	// mount type and returns an error if its not.
	RemoteMountAvailability(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.Result, error)
	// GetConfig returns the current configuration
	GetConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClientConfig, error)
	// SetDNSExcludes sets the excludes field of DNSConfig.
	SetDNSExcludes(ctx context.Context, in *daemon.SetDNSExcludesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// SetDNSMappings sets the Mappings field of DNSConfig.
	SetDNSMappings(ctx context.Context, in *daemon.SetDNSMappingsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ConnectorClient is the client API for Connector service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewConnectorClient

func NewConnectorClient(cc grpc.ClientConnInterface) ConnectorClient

type ConnectorServer

type ConnectorServer interface {
	// Returns version information from the Connector
	Version(context.Context, *emptypb.Empty) (*common.VersionInfo, error)
	// Returns version information from the Root Daemon
	RootDaemonVersion(context.Context, *emptypb.Empty) (*common.VersionInfo, error)
	// Returns version information from the Traffic Manager
	TrafficManagerVersion(context.Context, *emptypb.Empty) (*common.VersionInfo, error)
	// Returns the fully qualified image name of the traffic-agent that the agent-injector is configured to inject.
	AgentImageFQN(context.Context, *emptypb.Empty) (*manager.AgentImageFQN, error)
	// GetIntercept gets info from intercept name
	GetIntercept(context.Context, *manager.GetInterceptRequest) (*manager.InterceptInfo, error)
	// Connects to the cluster and connects the laptop's network (via
	// the daemon process) to the cluster's network.  A result code of
	// UNSPECIFIED indicates that the connection was successfully
	// initiated; if already connected, then either ALREADY_CONNECTED or
	// MUST_RESTART is returned, based on whether the current connection
	// is in agreement with the ConnectionRequest.
	Connect(context.Context, *ConnectRequest) (*ConnectInfo, error)
	// Disconnects the cluster
	Disconnect(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// GetClusterSubnets gets the outbound info that has been set on daemon
	GetClusterSubnets(context.Context, *emptypb.Empty) (*ClusterSubnets, error)
	// Status returns the status of the current connection or DISCONNECTED
	// if no connection has been established.
	Status(context.Context, *emptypb.Empty) (*ConnectInfo, error)
	// Queries the connector whether it is possible to create the given intercept.
	CanIntercept(context.Context, *CreateInterceptRequest) (*InterceptResult, error)
	// Adds an intercept to a workload.  Requires having already called
	// Connect.
	CreateIntercept(context.Context, *CreateInterceptRequest) (*InterceptResult, error)
	// Deactivates and removes an existent workload intercept.
	// Requires having already called Connect.
	RemoveIntercept(context.Context, *manager.RemoveInterceptRequest2) (*InterceptResult, error)
	UpdateIntercept(context.Context, *manager.UpdateInterceptRequest) (*manager.InterceptInfo, error)
	// Uninstalls traffic-agents from the cluster.
	// Requires having already called Connect.
	Uninstall(context.Context, *UninstallRequest) (*common.Result, error)
	// Returns a list of workloads and their current intercept status.
	// Requires having already called Connect.
	List(context.Context, *ListRequest) (*WorkloadInfoSnapshot, error)
	// Watch all workloads in the mapped namespaces
	WatchWorkloads(*WatchWorkloadsRequest, Connector_WatchWorkloadsServer) error
	// SetLogLevel will temporarily change the log-level of the traffic-manager, traffic-agent, and user and root daemons.
	SetLogLevel(context.Context, *LogLevelRequest) (*emptypb.Empty, error)
	// Quits (terminates) the connector process.
	Quit(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// GatherLogs will acquire logs for the various Telepresence components in kubernetes
	// (pending the request) and return them to the caller
	GatherLogs(context.Context, *LogsRequest) (*LogsResponse, error)
	// GatherTraces will acquire traces for the various Telepresence components in kubernetes
	// (pending the request) and save them in a file.
	GatherTraces(context.Context, *TracesRequest) (*common.Result, error)
	// AddInterceptor tells the connector that a given process is serving a specific
	// intercept. The connector must kill this process when the intercept ends
	AddInterceptor(context.Context, *Interceptor) (*emptypb.Empty, error)
	// RemoveInterceptor removes a previously added interceptor
	RemoveInterceptor(context.Context, *Interceptor) (*emptypb.Empty, error)
	// GetNamespaces gets the mapped namespaces with an optional prefix
	GetNamespaces(context.Context, *GetNamespacesRequest) (*GetNamespacesResponse, error)
	// RemoteMountAvailability checks if remote mounts are possible using the given
	// mount type and returns an error if its not.
	RemoteMountAvailability(context.Context, *emptypb.Empty) (*common.Result, error)
	// GetConfig returns the current configuration
	GetConfig(context.Context, *emptypb.Empty) (*ClientConfig, error)
	// SetDNSExcludes sets the excludes field of DNSConfig.
	SetDNSExcludes(context.Context, *daemon.SetDNSExcludesRequest) (*emptypb.Empty, error)
	// SetDNSMappings sets the Mappings field of DNSConfig.
	SetDNSMappings(context.Context, *daemon.SetDNSMappingsRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ConnectorServer is the server API for Connector service. All implementations must embed UnimplementedConnectorServer for forward compatibility

type Connector_WatchWorkloadsClient added in v2.5.0

type Connector_WatchWorkloadsClient interface {
	Recv() (*WorkloadInfoSnapshot, error)
	grpc.ClientStream
}

type Connector_WatchWorkloadsServer added in v2.5.0

type Connector_WatchWorkloadsServer interface {
	Send(*WorkloadInfoSnapshot) error
	grpc.ServerStream
}

type CreateInterceptRequest

type CreateInterceptRequest struct {

	// No need to set spec.client; the connector will fill that in for
	// you.
	Spec           *manager.InterceptSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	MountPoint     string                 `protobuf:"bytes,2,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"`
	AgentImage     string                 `protobuf:"bytes,3,opt,name=agent_image,json=agentImage,proto3" json:"agent_image,omitempty"`
	IsPodDaemon    bool                   `protobuf:"varint,4,opt,name=is_pod_daemon,json=isPodDaemon,proto3" json:"is_pod_daemon,omitempty"`
	ExtendedInfo   []byte                 `protobuf:"bytes,5,opt,name=extended_info,json=extendedInfo,proto3" json:"extended_info,omitempty"`
	LocalMountPort int32                  `protobuf:"varint,6,opt,name=local_mount_port,json=localMountPort,proto3" json:"local_mount_port,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateInterceptRequest) Descriptor deprecated

func (*CreateInterceptRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateInterceptRequest.ProtoReflect.Descriptor instead.

func (*CreateInterceptRequest) GetAgentImage

func (x *CreateInterceptRequest) GetAgentImage() string

func (*CreateInterceptRequest) GetExtendedInfo added in v2.9.0

func (x *CreateInterceptRequest) GetExtendedInfo() []byte

func (*CreateInterceptRequest) GetIsPodDaemon added in v2.7.0

func (x *CreateInterceptRequest) GetIsPodDaemon() bool

func (*CreateInterceptRequest) GetLocalMountPort added in v2.11.0

func (x *CreateInterceptRequest) GetLocalMountPort() int32

func (*CreateInterceptRequest) GetMountPoint

func (x *CreateInterceptRequest) GetMountPoint() string

func (*CreateInterceptRequest) GetSpec

func (*CreateInterceptRequest) ProtoMessage

func (*CreateInterceptRequest) ProtoMessage()

func (*CreateInterceptRequest) ProtoReflect

func (x *CreateInterceptRequest) ProtoReflect() protoreflect.Message

func (*CreateInterceptRequest) Reset

func (x *CreateInterceptRequest) Reset()

func (*CreateInterceptRequest) String

func (x *CreateInterceptRequest) String() string

type GetNamespacesRequest added in v2.7.2

type GetNamespacesRequest struct {
	ForClientAccess bool   `protobuf:"varint,1,opt,name=for_client_access,json=forClientAccess,proto3" json:"for_client_access,omitempty"`
	Prefix          string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNamespacesRequest) Descriptor deprecated added in v2.7.2

func (*GetNamespacesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetNamespacesRequest.ProtoReflect.Descriptor instead.

func (*GetNamespacesRequest) GetForClientAccess added in v2.7.2

func (x *GetNamespacesRequest) GetForClientAccess() bool

func (*GetNamespacesRequest) GetPrefix added in v2.7.2

func (x *GetNamespacesRequest) GetPrefix() string

func (*GetNamespacesRequest) ProtoMessage added in v2.7.2

func (*GetNamespacesRequest) ProtoMessage()

func (*GetNamespacesRequest) ProtoReflect added in v2.7.2

func (x *GetNamespacesRequest) ProtoReflect() protoreflect.Message

func (*GetNamespacesRequest) Reset added in v2.7.2

func (x *GetNamespacesRequest) Reset()

func (*GetNamespacesRequest) String added in v2.7.2

func (x *GetNamespacesRequest) String() string

type GetNamespacesResponse added in v2.7.2

type GetNamespacesResponse struct {
	Namespaces []string `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNamespacesResponse) Descriptor deprecated added in v2.7.2

func (*GetNamespacesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetNamespacesResponse.ProtoReflect.Descriptor instead.

func (*GetNamespacesResponse) GetNamespaces added in v2.7.2

func (x *GetNamespacesResponse) GetNamespaces() []string

func (*GetNamespacesResponse) ProtoMessage added in v2.7.2

func (*GetNamespacesResponse) ProtoMessage()

func (*GetNamespacesResponse) ProtoReflect added in v2.7.2

func (x *GetNamespacesResponse) ProtoReflect() protoreflect.Message

func (*GetNamespacesResponse) Reset added in v2.7.2

func (x *GetNamespacesResponse) Reset()

func (*GetNamespacesResponse) String added in v2.7.2

func (x *GetNamespacesResponse) String() string

type InterceptResult

type InterceptResult struct {
	InterceptInfo *manager.InterceptInfo `protobuf:"bytes,1,opt,name=intercept_info,json=interceptInfo,proto3" json:"intercept_info,omitempty"`
	Error         common.InterceptError  `protobuf:"varint,2,opt,name=error,proto3,enum=telepresence.common.InterceptError" json:"error,omitempty"`
	ErrorText     string                 `protobuf:"bytes,3,opt,name=error_text,json=errorText,proto3" json:"error_text,omitempty"`
	ErrorCategory int32                  `protobuf:"varint,7,opt,name=error_category,json=errorCategory,proto3" json:"error_category,omitempty"`
	// The service uid associated with the workload intercepted
	ServiceUid string `protobuf:"bytes,5,opt,name=service_uid,json=serviceUid,proto3" json:"service_uid,omitempty"`
	// The kind of workload in this intercept
	WorkloadKind string `protobuf:"bytes,6,opt,name=workload_kind,json=workloadKind,proto3" json:"workload_kind,omitempty"`
	// contains filtered or unexported fields
}

func (*InterceptResult) Descriptor deprecated

func (*InterceptResult) Descriptor() ([]byte, []int)

Deprecated: Use InterceptResult.ProtoReflect.Descriptor instead.

func (*InterceptResult) GetError

func (x *InterceptResult) GetError() common.InterceptError

func (*InterceptResult) GetErrorCategory added in v2.4.3

func (x *InterceptResult) GetErrorCategory() int32

func (*InterceptResult) GetErrorText

func (x *InterceptResult) GetErrorText() string

func (*InterceptResult) GetInterceptInfo

func (x *InterceptResult) GetInterceptInfo() *manager.InterceptInfo

func (*InterceptResult) GetServiceUid added in v2.1.2

func (x *InterceptResult) GetServiceUid() string

func (*InterceptResult) GetWorkloadKind added in v2.1.3

func (x *InterceptResult) GetWorkloadKind() string

func (*InterceptResult) ProtoMessage

func (*InterceptResult) ProtoMessage()

func (*InterceptResult) ProtoReflect

func (x *InterceptResult) ProtoReflect() protoreflect.Message

func (*InterceptResult) Reset

func (x *InterceptResult) Reset()

func (*InterceptResult) String

func (x *InterceptResult) String() string

type Interceptor added in v2.6.0

type Interceptor struct {

	// The ID of the intercept that is served by this interceptor process
	InterceptId string `protobuf:"bytes,1,opt,name=intercept_id,json=interceptId,proto3" json:"intercept_id,omitempty"`
	// The pid of the interceptor process
	Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	// Name or ID of container, in case the intercept handler runs in Docker
	ContainerName string `protobuf:"bytes,3,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Interceptor) Descriptor deprecated added in v2.6.0

func (*Interceptor) Descriptor() ([]byte, []int)

Deprecated: Use Interceptor.ProtoReflect.Descriptor instead.

func (*Interceptor) GetContainerName added in v2.13.0

func (x *Interceptor) GetContainerName() string

func (*Interceptor) GetInterceptId added in v2.6.0

func (x *Interceptor) GetInterceptId() string

func (*Interceptor) GetPid added in v2.6.0

func (x *Interceptor) GetPid() int32

func (*Interceptor) ProtoMessage added in v2.6.0

func (*Interceptor) ProtoMessage()

func (*Interceptor) ProtoReflect added in v2.6.0

func (x *Interceptor) ProtoReflect() protoreflect.Message

func (*Interceptor) Reset added in v2.6.0

func (x *Interceptor) Reset()

func (*Interceptor) String added in v2.6.0

func (x *Interceptor) String() string

type ListRequest

type ListRequest struct {
	Filter ListRequest_Filter `protobuf:"varint,1,opt,name=filter,proto3,enum=telepresence.connector.ListRequest_Filter" json:"filter,omitempty"`
	// Namespace to list.
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetFilter

func (x *ListRequest) GetFilter() ListRequest_Filter

func (*ListRequest) GetNamespace

func (x *ListRequest) GetNamespace() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListRequest_Filter

type ListRequest_Filter int32
const (
	ListRequest_UNSPECIFIED      ListRequest_Filter = 0
	ListRequest_INTERCEPTS       ListRequest_Filter = 1
	ListRequest_INSTALLED_AGENTS ListRequest_Filter = 2
	ListRequest_INTERCEPTABLE    ListRequest_Filter = 3
	ListRequest_EVERYTHING       ListRequest_Filter = 4
)

func (ListRequest_Filter) Descriptor

func (ListRequest_Filter) Enum

func (ListRequest_Filter) EnumDescriptor deprecated

func (ListRequest_Filter) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListRequest_Filter.Descriptor instead.

func (ListRequest_Filter) Number

func (ListRequest_Filter) String

func (x ListRequest_Filter) String() string

func (ListRequest_Filter) Type

type LogLevelRequest added in v2.9.3

type LogLevelRequest struct {
	LogLevel string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	// The time that this log-level will be in effect before
	// falling back to the configured log-level.
	Duration *durationpb.Duration  `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	Scope    LogLevelRequest_Scope `protobuf:"varint,3,opt,name=scope,proto3,enum=telepresence.connector.LogLevelRequest_Scope" json:"scope,omitempty"`
	// contains filtered or unexported fields
}

func (*LogLevelRequest) Descriptor deprecated added in v2.9.3

func (*LogLevelRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogLevelRequest.ProtoReflect.Descriptor instead.

func (*LogLevelRequest) GetDuration added in v2.9.3

func (x *LogLevelRequest) GetDuration() *durationpb.Duration

func (*LogLevelRequest) GetLogLevel added in v2.9.3

func (x *LogLevelRequest) GetLogLevel() string

func (*LogLevelRequest) GetScope added in v2.9.3

func (x *LogLevelRequest) GetScope() LogLevelRequest_Scope

func (*LogLevelRequest) ProtoMessage added in v2.9.3

func (*LogLevelRequest) ProtoMessage()

func (*LogLevelRequest) ProtoReflect added in v2.9.3

func (x *LogLevelRequest) ProtoReflect() protoreflect.Message

func (*LogLevelRequest) Reset added in v2.9.3

func (x *LogLevelRequest) Reset()

func (*LogLevelRequest) String added in v2.9.3

func (x *LogLevelRequest) String() string

type LogLevelRequest_Scope added in v2.9.3

type LogLevelRequest_Scope int32
const (
	LogLevelRequest_UNSPECIFIED LogLevelRequest_Scope = 0
	LogLevelRequest_LOCAL_ONLY  LogLevelRequest_Scope = 1 // applies only to the local daemon processes
	LogLevelRequest_REMOTE_ONLY LogLevelRequest_Scope = 2 // applies only to traffic-manager and traffic-agents
)

func (LogLevelRequest_Scope) Descriptor added in v2.9.3

func (LogLevelRequest_Scope) Enum added in v2.9.3

func (LogLevelRequest_Scope) EnumDescriptor deprecated added in v2.9.3

func (LogLevelRequest_Scope) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogLevelRequest_Scope.Descriptor instead.

func (LogLevelRequest_Scope) Number added in v2.9.3

func (LogLevelRequest_Scope) String added in v2.9.3

func (x LogLevelRequest_Scope) String() string

func (LogLevelRequest_Scope) Type added in v2.9.3

type LogsRequest added in v2.5.5

type LogsRequest struct {

	// Whether or not logs from the traffic-manager are desired.
	TrafficManager bool `protobuf:"varint,1,opt,name=traffic_manager,json=trafficManager,proto3" json:"traffic_manager,omitempty"`
	// Whether or not to get the pod yaml deployed to the cluster.
	GetPodYaml bool `protobuf:"varint,2,opt,name=get_pod_yaml,json=getPodYaml,proto3" json:"get_pod_yaml,omitempty"`
	// The traffic-agent(s) logs are desired from. Can be `all`, `False`,
	// or substring to filter based on pod names.
	Agents string `protobuf:"bytes,3,opt,name=agents,proto3" json:"agents,omitempty"`
	// Directory that the logs will be exported to
	ExportDir string `protobuf:"bytes,4,opt,name=export_dir,json=exportDir,proto3" json:"export_dir,omitempty"`
	// contains filtered or unexported fields
}

func (*LogsRequest) Descriptor deprecated added in v2.5.5

func (*LogsRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogsRequest.ProtoReflect.Descriptor instead.

func (*LogsRequest) GetAgents added in v2.5.5

func (x *LogsRequest) GetAgents() string

func (*LogsRequest) GetExportDir added in v2.5.6

func (x *LogsRequest) GetExportDir() string

func (*LogsRequest) GetGetPodYaml added in v2.5.5

func (x *LogsRequest) GetGetPodYaml() bool

func (*LogsRequest) GetTrafficManager added in v2.5.5

func (x *LogsRequest) GetTrafficManager() bool

func (*LogsRequest) ProtoMessage added in v2.5.5

func (*LogsRequest) ProtoMessage()

func (*LogsRequest) ProtoReflect added in v2.5.5

func (x *LogsRequest) ProtoReflect() protoreflect.Message

func (*LogsRequest) Reset added in v2.5.5

func (x *LogsRequest) Reset()

func (*LogsRequest) String added in v2.5.5

func (x *LogsRequest) String() string

type LogsResponse added in v2.5.5

type LogsResponse struct {

	// General error that isn't associated with a pod such as failing to list the pods.
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// pod_info contains one entry per created file name name. The value is either the string
	// "ok" indicating that the file exists, or an error string with info why it could not
	// be created.
	PodInfo map[string]string `` /* 170-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LogsResponse) Descriptor deprecated added in v2.5.5

func (*LogsResponse) Descriptor() ([]byte, []int)

Deprecated: Use LogsResponse.ProtoReflect.Descriptor instead.

func (*LogsResponse) GetError added in v2.5.6

func (x *LogsResponse) GetError() string

func (*LogsResponse) GetPodInfo added in v2.5.6

func (x *LogsResponse) GetPodInfo() map[string]string

func (*LogsResponse) ProtoMessage added in v2.5.5

func (*LogsResponse) ProtoMessage()

func (*LogsResponse) ProtoReflect added in v2.5.5

func (x *LogsResponse) ProtoReflect() protoreflect.Message

func (*LogsResponse) Reset added in v2.5.5

func (x *LogsResponse) Reset()

func (*LogsResponse) String added in v2.5.5

func (x *LogsResponse) String() string

type ManagerProxyClient added in v2.9.5

type ManagerProxyClient interface {
	// Version returns the version information of the Manager.
	Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*manager.VersionInfo2, error)
	// GetClientConfig returns the config that connected clients should use for this manager.
	GetClientConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*manager.CLIConfig, error)
	// EnsureAgent ensures that an agent is injected to the pods of a workload
	EnsureAgent(ctx context.Context, in *manager.EnsureAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// WatchClusterInfo returns information needed when establishing
	// connectivity to the cluster.
	WatchClusterInfo(ctx context.Context, in *manager.SessionInfo, opts ...grpc.CallOption) (ManagerProxy_WatchClusterInfoClient, error)
	// LookupDNS performs a DNS lookup in the cluster. If the caller has intercepts
	// active, the lookup will be performed from the intercepted pods.
	LookupDNS(ctx context.Context, in *manager.DNSRequest, opts ...grpc.CallOption) (*manager.DNSResponse, error)
	// A Tunnel represents one single connection where the client or
	// traffic-agent represents one end (the client-side) and the
	// traffic-manager represents the other (the server side). The first
	// message that a client sends when the tunnel is established is will
	// always contain the session ID, connection ID, and timeouts used by
	// the dialer endpoints.
	Tunnel(ctx context.Context, opts ...grpc.CallOption) (ManagerProxy_TunnelClient, error)
}

ManagerProxyClient is the client API for ManagerProxy service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewManagerProxyClient added in v2.9.5

func NewManagerProxyClient(cc grpc.ClientConnInterface) ManagerProxyClient

type ManagerProxyServer added in v2.9.5

type ManagerProxyServer interface {
	// Version returns the version information of the Manager.
	Version(context.Context, *emptypb.Empty) (*manager.VersionInfo2, error)
	// GetClientConfig returns the config that connected clients should use for this manager.
	GetClientConfig(context.Context, *emptypb.Empty) (*manager.CLIConfig, error)
	// EnsureAgent ensures that an agent is injected to the pods of a workload
	EnsureAgent(context.Context, *manager.EnsureAgentRequest) (*emptypb.Empty, error)
	// WatchClusterInfo returns information needed when establishing
	// connectivity to the cluster.
	WatchClusterInfo(*manager.SessionInfo, ManagerProxy_WatchClusterInfoServer) error
	// LookupDNS performs a DNS lookup in the cluster. If the caller has intercepts
	// active, the lookup will be performed from the intercepted pods.
	LookupDNS(context.Context, *manager.DNSRequest) (*manager.DNSResponse, error)
	// A Tunnel represents one single connection where the client or
	// traffic-agent represents one end (the client-side) and the
	// traffic-manager represents the other (the server side). The first
	// message that a client sends when the tunnel is established is will
	// always contain the session ID, connection ID, and timeouts used by
	// the dialer endpoints.
	Tunnel(ManagerProxy_TunnelServer) error
	// contains filtered or unexported methods
}

ManagerProxyServer is the server API for ManagerProxy service. All implementations must embed UnimplementedManagerProxyServer for forward compatibility

type ManagerProxy_TunnelClient added in v2.9.5

type ManagerProxy_TunnelClient interface {
	Send(*manager.TunnelMessage) error
	Recv() (*manager.TunnelMessage, error)
	grpc.ClientStream
}

type ManagerProxy_TunnelServer added in v2.9.5

type ManagerProxy_TunnelServer interface {
	Send(*manager.TunnelMessage) error
	Recv() (*manager.TunnelMessage, error)
	grpc.ServerStream
}

type ManagerProxy_WatchClusterInfoClient added in v2.9.5

type ManagerProxy_WatchClusterInfoClient interface {
	Recv() (*manager.ClusterInfo, error)
	grpc.ClientStream
}

type ManagerProxy_WatchClusterInfoServer added in v2.9.5

type ManagerProxy_WatchClusterInfoServer interface {
	Send(*manager.ClusterInfo) error
	grpc.ServerStream
}

type TracesRequest added in v2.9.0

type TracesRequest struct {

	// remote_port is the port to connect to on the targets that traces are collected from.
	RemotePort int32 `protobuf:"varint,1,opt,name=remote_port,json=remotePort,proto3" json:"remote_port,omitempty"`
	// tracing_file is the file where the traces are stored.
	TracingFile string `protobuf:"bytes,2,opt,name=tracing_file,json=tracingFile,proto3" json:"tracing_file,omitempty"`
	// contains filtered or unexported fields
}

func (*TracesRequest) Descriptor deprecated added in v2.9.0

func (*TracesRequest) Descriptor() ([]byte, []int)

Deprecated: Use TracesRequest.ProtoReflect.Descriptor instead.

func (*TracesRequest) GetRemotePort added in v2.9.0

func (x *TracesRequest) GetRemotePort() int32

func (*TracesRequest) GetTracingFile added in v2.9.0

func (x *TracesRequest) GetTracingFile() string

func (*TracesRequest) ProtoMessage added in v2.9.0

func (*TracesRequest) ProtoMessage()

func (*TracesRequest) ProtoReflect added in v2.9.0

func (x *TracesRequest) ProtoReflect() protoreflect.Message

func (*TracesRequest) Reset added in v2.9.0

func (x *TracesRequest) Reset()

func (*TracesRequest) String added in v2.9.0

func (x *TracesRequest) String() string

type UnimplementedConnectorServer

type UnimplementedConnectorServer struct {
}

UnimplementedConnectorServer must be embedded to have forward compatible implementations.

func (UnimplementedConnectorServer) AddInterceptor added in v2.6.0

func (UnimplementedConnectorServer) AgentImageFQN added in v2.18.0

func (UnimplementedConnectorServer) CanIntercept added in v2.4.10

func (UnimplementedConnectorServer) Connect

func (UnimplementedConnectorServer) CreateIntercept

func (UnimplementedConnectorServer) Disconnect added in v2.5.0

func (UnimplementedConnectorServer) GatherLogs added in v2.5.5

func (UnimplementedConnectorServer) GatherTraces added in v2.9.0

func (UnimplementedConnectorServer) GetClusterSubnets added in v2.8.0

func (UnimplementedConnectorServer) GetConfig added in v2.9.0

func (UnimplementedConnectorServer) GetIntercept added in v2.9.3

func (UnimplementedConnectorServer) GetNamespaces added in v2.7.2

func (UnimplementedConnectorServer) List

func (UnimplementedConnectorServer) Quit

func (UnimplementedConnectorServer) RemoteMountAvailability added in v2.9.0

func (UnimplementedConnectorServer) RemoveIntercept

func (UnimplementedConnectorServer) RemoveInterceptor added in v2.6.0

func (UnimplementedConnectorServer) RootDaemonVersion added in v2.8.0

func (UnimplementedConnectorServer) SetDNSExcludes added in v2.14.0

func (UnimplementedConnectorServer) SetDNSMappings added in v2.14.0

func (UnimplementedConnectorServer) SetLogLevel added in v2.4.2

func (UnimplementedConnectorServer) Status added in v2.1.4

func (UnimplementedConnectorServer) TrafficManagerVersion added in v2.9.3

func (UnimplementedConnectorServer) Uninstall

func (UnimplementedConnectorServer) UpdateIntercept added in v2.9.3

func (UnimplementedConnectorServer) Version

func (UnimplementedConnectorServer) WatchWorkloads added in v2.5.0

type UnimplementedManagerProxyServer added in v2.9.5

type UnimplementedManagerProxyServer struct {
}

UnimplementedManagerProxyServer must be embedded to have forward compatible implementations.

func (UnimplementedManagerProxyServer) EnsureAgent added in v2.18.0

func (UnimplementedManagerProxyServer) GetClientConfig added in v2.9.5

func (UnimplementedManagerProxyServer) LookupDNS added in v2.9.5

func (UnimplementedManagerProxyServer) Tunnel added in v2.9.5

func (UnimplementedManagerProxyServer) Version added in v2.9.5

func (UnimplementedManagerProxyServer) WatchClusterInfo added in v2.9.5

type UninstallRequest

type UninstallRequest struct {
	UninstallType UninstallRequest_UninstallType `` /* 160-byte string literal not displayed */
	Agents        []string                       `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents,omitempty"`
	// Namespace of agents to remove.
	Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*UninstallRequest) Descriptor deprecated

func (*UninstallRequest) Descriptor() ([]byte, []int)

Deprecated: Use UninstallRequest.ProtoReflect.Descriptor instead.

func (*UninstallRequest) GetAgents

func (x *UninstallRequest) GetAgents() []string

func (*UninstallRequest) GetNamespace

func (x *UninstallRequest) GetNamespace() string

func (*UninstallRequest) GetUninstallType

func (x *UninstallRequest) GetUninstallType() UninstallRequest_UninstallType

func (*UninstallRequest) ProtoMessage

func (*UninstallRequest) ProtoMessage()

func (*UninstallRequest) ProtoReflect

func (x *UninstallRequest) ProtoReflect() protoreflect.Message

func (*UninstallRequest) Reset

func (x *UninstallRequest) Reset()

func (*UninstallRequest) String

func (x *UninstallRequest) String() string

type UninstallRequest_UninstallType

type UninstallRequest_UninstallType int32
const (
	UninstallRequest_UNSPECIFIED UninstallRequest_UninstallType = 0
	// Uninstalls an agent from the named workloads
	UninstallRequest_NAMED_AGENTS UninstallRequest_UninstallType = 1
	// Uninstalls all agents
	UninstallRequest_ALL_AGENTS UninstallRequest_UninstallType = 2
)

func (UninstallRequest_UninstallType) Descriptor

func (UninstallRequest_UninstallType) Enum

func (UninstallRequest_UninstallType) EnumDescriptor deprecated

func (UninstallRequest_UninstallType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UninstallRequest_UninstallType.Descriptor instead.

func (UninstallRequest_UninstallType) Number

func (UninstallRequest_UninstallType) String

func (UninstallRequest_UninstallType) Type

type UnsafeConnectorServer

type UnsafeConnectorServer interface {
	// contains filtered or unexported methods
}

UnsafeConnectorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConnectorServer will result in compilation errors.

type UnsafeManagerProxyServer added in v2.9.5

type UnsafeManagerProxyServer interface {
	// contains filtered or unexported methods
}

UnsafeManagerProxyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagerProxyServer will result in compilation errors.

type WatchWorkloadsRequest added in v2.5.0

type WatchWorkloadsRequest struct {

	// Namespace to watch.
	Namespaces []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*WatchWorkloadsRequest) Descriptor deprecated added in v2.5.0

func (*WatchWorkloadsRequest) Descriptor() ([]byte, []int)

Deprecated: Use WatchWorkloadsRequest.ProtoReflect.Descriptor instead.

func (*WatchWorkloadsRequest) GetNamespaces added in v2.5.0

func (x *WatchWorkloadsRequest) GetNamespaces() []string

func (*WatchWorkloadsRequest) ProtoMessage added in v2.5.0

func (*WatchWorkloadsRequest) ProtoMessage()

func (*WatchWorkloadsRequest) ProtoReflect added in v2.5.0

func (x *WatchWorkloadsRequest) ProtoReflect() protoreflect.Message

func (*WatchWorkloadsRequest) Reset added in v2.5.0

func (x *WatchWorkloadsRequest) Reset()

func (*WatchWorkloadsRequest) String added in v2.5.0

func (x *WatchWorkloadsRequest) String() string

type WorkloadInfo added in v2.1.3

type WorkloadInfo struct {

	// Name of workload
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Namespace of workload
	Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// Reason why workload cannot be intercepted, or empty if it can.
	NotInterceptableReason string `` /* 129-byte string literal not displayed */
	// Sidecar
	Sidecar *WorkloadInfo_Sidecar `protobuf:"bytes,10,opt,name=sidecar,proto3" json:"sidecar,omitempty"`
	// InterceptInfos reported from the traffic manager in case the workload is currently intercepted
	InterceptInfos []*manager.InterceptInfo `protobuf:"bytes,9,rep,name=intercept_infos,json=interceptInfos,proto3" json:"intercept_infos,omitempty"`
	// Workload Resource type (e.g. Deployment, ReplicaSet, StatefulSet)
	WorkloadResourceType string                                    `protobuf:"bytes,5,opt,name=workload_resource_type,json=workloadResourceType,proto3" json:"workload_resource_type,omitempty"`
	Services             map[string]*WorkloadInfo_ServiceReference `` /* 158-byte string literal not displayed */
	Uid                  string                                    `protobuf:"bytes,8,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

WorkloadInfo contains information about a workload https://kubernetes.io/docs/concepts/workloads/

func (*WorkloadInfo) Descriptor deprecated added in v2.1.3

func (*WorkloadInfo) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadInfo.ProtoReflect.Descriptor instead.

func (*WorkloadInfo) GetInterceptInfos added in v2.6.0

func (x *WorkloadInfo) GetInterceptInfos() []*manager.InterceptInfo

func (*WorkloadInfo) GetName added in v2.1.3

func (x *WorkloadInfo) GetName() string

func (*WorkloadInfo) GetNamespace added in v2.5.0

func (x *WorkloadInfo) GetNamespace() string

func (*WorkloadInfo) GetNotInterceptableReason added in v2.1.3

func (x *WorkloadInfo) GetNotInterceptableReason() string

func (*WorkloadInfo) GetServices added in v2.15.0

func (x *WorkloadInfo) GetServices() map[string]*WorkloadInfo_ServiceReference

func (*WorkloadInfo) GetSidecar added in v2.15.0

func (x *WorkloadInfo) GetSidecar() *WorkloadInfo_Sidecar

func (*WorkloadInfo) GetUid added in v2.5.0

func (x *WorkloadInfo) GetUid() string

func (*WorkloadInfo) GetWorkloadResourceType added in v2.1.3

func (x *WorkloadInfo) GetWorkloadResourceType() string

func (*WorkloadInfo) ProtoMessage added in v2.1.3

func (*WorkloadInfo) ProtoMessage()

func (*WorkloadInfo) ProtoReflect added in v2.1.3

func (x *WorkloadInfo) ProtoReflect() protoreflect.Message

func (*WorkloadInfo) Reset added in v2.1.3

func (x *WorkloadInfo) Reset()

func (*WorkloadInfo) String added in v2.1.3

func (x *WorkloadInfo) String() string

type WorkloadInfoSnapshot added in v2.1.3

type WorkloadInfoSnapshot struct {
	Workloads []*WorkloadInfo `protobuf:"bytes,1,rep,name=workloads,proto3" json:"workloads,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadInfoSnapshot) Descriptor deprecated added in v2.1.3

func (*WorkloadInfoSnapshot) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadInfoSnapshot.ProtoReflect.Descriptor instead.

func (*WorkloadInfoSnapshot) GetWorkloads added in v2.1.3

func (x *WorkloadInfoSnapshot) GetWorkloads() []*WorkloadInfo

func (*WorkloadInfoSnapshot) ProtoMessage added in v2.1.3

func (*WorkloadInfoSnapshot) ProtoMessage()

func (*WorkloadInfoSnapshot) ProtoReflect added in v2.1.3

func (x *WorkloadInfoSnapshot) ProtoReflect() protoreflect.Message

func (*WorkloadInfoSnapshot) Reset added in v2.1.3

func (x *WorkloadInfoSnapshot) Reset()

func (*WorkloadInfoSnapshot) String added in v2.1.3

func (x *WorkloadInfoSnapshot) String() string

type WorkloadInfo_ServiceReference added in v2.5.0

type WorkloadInfo_ServiceReference struct {
	Name      string                                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace string                                `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Ports     []*WorkloadInfo_ServiceReference_Port `protobuf:"bytes,4,rep,name=ports,proto3" json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadInfo_ServiceReference) Descriptor deprecated added in v2.5.0

func (*WorkloadInfo_ServiceReference) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadInfo_ServiceReference.ProtoReflect.Descriptor instead.

func (*WorkloadInfo_ServiceReference) GetName added in v2.5.0

func (*WorkloadInfo_ServiceReference) GetNamespace added in v2.5.0

func (x *WorkloadInfo_ServiceReference) GetNamespace() string

func (*WorkloadInfo_ServiceReference) GetPorts added in v2.5.0

func (*WorkloadInfo_ServiceReference) ProtoMessage added in v2.5.0

func (*WorkloadInfo_ServiceReference) ProtoMessage()

func (*WorkloadInfo_ServiceReference) ProtoReflect added in v2.5.0

func (*WorkloadInfo_ServiceReference) Reset added in v2.5.0

func (x *WorkloadInfo_ServiceReference) Reset()

func (*WorkloadInfo_ServiceReference) String added in v2.5.0

type WorkloadInfo_ServiceReference_Port added in v2.5.0

type WorkloadInfo_ServiceReference_Port struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Port int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadInfo_ServiceReference_Port) Descriptor deprecated added in v2.5.0

func (*WorkloadInfo_ServiceReference_Port) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadInfo_ServiceReference_Port.ProtoReflect.Descriptor instead.

func (*WorkloadInfo_ServiceReference_Port) GetName added in v2.5.0

func (*WorkloadInfo_ServiceReference_Port) GetPort added in v2.5.0

func (*WorkloadInfo_ServiceReference_Port) ProtoMessage added in v2.5.0

func (*WorkloadInfo_ServiceReference_Port) ProtoMessage()

func (*WorkloadInfo_ServiceReference_Port) ProtoReflect added in v2.5.0

func (*WorkloadInfo_ServiceReference_Port) Reset added in v2.5.0

func (*WorkloadInfo_ServiceReference_Port) String added in v2.5.0

type WorkloadInfo_Sidecar added in v2.15.0

type WorkloadInfo_Sidecar struct {
	Json []byte `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadInfo_Sidecar) Descriptor deprecated added in v2.15.0

func (*WorkloadInfo_Sidecar) Descriptor() ([]byte, []int)

Deprecated: Use WorkloadInfo_Sidecar.ProtoReflect.Descriptor instead.

func (*WorkloadInfo_Sidecar) GetJson added in v2.15.0

func (x *WorkloadInfo_Sidecar) GetJson() []byte

func (*WorkloadInfo_Sidecar) ProtoMessage added in v2.15.0

func (*WorkloadInfo_Sidecar) ProtoMessage()

func (*WorkloadInfo_Sidecar) ProtoReflect added in v2.15.0

func (x *WorkloadInfo_Sidecar) ProtoReflect() protoreflect.Message

func (*WorkloadInfo_Sidecar) Reset added in v2.15.0

func (x *WorkloadInfo_Sidecar) Reset()

func (*WorkloadInfo_Sidecar) String added in v2.15.0

func (x *WorkloadInfo_Sidecar) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL