...

Package common_go_proto

import "github.com/google/s2a-go/internal/proto/v2/common_go_proto"
Overview
Index

Overview ▾

Variables

Enum value maps for Ciphersuite.

var (
    Ciphersuite_name = map[int32]string{
        0: "CIPHERSUITE_UNSPECIFIED",
        1: "CIPHERSUITE_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
        2: "CIPHERSUITE_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
        3: "CIPHERSUITE_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256",
        4: "CIPHERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
        5: "CIPHERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
        6: "CIPHERSUITE_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
    }
    Ciphersuite_value = map[string]int32{
        "CIPHERSUITE_UNSPECIFIED":                               0,
        "CIPHERSUITE_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256":       1,
        "CIPHERSUITE_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384":       2,
        "CIPHERSUITE_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256": 3,
        "CIPHERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256":         4,
        "CIPHERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384":         5,
        "CIPHERSUITE_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256":   6,
    }
)

Enum value maps for TLSVersion.

var (
    TLSVersion_name = map[int32]string{
        0: "TLS_VERSION_UNSPECIFIED",
        1: "TLS_VERSION_1_0",
        2: "TLS_VERSION_1_1",
        3: "TLS_VERSION_1_2",
        4: "TLS_VERSION_1_3",
    }
    TLSVersion_value = map[string]int32{
        "TLS_VERSION_UNSPECIFIED": 0,
        "TLS_VERSION_1_0":         1,
        "TLS_VERSION_1_1":         2,
        "TLS_VERSION_1_2":         3,
        "TLS_VERSION_1_3":         4,
    }
)

Enum value maps for ConnectionSide.

var (
    ConnectionSide_name = map[int32]string{
        0: "CONNECTION_SIDE_UNSPECIFIED",
        1: "CONNECTION_SIDE_CLIENT",
        2: "CONNECTION_SIDE_SERVER",
    }
    ConnectionSide_value = map[string]int32{
        "CONNECTION_SIDE_UNSPECIFIED": 0,
        "CONNECTION_SIDE_CLIENT":      1,
        "CONNECTION_SIDE_SERVER":      2,
    }
)

Enum value maps for AlpnProtocol.

var (
    AlpnProtocol_name = map[int32]string{
        0: "ALPN_PROTOCOL_UNSPECIFIED",
        1: "ALPN_PROTOCOL_GRPC",
        2: "ALPN_PROTOCOL_HTTP2",
        3: "ALPN_PROTOCOL_HTTP1_1",
    }
    AlpnProtocol_value = map[string]int32{
        "ALPN_PROTOCOL_UNSPECIFIED": 0,
        "ALPN_PROTOCOL_GRPC":        1,
        "ALPN_PROTOCOL_HTTP2":       2,
        "ALPN_PROTOCOL_HTTP1_1":     3,
    }
)
var File_internal_proto_v2_common_common_proto protoreflect.FileDescriptor

type AlpnProtocol

The ALPN protocols that the application can negotiate during a TLS handshake.

type AlpnProtocol int32
const (
    AlpnProtocol_ALPN_PROTOCOL_UNSPECIFIED AlpnProtocol = 0
    AlpnProtocol_ALPN_PROTOCOL_GRPC        AlpnProtocol = 1
    AlpnProtocol_ALPN_PROTOCOL_HTTP2       AlpnProtocol = 2
    AlpnProtocol_ALPN_PROTOCOL_HTTP1_1     AlpnProtocol = 3
)

func (AlpnProtocol) Descriptor

func (AlpnProtocol) Descriptor() protoreflect.EnumDescriptor

func (AlpnProtocol) Enum

func (x AlpnProtocol) Enum() *AlpnProtocol

func (AlpnProtocol) EnumDescriptor

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

Deprecated: Use AlpnProtocol.Descriptor instead.

func (AlpnProtocol) Number

func (x AlpnProtocol) Number() protoreflect.EnumNumber

func (AlpnProtocol) String

func (x AlpnProtocol) String() string

func (AlpnProtocol) Type

func (AlpnProtocol) Type() protoreflect.EnumType

type Ciphersuite

The TLS 1.0-1.2 ciphersuites that the application can negotiate when using S2A.

type Ciphersuite int32
const (
    Ciphersuite_CIPHERSUITE_UNSPECIFIED                               Ciphersuite = 0
    Ciphersuite_CIPHERSUITE_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256       Ciphersuite = 1
    Ciphersuite_CIPHERSUITE_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384       Ciphersuite = 2
    Ciphersuite_CIPHERSUITE_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 Ciphersuite = 3
    Ciphersuite_CIPHERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256         Ciphersuite = 4
    Ciphersuite_CIPHERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384         Ciphersuite = 5
    Ciphersuite_CIPHERSUITE_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256   Ciphersuite = 6
)

func (Ciphersuite) Descriptor

func (Ciphersuite) Descriptor() protoreflect.EnumDescriptor

func (Ciphersuite) Enum

func (x Ciphersuite) Enum() *Ciphersuite

func (Ciphersuite) EnumDescriptor

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

Deprecated: Use Ciphersuite.Descriptor instead.

func (Ciphersuite) Number

func (x Ciphersuite) Number() protoreflect.EnumNumber

func (Ciphersuite) String

func (x Ciphersuite) String() string

func (Ciphersuite) Type

func (Ciphersuite) Type() protoreflect.EnumType

type ConnectionSide

The side in the TLS connection.

type ConnectionSide int32
const (
    ConnectionSide_CONNECTION_SIDE_UNSPECIFIED ConnectionSide = 0
    ConnectionSide_CONNECTION_SIDE_CLIENT      ConnectionSide = 1
    ConnectionSide_CONNECTION_SIDE_SERVER      ConnectionSide = 2
)

func (ConnectionSide) Descriptor

func (ConnectionSide) Descriptor() protoreflect.EnumDescriptor

func (ConnectionSide) Enum

func (x ConnectionSide) Enum() *ConnectionSide

func (ConnectionSide) EnumDescriptor

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

Deprecated: Use ConnectionSide.Descriptor instead.

func (ConnectionSide) Number

func (x ConnectionSide) Number() protoreflect.EnumNumber

func (ConnectionSide) String

func (x ConnectionSide) String() string

func (ConnectionSide) Type

func (ConnectionSide) Type() protoreflect.EnumType

type TLSVersion

The TLS versions supported by S2A's handshaker module.

type TLSVersion int32
const (
    TLSVersion_TLS_VERSION_UNSPECIFIED TLSVersion = 0
    TLSVersion_TLS_VERSION_1_0         TLSVersion = 1
    TLSVersion_TLS_VERSION_1_1         TLSVersion = 2
    TLSVersion_TLS_VERSION_1_2         TLSVersion = 3
    TLSVersion_TLS_VERSION_1_3         TLSVersion = 4
)

func (TLSVersion) Descriptor

func (TLSVersion) Descriptor() protoreflect.EnumDescriptor

func (TLSVersion) Enum

func (x TLSVersion) Enum() *TLSVersion

func (TLSVersion) EnumDescriptor

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

Deprecated: Use TLSVersion.Descriptor instead.

func (TLSVersion) Number

func (x TLSVersion) Number() protoreflect.EnumNumber

func (TLSVersion) String

func (x TLSVersion) String() string

func (TLSVersion) Type

func (TLSVersion) Type() protoreflect.EnumType