connectorspb

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetadataExchangeRequest_AuthType_name = map[int32]string{
		0: "AUTH_TYPE_UNSPECIFIED",
		1: "DB_NATIVE",
		2: "AUTO_IAM",
	}
	MetadataExchangeRequest_AuthType_value = map[string]int32{
		"AUTH_TYPE_UNSPECIFIED": 0,
		"DB_NATIVE":             1,
		"AUTO_IAM":              2,
	}
)

Enum value maps for MetadataExchangeRequest_AuthType.

View Source
var (
	MetadataExchangeResponse_ResponseCode_name = map[int32]string{
		0: "RESPONSE_CODE_UNSPECIFIED",
		1: "OK",
		2: "ERROR",
	}
	MetadataExchangeResponse_ResponseCode_value = map[string]int32{
		"RESPONSE_CODE_UNSPECIFIED": 0,
		"OK":                        1,
		"ERROR":                     2,
	}
)

Enum value maps for MetadataExchangeResponse_ResponseCode.

View Source
var File_google_cloud_alloydb_connectors_v1alpha_resources_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MetadataExchangeRequest

type MetadataExchangeRequest struct {

	// Optional. Connector information.
	UserAgent string `protobuf:"bytes,1,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// Authentication type.
	AuthType MetadataExchangeRequest_AuthType `` /* 164-byte string literal not displayed */
	// IAM token used for both IAM user authentiation and
	// `alloydb.instances.connect` permission check.
	Oauth2Token string `protobuf:"bytes,3,opt,name=oauth2_token,json=oauth2Token,proto3" json:"oauth2_token,omitempty"`
	// contains filtered or unexported fields
}

Message used by AlloyDB connectors to exchange client and connection metadata with the server after a successful TLS handshake. This metadata includes an IAM token, which is used to authenticate users based on their IAM identity. The sole purpose of this message is for the use of AlloyDB connectors. Clients should not rely on this message directly as there can be breaking changes in the future.

func (*MetadataExchangeRequest) Descriptor deprecated

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

Deprecated: Use MetadataExchangeRequest.ProtoReflect.Descriptor instead.

func (*MetadataExchangeRequest) GetAuthType

func (*MetadataExchangeRequest) GetOauth2Token

func (x *MetadataExchangeRequest) GetOauth2Token() string

func (*MetadataExchangeRequest) GetUserAgent

func (x *MetadataExchangeRequest) GetUserAgent() string

func (*MetadataExchangeRequest) ProtoMessage

func (*MetadataExchangeRequest) ProtoMessage()

func (*MetadataExchangeRequest) ProtoReflect

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

func (*MetadataExchangeRequest) Reset

func (x *MetadataExchangeRequest) Reset()

func (*MetadataExchangeRequest) String

func (x *MetadataExchangeRequest) String() string

type MetadataExchangeRequest_AuthType

type MetadataExchangeRequest_AuthType int32

AuthType contains all supported authentication types.

const (
	// Authentication type is unspecified and DB_NATIVE is used by default
	MetadataExchangeRequest_AUTH_TYPE_UNSPECIFIED MetadataExchangeRequest_AuthType = 0
	// Database native authentication (user/password)
	MetadataExchangeRequest_DB_NATIVE MetadataExchangeRequest_AuthType = 1
	// Automatic IAM authentication
	MetadataExchangeRequest_AUTO_IAM MetadataExchangeRequest_AuthType = 2
)

func (MetadataExchangeRequest_AuthType) Descriptor

func (MetadataExchangeRequest_AuthType) Enum

func (MetadataExchangeRequest_AuthType) EnumDescriptor deprecated

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

Deprecated: Use MetadataExchangeRequest_AuthType.Descriptor instead.

func (MetadataExchangeRequest_AuthType) Number

func (MetadataExchangeRequest_AuthType) String

func (MetadataExchangeRequest_AuthType) Type

type MetadataExchangeResponse

type MetadataExchangeResponse struct {

	// Response code.
	ResponseCode MetadataExchangeResponse_ResponseCode `` /* 181-byte string literal not displayed */
	// Optional. Error message.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

Message for response to metadata exchange request. The sole purpose of this message is for the use of AlloyDB connectors. Clients should not rely on this message directly as there can be breaking changes in the future.

func (*MetadataExchangeResponse) Descriptor deprecated

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

Deprecated: Use MetadataExchangeResponse.ProtoReflect.Descriptor instead.

func (*MetadataExchangeResponse) GetError

func (x *MetadataExchangeResponse) GetError() string

func (*MetadataExchangeResponse) GetResponseCode

func (*MetadataExchangeResponse) ProtoMessage

func (*MetadataExchangeResponse) ProtoMessage()

func (*MetadataExchangeResponse) ProtoReflect

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

func (*MetadataExchangeResponse) Reset

func (x *MetadataExchangeResponse) Reset()

func (*MetadataExchangeResponse) String

func (x *MetadataExchangeResponse) String() string

type MetadataExchangeResponse_ResponseCode

type MetadataExchangeResponse_ResponseCode int32

Response code.

const (
	// Unknown response code
	MetadataExchangeResponse_RESPONSE_CODE_UNSPECIFIED MetadataExchangeResponse_ResponseCode = 0
	// Success
	MetadataExchangeResponse_OK MetadataExchangeResponse_ResponseCode = 1
	// Failure
	MetadataExchangeResponse_ERROR MetadataExchangeResponse_ResponseCode = 2
)

func (MetadataExchangeResponse_ResponseCode) Descriptor

func (MetadataExchangeResponse_ResponseCode) Enum

func (MetadataExchangeResponse_ResponseCode) EnumDescriptor deprecated

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

Deprecated: Use MetadataExchangeResponse_ResponseCode.Descriptor instead.

func (MetadataExchangeResponse_ResponseCode) Number

func (MetadataExchangeResponse_ResponseCode) String

func (MetadataExchangeResponse_ResponseCode) Type

Jump to

Keyboard shortcuts

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