common

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EGenericDataSourceKind_name = map[int32]string{
		0: "DATA_SOURCE_KIND_UNSPECIFIED",
		1: "CLICKHOUSE",
		2: "POSTGRESQL",
		3: "S3",
		4: "YDB",
		5: "MYSQL",
		6: "MS_SQL_SERVER",
		7: "GREENPLUM",
		8: "ORACLE",
		9: "LOGGING",
	}
	EGenericDataSourceKind_value = map[string]int32{
		"DATA_SOURCE_KIND_UNSPECIFIED": 0,
		"CLICKHOUSE":                   1,
		"POSTGRESQL":                   2,
		"S3":                           3,
		"YDB":                          4,
		"MYSQL":                        5,
		"MS_SQL_SERVER":                6,
		"GREENPLUM":                    7,
		"ORACLE":                       8,
		"LOGGING":                      9,
	}
)

Enum value maps for EGenericDataSourceKind.

View Source
var (
	EGenericProtocol_name = map[int32]string{
		0: "PROTOCOL_UNSPECIFIED",
		1: "NATIVE",
		2: "HTTP",
	}
	EGenericProtocol_value = map[string]int32{
		"PROTOCOL_UNSPECIFIED": 0,
		"NATIVE":               1,
		"HTTP":                 2,
	}
)

Enum value maps for EGenericProtocol.

View Source
var File_yql_essentials_providers_common_proto_gateways_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EGenericDataSourceKind added in v0.6.0

type EGenericDataSourceKind int32

EGenericDataSourceKind enumerates the external data sources supported by the federated query system

const (
	EGenericDataSourceKind_DATA_SOURCE_KIND_UNSPECIFIED EGenericDataSourceKind = 0
	EGenericDataSourceKind_CLICKHOUSE                   EGenericDataSourceKind = 1
	EGenericDataSourceKind_POSTGRESQL                   EGenericDataSourceKind = 2
	EGenericDataSourceKind_S3                           EGenericDataSourceKind = 3
	EGenericDataSourceKind_YDB                          EGenericDataSourceKind = 4
	EGenericDataSourceKind_MYSQL                        EGenericDataSourceKind = 5
	EGenericDataSourceKind_MS_SQL_SERVER                EGenericDataSourceKind = 6
	EGenericDataSourceKind_GREENPLUM                    EGenericDataSourceKind = 7
	EGenericDataSourceKind_ORACLE                       EGenericDataSourceKind = 8
	EGenericDataSourceKind_LOGGING                      EGenericDataSourceKind = 9
)

func (EGenericDataSourceKind) Descriptor added in v0.6.0

func (EGenericDataSourceKind) Enum added in v0.6.0

func (EGenericDataSourceKind) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use EGenericDataSourceKind.Descriptor instead.

func (EGenericDataSourceKind) Number added in v0.6.0

func (EGenericDataSourceKind) String added in v0.6.0

func (x EGenericDataSourceKind) String() string

func (EGenericDataSourceKind) Type added in v0.6.0

type EGenericProtocol added in v0.6.0

type EGenericProtocol int32

EGenericProtocol generalizes various kinds of network protocols supported by different databases.

const (
	EGenericProtocol_PROTOCOL_UNSPECIFIED EGenericProtocol = 0
	EGenericProtocol_NATIVE               EGenericProtocol = 1 // CLICKHOUSE, POSTGRESQL
	EGenericProtocol_HTTP                 EGenericProtocol = 2 // CLICKHOUSE, S3
)

func (EGenericProtocol) Descriptor added in v0.6.0

func (EGenericProtocol) Enum added in v0.6.0

func (EGenericProtocol) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use EGenericProtocol.Descriptor instead.

func (EGenericProtocol) Number added in v0.6.0

func (EGenericProtocol) String added in v0.6.0

func (x EGenericProtocol) String() string

func (EGenericProtocol) Type added in v0.6.0

type TClickhouseDataSourceOptions

type TClickhouseDataSourceOptions struct {
	// contains filtered or unexported fields
}

TClickhouseDataSourceOptions represents settings specific to Clickhouse

func (*TClickhouseDataSourceOptions) Descriptor deprecated

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

Deprecated: Use TClickhouseDataSourceOptions.ProtoReflect.Descriptor instead.

func (*TClickhouseDataSourceOptions) ProtoMessage

func (*TClickhouseDataSourceOptions) ProtoMessage()

func (*TClickhouseDataSourceOptions) ProtoReflect

func (*TClickhouseDataSourceOptions) Reset

func (x *TClickhouseDataSourceOptions) Reset()

func (*TClickhouseDataSourceOptions) String

type TGenericCredentials added in v0.6.0

type TGenericCredentials struct {

	// Types that are assignable to Payload:
	//
	//	*TGenericCredentials_Basic
	//	*TGenericCredentials_Token
	Payload isTGenericCredentials_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

TGenericCredentials represents various ways of user authentication in the data source instance

func (*TGenericCredentials) Descriptor deprecated added in v0.6.0

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

Deprecated: Use TGenericCredentials.ProtoReflect.Descriptor instead.

func (*TGenericCredentials) GetBasic added in v0.6.0

func (*TGenericCredentials) GetPayload added in v0.6.0

func (m *TGenericCredentials) GetPayload() isTGenericCredentials_Payload

func (*TGenericCredentials) GetToken added in v0.6.0

func (*TGenericCredentials) ProtoMessage added in v0.6.0

func (*TGenericCredentials) ProtoMessage()

func (*TGenericCredentials) ProtoReflect added in v0.6.0

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

func (*TGenericCredentials) Reset added in v0.6.0

func (x *TGenericCredentials) Reset()

func (*TGenericCredentials) String added in v0.6.0

func (x *TGenericCredentials) String() string

type TGenericCredentials_Basic added in v0.6.0

type TGenericCredentials_Basic struct {
	Basic *TGenericCredentials_TBasic `protobuf:"bytes,1,opt,name=basic,proto3,oneof"`
}

type TGenericCredentials_TBasic added in v0.6.0

type TGenericCredentials_TBasic struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*TGenericCredentials_TBasic) Descriptor deprecated added in v0.6.0

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

Deprecated: Use TGenericCredentials_TBasic.ProtoReflect.Descriptor instead.

func (*TGenericCredentials_TBasic) GetPassword added in v0.6.0

func (x *TGenericCredentials_TBasic) GetPassword() string

func (*TGenericCredentials_TBasic) GetUsername added in v0.6.0

func (x *TGenericCredentials_TBasic) GetUsername() string

func (*TGenericCredentials_TBasic) ProtoMessage added in v0.6.0

func (*TGenericCredentials_TBasic) ProtoMessage()

func (*TGenericCredentials_TBasic) ProtoReflect added in v0.6.0

func (*TGenericCredentials_TBasic) Reset added in v0.6.0

func (x *TGenericCredentials_TBasic) Reset()

func (*TGenericCredentials_TBasic) String added in v0.6.0

func (x *TGenericCredentials_TBasic) String() string

type TGenericCredentials_TToken added in v0.6.0

type TGenericCredentials_TToken struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*TGenericCredentials_TToken) Descriptor deprecated added in v0.6.0

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

Deprecated: Use TGenericCredentials_TToken.ProtoReflect.Descriptor instead.

func (*TGenericCredentials_TToken) GetType added in v0.6.0

func (x *TGenericCredentials_TToken) GetType() string

func (*TGenericCredentials_TToken) GetValue added in v0.6.0

func (x *TGenericCredentials_TToken) GetValue() string

func (*TGenericCredentials_TToken) ProtoMessage added in v0.6.0

func (*TGenericCredentials_TToken) ProtoMessage()

func (*TGenericCredentials_TToken) ProtoReflect added in v0.6.0

func (*TGenericCredentials_TToken) Reset added in v0.6.0

func (x *TGenericCredentials_TToken) Reset()

func (*TGenericCredentials_TToken) String added in v0.6.0

func (x *TGenericCredentials_TToken) String() string

type TGenericCredentials_Token added in v0.6.0

type TGenericCredentials_Token struct {
	Token *TGenericCredentials_TToken `protobuf:"bytes,2,opt,name=token,proto3,oneof"`
}

type TGenericDataSourceInstance added in v0.6.0

type TGenericDataSourceInstance struct {

	// Data source kind
	Kind EGenericDataSourceKind `protobuf:"varint,1,opt,name=kind,proto3,enum=NYql.EGenericDataSourceKind" json:"kind,omitempty"`
	// Network address
	Endpoint *TGenericEndpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// Database name
	Database string `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
	// Credentials to access database
	Credentials *TGenericCredentials `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"`
	// If true, Connector server will use secure connections to access remote data sources.
	// Certificates will be obtained from the standard system paths.
	UseTls bool `protobuf:"varint,5,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
	// Allows to specify network protocol that should be used between
	// during the connection between Connector and the remote data source
	Protocol EGenericProtocol `protobuf:"varint,6,opt,name=protocol,proto3,enum=NYql.EGenericProtocol" json:"protocol,omitempty"`
	// Options specific to various data sources
	//
	// Types that are assignable to Options:
	//
	//	*TGenericDataSourceInstance_PgOptions
	//	*TGenericDataSourceInstance_ChOptions
	//	*TGenericDataSourceInstance_S3Options
	//	*TGenericDataSourceInstance_GpOptions
	//	*TGenericDataSourceInstance_OracleOptions
	//	*TGenericDataSourceInstance_LoggingOptions
	Options isTGenericDataSourceInstance_Options `protobuf_oneof:"options"`
	// contains filtered or unexported fields
}

TGenericDataSourceInstance helps to identify the instance of a data source to redirect request to.

func (*TGenericDataSourceInstance) Descriptor deprecated added in v0.6.0

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

Deprecated: Use TGenericDataSourceInstance.ProtoReflect.Descriptor instead.

func (*TGenericDataSourceInstance) GetChOptions added in v0.6.0

func (*TGenericDataSourceInstance) GetCredentials added in v0.6.0

func (x *TGenericDataSourceInstance) GetCredentials() *TGenericCredentials

func (*TGenericDataSourceInstance) GetDatabase added in v0.6.0

func (x *TGenericDataSourceInstance) GetDatabase() string

func (*TGenericDataSourceInstance) GetEndpoint added in v0.6.0

func (x *TGenericDataSourceInstance) GetEndpoint() *TGenericEndpoint

func (*TGenericDataSourceInstance) GetGpOptions added in v0.6.0

func (*TGenericDataSourceInstance) GetKind added in v0.6.0

func (*TGenericDataSourceInstance) GetLoggingOptions added in v0.6.0

func (x *TGenericDataSourceInstance) GetLoggingOptions() *TLoggingDataSourceOptions

func (*TGenericDataSourceInstance) GetOptions added in v0.6.0

func (m *TGenericDataSourceInstance) GetOptions() isTGenericDataSourceInstance_Options

func (*TGenericDataSourceInstance) GetOracleOptions added in v0.6.0

func (*TGenericDataSourceInstance) GetPgOptions added in v0.6.0

func (*TGenericDataSourceInstance) GetProtocol added in v0.6.0

func (*TGenericDataSourceInstance) GetS3Options added in v0.6.0

func (*TGenericDataSourceInstance) GetUseTls added in v0.6.0

func (x *TGenericDataSourceInstance) GetUseTls() bool

func (*TGenericDataSourceInstance) ProtoMessage added in v0.6.0

func (*TGenericDataSourceInstance) ProtoMessage()

func (*TGenericDataSourceInstance) ProtoReflect added in v0.6.0

func (*TGenericDataSourceInstance) Reset added in v0.6.0

func (x *TGenericDataSourceInstance) Reset()

func (*TGenericDataSourceInstance) String added in v0.6.0

func (x *TGenericDataSourceInstance) String() string

type TGenericDataSourceInstance_ChOptions added in v0.6.0

type TGenericDataSourceInstance_ChOptions struct {
	ChOptions *TClickhouseDataSourceOptions `protobuf:"bytes,8,opt,name=ch_options,json=chOptions,proto3,oneof"`
}

type TGenericDataSourceInstance_GpOptions added in v0.6.0

type TGenericDataSourceInstance_GpOptions struct {
	GpOptions *TGreenplumDataSourceOptions `protobuf:"bytes,10,opt,name=gp_options,json=gpOptions,proto3,oneof"`
}

type TGenericDataSourceInstance_LoggingOptions added in v0.6.0

type TGenericDataSourceInstance_LoggingOptions struct {
	LoggingOptions *TLoggingDataSourceOptions `protobuf:"bytes,12,opt,name=logging_options,json=loggingOptions,proto3,oneof"`
}

type TGenericDataSourceInstance_OracleOptions added in v0.6.0

type TGenericDataSourceInstance_OracleOptions struct {
	OracleOptions *TOracleDataSourceOptions `protobuf:"bytes,11,opt,name=oracle_options,json=oracleOptions,proto3,oneof"`
}

type TGenericDataSourceInstance_PgOptions added in v0.6.0

type TGenericDataSourceInstance_PgOptions struct {
	PgOptions *TPostgreSQLDataSourceOptions `protobuf:"bytes,7,opt,name=pg_options,json=pgOptions,proto3,oneof"`
}

type TGenericDataSourceInstance_S3Options added in v0.6.0

type TGenericDataSourceInstance_S3Options struct {
	S3Options *TS3DataSourceOptions `protobuf:"bytes,9,opt,name=s3_options,json=s3Options,proto3,oneof"`
}

type TGenericEndpoint added in v0.6.0

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

TGenericEndpoint represents the network address of a generic data source instance

func (*TGenericEndpoint) Descriptor deprecated added in v0.6.0

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

Deprecated: Use TGenericEndpoint.ProtoReflect.Descriptor instead.

func (*TGenericEndpoint) GetHost added in v0.6.0

func (x *TGenericEndpoint) GetHost() string

func (*TGenericEndpoint) GetPort added in v0.6.0

func (x *TGenericEndpoint) GetPort() uint32

func (*TGenericEndpoint) ProtoMessage added in v0.6.0

func (*TGenericEndpoint) ProtoMessage()

func (*TGenericEndpoint) ProtoReflect added in v0.6.0

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

func (*TGenericEndpoint) Reset added in v0.6.0

func (x *TGenericEndpoint) Reset()

func (*TGenericEndpoint) String added in v0.6.0

func (x *TGenericEndpoint) String() string

type TGreenplumDataSourceOptions added in v0.4.6

type TGreenplumDataSourceOptions struct {

	// Greenplum schema
	Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

TGreenplumDataSourceOptions represents settings specific to Greenplum

func (*TGreenplumDataSourceOptions) Descriptor deprecated added in v0.4.6

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

Deprecated: Use TGreenplumDataSourceOptions.ProtoReflect.Descriptor instead.

func (*TGreenplumDataSourceOptions) GetSchema added in v0.4.6

func (x *TGreenplumDataSourceOptions) GetSchema() string

func (*TGreenplumDataSourceOptions) ProtoMessage added in v0.4.6

func (*TGreenplumDataSourceOptions) ProtoMessage()

func (*TGreenplumDataSourceOptions) ProtoReflect added in v0.4.6

func (*TGreenplumDataSourceOptions) Reset added in v0.4.6

func (x *TGreenplumDataSourceOptions) Reset()

func (*TGreenplumDataSourceOptions) String added in v0.4.6

func (x *TGreenplumDataSourceOptions) String() string

type TLoggingDataSourceOptions added in v0.6.0

type TLoggingDataSourceOptions struct {
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// contains filtered or unexported fields
}

TLoggingDataSourceOptions represents settings specific to Logging

func (*TLoggingDataSourceOptions) Descriptor deprecated added in v0.6.0

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

Deprecated: Use TLoggingDataSourceOptions.ProtoReflect.Descriptor instead.

func (*TLoggingDataSourceOptions) GetFolderId added in v0.6.0

func (x *TLoggingDataSourceOptions) GetFolderId() string

func (*TLoggingDataSourceOptions) ProtoMessage added in v0.6.0

func (*TLoggingDataSourceOptions) ProtoMessage()

func (*TLoggingDataSourceOptions) ProtoReflect added in v0.6.0

func (*TLoggingDataSourceOptions) Reset added in v0.6.0

func (x *TLoggingDataSourceOptions) Reset()

func (*TLoggingDataSourceOptions) String added in v0.6.0

func (x *TLoggingDataSourceOptions) String() string

type TOracleDataSourceOptions added in v0.5.0

type TOracleDataSourceOptions struct {

	// Oracle service_name - alias to SID of oracle INSTANCE, or SID, or PDB.
	//
	//	More about connection options in Oracle docs:
	//	https://docs.oracle.com/en/database/other-databases/essbase/21/essoa/connection-string-formats.html
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// contains filtered or unexported fields
}

TOracleDataSourceOptions represents settings specific to Oracle

func (*TOracleDataSourceOptions) Descriptor deprecated added in v0.5.0

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

Deprecated: Use TOracleDataSourceOptions.ProtoReflect.Descriptor instead.

func (*TOracleDataSourceOptions) GetServiceName added in v0.5.0

func (x *TOracleDataSourceOptions) GetServiceName() string

func (*TOracleDataSourceOptions) ProtoMessage added in v0.5.0

func (*TOracleDataSourceOptions) ProtoMessage()

func (*TOracleDataSourceOptions) ProtoReflect added in v0.5.0

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

func (*TOracleDataSourceOptions) Reset added in v0.5.0

func (x *TOracleDataSourceOptions) Reset()

func (*TOracleDataSourceOptions) String added in v0.5.0

func (x *TOracleDataSourceOptions) String() string

type TPostgreSQLDataSourceOptions

type TPostgreSQLDataSourceOptions struct {

	// PostgreSQL schema
	Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

TPostgreSQLDataSourceOptions represents settings specific to PostgreSQL

func (*TPostgreSQLDataSourceOptions) Descriptor deprecated

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

Deprecated: Use TPostgreSQLDataSourceOptions.ProtoReflect.Descriptor instead.

func (*TPostgreSQLDataSourceOptions) GetSchema

func (x *TPostgreSQLDataSourceOptions) GetSchema() string

func (*TPostgreSQLDataSourceOptions) ProtoMessage

func (*TPostgreSQLDataSourceOptions) ProtoMessage()

func (*TPostgreSQLDataSourceOptions) ProtoReflect

func (*TPostgreSQLDataSourceOptions) Reset

func (x *TPostgreSQLDataSourceOptions) Reset()

func (*TPostgreSQLDataSourceOptions) String

type TS3DataSourceOptions

type TS3DataSourceOptions struct {

	// the region where data is stored
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// the bucket the object belongs to
	Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

TS3DataSourceOptions represents settings specific to S3 (Simple Storage Service)

func (*TS3DataSourceOptions) Descriptor deprecated

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

Deprecated: Use TS3DataSourceOptions.ProtoReflect.Descriptor instead.

func (*TS3DataSourceOptions) GetBucket

func (x *TS3DataSourceOptions) GetBucket() string

func (*TS3DataSourceOptions) GetRegion

func (x *TS3DataSourceOptions) GetRegion() string

func (*TS3DataSourceOptions) ProtoMessage

func (*TS3DataSourceOptions) ProtoMessage()

func (*TS3DataSourceOptions) ProtoReflect

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

func (*TS3DataSourceOptions) Reset

func (x *TS3DataSourceOptions) Reset()

func (*TS3DataSourceOptions) String

func (x *TS3DataSourceOptions) String() string

Jump to

Keyboard shortcuts

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