common

package
v2.6.9-test.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InterceptError_name = map[int32]string{
		0:  "UNSPECIFIED",
		2:  "NO_CONNECTION",
		3:  "NO_TRAFFIC_MANAGER",
		4:  "TRAFFIC_MANAGER_CONNECTING",
		5:  "TRAFFIC_MANAGER_ERROR",
		6:  "ALREADY_EXISTS",
		7:  "LOCAL_TARGET_IN_USE",
		8:  "NO_ACCEPTABLE_WORKLOAD",
		9:  "AMBIGUOUS_MATCH",
		10: "FAILED_TO_ESTABLISH",
		11: "UNSUPPORTED_WORKLOAD",
		14: "MISCONFIGURED_WORKLOAD",
		12: "NOT_FOUND",
		13: "MOUNT_POINT_BUSY",
		15: "UNKNOWN_FLAG",
	}
	InterceptError_value = map[string]int32{
		"UNSPECIFIED":                0,
		"NO_CONNECTION":              2,
		"NO_TRAFFIC_MANAGER":         3,
		"TRAFFIC_MANAGER_CONNECTING": 4,
		"TRAFFIC_MANAGER_ERROR":      5,
		"ALREADY_EXISTS":             6,
		"LOCAL_TARGET_IN_USE":        7,
		"NO_ACCEPTABLE_WORKLOAD":     8,
		"AMBIGUOUS_MATCH":            9,
		"FAILED_TO_ESTABLISH":        10,
		"UNSUPPORTED_WORKLOAD":       11,
		"MISCONFIGURED_WORKLOAD":     14,
		"NOT_FOUND":                  12,
		"MOUNT_POINT_BUSY":           13,
		"UNKNOWN_FLAG":               15,
	}
)

Enum value maps for InterceptError.

View Source
var File_rpc_common_errors_proto protoreflect.FileDescriptor
View Source
var File_rpc_common_version_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type InterceptError added in v2.7.0

type InterceptError int32

InterceptError is a common error type used by the intercept call family (add, remove, list, available).

const (
	InterceptError_UNSPECIFIED                InterceptError = 0 // no error
	InterceptError_NO_CONNECTION              InterceptError = 2 // Have not made the .Connect RPC call (or it errored)
	InterceptError_NO_TRAFFIC_MANAGER         InterceptError = 3
	InterceptError_TRAFFIC_MANAGER_CONNECTING InterceptError = 4
	InterceptError_TRAFFIC_MANAGER_ERROR      InterceptError = 5
	InterceptError_ALREADY_EXISTS             InterceptError = 6
	InterceptError_LOCAL_TARGET_IN_USE        InterceptError = 7
	InterceptError_NO_ACCEPTABLE_WORKLOAD     InterceptError = 8
	InterceptError_AMBIGUOUS_MATCH            InterceptError = 9
	InterceptError_FAILED_TO_ESTABLISH        InterceptError = 10
	InterceptError_UNSUPPORTED_WORKLOAD       InterceptError = 11
	InterceptError_MISCONFIGURED_WORKLOAD     InterceptError = 14
	InterceptError_NOT_FOUND                  InterceptError = 12
	InterceptError_MOUNT_POINT_BUSY           InterceptError = 13
	InterceptError_UNKNOWN_FLAG               InterceptError = 15
)

func (InterceptError) Descriptor added in v2.7.0

func (InterceptError) Enum added in v2.7.0

func (x InterceptError) Enum() *InterceptError

func (InterceptError) EnumDescriptor deprecated added in v2.7.0

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

Deprecated: Use InterceptError.Descriptor instead.

func (InterceptError) Number added in v2.7.0

func (InterceptError) String added in v2.7.0

func (x InterceptError) String() string

func (InterceptError) Type added in v2.7.0

type VersionInfo

type VersionInfo struct {

	// ApiVersion is probably unescessary, as it only gets bumped for
	// things that are detectable other ways, but it's here anyway.
	//
	//  - api_version=1 was edgectl's original JSON-based API that was
	//    served on `/var/run/edgectl.socket`.
	//
	//  - api_version=2 was edgectl's gRPC-based (`package edgectl`) API
	//    that was served on `/var/run/edgectl-daemon.socket`.
	//
	//  - api_version=3 is the current Telepresence 2 gRPC-based
	//    (`package telepresence.{sub}`) API:
	//
	//     + `telepresence.connector` is served on `/tmp/telepresence-connector.socket`.
	//     + `telepresence.daemon` is served on `/var/run/telepresence-daemon.socket`.
	//     + `telepresence.manager` is served on TCP `:8081` (by default) on the traffic-manager Pod.
	//     + `telepresence.systema` is served on TCP+TLS `app.getambassador.io:443` (by default).
	//
	//    This is largely just a rename and split of api_version=2,
	//    since the product is called "telepresence" now instead of
	//    "edgectl" and the "connector" and the "daemon" are now two
	//    separate things.
	ApiVersion int32 `protobuf:"varint,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// Version is a "vSEMVER" string of the product version number.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Executable is the path to the executable for the process.
	Executable string `protobuf:"bytes,3,opt,name=executable,proto3" json:"executable,omitempty"`
	// contains filtered or unexported fields
}

VersionInfo is the type that both `telepresence daemon` (the super-user daemon) and `telepresence conector` (the normal-user daemon) use when reporting their version to the user-facing CLI.

func (*VersionInfo) Descriptor deprecated

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

Deprecated: Use VersionInfo.ProtoReflect.Descriptor instead.

func (*VersionInfo) GetApiVersion

func (x *VersionInfo) GetApiVersion() int32

func (*VersionInfo) GetExecutable added in v2.5.0

func (x *VersionInfo) GetExecutable() string

func (*VersionInfo) GetVersion

func (x *VersionInfo) GetVersion() string

func (*VersionInfo) ProtoMessage

func (*VersionInfo) ProtoMessage()

func (*VersionInfo) ProtoReflect

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

func (*VersionInfo) Reset

func (x *VersionInfo) Reset()

func (*VersionInfo) String

func (x *VersionInfo) String() string

Jump to

Keyboard shortcuts

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